From 63c33f856a762a177ed8e383df3e950d4133bbf8 Mon Sep 17 00:00:00 2001 From: kai ru <69238381+kairu-ms@users.noreply.github.com> Date: Thu, 19 Aug 2021 10:25:51 +0800 Subject: [PATCH] update tests --- test/scenario-test.ts | 11 +- .../command_modules/vm/generated/custom.py | 4 +- .../kusto/generated/commands.py | 15 +- .../command_modules/kusto/generated/custom.py | 78 +- .../doc/sphinx/azhelpgen/doc_source_map.json | 0 .../cli/command_modules/kusto/__init__.py | 0 .../azure/cli/command_modules/kusto/_help.py | 0 .../azure/cli/command_modules/kusto/action.py | 0 .../azure/cli/command_modules/kusto/custom.py | 0 .../kusto/generated/__init__.py | 0 .../kusto/generated/_client_factory.py | 0 .../command_modules/kusto/generated/_help.py | 0 .../kusto/generated/_params.py | 0 .../kusto/generated/_validators.py | 0 .../command_modules/kusto/generated/action.py | 0 .../kusto/generated/commands.py | 15 +- .../command_modules/kusto/generated/custom.py | 78 +- .../command_modules/kusto/manual/__init__.py | 0 .../azure/cli/command_modules/kusto/report.md | 0 .../command_modules/kusto/tests/__init__.py | 0 .../kusto/tests/latest/__init__.py | 0 .../kusto/tests/latest/example_steps.py | 0 .../kusto/tests/latest/test_kusto_scenario.py | 0 .../src/azure-cli/requirements.py3.Darwin.txt | 0 .../src/azure-cli/requirements.py3.Linux.txt | 0 .../azure-cli/requirements.py3.windows.txt | 0 .../src/azure-cli/setup.py | 0 .../synapse/generated/commands.py | 1 + .../synapse/generated/custom.py | 56 +- .../doc/sphinx/azhelpgen/doc_source_map.json | 78 + .../cli/command_modules/synapse/__init__.py | 53 + .../cli/command_modules/synapse/_help.py | 20 + .../cli/command_modules/synapse/action.py | 20 + .../cli/command_modules/synapse/custom.py | 20 + .../synapse/generated/__init__.py | 12 + .../synapse/generated/_client_factory.py | 168 ++ .../synapse/generated/_help.py | 1475 ++++++++++++ .../synapse/generated/_params.py | 958 ++++++++ .../synapse/generated/_validators.py | 9 + .../synapse/generated/action.py | 274 +++ .../synapse/generated/commands.py | 665 ++++++ .../synapse/generated/custom.py | 1454 ++++++++++++ .../synapse/manual/__init__.py | 12 + .../cli/command_modules/synapse/report.md | 1977 +++++++++++++++++ .../command_modules/synapse/tests/__init__.py | 116 + .../synapse/tests/latest/__init__.py | 12 + .../synapse/tests/latest/example_steps.py | 1352 +++++++++++ .../tests/latest/test_synapse_scenario.py | 453 ++++ .../src/azure-cli/requirements.py3.Darwin.txt | 130 ++ .../src/azure-cli/requirements.py3.Linux.txt | 130 ++ .../azure-cli/requirements.py3.windows.txt | 129 ++ .../output/coretrack1/src/azure-cli/setup.py | 188 ++ 52 files changed, 9835 insertions(+), 128 deletions(-) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/doc/sphinx/azhelpgen/doc_source_map.json (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/__init__.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/_help.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/action.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/custom.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/generated/__init__.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/generated/_client_factory.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/generated/_help.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/generated/_params.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/generated/_validators.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/generated/action.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py (93%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py (92%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/manual/__init__.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/report.md (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/tests/__init__.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/__init__.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/example_steps.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/test_kusto_scenario.py (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/requirements.py3.Darwin.txt (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/requirements.py3.Linux.txt (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/requirements.py3.windows.txt (100%) rename test/scenarios/kusto/output/{coretrack2 => coretrack1}/src/azure-cli/setup.py (100%) create mode 100644 test/scenarios/synapse/output/coretrack1/doc/sphinx/azhelpgen/doc_source_map.json create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/__init__.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/_help.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/action.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/custom.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/__init__.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_client_factory.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_help.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_params.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_validators.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/action.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/commands.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/custom.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/manual/__init__.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/report.md create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/__init__.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/__init__.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/example_steps.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.Darwin.txt create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.Linux.txt create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.windows.txt create mode 100644 test/scenarios/synapse/output/coretrack1/src/azure-cli/setup.py diff --git a/test/scenario-test.ts b/test/scenario-test.ts index b9018b229..02fb92cb6 100644 --- a/test/scenario-test.ts +++ b/test/scenario-test.ts @@ -17,7 +17,7 @@ export enum TestMode { ExtNoSdk = 'extnosdk', ExtDefaultFolder = 'ext_default_folder', ExtNoSdkNoFlattenTrack1 = 'extnosdknoflattentrack1', - CoreTrack2 = 'coretrack2', + CoreTrack1 = 'coretrack1', } describe('ScenarioTest', () => { @@ -32,7 +32,7 @@ describe('ScenarioTest', () => { 'kusto', [ TestMode.CoreDefault, - TestMode.CoreTrack2, + TestMode.CoreTrack1, TestMode.ExtDefaultFolder, TestMode.ExtNoSdkNoFlattenTrack1, ], @@ -41,6 +41,7 @@ describe('ScenarioTest', () => { 'synapse', [ TestMode.CoreDefault, + TestMode.CoreTrack1, TestMode.ExtFlatten, TestMode.ExtDefaultFolder, TestMode.ExtNoSdkNoFlattenTrack1, @@ -120,13 +121,13 @@ describe('ScenarioTest', () => { key = CodeGenConstants.azureCliFolder; extraOption[key] = outputDir; return extraOption; - } else if (testMode === TestMode.CoreTrack2) { + } else if (testMode === TestMode.CoreTrack1) { let key = CodeGenConstants.targetMode; extraOption[key] = TargetMode.Core; key = CodeGenConstants.azureCliFolder; extraOption[key] = outputDir; key = CodeGenConstants.compatibleLevel; - extraOption[key] = CompatibleLevel.Track2; + extraOption[key] = CompatibleLevel.Track1; return extraOption; } else if (testMode === TestMode.ExtFlatten) { let key = CodeGenConstants.azureCliExtFolder; @@ -213,7 +214,7 @@ describe('ScenarioTest', () => { dimension === TestMode.CoreDefault || dimension === TestMode.ExtIncremental || dimension === TestMode.CoreIncremental || - dimension === TestMode.CoreTrack2 + dimension === TestMode.CoreTrack1 ) { copyRecursiveSync( path.join(dir, rp, 'basecli'), diff --git a/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/generated/custom.py b/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/generated/custom.py index a26fba6f6..d2244e41b 100644 --- a/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/generated/custom.py +++ b/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/generated/custom.py @@ -18,7 +18,7 @@ def vm_virtual_machine_assess_patch(client, vm_name, no_wait=False): return sdk_no_wait(no_wait, - client.assess_patches, + client.begin_assess_patches, resource_group_name=resource_group_name, vm_name=vm_name) @@ -102,7 +102,7 @@ def vm_virtual_machine_scale_set_vm_extension_create(client, if len(extension_parameters['instance_view']) == 0: del extension_parameters['instance_view'] return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, diff --git a/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py b/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py index 9a60b4b8c..8d7d76057 100644 --- a/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py +++ b/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py @@ -74,7 +74,10 @@ def load_command_table(self, _): 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', supports_no_wait=True, custom_func_name='kusto_attached_database_configuration_update' + 'update', + supports_no_wait=True, + custom_func_name='kusto_attached_database_configuration_update', + setter_name='begin_create_or_update', ) g.custom_command( 'delete', 'kusto_attached_database_configuration_delete', supports_no_wait=True, confirmation=True @@ -118,7 +121,10 @@ def load_command_table(self, _): 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', supports_no_wait=True, custom_func_name='kusto_cluster_principal_assignment_update' + 'update', + supports_no_wait=True, + custom_func_name='kusto_cluster_principal_assignment_update', + setter_name='begin_create_or_update', ) g.custom_command( 'delete', 'kusto_cluster_principal_assignment_delete', supports_no_wait=True, confirmation=True @@ -165,7 +171,10 @@ def load_command_table(self, _): 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', supports_no_wait=True, custom_func_name='kusto_database_principal_assignment_update' + 'update', + supports_no_wait=True, + custom_func_name='kusto_database_principal_assignment_update', + setter_name='begin_create_or_update', ) g.custom_command( 'delete', 'kusto_database_principal_assignment_delete', supports_no_wait=True, confirmation=True diff --git a/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py b/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py index 7044e9549..afa18c6b4 100644 --- a/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py +++ b/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py @@ -83,7 +83,7 @@ def kusto_cluster_create(client, if len(parameters['identity']) == 0: del parameters['identity'] return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, parameters=parameters) @@ -143,7 +143,7 @@ def kusto_cluster_update(client, if len(parameters['identity']) == 0: del parameters['identity'] return sdk_no_wait(no_wait, - client.update, + client.begin_update, resource_group_name=resource_group_name, cluster_name=cluster_name, parameters=parameters) @@ -154,7 +154,7 @@ def kusto_cluster_delete(client, cluster_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, cluster_name=cluster_name) @@ -164,11 +164,14 @@ def kusto_cluster_add_language_extension(client, cluster_name, value=None, no_wait=False): + language_extensions_to_add = {} + if value is not None: + language_extensions_to_add['value'] = value return sdk_no_wait(no_wait, - client.add_language_extensions, + client.begin_add_language_extensions, resource_group_name=resource_group_name, cluster_name=cluster_name, - value=value) + language_extensions_to_add=language_extensions_to_add) def kusto_cluster_detach_follower_database(client, @@ -177,12 +180,14 @@ def kusto_cluster_detach_follower_database(client, 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.detach_follower_databases, + client.begin_detach_follower_databases, 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) def kusto_cluster_diagnose_virtual_network(client, @@ -190,7 +195,7 @@ def kusto_cluster_diagnose_virtual_network(client, cluster_name, no_wait=False): return sdk_no_wait(no_wait, - client.diagnose_virtual_network, + client.begin_diagnose_virtual_network, resource_group_name=resource_group_name, cluster_name=cluster_name) @@ -223,11 +228,14 @@ def kusto_cluster_remove_language_extension(client, cluster_name, value=None, no_wait=False): + language_extensions_to_remove = {} + if value is not None: + language_extensions_to_remove['value'] = value return sdk_no_wait(no_wait, - client.remove_language_extensions, + client.begin_remove_language_extensions, resource_group_name=resource_group_name, cluster_name=cluster_name, - value=value) + language_extensions_to_remove=language_extensions_to_remove) def kusto_cluster_start(client, @@ -235,7 +243,7 @@ def kusto_cluster_start(client, cluster_name, no_wait=False): return sdk_no_wait(no_wait, - client.start, + client.begin_start, resource_group_name=resource_group_name, cluster_name=cluster_name) @@ -245,7 +253,7 @@ def kusto_cluster_stop(client, cluster_name, no_wait=False): return sdk_no_wait(no_wait, - client.stop, + client.begin_stop, resource_group_name=resource_group_name, cluster_name=cluster_name) @@ -285,7 +293,7 @@ def kusto_cluster_principal_assignment_create(client, if principal_type is not None: parameters['principal_type'] = principal_type return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, principal_assignment_name=principal_assignment_name, @@ -318,7 +326,7 @@ def kusto_cluster_principal_assignment_delete(client, principal_assignment_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, cluster_name=cluster_name, principal_assignment_name=principal_assignment_name) @@ -359,7 +367,7 @@ def kusto_database_create(client, 'provided!') parameters = all_parameters[0] if len(all_parameters) == 1 else None return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -385,7 +393,7 @@ def kusto_database_update(client, 'provided!') parameters = all_parameters[0] if len(all_parameters) == 1 else None return sdk_no_wait(no_wait, - client.update, + client.begin_update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -398,7 +406,7 @@ def kusto_database_delete(client, database_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name) @@ -409,10 +417,13 @@ def kusto_database_add_principal(client, cluster_name, database_name, value=None): + database_principals_to_add = {} + if value is not None: + database_principals_to_add['value'] = value return client.add_principals(resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, - value=value) + database_principals_to_add=database_principals_to_add) def kusto_database_list_principal(client, @@ -429,10 +440,13 @@ def kusto_database_remove_principal(client, cluster_name, database_name, value=None): + database_principals_to_remove = {} + if value is not None: + database_principals_to_remove['value'] = value return client.remove_principals(resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, - value=value) + database_principals_to_remove=database_principals_to_remove) def kusto_database_principal_assignment_list(client, @@ -475,7 +489,7 @@ def kusto_database_principal_assignment_create(client, if principal_type is not None: parameters['principal_type'] = principal_type return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -511,7 +525,7 @@ def kusto_database_principal_assignment_delete(client, principal_assignment_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -553,7 +567,7 @@ def kusto_attached_database_configuration_create(client, if default_principals_modification_kind is not None: parameters['default_principals_modification_kind'] = default_principals_modification_kind return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, attached_database_configuration_name=attached_database_configuration_name, @@ -586,7 +600,7 @@ def kusto_attached_database_configuration_delete(client, attached_database_configuration_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, cluster_name=cluster_name, attached_database_configuration_name=attached_database_configuration_name) @@ -636,7 +650,7 @@ def kusto_data_connection_create(client, 'event_grid_data_connection is provided!') parameters = all_parameters[0] if len(all_parameters) == 1 else None return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -668,7 +682,7 @@ def kusto_data_connection_update(client, 'event_grid_data_connection is provided!') parameters = all_parameters[0] if len(all_parameters) == 1 else None return sdk_no_wait(no_wait, - client.update, + client.begin_update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -683,7 +697,7 @@ def kusto_data_connection_delete(client, data_connection_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -710,10 +724,14 @@ def kusto_data_connection_data_connection_validation(client, raise CLIError('at most one of event_hub_data_connection, iot_hub_data_connection, event_grid_data_connection ' 'is needed for properties!') properties = all_properties[0] if len(all_properties) == 1 else None + parameters = {} + if data_connection_name is not None: + parameters['data_connection_name'] = data_connection_name + if properties is not None: + parameters['properties'] = properties return sdk_no_wait(no_wait, - client.data_connection_validation, + 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) + parameters=parameters) diff --git a/test/scenarios/kusto/output/coretrack2/doc/sphinx/azhelpgen/doc_source_map.json b/test/scenarios/kusto/output/coretrack1/doc/sphinx/azhelpgen/doc_source_map.json similarity index 100% rename from test/scenarios/kusto/output/coretrack2/doc/sphinx/azhelpgen/doc_source_map.json rename to test/scenarios/kusto/output/coretrack1/doc/sphinx/azhelpgen/doc_source_map.json diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/__init__.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/__init__.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/__init__.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/__init__.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/_help.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/_help.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/_help.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/_help.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/action.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/action.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/action.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/action.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/custom.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/custom.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/custom.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/custom.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/__init__.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/__init__.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/__init__.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/__init__.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/_client_factory.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/_client_factory.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/_client_factory.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/_client_factory.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/_help.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/_help.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/_help.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/_help.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/_params.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/_params.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/_params.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/_params.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/_validators.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/_validators.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/_validators.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/_validators.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/action.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/action.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/action.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/action.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py similarity index 93% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py index 8d7d76057..9a60b4b8c 100644 --- a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py +++ b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/commands.py @@ -74,10 +74,7 @@ def load_command_table(self, _): 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', - supports_no_wait=True, - custom_func_name='kusto_attached_database_configuration_update', - setter_name='begin_create_or_update', + 'update', supports_no_wait=True, custom_func_name='kusto_attached_database_configuration_update' ) g.custom_command( 'delete', 'kusto_attached_database_configuration_delete', supports_no_wait=True, confirmation=True @@ -121,10 +118,7 @@ def load_command_table(self, _): 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', - supports_no_wait=True, - custom_func_name='kusto_cluster_principal_assignment_update', - setter_name='begin_create_or_update', + 'update', supports_no_wait=True, custom_func_name='kusto_cluster_principal_assignment_update' ) g.custom_command( 'delete', 'kusto_cluster_principal_assignment_delete', supports_no_wait=True, confirmation=True @@ -171,10 +165,7 @@ def load_command_table(self, _): 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', - supports_no_wait=True, - custom_func_name='kusto_database_principal_assignment_update', - setter_name='begin_create_or_update', + 'update', supports_no_wait=True, custom_func_name='kusto_database_principal_assignment_update' ) g.custom_command( 'delete', 'kusto_database_principal_assignment_delete', supports_no_wait=True, confirmation=True diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py similarity index 92% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py index afa18c6b4..7044e9549 100644 --- a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py +++ b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/generated/custom.py @@ -83,7 +83,7 @@ def kusto_cluster_create(client, if len(parameters['identity']) == 0: del parameters['identity'] return sdk_no_wait(no_wait, - client.begin_create_or_update, + client.create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, parameters=parameters) @@ -143,7 +143,7 @@ def kusto_cluster_update(client, if len(parameters['identity']) == 0: del parameters['identity'] return sdk_no_wait(no_wait, - client.begin_update, + client.update, resource_group_name=resource_group_name, cluster_name=cluster_name, parameters=parameters) @@ -154,7 +154,7 @@ def kusto_cluster_delete(client, cluster_name, no_wait=False): return sdk_no_wait(no_wait, - client.begin_delete, + client.delete, resource_group_name=resource_group_name, cluster_name=cluster_name) @@ -164,14 +164,11 @@ def kusto_cluster_add_language_extension(client, cluster_name, value=None, no_wait=False): - language_extensions_to_add = {} - if value is not None: - language_extensions_to_add['value'] = value return sdk_no_wait(no_wait, - client.begin_add_language_extensions, + client.add_language_extensions, resource_group_name=resource_group_name, cluster_name=cluster_name, - language_extensions_to_add=language_extensions_to_add) + value=value) def kusto_cluster_detach_follower_database(client, @@ -180,14 +177,12 @@ def kusto_cluster_detach_follower_database(client, 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, + client.detach_follower_databases, resource_group_name=resource_group_name, cluster_name=cluster_name, - follower_database_to_remove=follower_database_to_remove) + cluster_resource_id=cluster_resource_id, + attached_database_configuration_name=attached_database_configuration_name) def kusto_cluster_diagnose_virtual_network(client, @@ -195,7 +190,7 @@ def kusto_cluster_diagnose_virtual_network(client, cluster_name, no_wait=False): return sdk_no_wait(no_wait, - client.begin_diagnose_virtual_network, + client.diagnose_virtual_network, resource_group_name=resource_group_name, cluster_name=cluster_name) @@ -228,14 +223,11 @@ def kusto_cluster_remove_language_extension(client, cluster_name, value=None, no_wait=False): - language_extensions_to_remove = {} - if value is not None: - language_extensions_to_remove['value'] = value return sdk_no_wait(no_wait, - client.begin_remove_language_extensions, + client.remove_language_extensions, resource_group_name=resource_group_name, cluster_name=cluster_name, - language_extensions_to_remove=language_extensions_to_remove) + value=value) def kusto_cluster_start(client, @@ -243,7 +235,7 @@ def kusto_cluster_start(client, cluster_name, no_wait=False): return sdk_no_wait(no_wait, - client.begin_start, + client.start, resource_group_name=resource_group_name, cluster_name=cluster_name) @@ -253,7 +245,7 @@ def kusto_cluster_stop(client, cluster_name, no_wait=False): return sdk_no_wait(no_wait, - client.begin_stop, + client.stop, resource_group_name=resource_group_name, cluster_name=cluster_name) @@ -293,7 +285,7 @@ def kusto_cluster_principal_assignment_create(client, if principal_type is not None: parameters['principal_type'] = principal_type return sdk_no_wait(no_wait, - client.begin_create_or_update, + client.create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, principal_assignment_name=principal_assignment_name, @@ -326,7 +318,7 @@ def kusto_cluster_principal_assignment_delete(client, principal_assignment_name, no_wait=False): return sdk_no_wait(no_wait, - client.begin_delete, + client.delete, resource_group_name=resource_group_name, cluster_name=cluster_name, principal_assignment_name=principal_assignment_name) @@ -367,7 +359,7 @@ def kusto_database_create(client, 'provided!') parameters = all_parameters[0] if len(all_parameters) == 1 else None return sdk_no_wait(no_wait, - client.begin_create_or_update, + client.create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -393,7 +385,7 @@ def kusto_database_update(client, 'provided!') parameters = all_parameters[0] if len(all_parameters) == 1 else None return sdk_no_wait(no_wait, - client.begin_update, + client.update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -406,7 +398,7 @@ def kusto_database_delete(client, database_name, no_wait=False): return sdk_no_wait(no_wait, - client.begin_delete, + client.delete, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name) @@ -417,13 +409,10 @@ def kusto_database_add_principal(client, cluster_name, database_name, value=None): - database_principals_to_add = {} - if value is not None: - 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) + value=value) def kusto_database_list_principal(client, @@ -440,13 +429,10 @@ def kusto_database_remove_principal(client, cluster_name, database_name, value=None): - database_principals_to_remove = {} - if value is not None: - 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) + value=value) def kusto_database_principal_assignment_list(client, @@ -489,7 +475,7 @@ def kusto_database_principal_assignment_create(client, if principal_type is not None: parameters['principal_type'] = principal_type return sdk_no_wait(no_wait, - client.begin_create_or_update, + client.create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -525,7 +511,7 @@ def kusto_database_principal_assignment_delete(client, principal_assignment_name, no_wait=False): return sdk_no_wait(no_wait, - client.begin_delete, + client.delete, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -567,7 +553,7 @@ def kusto_attached_database_configuration_create(client, if default_principals_modification_kind is not None: parameters['default_principals_modification_kind'] = default_principals_modification_kind return sdk_no_wait(no_wait, - client.begin_create_or_update, + client.create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, attached_database_configuration_name=attached_database_configuration_name, @@ -600,7 +586,7 @@ def kusto_attached_database_configuration_delete(client, attached_database_configuration_name, no_wait=False): return sdk_no_wait(no_wait, - client.begin_delete, + client.delete, resource_group_name=resource_group_name, cluster_name=cluster_name, attached_database_configuration_name=attached_database_configuration_name) @@ -650,7 +636,7 @@ def kusto_data_connection_create(client, 'event_grid_data_connection is provided!') parameters = all_parameters[0] if len(all_parameters) == 1 else None return sdk_no_wait(no_wait, - client.begin_create_or_update, + client.create_or_update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -682,7 +668,7 @@ def kusto_data_connection_update(client, 'event_grid_data_connection is provided!') parameters = all_parameters[0] if len(all_parameters) == 1 else None return sdk_no_wait(no_wait, - client.begin_update, + client.update, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -697,7 +683,7 @@ def kusto_data_connection_delete(client, data_connection_name, no_wait=False): return sdk_no_wait(no_wait, - client.begin_delete, + client.delete, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, @@ -724,14 +710,10 @@ def kusto_data_connection_data_connection_validation(client, raise CLIError('at most one of event_hub_data_connection, iot_hub_data_connection, event_grid_data_connection ' 'is needed for properties!') properties = all_properties[0] if len(all_properties) == 1 else None - parameters = {} - if data_connection_name is not None: - parameters['data_connection_name'] = data_connection_name - if properties is not None: - parameters['properties'] = properties return sdk_no_wait(no_wait, - client.begin_data_connection_validation, + client.data_connection_validation, resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, - parameters=parameters) + data_connection_name=data_connection_name, + properties=properties) diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/manual/__init__.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/manual/__init__.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/manual/__init__.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/manual/__init__.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/report.md b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/report.md similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/report.md rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/report.md diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/tests/__init__.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/tests/__init__.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/tests/__init__.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/tests/__init__.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/__init__.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/__init__.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/__init__.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/__init__.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/example_steps.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/example_steps.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/example_steps.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/example_steps.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/test_kusto_scenario.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/test_kusto_scenario.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/test_kusto_scenario.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/test_kusto_scenario.py diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/requirements.py3.Darwin.txt b/test/scenarios/kusto/output/coretrack1/src/azure-cli/requirements.py3.Darwin.txt similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/requirements.py3.Darwin.txt rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/requirements.py3.Darwin.txt diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/requirements.py3.Linux.txt b/test/scenarios/kusto/output/coretrack1/src/azure-cli/requirements.py3.Linux.txt similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/requirements.py3.Linux.txt rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/requirements.py3.Linux.txt diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/requirements.py3.windows.txt b/test/scenarios/kusto/output/coretrack1/src/azure-cli/requirements.py3.windows.txt similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/requirements.py3.windows.txt rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/requirements.py3.windows.txt diff --git a/test/scenarios/kusto/output/coretrack2/src/azure-cli/setup.py b/test/scenarios/kusto/output/coretrack1/src/azure-cli/setup.py similarity index 100% rename from test/scenarios/kusto/output/coretrack2/src/azure-cli/setup.py rename to test/scenarios/kusto/output/coretrack1/src/azure-cli/setup.py diff --git a/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/generated/commands.py b/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/generated/commands.py index 87140f8db..ae84c5693 100644 --- a/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/generated/commands.py +++ b/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/generated/commands.py @@ -646,6 +646,7 @@ def load_command_table(self, _): supports_no_wait=True, custom_func_name='synapse_workspace_aad_admin_update', setter_arg_name='aad_admin_info', + setter_name='begin_create_or_update', ) g.custom_command('delete', 'synapse_workspace_aad_admin_delete', supports_no_wait=True, confirmation=True) g.custom_wait_command('wait', 'synapse_workspace_aad_admin_show') diff --git a/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/generated/custom.py b/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/generated/custom.py index 24bdb2458..a194b2542 100644 --- a/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/generated/custom.py +++ b/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/generated/custom.py @@ -75,7 +75,7 @@ def synapse_big_data_pool_create(client, if node_size_family is not None: big_data_pool_info['node_size_family'] = node_size_family return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, workspace_name=workspace_name, big_data_pool_name=big_data_pool_name, @@ -100,7 +100,7 @@ def synapse_big_data_pool_delete(client, big_data_pool_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, workspace_name=workspace_name, big_data_pool_name=big_data_pool_name) @@ -148,7 +148,7 @@ def synapse_ip_firewall_rule_create(client, start_ip_address=None, no_wait=False): return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, workspace_name=workspace_name, rule_name=rule_name, @@ -164,7 +164,7 @@ def synapse_ip_firewall_rule_update(client, start_ip_address=None, no_wait=False): return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, workspace_name=workspace_name, rule_name=rule_name, @@ -178,7 +178,7 @@ def synapse_ip_firewall_rule_delete(client, rule_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, workspace_name=workspace_name, rule_name=rule_name) @@ -190,7 +190,7 @@ def synapse_ip_firewall_rule_replace_all(client, ip_firewall_rules=None, no_wait=False): return sdk_no_wait(no_wait, - client.replace_all, + client.begin_replace_all, resource_group_name=resource_group_name, workspace_name=workspace_name, ip_firewall_rules=ip_firewall_rules) @@ -254,7 +254,7 @@ def synapse_sql_pool_create(client, if creation_date is not None: sql_pool_info['creation_date'] = creation_date return sdk_no_wait(no_wait, - client.create, + client.begin_create, resource_group_name=resource_group_name, workspace_name=workspace_name, sql_pool_name=sql_pool_name, @@ -314,7 +314,7 @@ def synapse_sql_pool_delete(client, sql_pool_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, workspace_name=workspace_name, sql_pool_name=sql_pool_name) @@ -326,7 +326,7 @@ def synapse_sql_pool_pause(client, sql_pool_name, no_wait=False): return sdk_no_wait(no_wait, - client.pause, + client.begin_pause, resource_group_name=resource_group_name, workspace_name=workspace_name, sql_pool_name=sql_pool_name) @@ -349,7 +349,7 @@ def synapse_sql_pool_resume(client, sql_pool_name, no_wait=False): return sdk_no_wait(no_wait, - client.resume, + client.begin_resume, resource_group_name=resource_group_name, workspace_name=workspace_name, sql_pool_name=sql_pool_name) @@ -420,10 +420,10 @@ def synapse_sql_pool_restore_point_create(client, workspace_name, sql_pool_name, restore_point_label): - return client.create(resource_group_name=resource_group_name, - workspace_name=workspace_name, - sql_pool_name=sql_pool_name, - restore_point_label=restore_point_label) + return client.begin_create(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + restore_point_label=restore_point_label) def synapse_sql_pool_replication_link_list(client, @@ -839,11 +839,11 @@ def synapse_sql_pool_vulnerability_assessment_scan_initiate_scan(client, workspace_name, sql_pool_name, scan_id): - return client.initiate_scan(resource_group_name=resource_group_name, - workspace_name=workspace_name, - sql_pool_name=sql_pool_name, - vulnerability_assessment_name="default", - scan_id=scan_id) + return client.begin_initiate_scan(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default", + scan_id=scan_id) def synapse_sql_pool_security_alert_policy_show(client, @@ -1021,7 +1021,7 @@ def synapse_workspace_create(client, if len(workspace_info['identity']) == 0: del workspace_info['identity'] return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, workspace_name=workspace_name, workspace_info=workspace_info) @@ -1045,7 +1045,7 @@ def synapse_workspace_update(client, if len(workspace_patch_info['identity']) == 0: del workspace_patch_info['identity'] return sdk_no_wait(no_wait, - client.update, + client.begin_update, resource_group_name=resource_group_name, workspace_name=workspace_name, workspace_patch_info=workspace_patch_info) @@ -1056,7 +1056,7 @@ def synapse_workspace_delete(client, workspace_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, workspace_name=workspace_name) @@ -1086,7 +1086,7 @@ def synapse_workspace_aad_admin_create(client, if sid is not None: aad_admin_info['sid'] = sid return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, workspace_name=workspace_name, aad_admin_info=aad_admin_info) @@ -1116,7 +1116,7 @@ def synapse_workspace_aad_admin_delete(client, workspace_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, workspace_name=workspace_name) @@ -1175,7 +1175,7 @@ def synapse_integration_runtime_create(client, if_match=None, no_wait=False): return sdk_no_wait(no_wait, - client.create, + client.begin_create, resource_group_name=resource_group_name, workspace_name=workspace_name, integration_runtime_name=integration_runtime_name, @@ -1202,7 +1202,7 @@ def synapse_integration_runtime_delete(client, integration_runtime_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, workspace_name=workspace_name, integration_runtime_name=integration_runtime_name) @@ -1395,7 +1395,7 @@ def synapse_private_endpoint_connection_create(client, private_endpoint_connection_name, no_wait=False): return sdk_no_wait(no_wait, - client.create, + client.begin_create, resource_group_name=resource_group_name, workspace_name=workspace_name, private_endpoint_connection_name=private_endpoint_connection_name) @@ -1407,7 +1407,7 @@ def synapse_private_endpoint_connection_delete(client, private_endpoint_connection_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, workspace_name=workspace_name, private_endpoint_connection_name=private_endpoint_connection_name) diff --git a/test/scenarios/synapse/output/coretrack1/doc/sphinx/azhelpgen/doc_source_map.json b/test/scenarios/synapse/output/coretrack1/doc/sphinx/azhelpgen/doc_source_map.json new file mode 100644 index 000000000..aae696dd6 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/doc/sphinx/azhelpgen/doc_source_map.json @@ -0,0 +1,78 @@ +{ + "az": "src/azure-cli/azure/cli/command_modules/profile/_help.py", + "config": "src/azure-cli/azure/cli/command_modules/config/_help.py", + "configure": "src/azure-cli/azure/cli/command_modules/configure/_help.py", + "feedback": "src/azure-cli/azure/cli/command_modules/feedback/_help.py", + "login": "src/azure-cli/azure/cli/command_modules/profile/_help.py", + "logout": "src/azure-cli/azure/cli/command_modules/profile/_help.py", + "account": "src/azure-cli/azure/cli/command_modules/profile/_help.py", + "ad": "src/azure-cli/azure/cli/command_modules/role/_help.py", + "acr": "src/azure-cli/azure/cli/command_modules/acr/_help.py", + "acs": "src/azure-cli/azure/cli/command_modules/acs/_help.py", + "advisor": "src/azure-cli/azure/cli/command_modules/advisor/_help.py", + "ams": "src/azure-cli/azure/cli/command_modules/ams/_help.py", + "appservice": "src/azure-cli/azure/cli/command_modules/appservice/_help.py", + "appconfig": "src/azure-cli/azure/cli/command_modules/appconfig/_help.py", + "batch": "src/azure-cli/azure/cli/command_modules/batch/_help.py", + "batchai": "src/azure-cli/azure/cli/command_modules/batchai/_help.py", + "backup": "src/azure-cli/azure/cli/command_modules/backup/_help.py", + "billing": "src/azure-cli/azure/cli/command_modules/billing/_help.py", + "bot": "src/azure-cli/azure/cli/command_modules/botservice/_help.py", + "cdn": "src/azure-cli/azure/cli/command_modules/cdn/_help.py", + "cloud": "src/azure-cli/azure/cli/command_modules/cloud/_help.py", + "consumption": "src/azure-cli/azure/cli/command_modules/consumption/_help.py", + "container": "src/azure-cli/azure/cli/command_modules/container/_help.py", + "cognitiveservices": "src/azure-cli/azure/cli/command_modules/cognitiveservices/_help.py", + "cosmosdb": "src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py", + "deploymentmanager": "src/azure-cli/azure/cli/command_modules/deploymentmanager/_help.py", + "dla": "src/azure-cli/azure/cli/command_modules/dla/_help.py", + "dls": "src/azure-cli/azure/cli/command_modules/dls/_help.py", + "dms": "src/azure-cli/azure/cli/command_modules/dms/_help.py", + "eventgrid": "src/azure-cli/azure/cli/command_modules/eventgrid/_help.py", + "extension": "src/azure-cli/azure/cli/command_modules/extension/_help.py", + "feature": "src/azure-cli/azure/cli/command_modules/resource/_help.py", + "find": "src/azure-cli/azure/cli/command_modules/find/_help.py", + "group": "src/azure-cli/azure/cli/command_modules/resource/_help.py", + "hdinsight": "src/azure-cli/azure/cli/command_modules/hdinsight/_help.py", + "iot": "src/azure-cli/azure/cli/command_modules/iot/_help.py", + "iotcentral": "src/azure-cli/azure/cli/command_modules/iotcentral/_help.py", + "keyvault": "src/azure-cli/azure/cli/command_modules/keyvault/_help.py", + "lab": "src/azure-cli/azure/cli/command_modules/lab/_help.py", + "maps": "src/azure-cli/azure/cli/command_modules/maps/_help.py", + "monitor": "src/azure-cli/azure/cli/command_modules/monitor/_help.py", + "natgateway": "src/azure-cli/azure/cli/command_modules/natgateway/_help.py", + "network": "src/azure-cli/azure/cli/command_modules/network/_help.py", + "policy": "src/azure-cli/azure/cli/command_modules/resource/_help.py", + "policyinsights": "src/azure-cli/azure/cli/command_modules/policyinsights/_help.py", + "privatedns": "src/azure-cli/azure/cli/command_modules/privatedns/_help.py", + "provider": "src/azure-cli/azure/cli/command_modules/resource/_help.py", + "rdbms": "src/azure-cli/azure/cli/command_modules/rdbms/_help.py", + "redis": "src/azure-cli/azure/cli/command_modules/redis/_help.py", + "reservations": "src/azure-cli/azure/cli/command_modules/reservations/_help.py", + "resource": "src/azure-cli/azure/cli/command_modules/resource/_help.py", + "relay": "src/azure-cli/azure/cli/command_modules/relay/_help.py", + "role": "src/azure-cli/azure/cli/command_modules/role/_help.py", + "security": "src/azure-cli/azure/cli/command_modules/security/_help.py", + "signalr": "src/azure-cli/azure/cli/command_modules/signalr/_help.py", + "sql": "src/azure-cli/azure/cli/command_modules/sql/_help.py", + "sqlvm": "src/azure-cli/azure/cli/command_modules/sqlvm/_help.py", + "storage": "src/azure-cli/azure/cli/command_modules/storage/_help.py", + "tag": "src/azure-cli/azure/cli/command_modules/resource/_help.py", + "vm": "src/azure-cli/azure/cli/command_modules/vm/_help.py", + "vmss": "src/azure-cli/azure/cli/command_modules/vm/_help.py", + "servicefabric": "src/azure-cli/azure/cli/command_modules/servicefabric/_help.py", + "eventhubs": "src/azure-cli/azure/cli/command_modules/eventhubs/_help.py", + "servicebus": "src/azure-cli/azure/cli/command_modules/servicebus/_help.py", + "search": "src/azure-cli/azure/cli/command_modules/search/_help.py", + "managedapp": "src/azure-cli/azure/cli/command_modules/resource/_help.py", + "aks": "src/azure-cli/azure/cli/command_modules/acs/_help.py", + "deployment": "src/azure-cli/azure/cli/command_modules/resource/_help.py", + "functionapp": "src/azure-cli/azure/cli/command_modules/appservice/_help.py", + "lock": "src/azure-cli/azure/cli/command_modules/resource/_help.py", + "netappfiles": "src/azure-cli/azure/cli/command_modules/netappfiles/_help.py", + "managedservices": "src/azure-cli/azure/cli/command_modules/managedservices/_help.py", + "apim": "src/azure-cli/azure/cli/command_modules/apim/_help.py", + "aro": "src/azure-cli/azure/cli/command_modules/aro/_help.py", + "util": "src/azure-cli/azure/cli/command_modules/util/_help.py", + "synapse": "src/azure-cli/azure/cli/command_modules/synapse/_help.py" +} diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/__init__.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/__init__.py new file mode 100644 index 000000000..a696b0bc1 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/__init__.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------- +# 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=unused-import + +import azure.cli.command_modules.synapse._help +from azure.cli.core import AzCommandsLoader + + +class SynapseManagementClientCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + from .generated._client_factory import cf_synapse_cl + synapse_custom = CliCommandType( + operations_tmpl='azure.cli.command_modules.synapse.custom#{}', + client_factory=cf_synapse_cl) + parent = super(SynapseManagementClientCommandsLoader, self) + parent.__init__(cli_ctx=cli_ctx, custom_command_type=synapse_custom) + + def load_command_table(self, args): + from .generated.commands import load_command_table + load_command_table(self, args) + try: + from .manual.commands import load_command_table as load_command_table_manual + load_command_table_manual(self, args) + except ImportError as e: + if e.name.endswith('manual.commands'): + pass + else: + raise e + return self.command_table + + def load_arguments(self, command): + from .generated._params import load_arguments + load_arguments(self, command) + try: + from .manual._params import load_arguments as load_arguments_manual + load_arguments_manual(self, command) + except ImportError as e: + if e.name.endswith('manual._params'): + pass + else: + raise e + + +COMMAND_LOADER_CLS = SynapseManagementClientCommandsLoader diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/_help.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/_help.py new file mode 100644 index 000000000..9b93f87a6 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/_help.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------- +# 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 +# pylint: disable=unused-import +from .generated._help import helps # pylint: disable=reimported +try: + from .manual._help import helps # pylint: disable=reimported +except ImportError as e: + if e.name.endswith('manual._help'): + pass + else: + raise e diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/action.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/action.py new file mode 100644 index 000000000..9b3d0a8a7 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/action.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------- +# 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 as e: + if e.name.endswith('manual.action'): + pass + else: + raise e diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/custom.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/custom.py new file mode 100644 index 000000000..885447229 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/custom.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------- +# 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 as e: + if e.name.endswith('manual.custom'): + pass + else: + raise e diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/__init__.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/__init__.py new file mode 100644 index 000000000..c9cfdc73e --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/__init__.py @@ -0,0 +1,12 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_client_factory.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_client_factory.py new file mode 100644 index 000000000..b9cfb553c --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_client_factory.py @@ -0,0 +1,168 @@ +# -------------------------------------------------------------------------- +# 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_synapse_cl(cli_ctx, *_): + from azure.cli.core.commands.client_factory import get_mgmt_service_client + from azure.mgmt.synapse import SynapseManagementClient + return get_mgmt_service_client(cli_ctx, + SynapseManagementClient) + + +def cf_big_data_pool(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).big_data_pools + + +def cf_operation(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).operations + + +def cf_ip_firewall_rule(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).ip_firewall_rules + + +def cf_sqlpool(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pools + + +def cf_sqlpool_metadata_sync_config(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_metadata_sync_configs + + +def cf_sqlpool_operation_result(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_operation_results + + +def cf_sqlpool_geo_backup_policy(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_geo_backup_policies + + +def cf_sqlpool_data_warehouse_user_activity(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_data_warehouse_user_activities + + +def cf_sqlpool_restore_point(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_restore_points + + +def cf_sqlpool_replication_link(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_replication_links + + +def cf_sqlpool_transparent_data_encryption(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_transparent_data_encryptions + + +def cf_sqlpool_blob_auditing_policy(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_blob_auditing_policies + + +def cf_sqlpool_operation(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_operations + + +def cf_sqlpool_usage(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_usages + + +def cf_sqlpool_sensitivity_label(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_sensitivity_labels + + +def cf_sqlpool_schema(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_schemas + + +def cf_sqlpool_table(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_tables + + +def cf_sqlpool_table_column(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_table_columns + + +def cf_sqlpool_connection_policy(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_connection_policies + + +def cf_sqlpool_vulnerability_assessment(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_vulnerability_assessments + + +def cf_sqlpool_vulnerability_assessment_scan(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_vulnerability_assessment_scans + + +def cf_sqlpool_security_alert_policy(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_security_alert_policies + + +def cf_sqlpool_vulnerability_assessment_rule_baseline(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).sql_pool_vulnerability_assessment_rule_baselines + + +def cf_workspace(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).workspaces + + +def cf_workspace_aadadmin(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).workspace_aad_admins + + +def cf_workspace_managed_identity_sqlcontrol_setting(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).workspace_managed_identity_sql_control_settings + + +def cf_integration_runtime(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).integration_runtimes + + +def cf_integration_runtime_node_ip_address(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).integration_runtime_node_ip_address + + +def cf_integration_runtime_object_metadata(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).integration_runtime_object_metadata + + +def cf_integration_runtime_node(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).integration_runtime_nodes + + +def cf_integration_runtime_credentials(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).integration_runtime_credentials + + +def cf_integration_runtime_connection_info(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).integration_runtime_connection_infos + + +def cf_integration_runtime_auth_key(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).integration_runtime_auth_keys + + +def cf_integration_runtime_monitoring_data(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).integration_runtime_monitoring_data + + +def cf_integration_runtime_status(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).integration_runtime_status + + +def cf_private_link_resource(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).private_link_resources + + +def cf_private_endpoint_connection(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).private_endpoint_connections + + +def cf_private_link_hub(cli_ctx, *_): + return cf_synapse_cl(cli_ctx).private_link_hubs diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_help.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_help.py new file mode 100644 index 000000000..07977680e --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_help.py @@ -0,0 +1,1475 @@ +# -------------------------------------------------------------------------- +# 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=line-too-long +# pylint: disable=too-many-lines + +from knack.help_files import helps + + +helps['synapse'] = ''' + type: group + short-summary: Manage Synapse +''' + +helps['synapse big-data-pool'] = """ + type: group + short-summary: Manage big data pool with synapse +""" + +helps['synapse big-data-pool list'] = """ + type: command + short-summary: "List Big Data pools in a workspace." + examples: + - name: List Big Data pools in a workspace + text: |- + az synapse big-data-pool list --resource-group "ExampleResourceGroup" --workspace-name \ +"ExampleWorkspace" +""" + +helps['synapse big-data-pool show'] = """ + type: command + short-summary: "Get a Big Data pool." + examples: + - name: Get a Big Data pool + text: |- + az synapse big-data-pool show --name "ExamplePool" --resource-group "ExampleResourceGroup" \ +--workspace-name "ExampleWorkspace" +""" + +helps['synapse big-data-pool create'] = """ + type: command + short-summary: "Create a new Big Data pool." + parameters: + - name: --auto-scale + short-summary: "Auto-scaling properties" + long-summary: | + Usage: --auto-scale min-node-count=XX enabled=XX max-node-count=XX + + min-node-count: The minimum number of nodes the Big Data pool can support. + enabled: Whether automatic scaling is enabled for the Big Data pool. + max-node-count: The maximum number of nodes the Big Data pool can support. + - name: --auto-pause + short-summary: "Auto-pausing properties" + long-summary: | + Usage: --auto-pause delay-in-minutes=XX enabled=XX + + delay-in-minutes: Number of minutes of idle time before the Big Data pool is automatically paused. + enabled: Whether auto-pausing is enabled for the Big Data pool. + - name: --library-requirements + short-summary: "Library version requirements" + long-summary: | + Usage: --library-requirements content=XX filename=XX + + content: The library requirements. + filename: The filename of the library requirements file. + examples: + - name: Create or update a Big Data pool + text: |- + az synapse big-data-pool create --location "West US 2" --auto-pause delay-in-minutes=15 enabled=true \ +--auto-scale enabled=true max-node-count=50 min-node-count=3 --default-spark-log-folder "/logs" --library-requirements \ +content="" filename="requirements.txt" --node-count 4 --node-size "Medium" --node-size-family "MemoryOptimized" \ +--spark-events-folder "/events" --spark-version "2.4" --tags key="value" --name "ExamplePool" --resource-group \ +"ExampleResourceGroup" --workspace-name "ExampleWorkspace" +""" + +helps['synapse big-data-pool update'] = """ + type: command + short-summary: "Patch a Big Data pool." + examples: + - name: Update a Big Data pool + text: |- + az synapse big-data-pool update --name "ExamplePool" --tags key="value" --resource-group \ +"ExampleResourceGroup" --workspace-name "ExampleWorkspace" +""" + +helps['synapse big-data-pool delete'] = """ + type: command + short-summary: "Delete a Big Data pool from the workspace." + examples: + - name: Delete a Big Data pool + text: |- + az synapse big-data-pool delete --name "ExamplePool" --resource-group "ExampleResourceGroup" \ +--workspace-name "ExampleWorkspace" +""" + +helps['synapse big-data-pool wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the synapse big-data-pool is met. + examples: + - name: Pause executing next line of CLI script until the synapse big-data-pool is successfully created. + text: |- + az synapse big-data-pool wait --name "ExamplePool" --resource-group "ExampleResourceGroup" \ +--workspace-name "ExampleWorkspace" --created + - name: Pause executing next line of CLI script until the synapse big-data-pool is successfully deleted. + text: |- + az synapse big-data-pool wait --name "ExamplePool" --resource-group "ExampleResourceGroup" \ +--workspace-name "ExampleWorkspace" --deleted +""" + +helps['synapse operation'] = """ + type: group + short-summary: Manage operation with synapse +""" + +helps['synapse operation show-azure-async-header-result'] = """ + type: command + short-summary: "Get the status of an operation." + examples: + - name: Get azure async operation header result + text: |- + az synapse operation show-azure-async-header-result --operation-id "01234567-89ab-4def-0123-456789abcdef\ +" --resource-group "resourceGroup1" --workspace-name "workspace1" +""" + +helps['synapse operation show-location-header-result'] = """ + type: command + short-summary: "Get the result of an operation." + examples: + - name: Get location header result + text: |- + az synapse operation show-location-header-result --operation-id "01234567-89ab-4def-0123-456789abcdef" \ +--resource-group "resourceGroup1" --workspace-name "workspace1" +""" + +helps['synapse ip-firewall-rule'] = """ + type: group + short-summary: Manage ip firewall rule with synapse +""" + +helps['synapse ip-firewall-rule list'] = """ + type: command + short-summary: "Returns a list of firewall rules." + examples: + - name: List IP firewall rules in a workspace + text: |- + az synapse ip-firewall-rule list --resource-group "ExampleResourceGroup" --workspace-name \ +"ExampleWorkspace" +""" + +helps['synapse ip-firewall-rule show'] = """ + type: command + short-summary: "Get a firewall rule." + examples: + - name: Create an IP firewall rule + text: |- + az synapse ip-firewall-rule show --resource-group "ExampleResourceGroup" --rule-name \ +"ExampleIpFirewallRule" --workspace-name "ExampleWorkspace" +""" + +helps['synapse ip-firewall-rule create'] = """ + type: command + short-summary: "Create a firewall rule." + examples: + - name: Create an IP firewall rule + text: |- + az synapse ip-firewall-rule create --end-ip-address "10.0.0.254" --start-ip-address "10.0.0.0" \ +--resource-group "ExampleResourceGroup" --rule-name "ExampleIpFirewallRule" --workspace-name "ExampleWorkspace" +""" + +helps['synapse ip-firewall-rule update'] = """ + type: command + short-summary: "Update a firewall rule." +""" + +helps['synapse ip-firewall-rule delete'] = """ + type: command + short-summary: "Deletes a firewall rule." + examples: + - name: Delete an IP firewall rule from a workspace + text: |- + az synapse ip-firewall-rule delete --resource-group "ExampleResourceGroup" --rule-name \ +"ExampleIpFirewallRule" --workspace-name "ExampleWorkspace" +""" + +helps['synapse ip-firewall-rule replace-all'] = """ + type: command + short-summary: "Replaces firewall rules." + examples: + - name: Replace all IP firewall rules in a workspace + text: |- + az synapse ip-firewall-rule replace-all --resource-group "ExampleResourceGroup" --workspace-name \ +"ExampleWorkspace" --ip-firewall-rules "{\\"AnotherExampleFirewallRule\\":{\\"endIpAddress\\":\\"10.0.1.254\\",\\"start\ +IpAddress\\":\\"10.0.1.0\\"},\\"ExampleFirewallRule\\":{\\"endIpAddress\\":\\"10.0.0.254\\",\\"startIpAddress\\":\\"10.\ +0.0.0\\"}}" +""" + +helps['synapse ip-firewall-rule wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the synapse ip-firewall-rule is met. + examples: + - name: Pause executing next line of CLI script until the synapse ip-firewall-rule is successfully created. + text: |- + az synapse ip-firewall-rule wait --resource-group "ExampleResourceGroup" --rule-name \ +"ExampleIpFirewallRule" --workspace-name "ExampleWorkspace" --created + - name: Pause executing next line of CLI script until the synapse ip-firewall-rule is successfully updated. + text: |- + az synapse ip-firewall-rule wait --resource-group "ExampleResourceGroup" --rule-name \ +"ExampleIpFirewallRule" --workspace-name "ExampleWorkspace" --updated + - name: Pause executing next line of CLI script until the synapse ip-firewall-rule is successfully deleted. + text: |- + az synapse ip-firewall-rule wait --resource-group "ExampleResourceGroup" --rule-name \ +"ExampleIpFirewallRule" --workspace-name "ExampleWorkspace" --deleted +""" + +helps['synapse sql-pool'] = """ + type: group + short-summary: Manage sql pool with synapse +""" + +helps['synapse sql-pool list'] = """ + type: command + short-summary: "List all SQL pools." + examples: + - name: List SQL Analytics pools in a workspace + text: |- + az synapse sql-pool list --resource-group "sqlcrudtest-6845" --workspace-name "sqlcrudtest-7177" + - name: List SQL Analytics pools in a workspace with filter + text: |- + az synapse sql-pool list --resource-group "sqlcrudtest-6845" --workspace-name "sqlcrudtest-7177" +""" + +helps['synapse sql-pool show'] = """ + type: command + short-summary: "Get SQL pool properties." + examples: + - name: Get a SQL Analytics pool + text: |- + az synapse sql-pool show --resource-group "sqlcrudtest-6852" --name "sqlcrudtest-9187" --workspace-name \ +"sqlcrudtest-2080" +""" + +helps['synapse sql-pool create'] = """ + type: command + short-summary: "Create a SQL pool." + parameters: + - name: --sku + short-summary: "SQL pool SKU" + long-summary: | + Usage: --sku tier=XX name=XX + + tier: The service tier + name: The SKU name + examples: + - name: Create a SQL Analytics pool + text: |- + az synapse sql-pool create --resource-group "ExampleResourceGroup" --location "West US 2" --collation \ +"" --create-mode "" --creation-date "1970-01-01T00:00:00.000Z" --max-size-bytes 0 --recoverable-database-id "" \ +--restore-point-in-time "1970-01-01T00:00:00.000Z" --source-database-id "" --sku name="" tier="" --name \ +"ExampleSqlPool" --workspace-name "ExampleWorkspace" +""" + +helps['synapse sql-pool update'] = """ + type: command + short-summary: "Apply a partial update to a SQL pool." + parameters: + - name: --sku + short-summary: "SQL pool SKU" + long-summary: | + Usage: --sku tier=XX name=XX + + tier: The service tier + name: The SKU name + examples: + - name: Update a SQL Analytics pool + text: |- + az synapse sql-pool update --resource-group "ExampleResourceGroup" --location "West US 2" --collation \ +"" --create-mode "" --creation-date "1970-01-01T00:00:00.000Z" --max-size-bytes 0 --recoverable-database-id "" \ +--restore-point-in-time "1970-01-01T00:00:00.000Z" --source-database-id "" --sku name="" tier="" --name \ +"ExampleSqlPool" --workspace-name "ExampleWorkspace" +""" + +helps['synapse sql-pool delete'] = """ + type: command + short-summary: "Delete a SQL pool." + examples: + - name: Delete a SQL Analytics pool + text: |- + az synapse sql-pool delete --resource-group "ExampleResourceGroup" --name "ExampleSqlPool" \ +--workspace-name "ExampleWorkspace" +""" + +helps['synapse sql-pool pause'] = """ + type: command + short-summary: "Pause a SQL pool." + examples: + - name: Pause a SQL Analytics pool + text: |- + az synapse sql-pool pause --resource-group "Default-SQL-SouthEastAsia" --name "testdwdb" \ +--workspace-name "testsvr" +""" + +helps['synapse sql-pool rename'] = """ + type: command + short-summary: "Rename a SQL pool." + examples: + - name: Rename a SQL Analytics pool + text: |- + az synapse sql-pool rename --id "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Defa\ +ult-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/newtestdb" --resource-group \ +"Default-SQL-SouthEastAsia" --name "testdb" --workspace-name "testsvr" +""" + +helps['synapse sql-pool resume'] = """ + type: command + short-summary: "Resume a SQL pool." + examples: + - name: Resume a SQL Analytics pool + text: |- + az synapse sql-pool resume --resource-group "sqlcrudtest-6852" --name "sqlcrudtest-9187" \ +--workspace-name "sqlcrudtest-2080" +""" + +helps['synapse sql-pool wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the synapse sql-pool is met. + examples: + - name: Pause executing next line of CLI script until the synapse sql-pool is successfully created. + text: |- + az synapse sql-pool wait --resource-group "sqlcrudtest-6852" --name "sqlcrudtest-9187" --workspace-name \ +"sqlcrudtest-2080" --created + - name: Pause executing next line of CLI script until the synapse sql-pool is successfully deleted. + text: |- + az synapse sql-pool wait --resource-group "sqlcrudtest-6852" --name "sqlcrudtest-9187" --workspace-name \ +"sqlcrudtest-2080" --deleted +""" + +helps['synapse sql-pool-metadata-sync-config'] = """ + type: group + short-summary: Manage sql pool metadata sync config with synapse +""" + +helps['synapse sql-pool-metadata-sync-config show'] = """ + type: command + short-summary: "Get the metadata sync configuration for a SQL pool." + examples: + - name: Get metadata sync config for a SQL Analytics pool + text: |- + az synapse sql-pool-metadata-sync-config show --resource-group "ExampleResourceGroup" --sql-pool-name \ +"ExampleSqlPool" --workspace-name "ExampleWorkspace" +""" + +helps['synapse sql-pool-metadata-sync-config create'] = """ + type: command + short-summary: "Set the metadata sync configuration for a SQL pool." + examples: + - name: Set metadata sync config for a SQL Analytics pool + text: |- + az synapse sql-pool-metadata-sync-config create --enabled true --resource-group "ExampleResourceGroup" \ +--sql-pool-name "ExampleSqlPool" --workspace-name "ExampleWorkspace" +""" + +helps['synapse sql-pool-operation-result'] = """ + type: group + short-summary: Manage sql pool operation result with synapse +""" + +helps['synapse sql-pool-operation-result show-location-header-result'] = """ + type: command + short-summary: "Get the status of a SQL pool operation." + examples: + - name: Get the result of an operation on a SQL Analytics pool + text: |- + az synapse sql-pool-operation-result show-location-header-result --operation-id \ +"fedcba98-7654-4210-fedc-ba9876543210" --resource-group "ExampleResourceGroup" --sql-pool-name "ExampleSqlPool" \ +--workspace-name "ExampleWorkspace" +""" + +helps['synapse sql-pool-geo-backup-policy'] = """ + type: group + short-summary: Manage sql pool geo backup policy with synapse +""" + +helps['synapse sql-pool-geo-backup-policy show'] = """ + type: command + short-summary: "Get the specified SQL pool geo backup policy." + examples: + - name: Get Sql pool geo backup policy + text: |- + az synapse sql-pool-geo-backup-policy show --resource-group "sqlcrudtest-4799" --sql-pool-name "testdw" \ +--workspace-name "sqlcrudtest-5961" +""" + +helps['synapse sql-pool-data-warehouse-user-activity'] = """ + type: group + short-summary: Manage sql pool data warehouse user activity with synapse +""" + +helps['synapse sql-pool-data-warehouse-user-activity show'] = """ + type: command + short-summary: "Gets the user activities of a SQL pool which includes running and suspended queries." + examples: + - name: Get a SQL Analytics pool user activity + text: |- + az synapse sql-pool-data-warehouse-user-activity show --resource-group "Default-SQL-SouthEastAsia" \ +--sql-pool-name "testdb" --workspace-name "testsvr" +""" + +helps['synapse sql-pool-restore-point'] = """ + type: group + short-summary: Manage sql pool restore point with synapse +""" + +helps['synapse sql-pool-restore-point list'] = """ + type: command + short-summary: "Get SQL pool backup information." + examples: + - name: Get a list of restore points of a SQL Analytics pool + text: |- + az synapse sql-pool-restore-point list --resource-group "Default-SQL-SouthEastAsia" --sql-pool-name \ +"testDatabase" --workspace-name "testserver" +""" + +helps['synapse sql-pool-restore-point create'] = """ + type: command + short-summary: "Creates a restore point for a data warehouse." + examples: + - name: Creates Sql pool restore point. + text: |- + az synapse sql-pool-restore-point create --restore-point-label "mylabel" --resource-group \ +"Default-SQL-SouthEastAsia" --sql-pool-name "testDatabase" --workspace-name "testserver" +""" + +helps['synapse sql-pool-replication-link'] = """ + type: group + short-summary: Manage sql pool replication link with synapse +""" + +helps['synapse sql-pool-replication-link list'] = """ + type: command + short-summary: "Lists a Sql pool's replication links." + examples: + - name: Lists a Sql Analytic pool's replication links + text: |- + az synapse sql-pool-replication-link list --resource-group "sqlcrudtest-4799" --sql-pool-name "testdb" \ +--workspace-name "sqlcrudtest-6440" +""" + +helps['synapse sql-pool-transparent-data-encryption'] = """ + type: group + short-summary: Manage sql pool transparent data encryption with synapse +""" + +helps['synapse sql-pool-transparent-data-encryption show'] = """ + type: command + short-summary: "Get a SQL pool's transparent data encryption configuration." + examples: + - name: Get transparent data encryption configuration of a SQL Analytics pool + text: |- + az synapse sql-pool-transparent-data-encryption show --resource-group "sqlcrudtest-6852" \ +--sql-pool-name "sqlcrudtest-9187" --workspace-name "sqlcrudtest-2080" +""" + +helps['synapse sql-pool-transparent-data-encryption create'] = """ + type: command + short-summary: "Create a Sql pool's transparent data encryption configuration." + examples: + - name: Create or update a Sql pool's transparent data encryption configuration + text: |- + az synapse sql-pool-transparent-data-encryption create --status "Enabled" --resource-group \ +"sqlcrudtest-6852" --sql-pool-name "sqlcrudtest-9187" --workspace-name "sqlcrudtest-2080" +""" + +helps['synapse sql-pool-transparent-data-encryption update'] = """ + type: command + short-summary: "Update a Sql pool's transparent data encryption configuration." +""" + +helps['synapse sql-pool-blob-auditing-policy'] = """ + type: group + short-summary: Manage sql pool blob auditing policy with synapse +""" + +helps['synapse sql-pool-blob-auditing-policy show'] = """ + type: command + short-summary: "Get a SQL pool's blob auditing policy." + examples: + - name: Get blob auditing policy of a SQL Analytics pool + text: |- + az synapse sql-pool-blob-auditing-policy show --resource-group "blobauditingtest-6852" --sql-pool-name \ +"testdb" --workspace-name "blobauditingtest-2080" +""" + +helps['synapse sql-pool-blob-auditing-policy create'] = """ + type: command + short-summary: "Create a SQL pool's blob auditing policy." + examples: + - name: Create or update a database's blob auditing policy with all parameters + text: |- + az synapse sql-pool-blob-auditing-policy create --audit-actions-and-groups "DATABASE_LOGOUT_GROUP" \ +"DATABASE_ROLE_MEMBER_CHANGE_GROUP" "UPDATE on database::TestDatabaseName by public" --is-azure-monitor-target-enabled \ +true --is-storage-secondary-key-in-use false --retention-days 6 --state "Enabled" --storage-account-access-key \ +"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==" --storage-account-subscription-id\ + "00000000-1234-0000-5678-000000000000" --storage-endpoint "https://mystorage.blob.core.windows.net" --resource-group \ +"blobauditingtest-4799" --sql-pool-name "testdb" --workspace-name "blobauditingtest-6440" + - name: Create or update a database's blob auditing policy with minimal parameters + text: |- + az synapse sql-pool-blob-auditing-policy create --state "Enabled" --storage-account-access-key \ +"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==" --storage-endpoint \ +"https://mystorage.blob.core.windows.net" --resource-group "blobauditingtest-4799" --sql-pool-name "testdb" \ +--workspace-name "blobauditingtest-6440" +""" + +helps['synapse sql-pool-blob-auditing-policy update'] = """ + type: command + short-summary: "Update a SQL pool's blob auditing policy." +""" + +helps['synapse sql-pool-operation'] = """ + type: group + short-summary: Manage sql pool operation with synapse +""" + +helps['synapse sql-pool-operation list'] = """ + type: command + short-summary: "Gets a list of operations performed on the SQL pool." + examples: + - name: List the Sql Analytics pool management operations + text: |- + az synapse sql-pool-operation list --resource-group "sqlcrudtest-7398" --sql-pool-name "testdb" \ +--workspace-name "sqlcrudtest-4645" +""" + +helps['synapse sql-pool-usage'] = """ + type: group + short-summary: Manage sql pool usage with synapse +""" + +helps['synapse sql-pool-usage list'] = """ + type: command + short-summary: "Gets SQL pool usages." + examples: + - name: List the usages of a SQL Analytics pool + text: |- + az synapse sql-pool-usage list --resource-group "sqlcrudtest-6730" --sql-pool-name "3481" \ +--workspace-name "sqlcrudtest-9007" +""" + +helps['synapse sql-pool-sensitivity-label'] = """ + type: group + short-summary: Manage sql pool sensitivity label with synapse +""" + +helps['synapse sql-pool-sensitivity-label create'] = """ + type: command + short-summary: "Create the sensitivity label of a given column in a Sql pool." + examples: + - name: Updates the sensitivity label of a given column with all parameters + text: |- + az synapse sql-pool-sensitivity-label create --column-name "myColumn" --information-type "PhoneNumber" \ +--information-type-id "d22fa6e9-5ee4-3bde-4c2b-a409604c4646" --label-id "bf91e08c-f4f0-478a-b016-25164b2a65ff" \ +--label-name "PII" --resource-group "myRG" --schema-name "dbo" --sql-pool-name "myDatabase" --table-name "myTable" \ +--workspace-name "myServer" +""" + +helps['synapse sql-pool-sensitivity-label update'] = """ + type: command + short-summary: "Update the sensitivity label of a given column in a Sql pool." +""" + +helps['synapse sql-pool-sensitivity-label delete'] = """ + type: command + short-summary: "Deletes the sensitivity label of a given column in a Sql pool." + examples: + - name: Deletes the sensitivity label of a given column + text: |- + az synapse sql-pool-sensitivity-label delete --column-name "myColumn" --resource-group "myRG" \ +--schema-name "dbo" --sql-pool-name "myDatabase" --table-name "myTable" --workspace-name "myServer" +""" + +helps['synapse sql-pool-sensitivity-label disable-recommendation'] = """ + type: command + short-summary: "Disables sensitivity recommendations on a given column." + examples: + - name: Disables sensitivity recommendations on a given column + text: |- + az synapse sql-pool-sensitivity-label disable-recommendation --column-name "myColumn" --resource-group \ +"myRG" --schema-name "dbo" --sql-pool-name "myDatabase" --table-name "myTable" --workspace-name "myServer" +""" + +helps['synapse sql-pool-sensitivity-label enable-recommendation'] = """ + type: command + short-summary: "Enables sensitivity recommendations on a given column (recommendations are enabled by default on \ +all columns)." + examples: + - name: Enables sensitivity recommendations on a given column + text: |- + az synapse sql-pool-sensitivity-label enable-recommendation --column-name "myColumn" --resource-group \ +"myRG" --schema-name "dbo" --sql-pool-name "myDatabase" --table-name "myTable" --workspace-name "myServer" +""" + +helps['synapse sql-pool-sensitivity-label list-current'] = """ + type: command + short-summary: "Gets SQL pool sensitivity labels." + examples: + - name: Gets the current sensitivity labels of a given SQL Analytics pool + text: |- + az synapse sql-pool-sensitivity-label list-current --resource-group "myRG" --sql-pool-name "myDatabase" \ +--workspace-name "myServer" +""" + +helps['synapse sql-pool-sensitivity-label list-recommended'] = """ + type: command + short-summary: "Gets sensitivity labels of a given SQL pool." + examples: + - name: Gets the recommended sensitivity labels of a given SQL Analytics pool + text: |- + az synapse sql-pool-sensitivity-label list-recommended --resource-group "myRG" --sql-pool-name \ +"myDatabase" --workspace-name "myServer" +""" + +helps['synapse sql-pool-schema'] = """ + type: group + short-summary: Manage sql pool schema with synapse +""" + +helps['synapse sql-pool-schema list'] = """ + type: command + short-summary: "Gets schemas of a given SQL pool." + examples: + - name: List the schema in a SQL Analytics pool + text: |- + az synapse sql-pool-schema list --resource-group "myRG" --sql-pool-name "myDatabase" --workspace-name \ +"serverName" +""" + +helps['synapse sql-pool-table'] = """ + type: group + short-summary: Manage sql pool table with synapse +""" + +helps['synapse sql-pool-table list'] = """ + type: command + short-summary: "Gets tables of a given schema in a SQL pool." + examples: + - name: List the tables of a given schema in a SQL Analytics pool + text: |- + az synapse sql-pool-table list --resource-group "myRG" --schema-name "dbo" --sql-pool-name "myDatabase" \ +--workspace-name "serverName" +""" + +helps['synapse sql-pool-table-column'] = """ + type: group + short-summary: Manage sql pool table column with synapse +""" + +helps['synapse sql-pool-table-column list'] = """ + type: command + short-summary: "Gets columns in a given table in a SQL pool." + examples: + - name: List the columns in a table of a given schema in a SQL Analytics pool + text: |- + az synapse sql-pool-table-column list --resource-group "myRG" --schema-name "dbo" --sql-pool-name \ +"myDatabase" --table-name "table1" --workspace-name "serverName" +""" + +helps['synapse sql-pool-connection-policy'] = """ + type: group + short-summary: Manage sql pool connection policy with synapse +""" + +helps['synapse sql-pool-connection-policy show'] = """ + type: command + short-summary: "Get a Sql pool's connection policy, which is used with table auditing." + examples: + - name: Get a connection policy of a SQL Analytics pool + text: |- + az synapse sql-pool-connection-policy show --resource-group "blobauditingtest-6852" --sql-pool-name \ +"testdb" --workspace-name "blobauditingtest-2080" +""" + +helps['synapse sql-pool-vulnerability-assessment'] = """ + type: group + short-summary: Manage sql pool vulnerability assessment with synapse +""" + +helps['synapse sql-pool-vulnerability-assessment list'] = """ + type: command + short-summary: "Lists the vulnerability assessment policies associated with a SQL pool." + examples: + - name: Get a vulnerability assessment of a SQL Analytics pool + text: |- + az synapse sql-pool-vulnerability-assessment list --resource-group "vulnerabilityaseessmenttest-4799" \ +--sql-pool-name "testdb" --workspace-name "vulnerabilityaseessmenttest-6440" +""" + +helps['synapse sql-pool-vulnerability-assessment show'] = """ + type: command + short-summary: "Gets the Sql pool's vulnerability assessment." + examples: + - name: Get a Sql pool's vulnerability assessment + text: |- + az synapse sql-pool-vulnerability-assessment show --resource-group "vulnerabilityaseessmenttest-4799" \ +--sql-pool-name "testdb" --workspace-name "vulnerabilityaseessmenttest-6440" +""" + +helps['synapse sql-pool-vulnerability-assessment create'] = """ + type: command + short-summary: "Create the Sql pool vulnerability assessment." + parameters: + - name: --recurring-scans + short-summary: "The recurring scans settings" + long-summary: | + Usage: --recurring-scans is-enabled=XX email-subscription-admins=XX emails=XX + + is-enabled: Recurring scans state. + email-subscription-admins: Specifies that the schedule scan notification will be is sent to the \ +subscription administrators. + emails: Specifies an array of e-mail addresses to which the scan notification is sent. + examples: + - name: Create a database's vulnerability assessment with all parameters + text: |- + az synapse sql-pool-vulnerability-assessment create --recurring-scans email-subscription-admins=true \ +emails="email1@mail.com" emails="email2@mail.com" is-enabled=true --storage-account-access-key \ +"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" --storage-container-path "https://myStorage.blob.core.window\ +s.net/vulnerability-assessment/" --storage-container-sas-key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"\ + --resource-group "vulnerabilityaseessmenttest-4799" --sql-pool-name "testdb" --workspace-name \ +"vulnerabilityaseessmenttest-6440" + - name: Create a database's vulnerability assessment with minimal parameters, when storageAccountAccessKey is specified + text: |- + az synapse sql-pool-vulnerability-assessment create --storage-account-access-key \ +"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" --storage-container-path "https://myStorage.blob.core.window\ +s.net/vulnerability-assessment/" --resource-group "vulnerabilityaseessmenttest-4799" --sql-pool-name "testdb" \ +--workspace-name "vulnerabilityaseessmenttest-6440" + - name: Create a database's vulnerability assessment with minimal parameters, when storageContainerSasKey is specified + text: |- + az synapse sql-pool-vulnerability-assessment create --storage-container-path \ +"https://myStorage.blob.core.windows.net/vulnerability-assessment/" --storage-container-sas-key \ +"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" --resource-group "vulnerabilityaseessmenttest-4799" \ +--sql-pool-name "testdb" --workspace-name "vulnerabilityaseessmenttest-6440" +""" + +helps['synapse sql-pool-vulnerability-assessment update'] = """ + type: command + short-summary: "Update the Sql pool vulnerability assessment." + parameters: + - name: --recurring-scans + short-summary: "The recurring scans settings" + long-summary: | + Usage: --recurring-scans is-enabled=XX email-subscription-admins=XX emails=XX + + is-enabled: Recurring scans state. + email-subscription-admins: Specifies that the schedule scan notification will be is sent to the \ +subscription administrators. + emails: Specifies an array of e-mail addresses to which the scan notification is sent. +""" + +helps['synapse sql-pool-vulnerability-assessment delete'] = """ + type: command + short-summary: "Removes the database's vulnerability assessment." + examples: + - name: Remove a database's vulnerability assessment + text: |- + az synapse sql-pool-vulnerability-assessment delete --resource-group "vulnerabilityaseessmenttest-4799" \ +--sql-pool-name "testdb" --workspace-name "vulnerabilityaseessmenttest-6440" +""" + +helps['synapse sql-pool-vulnerability-assessment-scan'] = """ + type: group + short-summary: Manage sql pool vulnerability assessment scan with synapse +""" + +helps['synapse sql-pool-vulnerability-assessment-scan list'] = """ + type: command + short-summary: "Lists the vulnerability assessment scans of a SQL pool." + examples: + - name: Get a vulnerability scan record of a SQL Analytics pool + text: |- + az synapse sql-pool-vulnerability-assessment-scan list --resource-group "vulnerabilityassessmenttest-471\ +1" --sql-pool-name "testdb" --workspace-name "vulnerabilityassessmenttest-6411" +""" + +helps['synapse sql-pool-vulnerability-assessment-scan export'] = """ + type: command + short-summary: "Convert an existing scan result to a human readable format. If already exists nothing happens." + examples: + - name: Export a database's vulnerability assessment scan results. + text: |- + az synapse sql-pool-vulnerability-assessment-scan export --resource-group \ +"vulnerabilityassessmenttest-4799" --scan-id "scan001" --sql-pool-name "testdb" --workspace-name \ +"vulnerabilityassessmenttest-6440" +""" + +helps['synapse sql-pool-vulnerability-assessment-scan initiate-scan'] = """ + type: command + short-summary: "Executes a Vulnerability Assessment database scan." + examples: + - name: Executes a Sql pool's vulnerability assessment scan. + text: |- + az synapse sql-pool-vulnerability-assessment-scan initiate-scan --resource-group \ +"vulnerabilityassessmenttest-4711" --scan-id "scan01" --sql-pool-name "testdb" --workspace-name \ +"vulnerabilityassessmenttest-6411" +""" + +helps['synapse sql-pool-security-alert-policy'] = """ + type: group + short-summary: Manage sql pool security alert policy with synapse +""" + +helps['synapse sql-pool-security-alert-policy show'] = """ + type: command + short-summary: "Get a Sql pool's security alert policy." + examples: + - name: Get a security alert of a SQL Analytics pool + text: |- + az synapse sql-pool-security-alert-policy show --resource-group "securityalert-6852" --sql-pool-name \ +"testdb" --workspace-name "securityalert-2080" +""" + +helps['synapse sql-pool-security-alert-policy create'] = """ + type: command + short-summary: "Create a Sql pool's security alert policy." + examples: + - name: Create a Sql pool's threat detection policy with all parameters + text: |- + az synapse sql-pool-security-alert-policy create --disabled-alerts "Sql_Injection" "Usage_Anomaly" \ +--email-account-admins true --email-addresses "test@microsoft.com" "user@microsoft.com" --retention-days 6 --state \ +"Enabled" --storage-account-access-key "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3R\ +SD==" --storage-endpoint "https://mystorage.blob.core.windows.net" --resource-group "securityalert-4799" \ +--sql-pool-name "testdb" --workspace-name "securityalert-6440" +""" + +helps['synapse sql-pool-security-alert-policy update'] = """ + type: command + short-summary: "Update a Sql pool's security alert policy." + examples: + - name: Update a Sql pool's threat detection policy with minimal parameters + text: |- + az synapse sql-pool-security-alert-policy update --state "Enabled" --resource-group \ +"securityalert-4799" --sql-pool-name "testdb" --workspace-name "securityalert-6440" +""" + +helps['synapse sql-pool-vulnerability-assessment-rule-baseline'] = """ + type: group + short-summary: Manage sql pool vulnerability assessment rule baseline with synapse +""" + +helps['synapse sql-pool-vulnerability-assessment-rule-baseline create'] = """ + type: command + short-summary: "Create a Sql pool's vulnerability assessment rule baseline." + parameters: + - name: --baseline-results + short-summary: "The rule baseline result" + long-summary: | + Usage: --baseline-results result=XX + + result: Required. The rule baseline result + + Multiple actions can be specified by using more than one --baseline-results argument. + examples: + - name: Creates or updates a database's vulnerability assessment rule baseline. + text: |- + az synapse sql-pool-vulnerability-assessment-rule-baseline create --baseline-name "default" \ +--baseline-results result="userA" result="SELECT" --baseline-results result="userB" result="SELECT" --baseline-results \ +result="userC" result="SELECT" result="tableId_4" --resource-group "vulnerabilityaseessmenttest-4799" --rule-id \ +"VA1001" --sql-pool-name "testdb" --workspace-name "vulnerabilityaseessmenttest-6440" +""" + +helps['synapse sql-pool-vulnerability-assessment-rule-baseline update'] = """ + type: command + short-summary: "Update a Sql pool's vulnerability assessment rule baseline." + parameters: + - name: --baseline-results + short-summary: "The rule baseline result" + long-summary: | + Usage: --baseline-results result=XX + + result: Required. The rule baseline result + + Multiple actions can be specified by using more than one --baseline-results argument. +""" + +helps['synapse sql-pool-vulnerability-assessment-rule-baseline delete'] = """ + type: command + short-summary: "Removes the database's vulnerability assessment rule baseline." + examples: + - name: Removes a database's vulnerability assessment rule baseline. + text: |- + az synapse sql-pool-vulnerability-assessment-rule-baseline delete --baseline-name "default" \ +--resource-group "vulnerabilityaseessmenttest-4799" --rule-id "VA1001" --sql-pool-name "testdb" --workspace-name \ +"vulnerabilityaseessmenttest-6440" +""" + +helps['synapse workspace'] = """ + type: group + short-summary: Manage workspace with synapse +""" + +helps['synapse workspace list'] = """ + type: command + short-summary: "Returns a list of workspaces in a resource group And Returns a list of workspaces in a \ +subscription." + examples: + - name: List workspaces in resource group + text: |- + az synapse workspace list --resource-group "resourceGroup1" + - name: List workspaces in subscription + text: |- + az synapse workspace list +""" + +helps['synapse workspace show'] = """ + type: command + short-summary: "Gets a workspace." + examples: + - name: Get a workspace + text: |- + az synapse workspace show --resource-group "resourceGroup1" --name "workspace1" +""" + +helps['synapse workspace create'] = """ + type: command + short-summary: "Create a workspace." + parameters: + - name: --default-data-lake-storage + short-summary: "Workspace default data lake storage account details" + long-summary: | + Usage: --default-data-lake-storage account-url=XX filesystem=XX + + account-url: Account URL + filesystem: Filesystem name + examples: + - name: Create or update a workspace + text: |- + az synapse workspace create --resource-group "resourceGroup1" --type "SystemAssigned" --location "East \ +US" --default-data-lake-storage account-url="https://accountname.dfs.core.windows.net" filesystem="default" \ +--managed-resource-group-name "workspaceManagedResourceGroupUnique" --managed-virtual-network "default" \ +--sql-administrator-login "login" --sql-administrator-login-password "password" --tags key="value" --name "workspace1" +""" + +helps['synapse workspace update'] = """ + type: command + short-summary: "Updates a workspace." + examples: + - name: Update a workspace + text: |- + az synapse workspace update --resource-group "resourceGroup1" --name "workspace1" --type \ +"SystemAssigned" --sql-administrator-login-password "password" --tags key="value" +""" + +helps['synapse workspace delete'] = """ + type: command + short-summary: "Deletes a workspace." + examples: + - name: Delete a workspace + text: |- + az synapse workspace delete --resource-group "resourceGroup1" --name "workspace1" +""" + +helps['synapse workspace wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the synapse workspace is met. + examples: + - name: Pause executing next line of CLI script until the synapse workspace is successfully created. + text: |- + az synapse workspace wait --resource-group "resourceGroup1" --name "workspace1" --created + - name: Pause executing next line of CLI script until the synapse workspace is successfully updated. + text: |- + az synapse workspace wait --resource-group "resourceGroup1" --name "workspace1" --updated + - name: Pause executing next line of CLI script until the synapse workspace is successfully deleted. + text: |- + az synapse workspace wait --resource-group "resourceGroup1" --name "workspace1" --deleted +""" + +helps['synapse workspace-aad-admin'] = """ + type: group + short-summary: Manage workspace aad admin with synapse +""" + +helps['synapse workspace-aad-admin show'] = """ + type: command + short-summary: "Gets a workspace active directory admin." + examples: + - name: Get workspace active directory admin + text: |- + az synapse workspace-aad-admin show --resource-group "resourceGroup1" --workspace-name "workspace1" +""" + +helps['synapse workspace-aad-admin create'] = """ + type: command + short-summary: "Create a workspace active directory admin." + examples: + - name: Create or update workspace active directory admin + text: |- + az synapse workspace-aad-admin create --administrator-type "ActiveDirectory" --login "bob@contoso.com" \ +--sid "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c" --tenant-id "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c" --resource-group \ +"resourceGroup1" --workspace-name "workspace1" +""" + +helps['synapse workspace-aad-admin update'] = """ + type: command + short-summary: "Update a workspace active directory admin." +""" + +helps['synapse workspace-aad-admin delete'] = """ + type: command + short-summary: "Deletes a workspace active directory admin." + examples: + - name: Delete workspace active directory admin + text: |- + az synapse workspace-aad-admin delete --resource-group "resourceGroup1" --workspace-name "workspace1" +""" + +helps['synapse workspace-aad-admin wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the synapse workspace-aad-admin is met. + examples: + - name: Pause executing next line of CLI script until the synapse workspace-aad-admin is successfully created. + text: |- + az synapse workspace-aad-admin wait --resource-group "resourceGroup1" --workspace-name "workspace1" \ +--created + - name: Pause executing next line of CLI script until the synapse workspace-aad-admin is successfully updated. + text: |- + az synapse workspace-aad-admin wait --resource-group "resourceGroup1" --workspace-name "workspace1" \ +--updated + - name: Pause executing next line of CLI script until the synapse workspace-aad-admin is successfully deleted. + text: |- + az synapse workspace-aad-admin wait --resource-group "resourceGroup1" --workspace-name "workspace1" \ +--deleted +""" + +helps['synapse workspace-managed-identity-sql-control-setting'] = """ + type: group + short-summary: Manage workspace managed identity sql control setting with synapse +""" + +helps['synapse workspace-managed-identity-sql-control-setting show'] = """ + type: command + short-summary: "Get Managed Identity Sql Control Settings." + examples: + - name: Get managed identity sql control settings + text: |- + az synapse workspace-managed-identity-sql-control-setting show --resource-group "resourceGroup1" \ +--workspace-name "workspace1" +""" + +helps['synapse workspace-managed-identity-sql-control-setting create'] = """ + type: command + short-summary: "Create Managed Identity Sql Control Settings." + examples: + - name: Create or update managed identity sql control settings + text: |- + az synapse workspace-managed-identity-sql-control-setting create --desired-state "Enabled" \ +--resource-group "resourceGroup1" --workspace-name "workspace1" +""" + +helps['synapse workspace-managed-identity-sql-control-setting update'] = """ + type: command + short-summary: "Update Managed Identity Sql Control Settings." +""" + +helps['synapse integration-runtime'] = """ + type: group + short-summary: Manage integration runtime with synapse +""" + +helps['synapse integration-runtime list'] = """ + type: command + short-summary: "List all integration runtimes." + examples: + - name: List integration runtimes + text: |- + az synapse integration-runtime list --resource-group "exampleResourceGroup" --workspace-name \ +"exampleWorkspace" +""" + +helps['synapse integration-runtime show'] = """ + type: command + short-summary: "Get an integration runtime." + examples: + - name: Get integration runtime + text: |- + az synapse integration-runtime show --name "exampleIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime create'] = """ + type: command + short-summary: "Create an integration runtime." + examples: + - name: Create integration runtime + text: |- + az synapse integration-runtime create --properties "{\\"type\\":\\"SelfHosted\\",\\"description\\":\\"A \ +selfhosted integration runtime\\"}" --name "exampleIntegrationRuntime" --resource-group "exampleResourceGroup" \ +--workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime update'] = """ + type: command + short-summary: "Update an integration runtime." + examples: + - name: Update integration runtime + text: |- + az synapse integration-runtime update --name "exampleIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --auto-update "Off" --update-delay-offset "\\"PT3H\\"" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime delete'] = """ + type: command + short-summary: "Delete an integration runtime." + examples: + - name: Delete integration runtime + text: |- + az synapse integration-runtime delete --name "exampleIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime start'] = """ + type: command + short-summary: "Start an integration runtime." + examples: + - name: Start integration runtime + text: |- + az synapse integration-runtime start --name "exampleManagedIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime stop'] = """ + type: command + short-summary: "Stop an integration runtime." + examples: + - name: Stop integration runtime + text: |- + az synapse integration-runtime stop --name "exampleManagedIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime upgrade'] = """ + type: command + short-summary: "Upgrade an integration runtime." + examples: + - name: Upgrade integration runtime + text: |- + az synapse integration-runtime upgrade --name "exampleIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the synapse integration-runtime is met. + examples: + - name: Pause executing next line of CLI script until the synapse integration-runtime is successfully created. + text: |- + az synapse integration-runtime wait --name "exampleIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" --created + - name: Pause executing next line of CLI script until the synapse integration-runtime is successfully deleted. + text: |- + az synapse integration-runtime wait --name "exampleIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" --deleted +""" + +helps['synapse integration-runtime-node-ip-address'] = """ + type: group + short-summary: Manage integration runtime node ip address with synapse +""" + +helps['synapse integration-runtime-node-ip-address get'] = """ + type: command + short-summary: "Get the IP address of an integration runtime node." + examples: + - name: Get integration runtime node IP address + text: |- + az synapse integration-runtime-node-ip-address get --integration-runtime-name \ +"exampleIntegrationRuntime" --node-name "Node_1" --resource-group "exampleResourceGroup" --workspace-name \ +"exampleWorkspace" +""" + +helps['synapse integration-runtime-object-metadata'] = """ + type: group + short-summary: Manage integration runtime object metadata with synapse +""" + +helps['synapse integration-runtime-object-metadata get'] = """ + type: command + short-summary: "Get object metadata from an integration runtime." + examples: + - name: Get integration runtime object metadata + text: |- + az synapse integration-runtime-object-metadata get --metadata-path "ssisFolders" \ +--integration-runtime-name "testactivityv2" --resource-group "exampleResourceGroup" --workspace-name \ +"exampleWorkspace" +""" + +helps['synapse integration-runtime-object-metadata refresh'] = """ + type: command + short-summary: "Refresh the object metadata in an integration runtime." + examples: + - name: Refresh object metadata + text: |- + az synapse integration-runtime-object-metadata refresh --integration-runtime-name "testactivityv2" \ +--resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime-node'] = """ + type: group + short-summary: Manage integration runtime node with synapse +""" + +helps['synapse integration-runtime-node show'] = """ + type: command + short-summary: "Get an integration runtime node." + examples: + - name: Get integration runtime node + text: |- + az synapse integration-runtime-node show --integration-runtime-name "exampleIntegrationRuntime" \ +--node-name "Node_1" --resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime-node update'] = """ + type: command + short-summary: "Create an integration runtime node." + examples: + - name: Update integration runtime node + text: |- + az synapse integration-runtime-node update --integration-runtime-name "exampleIntegrationRuntime" \ +--node-name "Node_1" --resource-group "exampleResourceGroup" --concurrent-jobs-limit 2 --workspace-name \ +"exampleWorkspace" +""" + +helps['synapse integration-runtime-node delete'] = """ + type: command + short-summary: "Delete an integration runtime node." + examples: + - name: Delete integration runtime node + text: |- + az synapse integration-runtime-node delete --integration-runtime-name "exampleIntegrationRuntime" \ +--node-name "Node_1" --resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime-credentials'] = """ + type: group + short-summary: Manage integration runtime credentials with synapse +""" + +helps['synapse integration-runtime-credentials sync'] = """ + type: command + short-summary: "Force the integration runtime to synchronize credentials across integration runtime nodes, and \ +this will override the credentials across all worker nodes with those available on the dispatcher node. If you already \ +have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration \ +runtime node than using this API directly." + examples: + - name: Sync credentials + text: |- + az synapse integration-runtime-credentials sync --integration-runtime-name "exampleIntegrationRuntime" \ +--resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime-connection-info'] = """ + type: group + short-summary: Manage integration runtime connection info with synapse +""" + +helps['synapse integration-runtime-connection-info get'] = """ + type: command + short-summary: "Get connection info for an integration runtime." + examples: + - name: Get connection info + text: |- + az synapse integration-runtime-connection-info get --integration-runtime-name \ +"exampleIntegrationRuntime" --resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime-auth-key'] = """ + type: group + short-summary: Manage integration runtime auth key with synapse +""" + +helps['synapse integration-runtime-auth-key list'] = """ + type: command + short-summary: "List authentication keys in an integration runtime." + examples: + - name: List auth keys + text: |- + az synapse integration-runtime-auth-key list --integration-runtime-name "exampleIntegrationRuntime" \ +--resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime-auth-key regenerate'] = """ + type: command + short-summary: "Regenerate the authentication key for an integration runtime." + examples: + - name: Regenerate auth key + text: |- + az synapse integration-runtime-auth-key regenerate --integration-runtime-name \ +"exampleIntegrationRuntime" --key-name "authKey2" --resource-group "exampleResourceGroup" --workspace-name \ +"exampleWorkspace" +""" + +helps['synapse integration-runtime-monitoring-data'] = """ + type: group + short-summary: Manage integration runtime monitoring data with synapse +""" + +helps['synapse integration-runtime-monitoring-data get'] = """ + type: command + short-summary: "Get monitoring data for an integration runtime." + examples: + - name: Get monitoring data + text: |- + az synapse integration-runtime-monitoring-data get --integration-runtime-name \ +"exampleIntegrationRuntime" --resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse integration-runtime-status'] = """ + type: group + short-summary: Manage integration runtime status with synapse +""" + +helps['synapse integration-runtime-status get'] = """ + type: command + short-summary: "Get the integration runtime status." + examples: + - name: Get status + text: |- + az synapse integration-runtime-status get --integration-runtime-name "exampleIntegrationRuntime" \ +--resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +""" + +helps['synapse private-link-resource'] = """ + type: group + short-summary: Manage private link resource with synapse +""" + +helps['synapse private-link-resource list'] = """ + type: command + short-summary: "Get all private link resources for a workspaces." + examples: + - name: Get private link resources for workspace + text: |- + az synapse private-link-resource list --resource-group "ExampleResourceGroup" --workspace-name \ +"ExampleWorkspace" +""" + +helps['synapse private-link-resource show'] = """ + type: command + short-summary: "Get private link resource in workspace." + examples: + - name: Get private link resources for workspace + text: |- + az synapse private-link-resource show --name "sql" --resource-group "ExampleResourceGroup" \ +--workspace-name "ExampleWorkspace" +""" + +helps['synapse private-endpoint-connection'] = """ + type: group + short-summary: Manage private endpoint connection with synapse +""" + +helps['synapse private-endpoint-connection list'] = """ + type: command + short-summary: "Lists private endpoint connection in workspace." + examples: + - name: List private endpoint connections in workspace + text: |- + az synapse private-endpoint-connection list --resource-group "ExampleResourceGroup" --workspace-name \ +"ExampleWorkspace" +""" + +helps['synapse private-endpoint-connection show'] = """ + type: command + short-summary: "Gets a private endpoint connection." + examples: + - name: Get private endpoint connection + text: |- + az synapse private-endpoint-connection show --name "ExamplePrivateEndpointConnection" --resource-group \ +"ExampleResourceGroup" --workspace-name "ExampleWorkspace" +""" + +helps['synapse private-endpoint-connection create'] = """ + type: command + short-summary: "Approve or reject a private endpoint connection." + examples: + - name: Approve private endpoint connection + text: |- + az synapse private-endpoint-connection create --name "ExamplePrivateEndpointConnection" \ +--resource-group "ExampleResourceGroup" --workspace-name "ExampleWorkspace" +""" + +helps['synapse private-endpoint-connection delete'] = """ + type: command + short-summary: "Delete a private endpoint connection." + examples: + - name: Delete private endpoint connection + text: |- + az synapse private-endpoint-connection delete --name "ExamplePrivateEndpointConnection" \ +--resource-group "ExampleResourceGroup" --workspace-name "ExampleWorkspace" +""" + +helps['synapse private-endpoint-connection wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the synapse private-endpoint-connection is \ +met. + examples: + - name: Pause executing next line of CLI script until the synapse private-endpoint-connection is successfully \ +created. + text: |- + az synapse private-endpoint-connection wait --name "ExamplePrivateEndpointConnection" --resource-group \ +"ExampleResourceGroup" --workspace-name "ExampleWorkspace" --created + - name: Pause executing next line of CLI script until the synapse private-endpoint-connection is successfully \ +deleted. + text: |- + az synapse private-endpoint-connection wait --name "ExamplePrivateEndpointConnection" --resource-group \ +"ExampleResourceGroup" --workspace-name "ExampleWorkspace" --deleted +""" + +helps['synapse private-link-hub'] = """ + type: group + short-summary: Manage private link hub with synapse +""" + +helps['synapse private-link-hub list'] = """ + type: command + short-summary: "Returns a list of privateLinkHubs in a resource group And Returns a list of privateLinkHubs in a \ +subscription." + examples: + - name: List privateLinkHubs in resource group + text: |- + az synapse private-link-hub list --resource-group "resourceGroup1" + - name: List privateLinkHubs in subscription + text: |- + az synapse private-link-hub list +""" + +helps['synapse private-link-hub show'] = """ + type: command + short-summary: "Gets a privateLinkHub." + examples: + - name: Get a privateLinkHub + text: |- + az synapse private-link-hub show --name "privateLinkHub1" --resource-group "resourceGroup1" +""" + +helps['synapse private-link-hub create'] = """ + type: command + short-summary: "Create a privateLinkHub." + examples: + - name: Create or update a privateLinkHub + text: |- + az synapse private-link-hub create --location "East US" --tags key="value" --name "privateLinkHub1" \ +--resource-group "resourceGroup1" +""" + +helps['synapse private-link-hub update'] = """ + type: command + short-summary: "Updates a privateLinkHub." + examples: + - name: Update a privateLinkHub + text: |- + az synapse private-link-hub update --name "privateLinkHub1" --tags key="value" --resource-group \ +"resourceGroup1" +""" + +helps['synapse private-link-hub delete'] = """ + type: command + short-summary: "Deletes a privateLinkHub." + examples: + - name: Delete a privateLinkHub + text: |- + az synapse private-link-hub delete --name "privateLinkHub1" --resource-group "resourceGroup1" +""" diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_params.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_params.py new file mode 100644 index 000000000..ba14007d0 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_params.py @@ -0,0 +1,958 @@ +# -------------------------------------------------------------------------- +# 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 ..action import ( + AddAutoScale, + AddAutoPause, + AddLibraryRequirements, + AddSku, + AddRecurringScans, + AddBaselineResults, + AddDefaultDataLakeStorage, + AddConnectivityEndpoints +) + + +def load_arguments(self, _): + + with self.argument_context('synapse big-data-pool list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + + with self.argument_context('synapse big-data-pool show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('big_data_pool_name', options_list=['--name', '-n', '--big-data-pool-name'], type=str, help='Big ' + 'Data pool name', id_part='child_name_1') + + with self.argument_context('synapse big-data-pool create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('big_data_pool_name', options_list=['--name', '-n', '--big-data-pool-name'], type=str, help='Big ' + 'Data pool name') + c.argument('force', arg_type=get_three_state_flag(), help='Whether to stop any running jobs in the Big Data ' + 'pool') + 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('provisioning_state', type=str, help='The state of the Big Data pool.') + c.argument('auto_scale', action=AddAutoScale, nargs='+', help='Auto-scaling properties') + c.argument('creation_date', help='The time when the Big Data pool was created.') + c.argument('auto_pause', action=AddAutoPause, nargs='+', help='Auto-pausing properties') + c.argument('spark_events_folder', type=str, help='The Spark events folder') + c.argument('node_count', type=int, help='The number of nodes in the Big Data pool.') + c.argument('library_requirements', action=AddLibraryRequirements, nargs='+', help='Library version ' + 'requirements') + c.argument('spark_version', type=str, help='The Apache Spark version.') + c.argument('default_spark_log_folder', type=str, help='The default folder where Spark logs will be written.') + c.argument('node_size', arg_type=get_enum_type(['None', 'Small', 'Medium', 'Large']), help='The level of ' + 'compute power that each node in the Big Data pool has.') + c.argument('node_size_family', arg_type=get_enum_type(['None', 'MemoryOptimized']), help='The kind of nodes ' + 'that the Big Data pool provides.') + + with self.argument_context('synapse big-data-pool update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('big_data_pool_name', options_list=['--name', '-n', '--big-data-pool-name'], type=str, help='Big ' + 'Data pool name', id_part='child_name_1') + c.argument('tags', tags_type) + + with self.argument_context('synapse big-data-pool delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('big_data_pool_name', options_list=['--name', '-n', '--big-data-pool-name'], type=str, help='Big ' + 'Data pool name', id_part='child_name_1') + + with self.argument_context('synapse big-data-pool wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('big_data_pool_name', options_list=['--name', '-n', '--big-data-pool-name'], type=str, help='Big ' + 'Data pool name', id_part='child_name_1') + + with self.argument_context('synapse operation show-azure-async-header-result') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('operation_id', type=str, help='Operation ID', id_part='child_name_1') + + with self.argument_context('synapse operation show-location-header-result') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('operation_id', type=str, help='Operation ID', id_part='child_name_1') + + with self.argument_context('synapse ip-firewall-rule list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + + with self.argument_context('synapse ip-firewall-rule show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('rule_name', type=str, help='The IP firewall rule name', id_part='child_name_1') + + with self.argument_context('synapse ip-firewall-rule create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('rule_name', type=str, help='The IP firewall rule name') + c.argument('end_ip_address', type=str, help='The end IP address of the firewall rule. Must be IPv4 format. ' + 'Must be greater than or equal to startIpAddress') + c.argument('start_ip_address', type=str, + help='The start IP address of the firewall rule. Must be IPv4 format') + + with self.argument_context('synapse ip-firewall-rule update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('rule_name', type=str, help='The IP firewall rule name', id_part='child_name_1') + c.argument('end_ip_address', type=str, help='The end IP address of the firewall rule. Must be IPv4 format. ' + 'Must be greater than or equal to startIpAddress') + c.argument('start_ip_address', type=str, + help='The start IP address of the firewall rule. Must be IPv4 format') + + with self.argument_context('synapse ip-firewall-rule delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('rule_name', type=str, help='The IP firewall rule name', id_part='child_name_1') + + with self.argument_context('synapse ip-firewall-rule replace-all') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('ip_firewall_rules', type=validate_file_or_dict, help='IP firewall rule properties Expected value: ' + 'json-string/json-file/@json-file.') + + with self.argument_context('synapse ip-firewall-rule wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('rule_name', type=str, help='The IP firewall rule name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + + with self.argument_context('synapse sql-pool show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', options_list=['--name', '-n', '--sql-pool-name'], type=str, help='SQL pool name', + id_part='child_name_1') + + with self.argument_context('synapse sql-pool create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', options_list=['--name', '-n', '--sql-pool-name'], type=str, help='SQL pool 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='SQL pool SKU') + c.argument('max_size_bytes', type=int, help='Maximum size in bytes') + c.argument('collation', type=str, help='Collation mode') + c.argument('source_database_id', type=str, help='Source database to create from') + c.argument('recoverable_database_id', type=str, help='Backup database to restore from') + c.argument('provisioning_state', type=str, help='Resource state') + c.argument('status', type=str, help='Resource status') + c.argument('restore_point_in_time', help='Snapshot time to restore') + c.argument('create_mode', type=str, help='What is this?') + c.argument('creation_date', help='Date the SQL pool was created') + + with self.argument_context('synapse sql-pool update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', options_list=['--name', '-n', '--sql-pool-name'], type=str, help='SQL pool name', + id_part='child_name_1') + 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='SQL pool SKU') + c.argument('max_size_bytes', type=int, help='Maximum size in bytes') + c.argument('collation', type=str, help='Collation mode') + c.argument('source_database_id', type=str, help='Source database to create from') + c.argument('recoverable_database_id', type=str, help='Backup database to restore from') + c.argument('provisioning_state', type=str, help='Resource state') + c.argument('status', type=str, help='Resource status') + c.argument('restore_point_in_time', help='Snapshot time to restore') + c.argument('create_mode', type=str, help='What is this?') + c.argument('creation_date', help='Date the SQL pool was created') + + with self.argument_context('synapse sql-pool delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', options_list=['--name', '-n', '--sql-pool-name'], type=str, help='SQL pool name', + id_part='child_name_1') + + with self.argument_context('synapse sql-pool pause') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', options_list=['--name', '-n', '--sql-pool-name'], type=str, help='SQL pool name', + id_part='child_name_1') + + with self.argument_context('synapse sql-pool rename') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', options_list=['--name', '-n', '--sql-pool-name'], type=str, help='SQL pool name', + id_part='child_name_1') + c.argument('id_', options_list=['--id'], type=str, help='The target ID for the resource') + + with self.argument_context('synapse sql-pool resume') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', options_list=['--name', '-n', '--sql-pool-name'], type=str, help='SQL pool name', + id_part='child_name_1') + + with self.argument_context('synapse sql-pool wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', options_list=['--name', '-n', '--sql-pool-name'], type=str, help='SQL pool name', + id_part='child_name_1') + + with self.argument_context('synapse sql-pool-metadata-sync-config show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool-metadata-sync-config create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('enabled', arg_type=get_three_state_flag(), help='Indicates whether the metadata sync is enabled or ' + 'disabled') + + with self.argument_context('synapse sql-pool-operation-result show-location-header-result') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('operation_id', type=str, help='Operation ID', id_part='child_name_2') + + with self.argument_context('synapse sql-pool-geo-backup-policy show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool-data-warehouse-user-activity show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool-restore-point list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + + with self.argument_context('synapse sql-pool-restore-point create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('restore_point_label', type=str, help='The restore point label to apply') + + with self.argument_context('synapse sql-pool-replication-link list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + + with self.argument_context('synapse sql-pool-transparent-data-encryption show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool-transparent-data-encryption create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('status', arg_type=get_enum_type(['Enabled', 'Disabled']), help='The status of the database ' + 'transparent data encryption.') + + with self.argument_context('synapse sql-pool-transparent-data-encryption update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('status', arg_type=get_enum_type(['Enabled', 'Disabled']), help='The status of the database ' + 'transparent data encryption.') + + with self.argument_context('synapse sql-pool-blob-auditing-policy show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool-blob-auditing-policy create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('state', arg_type=get_enum_type(['Enabled', 'Disabled']), help='Specifies the state of the policy. ' + 'If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required.') + c.argument('storage_endpoint', type=str, help='Specifies the blob storage endpoint (e.g. ' + 'https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.') + c.argument('storage_account_access_key', type=str, help='Specifies the identifier key of the auditing storage ' + 'account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is ' + 'required.') + c.argument('retention_days', type=int, help='Specifies the number of days to keep in the audit logs in the ' + 'storage account.') + c.argument('audit_actions_and_groups', nargs='+', help='Specifies the Actions-Groups and Actions to audit. ' + 'The recommended set of action groups to use is the following combination - this will audit all the ' + 'queries and stored procedures executed against the database, as well as successful and failed ' + 'logins: BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, ' + 'FAILED_DATABASE_AUTHENTICATION_GROUP. This above combination is also the set that is configured ' + 'by default when enabling auditing from the Azure portal. The supported action groups to audit are ' + '(note: choose only specific groups that cover your auditing needs. Using unnecessary groups could ' + 'lead to very large quantities of audit records): APPLICATION_ROLE_CHANGE_PASSWORD_GROUP ' + 'BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP ' + 'DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP ' + 'DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP ' + 'DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP ' + 'FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP ' + 'SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP ' + 'SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP ' + 'BATCH_COMPLETED_GROUP These are groups that cover all sql statements and stored procedures ' + 'executed against the database, and should not be used in combination with other groups as this ' + 'will result in duplicate audit logs. For more information, see [Database-Level Audit Action ' + 'Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audi' + 't-action-groups-and-actions#database-level-audit-action-groups). For Database auditing policy, ' + 'specific Actions can also be specified (note that Actions cannot be specified for Server auditing ' + 'policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE ' + 'REFERENCES The general form for defining an action to be audited is: {action} ON {object} BY ' + '{principal} Note that in the above format can refer to an object like a table, view, or ' + 'stored procedure, or an entire database or schema. For the latter cases, the forms ' + 'DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. For example: SELECT on ' + 'dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on SCHEMA::mySchema by ' + 'public For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/s' + 'ql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level' + '-audit-actions)') + c.argument('storage_account_subscription_id', help='Specifies the blob storage subscription Id.') + c.argument('is_storage_secondary_key_in_use', arg_type=get_three_state_flag(), help='Specifies whether ' + 'storageAccountAccessKey value is the storage\'s secondary key.') + c.argument('is_azure_monitor_target_enabled', arg_type=get_three_state_flag(), help='Specifies whether audit ' + 'events are sent to Azure Monitor. In order to send the events to Azure Monitor, specify \'state\' ' + 'as \'Enabled\' and \'isAzureMonitorTargetEnabled\' as true. When using REST API to configure ' + 'auditing, Diagnostic Settings with \'SQLSecurityAuditEvents\' diagnostic logs category on the ' + 'database should be also created. Note that for server level audit you should use the \'master\' ' + 'database as {databaseName}. Diagnostic Settings URI format: PUT https://management.azure.com/subsc' + 'riptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverNam' + 'e}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-vers' + 'ion=2017-05-01-preview For more information, see [Diagnostic Settings REST ' + 'API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings ' + 'PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)') + + with self.argument_context('synapse sql-pool-blob-auditing-policy update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('state', arg_type=get_enum_type(['Enabled', 'Disabled']), help='Specifies the state of the policy. ' + 'If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required.') + c.argument('storage_endpoint', type=str, help='Specifies the blob storage endpoint (e.g. ' + 'https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.') + c.argument('storage_account_access_key', type=str, help='Specifies the identifier key of the auditing storage ' + 'account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is ' + 'required.') + c.argument('retention_days', type=int, help='Specifies the number of days to keep in the audit logs in the ' + 'storage account.') + c.argument('audit_actions_and_groups', nargs='+', help='Specifies the Actions-Groups and Actions to audit. ' + 'The recommended set of action groups to use is the following combination - this will audit all the ' + 'queries and stored procedures executed against the database, as well as successful and failed ' + 'logins: BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, ' + 'FAILED_DATABASE_AUTHENTICATION_GROUP. This above combination is also the set that is configured ' + 'by default when enabling auditing from the Azure portal. The supported action groups to audit are ' + '(note: choose only specific groups that cover your auditing needs. Using unnecessary groups could ' + 'lead to very large quantities of audit records): APPLICATION_ROLE_CHANGE_PASSWORD_GROUP ' + 'BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP ' + 'DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP ' + 'DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP ' + 'DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP ' + 'FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP ' + 'SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP ' + 'SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP ' + 'BATCH_COMPLETED_GROUP These are groups that cover all sql statements and stored procedures ' + 'executed against the database, and should not be used in combination with other groups as this ' + 'will result in duplicate audit logs. For more information, see [Database-Level Audit Action ' + 'Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audi' + 't-action-groups-and-actions#database-level-audit-action-groups). For Database auditing policy, ' + 'specific Actions can also be specified (note that Actions cannot be specified for Server auditing ' + 'policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE ' + 'REFERENCES The general form for defining an action to be audited is: {action} ON {object} BY ' + '{principal} Note that in the above format can refer to an object like a table, view, or ' + 'stored procedure, or an entire database or schema. For the latter cases, the forms ' + 'DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. For example: SELECT on ' + 'dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on SCHEMA::mySchema by ' + 'public For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/s' + 'ql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level' + '-audit-actions)') + c.argument('storage_account_subscription_id', help='Specifies the blob storage subscription Id.') + c.argument('is_storage_secondary_key_in_use', arg_type=get_three_state_flag(), help='Specifies whether ' + 'storageAccountAccessKey value is the storage\'s secondary key.') + c.argument('is_azure_monitor_target_enabled', arg_type=get_three_state_flag(), help='Specifies whether audit ' + 'events are sent to Azure Monitor. In order to send the events to Azure Monitor, specify \'state\' ' + 'as \'Enabled\' and \'isAzureMonitorTargetEnabled\' as true. When using REST API to configure ' + 'auditing, Diagnostic Settings with \'SQLSecurityAuditEvents\' diagnostic logs category on the ' + 'database should be also created. Note that for server level audit you should use the \'master\' ' + 'database as {databaseName}. Diagnostic Settings URI format: PUT https://management.azure.com/subsc' + 'riptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverNam' + 'e}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-vers' + 'ion=2017-05-01-preview For more information, see [Diagnostic Settings REST ' + 'API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings ' + 'PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)') + c.ignore('parameters') + + with self.argument_context('synapse sql-pool-operation list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + + with self.argument_context('synapse sql-pool-usage list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + + with self.argument_context('synapse sql-pool-sensitivity-label create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('schema_name', type=str, help='The name of the schema.') + c.argument('table_name', type=str, help='The name of the table.') + c.argument('column_name', type=str, help='The name of the column.') + c.argument('label_name', type=str, help='The label name.') + c.argument('label_id', type=str, help='The label ID.') + c.argument('information_type', type=str, help='The information type.') + c.argument('information_type_id', type=str, help='The information type ID.') + + with self.argument_context('synapse sql-pool-sensitivity-label update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('schema_name', type=str, help='The name of the schema.', id_part='child_name_2') + c.argument('table_name', type=str, help='The name of the table.', id_part='child_name_3') + c.argument('column_name', type=str, help='The name of the column.', id_part='child_name_4') + c.argument('label_name', type=str, help='The label name.') + c.argument('label_id', type=str, help='The label ID.') + c.argument('information_type', type=str, help='The information type.') + c.argument('information_type_id', type=str, help='The information type ID.') + + with self.argument_context('synapse sql-pool-sensitivity-label delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('schema_name', type=str, help='The name of the schema.', id_part='child_name_2') + c.argument('table_name', type=str, help='The name of the table.', id_part='child_name_3') + c.argument('column_name', type=str, help='The name of the column.', id_part='child_name_4') + + with self.argument_context('synapse sql-pool-sensitivity-label disable-recommendation') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('schema_name', type=str, help='The name of the schema.', id_part='child_name_2') + c.argument('table_name', type=str, help='The name of the table.', id_part='child_name_3') + c.argument('column_name', type=str, help='The name of the column.', id_part='child_name_4') + + with self.argument_context('synapse sql-pool-sensitivity-label enable-recommendation') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('schema_name', type=str, help='The name of the schema.', id_part='child_name_2') + c.argument('table_name', type=str, help='The name of the table.', id_part='child_name_3') + c.argument('column_name', type=str, help='The name of the column.', id_part='child_name_4') + + with self.argument_context('synapse sql-pool-sensitivity-label list-current') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('filter_', options_list=['--filter'], type=str, help='An OData filter expression that filters ' + 'elements in the collection.') + + with self.argument_context('synapse sql-pool-sensitivity-label list-recommended') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('include_disabled_recommendations', arg_type=get_three_state_flag(), help='Specifies whether to ' + 'include disabled recommendations or not.') + c.argument('skip_token', type=str, help='An OData query option to indicate how many elements to skip in the ' + 'collection.') + c.argument('filter_', options_list=['--filter'], type=str, help='An OData filter expression that filters ' + 'elements in the collection.') + + with self.argument_context('synapse sql-pool-schema list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('filter_', options_list=['--filter'], type=str, help='An OData filter expression that filters ' + 'elements in the collection.') + + with self.argument_context('synapse sql-pool-table list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('schema_name', type=str, help='The name of the schema.') + c.argument('filter_', options_list=['--filter'], type=str, help='An OData filter expression that filters ' + 'elements in the collection.') + + with self.argument_context('synapse sql-pool-table-column list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('schema_name', type=str, help='The name of the schema.') + c.argument('table_name', type=str, help='The name of the table.') + c.argument('filter_', options_list=['--filter'], type=str, help='An OData filter expression that filters ' + 'elements in the collection.') + + with self.argument_context('synapse sql-pool-connection-policy show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool-vulnerability-assessment list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + + with self.argument_context('synapse sql-pool-vulnerability-assessment show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool-vulnerability-assessment create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('storage_container_path', type=str, help='A blob storage container path to hold the scan results ' + '(e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level ' + 'vulnerability assessment policy doesn\'t set') + c.argument('storage_container_sas_key', type=str, help='A shared access signature (SAS Key) that has write ' + 'access to the blob container specified in \'storageContainerPath\' parameter. If ' + '\'storageAccountAccessKey\' isn\'t specified, StorageContainerSasKey is required.') + c.argument('storage_account_access_key', type=str, help='Specifies the identifier key of the storage account ' + 'for vulnerability assessment scan results. If \'StorageContainerSasKey\' isn\'t specified, ' + 'storageAccountAccessKey is required.') + c.argument('recurring_scans', action=AddRecurringScans, nargs='+', help='The recurring scans settings') + + with self.argument_context('synapse sql-pool-vulnerability-assessment update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('storage_container_path', type=str, help='A blob storage container path to hold the scan results ' + '(e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level ' + 'vulnerability assessment policy doesn\'t set') + c.argument('storage_container_sas_key', type=str, help='A shared access signature (SAS Key) that has write ' + 'access to the blob container specified in \'storageContainerPath\' parameter. If ' + '\'storageAccountAccessKey\' isn\'t specified, StorageContainerSasKey is required.') + c.argument('storage_account_access_key', type=str, help='Specifies the identifier key of the storage account ' + 'for vulnerability assessment scan results. If \'StorageContainerSasKey\' isn\'t specified, ' + 'storageAccountAccessKey is required.') + c.argument('recurring_scans', action=AddRecurringScans, nargs='+', help='The recurring scans settings') + c.ignore('vulnerability_assessment_name', 'parameters') + + with self.argument_context('synapse sql-pool-vulnerability-assessment delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool-vulnerability-assessment-scan list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + + with self.argument_context('synapse sql-pool-vulnerability-assessment-scan export') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('scan_id', type=str, help='The vulnerability assessment scan Id of the scan to retrieve.', + id_part='child_name_3') + + with self.argument_context('synapse sql-pool-vulnerability-assessment-scan initiate-scan') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('scan_id', type=str, help='The vulnerability assessment scan Id of the scan to retrieve.', + id_part='child_name_3') + + with self.argument_context('synapse sql-pool-security-alert-policy show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + + with self.argument_context('synapse sql-pool-security-alert-policy create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('state', arg_type=get_enum_type(['New', 'Enabled', 'Disabled']), help='Specifies the state of the ' + 'policy, whether it is enabled or disabled or a policy has not been applied yet on the specific Sql ' + 'pool.') + c.argument('disabled_alerts', nargs='+', help='Specifies an array of alerts that are disabled. Allowed values ' + 'are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action') + c.argument('email_addresses', nargs='+', help='Specifies an array of e-mail addresses to which the alert is ' + 'sent.') + c.argument('email_account_admins', arg_type=get_three_state_flag(), help='Specifies that the alert is sent to ' + 'the account administrators.') + c.argument('storage_endpoint', type=str, help='Specifies the blob storage endpoint (e.g. ' + 'https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit ' + 'logs.') + c.argument('storage_account_access_key', type=str, help='Specifies the identifier key of the Threat Detection ' + 'audit storage account.') + c.argument('retention_days', type=int, help='Specifies the number of days to keep in the Threat Detection ' + 'audit logs.') + + with self.argument_context('synapse sql-pool-security-alert-policy update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('state', arg_type=get_enum_type(['New', 'Enabled', 'Disabled']), help='Specifies the state of the ' + 'policy, whether it is enabled or disabled or a policy has not been applied yet on the specific Sql ' + 'pool.') + c.argument('disabled_alerts', nargs='+', help='Specifies an array of alerts that are disabled. Allowed values ' + 'are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action') + c.argument('email_addresses', nargs='+', help='Specifies an array of e-mail addresses to which the alert is ' + 'sent.') + c.argument('email_account_admins', arg_type=get_three_state_flag(), help='Specifies that the alert is sent to ' + 'the account administrators.') + c.argument('storage_endpoint', type=str, help='Specifies the blob storage endpoint (e.g. ' + 'https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit ' + 'logs.') + c.argument('storage_account_access_key', type=str, help='Specifies the identifier key of the Threat Detection ' + 'audit storage account.') + c.argument('retention_days', type=int, help='Specifies the number of days to keep in the Threat Detection ' + 'audit logs.') + c.ignore('security_alert_policy_name', 'parameters') + + with self.argument_context('synapse sql-pool-vulnerability-assessment-rule-baseline create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('sql_pool_name', type=str, help='SQL pool name') + c.argument('rule_id', type=str, help='The vulnerability assessment rule ID.') + c.argument('baseline_name', arg_type=get_enum_type(['master', 'default']), help='The name of the vulnerability ' + 'assessment rule baseline (default implies a baseline on a Sql pool level rule and master for ' + 'workspace level rule).') + c.argument('baseline_results', action=AddBaselineResults, nargs='+', help='The rule baseline result') + + with self.argument_context('synapse sql-pool-vulnerability-assessment-rule-baseline update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('rule_id', type=str, help='The vulnerability assessment rule ID.', id_part='child_name_3') + c.argument('baseline_name', arg_type=get_enum_type(['master', 'default']), help='The name of the vulnerability ' + 'assessment rule baseline (default implies a baseline on a Sql pool level rule and master for ' + 'workspace level rule).', id_part='child_name_4') + c.argument('baseline_results', action=AddBaselineResults, nargs='+', help='The rule baseline result') + + with self.argument_context('synapse sql-pool-vulnerability-assessment-rule-baseline delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('sql_pool_name', type=str, help='SQL pool name', id_part='child_name_1') + c.argument('rule_id', type=str, help='The vulnerability assessment rule ID.', id_part='child_name_3') + c.argument('baseline_name', arg_type=get_enum_type(['master', 'default']), help='The name of the vulnerability ' + 'assessment rule baseline (default implies a baseline on a Sql pool level rule and master for ' + 'workspace level rule).', id_part='child_name_4') + + with self.argument_context('synapse workspace list') as c: + c.argument('resource_group_name', resource_group_name_type) + + with self.argument_context('synapse workspace show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'the workspace', id_part='name') + + with self.argument_context('synapse workspace create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'the workspace') + 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('default_data_lake_storage', action=AddDefaultDataLakeStorage, nargs='+', help='Workspace default ' + 'data lake storage account details') + c.argument('sql_administrator_login_password', type=str, help='SQL administrator login password') + c.argument('managed_resource_group_name', type=str, help='Workspace managed resource group. The resource group ' + 'name uniquely identifies the resource group within the user subscriptionId. The resource group ' + 'name must be no longer than 90 characters long, and must be alphanumeric characters ' + '(Char.IsLetterOrDigit()) and \'-\', \'_\', \'(\', \')\' and\'.\'. Note that the name cannot end ' + 'with \'.\'') + c.argument('sql_administrator_login', type=str, help='Login for workspace SQL active directory administrator') + c.argument('connectivity_endpoints', action=AddConnectivityEndpoints, nargs='+', help='Connectivity endpoints ' + 'Expect value: KEY1=VALUE1 KEY2=VALUE2 ...') + c.argument('managed_virtual_network', type=str, help='Setting this to \'default\' will ensure that all compute ' + 'for this workspace is in a virtual network managed on behalf of the user.') + c.argument('private_endpoint_connections', type=validate_file_or_dict, help='Private endpoint connections to ' + 'the workspace Expected value: json-string/json-file/@json-file.') + c.argument('compute_subnet_id', type=str, help='Subnet ID used for computes in workspace', arg_group='Virtual ' + 'Network Profile') + c.argument('type_', options_list=['--type'], arg_type=get_enum_type(['None', 'SystemAssigned']), help='The ' + 'type of managed identity for the workspace', arg_group='Identity') + + with self.argument_context('synapse workspace update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'the workspace', id_part='name') + c.argument('tags', tags_type) + c.argument('sql_administrator_login_password', type=str, help='SQL administrator login password') + c.argument('type_', options_list=['--type'], arg_type=get_enum_type(['None', 'SystemAssigned']), help='The ' + 'type of managed identity for the workspace', arg_group='Identity') + + with self.argument_context('synapse workspace delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'the workspace', id_part='name') + + with self.argument_context('synapse workspace wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'the workspace', id_part='name') + + with self.argument_context('synapse workspace-aad-admin show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + + with self.argument_context('synapse workspace-aad-admin create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('tenant_id', type=str, help='Tenant ID of the workspace active directory administrator') + c.argument('login', type=str, help='Login of the workspace active directory administrator') + c.argument('administrator_type', type=str, help='Workspace active directory administrator type') + c.argument('sid', type=str, help='Object ID of the workspace active directory administrator') + + with self.argument_context('synapse workspace-aad-admin update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('tenant_id', type=str, help='Tenant ID of the workspace active directory administrator') + c.argument('login', type=str, help='Login of the workspace active directory administrator') + c.argument('administrator_type', type=str, help='Workspace active directory administrator type') + c.argument('sid', type=str, help='Object ID of the workspace active directory administrator') + c.ignore('aad_admin_info') + + with self.argument_context('synapse workspace-aad-admin delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + + with self.argument_context('synapse workspace-aad-admin wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + + with self.argument_context('synapse workspace-managed-identity-sql-control-setting show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + + with self.argument_context('synapse workspace-managed-identity-sql-control-setting create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('desired_state', arg_type=get_enum_type(['Enabled', 'Disabled']), help='Desired state', + arg_group='Grant Sql Control To Managed Identity') + + with self.argument_context('synapse workspace-managed-identity-sql-control-setting update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('desired_state', arg_type=get_enum_type(['Enabled', 'Disabled']), help='Desired state', + arg_group='Grant Sql Control To Managed Identity') + c.ignore('grant_sql_control_to_managed_identity') + + with self.argument_context('synapse integration-runtime list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + + with self.argument_context('synapse integration-runtime show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', options_list=['--name', '-n', '--integration-runtime-name'], type=str, + help='Integration runtime name', id_part='child_name_1') + c.argument('if_none_match', type=str, help='ETag of the integration runtime entity. Should only be specified ' + 'for get. If the ETag matches the existing entity tag, or if * was provided, then no content will ' + 'be returned.') + + with self.argument_context('synapse integration-runtime create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('integration_runtime_name', options_list=['--name', '-n', '--integration-runtime-name'], type=str, + help='Integration runtime name') + c.argument('if_match', type=str, help='ETag of the integration runtime entity. Should only be specified for ' + 'update, for which it should match existing entity or can be * for unconditional update.') + c.argument('properties', type=validate_file_or_dict, help='Integration runtime properties. Expected value: ' + 'json-string/json-file/@json-file.') + + with self.argument_context('synapse integration-runtime update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', options_list=['--name', '-n', '--integration-runtime-name'], type=str, + help='Integration runtime name', id_part='child_name_1') + c.argument('auto_update', arg_type=get_enum_type(['On', 'Off']), help='Enables or disables the auto-update ' + 'feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189.' + '') + c.argument('update_delay_offset', type=str, help='The time offset (in hours) in the day, e.g., PT03H is 3 ' + 'hours. The integration runtime auto update will happen on that time.') + + with self.argument_context('synapse integration-runtime delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', options_list=['--name', '-n', '--integration-runtime-name'], type=str, + help='Integration runtime name', id_part='child_name_1') + + with self.argument_context('synapse integration-runtime start') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', options_list=['--name', '-n', '--integration-runtime-name'], type=str, + help='Integration runtime name', id_part='child_name_1') + + with self.argument_context('synapse integration-runtime stop') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', options_list=['--name', '-n', '--integration-runtime-name'], type=str, + help='Integration runtime name', id_part='child_name_1') + + with self.argument_context('synapse integration-runtime upgrade') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', options_list=['--name', '-n', '--integration-runtime-name'], type=str, + help='Integration runtime name', id_part='child_name_1') + + with self.argument_context('synapse integration-runtime wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', options_list=['--name', '-n', '--integration-runtime-name'], type=str, + help='Integration runtime name', id_part='child_name_1') + c.argument('if_none_match', type=str, help='ETag of the integration runtime entity. Should only be specified ' + 'for get. If the ETag matches the existing entity tag, or if * was provided, then no content will ' + 'be returned.') + + with self.argument_context('synapse integration-runtime-node-ip-address get') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + c.argument('node_name', type=str, help='Integration runtime node name', id_part='child_name_2') + + with self.argument_context('synapse integration-runtime-object-metadata get') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + c.argument('metadata_path', type=str, help='Metadata path.') + + with self.argument_context('synapse integration-runtime-object-metadata refresh') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + + with self.argument_context('synapse integration-runtime-node show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + c.argument('node_name', type=str, help='Integration runtime node name', id_part='child_name_2') + + with self.argument_context('synapse integration-runtime-node update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + c.argument('node_name', type=str, help='Integration runtime node name', id_part='child_name_2') + c.argument('concurrent_jobs_limit', type=int, help='The number of concurrent jobs permitted to run on the ' + 'integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed.') + + with self.argument_context('synapse integration-runtime-node delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + c.argument('node_name', type=str, help='Integration runtime node name', id_part='child_name_2') + + with self.argument_context('synapse integration-runtime-credentials sync') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + + with self.argument_context('synapse integration-runtime-connection-info get') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + + with self.argument_context('synapse integration-runtime-auth-key list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('integration_runtime_name', type=str, help='Integration runtime name') + + with self.argument_context('synapse integration-runtime-auth-key regenerate') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + c.argument('key_name', arg_type=get_enum_type(['authKey1', 'authKey2']), help='The name of the authentication ' + 'key to regenerate.') + + with self.argument_context('synapse integration-runtime-monitoring-data get') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + + with self.argument_context('synapse integration-runtime-status get') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('integration_runtime_name', type=str, help='Integration runtime name', id_part='child_name_1') + + with self.argument_context('synapse private-link-resource list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + + with self.argument_context('synapse private-link-resource show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('private_link_resource_name', options_list=['--name', '-n', '--private-link-resource-name'], + type=str, help='The name of the private link resource', id_part='child_name_1') + + with self.argument_context('synapse private-endpoint-connection list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + + with self.argument_context('synapse private-endpoint-connection show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam' + 'e'], type=str, help='The name of the private ' + 'endpoint connection.', id_part='child_name_1') + + with self.argument_context('synapse private-endpoint-connection create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace') + c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam' + 'e'], type=str, help='The name of the private ' + 'endpoint connection.') + + with self.argument_context('synapse private-endpoint-connection delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam' + 'e'], type=str, help='The name of the private ' + 'endpoint connection.', id_part='child_name_1') + + with self.argument_context('synapse private-endpoint-connection wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of the workspace', id_part='name') + c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam' + 'e'], type=str, help='The name of the private ' + 'endpoint connection.', id_part='child_name_1') + + with self.argument_context('synapse private-link-hub list') as c: + c.argument('resource_group_name', resource_group_name_type) + + with self.argument_context('synapse private-link-hub show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('private_link_hub_name', options_list=['--name', '-n', '--private-link-hub-name'], type=str, + help='The name of the privateLinkHub', id_part='name') + + with self.argument_context('synapse private-link-hub create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('private_link_hub_name', options_list=['--name', '-n', '--private-link-hub-name'], type=str, + help='The name of the privateLinkHub') + 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) + + with self.argument_context('synapse private-link-hub update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('private_link_hub_name', options_list=['--name', '-n', '--private-link-hub-name'], type=str, + help='The name of the privateLinkHub', id_part='name') + c.argument('tags', tags_type) + + with self.argument_context('synapse private-link-hub delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('private_link_hub_name', options_list=['--name', '-n', '--private-link-hub-name'], type=str, + help='The name of the privateLinkHub', id_part='name') diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_validators.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_validators.py new file mode 100644 index 000000000..b33a44c1e --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/_validators.py @@ -0,0 +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. +# -------------------------------------------------------------------------- diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/action.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/action.py new file mode 100644 index 000000000..29211f758 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/action.py @@ -0,0 +1,274 @@ +# -------------------------------------------------------------------------- +# 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 + +# pylint: disable=no-self-use + + +import argparse +from collections import defaultdict +from knack.util import CLIError + + +class AddAutoScale(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.auto_scale = action + + def get_action(self, values, option_string): + 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 == 'min-node-count': + d['min_node_count'] = v[0] + + elif kl == 'enabled': + d['enabled'] = v[0] + + elif kl == 'max-node-count': + d['max_node_count'] = v[0] + + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter auto-scale. All possible keys are: min-node-count,' + ' enabled, max-node-count'.format(k) + ) + + return d + + +class AddAutoPause(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.auto_pause = action + + def get_action(self, values, option_string): + 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 == 'delay-in-minutes': + d['delay_in_minutes'] = v[0] + + elif kl == 'enabled': + d['enabled'] = v[0] + + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter auto-pause. All possible keys are: delay-in-minutes,' + ' enabled'.format(k) + ) + + return d + + +class AddLibraryRequirements(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.library_requirements = action + + def get_action(self, values, option_string): + 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 == 'content': + d['content'] = v[0] + + elif kl == 'filename': + d['filename'] = v[0] + + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter library-requirements. All possible keys are: content,' + ' filename'.format(k) + ) + + return d + + +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): + 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 == 'tier': + d['tier'] = v[0] + + elif kl == 'name': + d['name'] = v[0] + + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter sku. All possible keys are: tier, name'.format(k) + ) + + return d + + +class AddRecurringScans(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.recurring_scans = action + + def get_action(self, values, option_string): + 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 == 'is-enabled': + d['is_enabled'] = v[0] + + elif kl == 'email-subscription-admins': + d['email_subscription_admins'] = v[0] + + elif kl == 'emails': + d['emails'] = v + + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter recurring-scans. All possible keys are: is-enabled,' + ' email-subscription-admins, emails'.format(k) + ) + + return d + + +class AddBaselineResults(argparse._AppendAction): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + super(AddBaselineResults, self).__call__(parser, namespace, action, option_string) + + def get_action(self, values, option_string): + 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 == 'result': + d['result'] = v + + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter baseline-results. All possible keys are: result' + .format(k) + ) + + return d + + +class AddDefaultDataLakeStorage(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.default_data_lake_storage = action + + def get_action(self, values, option_string): + 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 == 'account-url': + d['account_url'] = v[0] + + elif kl == 'filesystem': + d['filesystem'] = v[0] + + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter default-data-lake-storage. All possible keys are:' + ' account-url, filesystem'.format(k) + ) + + return d + + +class AddConnectivityEndpoints(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.connectivity_endpoints = action + + def get_action(self, values, option_string): + 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: + v = properties[k] + + d[k] = v[0] + + return d diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/commands.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/commands.py new file mode 100644 index 000000000..87140f8db --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/commands.py @@ -0,0 +1,665 @@ +# -------------------------------------------------------------------------- +# 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 +# pylint: disable=bad-continuation +# pylint: disable=line-too-long + +from azure.cli.core.commands import CliCommandType +from ..generated._client_factory import ( + cf_big_data_pool, + cf_operation, + cf_ip_firewall_rule, + cf_sqlpool, + cf_sqlpool_metadata_sync_config, + cf_sqlpool_operation_result, + cf_sqlpool_geo_backup_policy, + cf_sqlpool_data_warehouse_user_activity, + cf_sqlpool_restore_point, + cf_sqlpool_replication_link, + cf_sqlpool_transparent_data_encryption, + cf_sqlpool_blob_auditing_policy, + cf_sqlpool_operation, + cf_sqlpool_usage, + cf_sqlpool_sensitivity_label, + cf_sqlpool_schema, + cf_sqlpool_table, + cf_sqlpool_table_column, + cf_sqlpool_connection_policy, + cf_sqlpool_vulnerability_assessment, + cf_sqlpool_vulnerability_assessment_scan, + cf_sqlpool_security_alert_policy, + cf_sqlpool_vulnerability_assessment_rule_baseline, + cf_workspace, + cf_workspace_aadadmin, + cf_workspace_managed_identity_sqlcontrol_setting, + cf_integration_runtime, + cf_integration_runtime_node_ip_address, + cf_integration_runtime_object_metadata, + cf_integration_runtime_node, + cf_integration_runtime_credentials, + cf_integration_runtime_connection_info, + cf_integration_runtime_auth_key, + cf_integration_runtime_monitoring_data, + cf_integration_runtime_status, + cf_private_link_resource, + cf_private_endpoint_connection, + cf_private_link_hub, +) + + +synapse_big_data_pool = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._big_data_pools_operations#BigDataPoolsOperations.{}', + client_factory=cf_big_data_pool, +) + + +synapse_integration_runtime = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._integration_runtimes_operations#IntegrationRuntimesOperations.{}', + client_factory=cf_integration_runtime, +) + + +synapse_integration_runtime_auth_key = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._integration_runtime_auth_keys_operations#IntegrationRuntimeAuthKeysOperations.{}', + client_factory=cf_integration_runtime_auth_key, +) + + +synapse_integration_runtime_connection_info = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._integration_runtime_connection_infos_operations#IntegrationRuntimeConnectionInfosOperations.{}', + client_factory=cf_integration_runtime_connection_info, +) + + +synapse_integration_runtime_credentials = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._integration_runtime_credentials_operations#IntegrationRuntimeCredentialsOperations.{}', + client_factory=cf_integration_runtime_credentials, +) + + +synapse_integration_runtime_monitoring_data = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._integration_runtime_monitoring_data_operations#IntegrationRuntimeMonitoringDataOperations.{}', + client_factory=cf_integration_runtime_monitoring_data, +) + + +synapse_integration_runtime_node = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._integration_runtime_nodes_operations#IntegrationRuntimeNodesOperations.{}' + ), + client_factory=cf_integration_runtime_node, +) + + +synapse_integration_runtime_node_ip_address = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._integration_runtime_node_ip_address_operations#IntegrationRuntimeNodeIpAddressOperations.{}', + client_factory=cf_integration_runtime_node_ip_address, +) + + +synapse_integration_runtime_object_metadata = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._integration_runtime_object_metadata_operations#IntegrationRuntimeObjectMetadataOperations.{}', + client_factory=cf_integration_runtime_object_metadata, +) + + +synapse_integration_runtime_status = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._integration_runtime_status_operations#IntegrationRuntimeStatusOperations.{}' + ), + client_factory=cf_integration_runtime_status, +) + + +synapse_ip_firewall_rule = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._ip_firewall_rules_operations#IpFirewallRulesOperations.{}', + client_factory=cf_ip_firewall_rule, +) + + +synapse_operation = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._operations_operations#Operations.{}', client_factory=cf_operation +) + + +synapse_private_endpoint_connection = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._private_endpoint_connections_operations#PrivateEndpointConnectionsOperations.{}' + ), + client_factory=cf_private_endpoint_connection, +) + + +synapse_private_link_hub = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._private_link_hubs_operations#PrivateLinkHubsOperations.{}', + client_factory=cf_private_link_hub, +) + + +synapse_private_link_resource = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._private_link_resources_operations#PrivateLinkResourcesOperations.{}' + ), + client_factory=cf_private_link_resource, +) + + +synapse_sqlpool = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pools_operations#SqlPoolsOperations.{}', + client_factory=cf_sqlpool, +) + + +synapse_sqlpool_blob_auditing_policy = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_blob_auditing_policies_operations#SqlPoolBlobAuditingPoliciesOperations.{}', + client_factory=cf_sqlpool_blob_auditing_policy, +) + + +synapse_sqlpool_connection_policy = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._sql_pool_connection_policies_operations#SqlPoolConnectionPoliciesOperations.{}' + ), + client_factory=cf_sqlpool_connection_policy, +) + + +synapse_sqlpool_data_warehouse_user_activity = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_data_warehouse_user_activities_operations#SqlPoolDataWarehouseUserActivitiesOperations.{}', + client_factory=cf_sqlpool_data_warehouse_user_activity, +) + + +synapse_sqlpool_geo_backup_policy = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._sql_pool_geo_backup_policies_operations#SqlPoolGeoBackupPoliciesOperations.{}' + ), + client_factory=cf_sqlpool_geo_backup_policy, +) + + +synapse_sqlpool_metadata_sync_config = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_metadata_sync_configs_operations#SqlPoolMetadataSyncConfigsOperations.{}', + client_factory=cf_sqlpool_metadata_sync_config, +) + + +synapse_sqlpool_operation = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_operations_operations#SqlPoolOperationsOperations.{}', + client_factory=cf_sqlpool_operation, +) + + +synapse_sqlpool_operation_result = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._sql_pool_operation_results_operations#SqlPoolOperationResultsOperations.{}' + ), + client_factory=cf_sqlpool_operation_result, +) + + +synapse_sqlpool_replication_link = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._sql_pool_replication_links_operations#SqlPoolReplicationLinksOperations.{}' + ), + client_factory=cf_sqlpool_replication_link, +) + + +synapse_sqlpool_restore_point = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._sql_pool_restore_points_operations#SqlPoolRestorePointsOperations.{}' + ), + client_factory=cf_sqlpool_restore_point, +) + + +synapse_sqlpool_schema = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_schemas_operations#SqlPoolSchemasOperations.{}', + client_factory=cf_sqlpool_schema, +) + + +synapse_sqlpool_security_alert_policy = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_security_alert_policies_operations#SqlPoolSecurityAlertPoliciesOperations.{}', + client_factory=cf_sqlpool_security_alert_policy, +) + + +synapse_sqlpool_sensitivity_label = CliCommandType( + operations_tmpl=( + 'azure.mgmt.synapse.operations._sql_pool_sensitivity_labels_operations#SqlPoolSensitivityLabelsOperations.{}' + ), + client_factory=cf_sqlpool_sensitivity_label, +) + + +synapse_sqlpool_table = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_tables_operations#SqlPoolTablesOperations.{}', + client_factory=cf_sqlpool_table, +) + + +synapse_sqlpool_table_column = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_table_columns_operations#SqlPoolTableColumnsOperations.{}', + client_factory=cf_sqlpool_table_column, +) + + +synapse_sqlpool_transparent_data_encryption = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_transparent_data_encryptions_operations#SqlPoolTransparentDataEncryptionsOperations.{}', + client_factory=cf_sqlpool_transparent_data_encryption, +) + + +synapse_sqlpool_usage = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_usages_operations#SqlPoolUsagesOperations.{}', + client_factory=cf_sqlpool_usage, +) + + +synapse_sqlpool_vulnerability_assessment = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_vulnerability_assessments_operations#SqlPoolVulnerabilityAssessmentsOperations.{}', + client_factory=cf_sqlpool_vulnerability_assessment, +) + + +synapse_sqlpool_vulnerability_assessment_rule_baseline = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_vulnerability_assessment_rule_baselines_operations#SqlPoolVulnerabilityAssessmentRuleBaselinesOperations.{}', + client_factory=cf_sqlpool_vulnerability_assessment_rule_baseline, +) + + +synapse_sqlpool_vulnerability_assessment_scan = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._sql_pool_vulnerability_assessment_scans_operations#SqlPoolVulnerabilityAssessmentScansOperations.{}', + client_factory=cf_sqlpool_vulnerability_assessment_scan, +) + + +synapse_workspace = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._workspaces_operations#WorkspacesOperations.{}', + client_factory=cf_workspace, +) + + +synapse_workspace_aadadmin = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._workspace_aad_admins_operations#WorkspaceAadAdminsOperations.{}', + client_factory=cf_workspace_aadadmin, +) + + +synapse_workspace_managed_identity_sqlcontrol_setting = CliCommandType( + operations_tmpl='azure.mgmt.synapse.operations._workspace_managed_identity_sql_control_settings_operations#WorkspaceManagedIdentitySqlControlSettingsOperations.{}', + client_factory=cf_workspace_managed_identity_sqlcontrol_setting, +) + + +def load_command_table(self, _): + + with self.command_group( + 'synapse big-data-pool', synapse_big_data_pool, client_factory=cf_big_data_pool, is_experimental=True + ) as g: + g.custom_command('list', 'synapse_big_data_pool_list') + g.custom_show_command('show', 'synapse_big_data_pool_show') + g.custom_command('create', 'synapse_big_data_pool_create', supports_no_wait=True) + g.custom_command('update', 'synapse_big_data_pool_update') + g.custom_command('delete', 'synapse_big_data_pool_delete', supports_no_wait=True, confirmation=True) + g.custom_wait_command('wait', 'synapse_big_data_pool_show') + + with self.command_group( + 'synapse integration-runtime', + synapse_integration_runtime, + client_factory=cf_integration_runtime, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_integration_runtime_list') + g.custom_show_command('show', 'synapse_integration_runtime_show') + g.custom_command('create', 'synapse_integration_runtime_create', supports_no_wait=True) + g.custom_command('update', 'synapse_integration_runtime_update') + g.custom_command('delete', 'synapse_integration_runtime_delete', supports_no_wait=True, confirmation=True) + g.custom_command('start', 'synapse_integration_runtime_start') + g.custom_command('stop', 'synapse_integration_runtime_stop') + g.custom_command('upgrade', 'synapse_integration_runtime_upgrade') + g.custom_wait_command('wait', 'synapse_integration_runtime_show') + + with self.command_group( + 'synapse integration-runtime-auth-key', + synapse_integration_runtime_auth_key, + client_factory=cf_integration_runtime_auth_key, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_integration_runtime_auth_key_list') + g.custom_command('regenerate', 'synapse_integration_runtime_auth_key_regenerate') + + with self.command_group( + 'synapse integration-runtime-connection-info', + synapse_integration_runtime_connection_info, + client_factory=cf_integration_runtime_connection_info, + is_experimental=True, + ) as g: + g.custom_command('get', 'synapse_integration_runtime_connection_info_get') + + with self.command_group( + 'synapse integration-runtime-credentials', + synapse_integration_runtime_credentials, + client_factory=cf_integration_runtime_credentials, + is_experimental=True, + ) as g: + g.custom_command('sync', 'synapse_integration_runtime_credentials_sync') + + with self.command_group( + 'synapse integration-runtime-monitoring-data', + synapse_integration_runtime_monitoring_data, + client_factory=cf_integration_runtime_monitoring_data, + is_experimental=True, + ) as g: + g.custom_command('get', 'synapse_integration_runtime_monitoring_data_get') + + with self.command_group( + 'synapse integration-runtime-node', + synapse_integration_runtime_node, + client_factory=cf_integration_runtime_node, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_integration_runtime_node_show') + g.custom_command('update', 'synapse_integration_runtime_node_update') + g.custom_command('delete', 'synapse_integration_runtime_node_delete', confirmation=True) + + with self.command_group( + 'synapse integration-runtime-node-ip-address', + synapse_integration_runtime_node_ip_address, + client_factory=cf_integration_runtime_node_ip_address, + is_experimental=True, + ) as g: + g.custom_command('get', 'synapse_integration_runtime_node_ip_address_get') + + with self.command_group( + 'synapse integration-runtime-object-metadata', + synapse_integration_runtime_object_metadata, + client_factory=cf_integration_runtime_object_metadata, + is_experimental=True, + ) as g: + g.custom_command('get', 'synapse_integration_runtime_object_metadata_get') + g.custom_command('refresh', 'synapse_integration_runtime_object_metadata_refresh') + + with self.command_group( + 'synapse integration-runtime-status', + synapse_integration_runtime_status, + client_factory=cf_integration_runtime_status, + is_experimental=True, + ) as g: + g.custom_command('get', 'synapse_integration_runtime_status_get') + + with self.command_group( + 'synapse ip-firewall-rule', synapse_ip_firewall_rule, client_factory=cf_ip_firewall_rule, is_experimental=True + ) as g: + g.custom_command('list', 'synapse_ip_firewall_rule_list') + g.custom_show_command('show', 'synapse_ip_firewall_rule_show') + g.custom_command('create', 'synapse_ip_firewall_rule_create', supports_no_wait=True) + g.custom_command('update', 'synapse_ip_firewall_rule_update', supports_no_wait=True) + g.custom_command('delete', 'synapse_ip_firewall_rule_delete', supports_no_wait=True, confirmation=True) + g.custom_command('replace-all', 'synapse_ip_firewall_rule_replace_all', supports_no_wait=True) + g.custom_wait_command('wait', 'synapse_ip_firewall_rule_show') + + with self.command_group( + 'synapse operation', synapse_operation, client_factory=cf_operation, is_experimental=True + ) as g: + g.custom_command('show-azure-async-header-result', 'synapse_operation_show_azure_async_header_result') + g.custom_command('show-location-header-result', 'synapse_operation_show_location_header_result') + + with self.command_group( + 'synapse private-endpoint-connection', + synapse_private_endpoint_connection, + client_factory=cf_private_endpoint_connection, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_private_endpoint_connection_list') + g.custom_show_command('show', 'synapse_private_endpoint_connection_show') + g.custom_command('create', 'synapse_private_endpoint_connection_create', supports_no_wait=True) + g.custom_command( + 'delete', 'synapse_private_endpoint_connection_delete', supports_no_wait=True, confirmation=True + ) + g.custom_wait_command('wait', 'synapse_private_endpoint_connection_show') + + with self.command_group( + 'synapse private-link-hub', synapse_private_link_hub, client_factory=cf_private_link_hub, is_experimental=True + ) as g: + g.custom_command('list', 'synapse_private_link_hub_list') + g.custom_show_command('show', 'synapse_private_link_hub_show') + g.custom_command('create', 'synapse_private_link_hub_create') + g.custom_command('update', 'synapse_private_link_hub_update') + g.custom_command('delete', 'synapse_private_link_hub_delete', confirmation=True) + + with self.command_group( + 'synapse private-link-resource', + synapse_private_link_resource, + client_factory=cf_private_link_resource, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_private_link_resource_list') + g.custom_show_command('show', 'synapse_private_link_resource_show') + + with self.command_group('synapse sql-pool', synapse_sqlpool, client_factory=cf_sqlpool, is_experimental=True) as g: + g.custom_command('list', 'synapse_sql_pool_list') + g.custom_show_command('show', 'synapse_sql_pool_show') + g.custom_command('create', 'synapse_sql_pool_create', supports_no_wait=True) + g.custom_command('update', 'synapse_sql_pool_update') + g.custom_command('delete', 'synapse_sql_pool_delete', supports_no_wait=True, confirmation=True) + g.custom_command('pause', 'synapse_sql_pool_pause', supports_no_wait=True) + g.custom_command('rename', 'synapse_sql_pool_rename') + g.custom_command('resume', 'synapse_sql_pool_resume', supports_no_wait=True) + g.custom_wait_command('wait', 'synapse_sql_pool_show') + + with self.command_group( + 'synapse sql-pool-blob-auditing-policy', + synapse_sqlpool_blob_auditing_policy, + client_factory=cf_sqlpool_blob_auditing_policy, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_sql_pool_blob_auditing_policy_show') + g.custom_command('create', 'synapse_sql_pool_blob_auditing_policy_create') + g.generic_update_command('update', custom_func_name='synapse_sql_pool_blob_auditing_policy_update') + + with self.command_group( + 'synapse sql-pool-connection-policy', + synapse_sqlpool_connection_policy, + client_factory=cf_sqlpool_connection_policy, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_sql_pool_connection_policy_show') + + with self.command_group( + 'synapse sql-pool-data-warehouse-user-activity', + synapse_sqlpool_data_warehouse_user_activity, + client_factory=cf_sqlpool_data_warehouse_user_activity, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_sql_pool_data_warehouse_user_activity_show') + + with self.command_group( + 'synapse sql-pool-geo-backup-policy', + synapse_sqlpool_geo_backup_policy, + client_factory=cf_sqlpool_geo_backup_policy, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_sql_pool_geo_backup_policy_show') + + with self.command_group( + 'synapse sql-pool-metadata-sync-config', + synapse_sqlpool_metadata_sync_config, + client_factory=cf_sqlpool_metadata_sync_config, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_sql_pool_metadata_sync_config_show') + g.custom_command('create', 'synapse_sql_pool_metadata_sync_config_create') + + with self.command_group( + 'synapse sql-pool-operation', + synapse_sqlpool_operation, + client_factory=cf_sqlpool_operation, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_sql_pool_operation_list') + + with self.command_group( + 'synapse sql-pool-operation-result', + synapse_sqlpool_operation_result, + client_factory=cf_sqlpool_operation_result, + is_experimental=True, + ) as g: + g.custom_command('show-location-header-result', 'synapse_sql_pool_operation_result_show_location_header_result') + + with self.command_group( + 'synapse sql-pool-replication-link', + synapse_sqlpool_replication_link, + client_factory=cf_sqlpool_replication_link, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_sql_pool_replication_link_list') + + with self.command_group( + 'synapse sql-pool-restore-point', + synapse_sqlpool_restore_point, + client_factory=cf_sqlpool_restore_point, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_sql_pool_restore_point_list') + g.custom_command('create', 'synapse_sql_pool_restore_point_create') + + with self.command_group( + 'synapse sql-pool-schema', synapse_sqlpool_schema, client_factory=cf_sqlpool_schema, is_experimental=True + ) as g: + g.custom_command('list', 'synapse_sql_pool_schema_list') + + with self.command_group( + 'synapse sql-pool-security-alert-policy', + synapse_sqlpool_security_alert_policy, + client_factory=cf_sqlpool_security_alert_policy, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_sql_pool_security_alert_policy_show') + g.custom_command('create', 'synapse_sql_pool_security_alert_policy_create') + g.generic_update_command('update', custom_func_name='synapse_sql_pool_security_alert_policy_update') + + with self.command_group( + 'synapse sql-pool-sensitivity-label', + synapse_sqlpool_sensitivity_label, + client_factory=cf_sqlpool_sensitivity_label, + is_experimental=True, + ) as g: + g.custom_command('create', 'synapse_sql_pool_sensitivity_label_create') + g.custom_command('update', 'synapse_sql_pool_sensitivity_label_update') + g.custom_command('delete', 'synapse_sql_pool_sensitivity_label_delete', confirmation=True) + g.custom_command('disable-recommendation', 'synapse_sql_pool_sensitivity_label_disable_recommendation') + g.custom_command('enable-recommendation', 'synapse_sql_pool_sensitivity_label_enable_recommendation') + g.custom_command('list-current', 'synapse_sql_pool_sensitivity_label_list_current') + g.custom_command('list-recommended', 'synapse_sql_pool_sensitivity_label_list_recommended') + + with self.command_group( + 'synapse sql-pool-table', synapse_sqlpool_table, client_factory=cf_sqlpool_table, is_experimental=True + ) as g: + g.custom_command('list', 'synapse_sql_pool_table_list') + + with self.command_group( + 'synapse sql-pool-table-column', + synapse_sqlpool_table_column, + client_factory=cf_sqlpool_table_column, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_sql_pool_table_column_list') + + with self.command_group( + 'synapse sql-pool-transparent-data-encryption', + synapse_sqlpool_transparent_data_encryption, + client_factory=cf_sqlpool_transparent_data_encryption, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_sql_pool_transparent_data_encryption_show') + g.custom_command('create', 'synapse_sql_pool_transparent_data_encryption_create') + g.custom_command('update', 'synapse_sql_pool_transparent_data_encryption_update') + + with self.command_group( + 'synapse sql-pool-usage', synapse_sqlpool_usage, client_factory=cf_sqlpool_usage, is_experimental=True + ) as g: + g.custom_command('list', 'synapse_sql_pool_usage_list') + + with self.command_group( + 'synapse sql-pool-vulnerability-assessment', + synapse_sqlpool_vulnerability_assessment, + client_factory=cf_sqlpool_vulnerability_assessment, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_sql_pool_vulnerability_assessment_list') + g.custom_show_command('show', 'synapse_sql_pool_vulnerability_assessment_show') + g.custom_command('create', 'synapse_sql_pool_vulnerability_assessment_create') + g.generic_update_command('update', custom_func_name='synapse_sql_pool_vulnerability_assessment_update') + g.custom_command('delete', 'synapse_sql_pool_vulnerability_assessment_delete', confirmation=True) + + with self.command_group( + 'synapse sql-pool-vulnerability-assessment-rule-baseline', + synapse_sqlpool_vulnerability_assessment_rule_baseline, + client_factory=cf_sqlpool_vulnerability_assessment_rule_baseline, + is_experimental=True, + ) as g: + g.custom_command('create', 'synapse_sql_pool_vulnerability_assessment_rule_baseline_create') + g.custom_command('update', 'synapse_sql_pool_vulnerability_assessment_rule_baseline_update') + g.custom_command('delete', 'synapse_sql_pool_vulnerability_assessment_rule_baseline_delete', confirmation=True) + + with self.command_group( + 'synapse sql-pool-vulnerability-assessment-scan', + synapse_sqlpool_vulnerability_assessment_scan, + client_factory=cf_sqlpool_vulnerability_assessment_scan, + is_experimental=True, + ) as g: + g.custom_command('list', 'synapse_sql_pool_vulnerability_assessment_scan_list') + g.custom_command('export', 'synapse_sql_pool_vulnerability_assessment_scan_export') + g.custom_command('initiate-scan', 'synapse_sql_pool_vulnerability_assessment_scan_initiate_scan') + + with self.command_group( + 'synapse workspace', synapse_workspace, client_factory=cf_workspace, is_experimental=True + ) as g: + g.custom_command('list', 'synapse_workspace_list') + g.custom_show_command('show', 'synapse_workspace_show') + g.custom_command('create', 'synapse_workspace_create', supports_no_wait=True) + g.custom_command('update', 'synapse_workspace_update', supports_no_wait=True) + g.custom_command('delete', 'synapse_workspace_delete', supports_no_wait=True, confirmation=True) + g.custom_wait_command('wait', 'synapse_workspace_show') + + with self.command_group( + 'synapse workspace-aad-admin', + synapse_workspace_aadadmin, + client_factory=cf_workspace_aadadmin, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_workspace_aad_admin_show') + g.custom_command('create', 'synapse_workspace_aad_admin_create', supports_no_wait=True) + g.generic_update_command( + 'update', + supports_no_wait=True, + custom_func_name='synapse_workspace_aad_admin_update', + setter_arg_name='aad_admin_info', + ) + g.custom_command('delete', 'synapse_workspace_aad_admin_delete', supports_no_wait=True, confirmation=True) + g.custom_wait_command('wait', 'synapse_workspace_aad_admin_show') + + with self.command_group( + 'synapse workspace-managed-identity-sql-control-setting', + synapse_workspace_managed_identity_sqlcontrol_setting, + client_factory=cf_workspace_managed_identity_sqlcontrol_setting, + is_experimental=True, + ) as g: + g.custom_show_command('show', 'synapse_workspace_managed_identity_sql_control_setting_show') + g.custom_command('create', 'synapse_workspace_managed_identity_sql_control_setting_create') + g.generic_update_command( + 'update', + custom_func_name='synapse_workspace_managed_identity_sql_control_setting_update', + setter_arg_name='grant_sql_control_to_managed_identity', + ) diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/custom.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/custom.py new file mode 100644 index 000000000..24bdb2458 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/generated/custom.py @@ -0,0 +1,1454 @@ +# -------------------------------------------------------------------------- +# 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 azure.cli.core.util import sdk_no_wait + + +def synapse_big_data_pool_list(client, + resource_group_name, + workspace_name): + return client.list_by_workspace(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_big_data_pool_show(client, + resource_group_name, + workspace_name, + big_data_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + big_data_pool_name=big_data_pool_name) + + +def synapse_big_data_pool_create(client, + resource_group_name, + workspace_name, + big_data_pool_name, + location, + force=None, + tags=None, + provisioning_state=None, + auto_scale=None, + creation_date=None, + auto_pause=None, + spark_events_folder=None, + node_count=None, + library_requirements=None, + spark_version=None, + default_spark_log_folder=None, + node_size=None, + node_size_family=None, + no_wait=False): + big_data_pool_info = {} + if tags is not None: + big_data_pool_info['tags'] = tags + big_data_pool_info['location'] = location + if provisioning_state is not None: + big_data_pool_info['provisioning_state'] = provisioning_state + if auto_scale is not None: + big_data_pool_info['auto_scale'] = auto_scale + if creation_date is not None: + big_data_pool_info['creation_date'] = creation_date + if auto_pause is not None: + big_data_pool_info['auto_pause'] = auto_pause + if spark_events_folder is not None: + big_data_pool_info['spark_events_folder'] = spark_events_folder + if node_count is not None: + big_data_pool_info['node_count'] = node_count + if library_requirements is not None: + big_data_pool_info['library_requirements'] = library_requirements + if spark_version is not None: + big_data_pool_info['spark_version'] = spark_version + if default_spark_log_folder is not None: + big_data_pool_info['default_spark_log_folder'] = default_spark_log_folder + if node_size is not None: + big_data_pool_info['node_size'] = node_size + if node_size_family is not None: + big_data_pool_info['node_size_family'] = node_size_family + return sdk_no_wait(no_wait, + client.create_or_update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + big_data_pool_name=big_data_pool_name, + force=False if force is None else force, + big_data_pool_info=big_data_pool_info) + + +def synapse_big_data_pool_update(client, + resource_group_name, + workspace_name, + big_data_pool_name, + tags=None): + return client.update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + big_data_pool_name=big_data_pool_name, + tags=tags) + + +def synapse_big_data_pool_delete(client, + resource_group_name, + workspace_name, + big_data_pool_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + big_data_pool_name=big_data_pool_name) + + +def synapse_operation_show_azure_async_header_result(client, + resource_group_name, + workspace_name, + operation_id): + return client.get_azure_async_header_result(resource_group_name=resource_group_name, + workspace_name=workspace_name, + operation_id=operation_id) + + +def synapse_operation_show_location_header_result(client, + resource_group_name, + workspace_name, + operation_id): + return client.get_location_header_result(resource_group_name=resource_group_name, + workspace_name=workspace_name, + operation_id=operation_id) + + +def synapse_ip_firewall_rule_list(client, + resource_group_name, + workspace_name): + return client.list_by_workspace(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_ip_firewall_rule_show(client, + resource_group_name, + workspace_name, + rule_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + rule_name=rule_name) + + +def synapse_ip_firewall_rule_create(client, + resource_group_name, + workspace_name, + rule_name, + end_ip_address=None, + start_ip_address=None, + no_wait=False): + return sdk_no_wait(no_wait, + client.create_or_update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + rule_name=rule_name, + end_ip_address=end_ip_address, + start_ip_address=start_ip_address) + + +def synapse_ip_firewall_rule_update(client, + resource_group_name, + workspace_name, + rule_name, + end_ip_address=None, + start_ip_address=None, + no_wait=False): + return sdk_no_wait(no_wait, + client.create_or_update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + rule_name=rule_name, + end_ip_address=end_ip_address, + start_ip_address=start_ip_address) + + +def synapse_ip_firewall_rule_delete(client, + resource_group_name, + workspace_name, + rule_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + rule_name=rule_name) + + +def synapse_ip_firewall_rule_replace_all(client, + resource_group_name, + workspace_name, + ip_firewall_rules=None, + no_wait=False): + return sdk_no_wait(no_wait, + client.replace_all, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + ip_firewall_rules=ip_firewall_rules) + + +def synapse_sql_pool_list(client, + resource_group_name, + workspace_name): + return client.list_by_workspace(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_sql_pool_show(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_create(client, + resource_group_name, + workspace_name, + sql_pool_name, + location, + tags=None, + sku=None, + max_size_bytes=None, + collation=None, + source_database_id=None, + recoverable_database_id=None, + provisioning_state=None, + status=None, + restore_point_in_time=None, + create_mode=None, + creation_date=None, + no_wait=False): + sql_pool_info = {} + if tags is not None: + sql_pool_info['tags'] = tags + sql_pool_info['location'] = location + if sku is not None: + sql_pool_info['sku'] = sku + if max_size_bytes is not None: + sql_pool_info['max_size_bytes'] = max_size_bytes + if collation is not None: + sql_pool_info['collation'] = collation + if source_database_id is not None: + sql_pool_info['source_database_id'] = source_database_id + if recoverable_database_id is not None: + sql_pool_info['recoverable_database_id'] = recoverable_database_id + if provisioning_state is not None: + sql_pool_info['provisioning_state'] = provisioning_state + if status is not None: + sql_pool_info['status'] = status + if restore_point_in_time is not None: + sql_pool_info['restore_point_in_time'] = restore_point_in_time + if create_mode is not None: + sql_pool_info['create_mode'] = create_mode + if creation_date is not None: + sql_pool_info['creation_date'] = creation_date + return sdk_no_wait(no_wait, + client.create, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + sql_pool_info=sql_pool_info) + + +def synapse_sql_pool_update(client, + resource_group_name, + workspace_name, + sql_pool_name, + tags=None, + location=None, + sku=None, + max_size_bytes=None, + collation=None, + source_database_id=None, + recoverable_database_id=None, + provisioning_state=None, + status=None, + restore_point_in_time=None, + create_mode=None, + creation_date=None): + sql_pool_info = {} + if tags is not None: + sql_pool_info['tags'] = tags + if location is not None: + sql_pool_info['location'] = location + if sku is not None: + sql_pool_info['sku'] = sku + if max_size_bytes is not None: + sql_pool_info['max_size_bytes'] = max_size_bytes + if collation is not None: + sql_pool_info['collation'] = collation + if source_database_id is not None: + sql_pool_info['source_database_id'] = source_database_id + if recoverable_database_id is not None: + sql_pool_info['recoverable_database_id'] = recoverable_database_id + if provisioning_state is not None: + sql_pool_info['provisioning_state'] = provisioning_state + if status is not None: + sql_pool_info['status'] = status + if restore_point_in_time is not None: + sql_pool_info['restore_point_in_time'] = restore_point_in_time + if create_mode is not None: + sql_pool_info['create_mode'] = create_mode + if creation_date is not None: + sql_pool_info['creation_date'] = creation_date + return client.update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + sql_pool_info=sql_pool_info) + + +def synapse_sql_pool_delete(client, + resource_group_name, + workspace_name, + sql_pool_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_pause(client, + resource_group_name, + workspace_name, + sql_pool_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.pause, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_rename(client, + resource_group_name, + workspace_name, + sql_pool_name, + id_): + return client.rename(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + id=id_) + + +def synapse_sql_pool_resume(client, + resource_group_name, + workspace_name, + sql_pool_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.resume, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_metadata_sync_config_show(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_metadata_sync_config_create(client, + resource_group_name, + workspace_name, + sql_pool_name, + enabled=None): + return client.create(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + enabled=enabled) + + +def synapse_sql_pool_operation_result_show_location_header_result(client, + resource_group_name, + workspace_name, + sql_pool_name, + operation_id): + return client.get_location_header_result(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + operation_id=operation_id) + + +def synapse_sql_pool_geo_backup_policy_show(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + geo_backup_policy_name="Default") + + +def synapse_sql_pool_data_warehouse_user_activity_show(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + data_warehouse_user_activity_name="current") + + +def synapse_sql_pool_restore_point_list(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_restore_point_create(client, + resource_group_name, + workspace_name, + sql_pool_name, + restore_point_label): + return client.create(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + restore_point_label=restore_point_label) + + +def synapse_sql_pool_replication_link_list(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_transparent_data_encryption_show(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + transparent_data_encryption_name="current") + + +def synapse_sql_pool_transparent_data_encryption_create(client, + resource_group_name, + workspace_name, + sql_pool_name, + status=None): + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + transparent_data_encryption_name="current", + status=status) + + +def synapse_sql_pool_transparent_data_encryption_update(client, + resource_group_name, + workspace_name, + sql_pool_name, + status=None): + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + transparent_data_encryption_name="current", + status=status) + + +def synapse_sql_pool_blob_auditing_policy_show(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_blob_auditing_policy_create(client, + resource_group_name, + workspace_name, + sql_pool_name, + state=None, + storage_endpoint=None, + storage_account_access_key=None, + retention_days=None, + audit_actions_and_groups=None, + storage_account_subscription_id=None, + is_storage_secondary_key_in_use=None, + is_azure_monitor_target_enabled=None): + parameters = {} + if state is not None: + parameters['state'] = state + if storage_endpoint is not None: + parameters['storage_endpoint'] = storage_endpoint + if storage_account_access_key is not None: + parameters['storage_account_access_key'] = storage_account_access_key + if retention_days is not None: + parameters['retention_days'] = retention_days + if audit_actions_and_groups is not None: + parameters['audit_actions_and_groups'] = audit_actions_and_groups + if storage_account_subscription_id is not None: + parameters['storage_account_subscription_id'] = storage_account_subscription_id + if is_storage_secondary_key_in_use is not None: + parameters['is_storage_secondary_key_in_use'] = is_storage_secondary_key_in_use + if is_azure_monitor_target_enabled is not None: + parameters['is_azure_monitor_target_enabled'] = is_azure_monitor_target_enabled + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + parameters=parameters) + + +def synapse_sql_pool_blob_auditing_policy_update(instance, + resource_group_name, + workspace_name, + sql_pool_name, + state=None, + storage_endpoint=None, + storage_account_access_key=None, + retention_days=None, + audit_actions_and_groups=None, + storage_account_subscription_id=None, + is_storage_secondary_key_in_use=None, + is_azure_monitor_target_enabled=None): + if state is not None: + instance.state = state + if storage_endpoint is not None: + instance.storage_endpoint = storage_endpoint + if storage_account_access_key is not None: + instance.storage_account_access_key = storage_account_access_key + if retention_days is not None: + instance.retention_days = retention_days + if audit_actions_and_groups is not None: + instance.audit_actions_and_groups = audit_actions_and_groups + if storage_account_subscription_id is not None: + instance.storage_account_subscription_id = storage_account_subscription_id + if is_storage_secondary_key_in_use is not None: + instance.is_storage_secondary_key_in_use = is_storage_secondary_key_in_use + if is_azure_monitor_target_enabled is not None: + instance.is_azure_monitor_target_enabled = is_azure_monitor_target_enabled + return instance + + +def synapse_sql_pool_operation_list(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_usage_list(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_sensitivity_label_create(client, + resource_group_name, + workspace_name, + sql_pool_name, + schema_name, + table_name, + column_name, + label_name=None, + label_id=None, + information_type=None, + information_type_id=None): + parameters = {} + if label_name is not None: + parameters['label_name'] = label_name + if label_id is not None: + parameters['label_id'] = label_id + if information_type is not None: + parameters['information_type'] = information_type + if information_type_id is not None: + parameters['information_type_id'] = information_type_id + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + schema_name=schema_name, + table_name=table_name, + column_name=column_name, + parameters=parameters) + + +def synapse_sql_pool_sensitivity_label_update(client, + resource_group_name, + workspace_name, + sql_pool_name, + schema_name, + table_name, + column_name, + label_name=None, + label_id=None, + information_type=None, + information_type_id=None): + parameters = {} + if label_name is not None: + parameters['label_name'] = label_name + if label_id is not None: + parameters['label_id'] = label_id + if information_type is not None: + parameters['information_type'] = information_type + if information_type_id is not None: + parameters['information_type_id'] = information_type_id + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + schema_name=schema_name, + table_name=table_name, + column_name=column_name, + parameters=parameters) + + +def synapse_sql_pool_sensitivity_label_delete(client, + resource_group_name, + workspace_name, + sql_pool_name, + schema_name, + table_name, + column_name): + return client.delete(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + schema_name=schema_name, + table_name=table_name, + column_name=column_name) + + +def synapse_sql_pool_sensitivity_label_disable_recommendation(client, + resource_group_name, + workspace_name, + sql_pool_name, + schema_name, + table_name, + column_name): + return client.disable_recommendation(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + schema_name=schema_name, + table_name=table_name, + column_name=column_name) + + +def synapse_sql_pool_sensitivity_label_enable_recommendation(client, + resource_group_name, + workspace_name, + sql_pool_name, + schema_name, + table_name, + column_name): + return client.enable_recommendation(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + schema_name=schema_name, + table_name=table_name, + column_name=column_name) + + +def synapse_sql_pool_sensitivity_label_list_current(client, + resource_group_name, + workspace_name, + sql_pool_name, + filter_=None): + return client.list_current(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + filter=filter_) + + +def synapse_sql_pool_sensitivity_label_list_recommended(client, + resource_group_name, + workspace_name, + sql_pool_name, + include_disabled_recommendations=None, + skip_token=None, + filter_=None): + return client.list_recommended(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + include_disabled_recommendations=include_disabled_recommendations, + skip_token=skip_token, + filter=filter_) + + +def synapse_sql_pool_schema_list(client, + resource_group_name, + workspace_name, + sql_pool_name, + filter_=None): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + filter=filter_) + + +def synapse_sql_pool_table_list(client, + resource_group_name, + workspace_name, + sql_pool_name, + schema_name, + filter_=None): + return client.list_by_schema(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + schema_name=schema_name, + filter=filter_) + + +def synapse_sql_pool_table_column_list(client, + resource_group_name, + workspace_name, + sql_pool_name, + schema_name, + table_name, + filter_=None): + return client.list_by_table_name(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + schema_name=schema_name, + table_name=table_name, + filter=filter_) + + +def synapse_sql_pool_connection_policy_show(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + connection_policy_name="default") + + +def synapse_sql_pool_vulnerability_assessment_list(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name) + + +def synapse_sql_pool_vulnerability_assessment_show(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default") + + +def synapse_sql_pool_vulnerability_assessment_create(client, + resource_group_name, + workspace_name, + sql_pool_name, + storage_container_path=None, + storage_container_sas_key=None, + storage_account_access_key=None, + recurring_scans=None): + parameters = {} + if storage_container_path is not None: + parameters['storage_container_path'] = storage_container_path + if storage_container_sas_key is not None: + parameters['storage_container_sas_key'] = storage_container_sas_key + if storage_account_access_key is not None: + parameters['storage_account_access_key'] = storage_account_access_key + if recurring_scans is not None: + parameters['recurring_scans'] = recurring_scans + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default", + parameters=parameters) + + +def synapse_sql_pool_vulnerability_assessment_update(instance, + resource_group_name, + workspace_name, + sql_pool_name, + storage_container_path=None, + storage_container_sas_key=None, + storage_account_access_key=None, + recurring_scans=None): + if storage_container_path is not None: + instance.storage_container_path = storage_container_path + if storage_container_sas_key is not None: + instance.storage_container_sas_key = storage_container_sas_key + if storage_account_access_key is not None: + instance.storage_account_access_key = storage_account_access_key + if recurring_scans is not None: + instance.recurring_scans = recurring_scans + return instance + + +def synapse_sql_pool_vulnerability_assessment_delete(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.delete(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default") + + +def synapse_sql_pool_vulnerability_assessment_scan_list(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default") + + +def synapse_sql_pool_vulnerability_assessment_scan_export(client, + resource_group_name, + workspace_name, + sql_pool_name, + scan_id): + return client.export(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default", + scan_id=scan_id) + + +def synapse_sql_pool_vulnerability_assessment_scan_initiate_scan(client, + resource_group_name, + workspace_name, + sql_pool_name, + scan_id): + return client.initiate_scan(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default", + scan_id=scan_id) + + +def synapse_sql_pool_security_alert_policy_show(client, + resource_group_name, + workspace_name, + sql_pool_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + security_alert_policy_name="default") + + +def synapse_sql_pool_security_alert_policy_create(client, + resource_group_name, + workspace_name, + sql_pool_name, + state=None, + disabled_alerts=None, + email_addresses=None, + email_account_admins=None, + storage_endpoint=None, + storage_account_access_key=None, + retention_days=None): + parameters = {} + if state is not None: + parameters['state'] = state + if disabled_alerts is not None: + parameters['disabled_alerts'] = disabled_alerts + if email_addresses is not None: + parameters['email_addresses'] = email_addresses + if email_account_admins is not None: + parameters['email_account_admins'] = email_account_admins + if storage_endpoint is not None: + parameters['storage_endpoint'] = storage_endpoint + if storage_account_access_key is not None: + parameters['storage_account_access_key'] = storage_account_access_key + if retention_days is not None: + parameters['retention_days'] = retention_days + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + security_alert_policy_name="default", + parameters=parameters) + + +def synapse_sql_pool_security_alert_policy_update(instance, + resource_group_name, + workspace_name, + sql_pool_name, + state=None, + disabled_alerts=None, + email_addresses=None, + email_account_admins=None, + storage_endpoint=None, + storage_account_access_key=None, + retention_days=None): + if state is not None: + instance.state = state + if disabled_alerts is not None: + instance.disabled_alerts = disabled_alerts + if email_addresses is not None: + instance.email_addresses = email_addresses + if email_account_admins is not None: + instance.email_account_admins = email_account_admins + if storage_endpoint is not None: + instance.storage_endpoint = storage_endpoint + if storage_account_access_key is not None: + instance.storage_account_access_key = storage_account_access_key + if retention_days is not None: + instance.retention_days = retention_days + return instance + + +def synapse_sql_pool_vulnerability_assessment_rule_baseline_create(client, + resource_group_name, + workspace_name, + sql_pool_name, + rule_id, + baseline_name, + baseline_results=None): + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default", + rule_id=rule_id, + baseline_name=baseline_name, + baseline_results=baseline_results) + + +def synapse_sql_pool_vulnerability_assessment_rule_baseline_update(client, + resource_group_name, + workspace_name, + sql_pool_name, + rule_id, + baseline_name, + baseline_results=None): + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default", + rule_id=rule_id, + baseline_name=baseline_name, + baseline_results=baseline_results) + + +def synapse_sql_pool_vulnerability_assessment_rule_baseline_delete(client, + resource_group_name, + workspace_name, + sql_pool_name, + rule_id, + baseline_name): + return client.delete(resource_group_name=resource_group_name, + workspace_name=workspace_name, + sql_pool_name=sql_pool_name, + vulnerability_assessment_name="default", + rule_id=rule_id, + baseline_name=baseline_name) + + +def synapse_workspace_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 synapse_workspace_show(client, + resource_group_name, + workspace_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_workspace_create(client, + resource_group_name, + workspace_name, + location, + tags=None, + default_data_lake_storage=None, + sql_administrator_login_password=None, + managed_resource_group_name=None, + sql_administrator_login=None, + connectivity_endpoints=None, + managed_virtual_network=None, + private_endpoint_connections=None, + compute_subnet_id=None, + type_=None, + no_wait=False): + workspace_info = {} + if tags is not None: + workspace_info['tags'] = tags + workspace_info['location'] = location + if default_data_lake_storage is not None: + workspace_info['default_data_lake_storage'] = default_data_lake_storage + if sql_administrator_login_password is not None: + workspace_info['sql_administrator_login_password'] = sql_administrator_login_password + if managed_resource_group_name is not None: + workspace_info['managed_resource_group_name'] = managed_resource_group_name + if sql_administrator_login is not None: + workspace_info['sql_administrator_login'] = sql_administrator_login + if connectivity_endpoints is not None: + workspace_info['connectivity_endpoints'] = connectivity_endpoints + if managed_virtual_network is not None: + workspace_info['managed_virtual_network'] = managed_virtual_network + if private_endpoint_connections is not None: + workspace_info['private_endpoint_connections'] = private_endpoint_connections + workspace_info['virtual_network_profile'] = {} + if compute_subnet_id is not None: + workspace_info['virtual_network_profile']['compute_subnet_id'] = compute_subnet_id + if len(workspace_info['virtual_network_profile']) == 0: + del workspace_info['virtual_network_profile'] + workspace_info['identity'] = {} + if type_ is not None: + workspace_info['identity']['type'] = type_ + if len(workspace_info['identity']) == 0: + del workspace_info['identity'] + return sdk_no_wait(no_wait, + client.create_or_update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + workspace_info=workspace_info) + + +def synapse_workspace_update(client, + resource_group_name, + workspace_name, + tags=None, + sql_administrator_login_password=None, + type_=None, + no_wait=False): + workspace_patch_info = {} + if tags is not None: + workspace_patch_info['tags'] = tags + if sql_administrator_login_password is not None: + workspace_patch_info['sql_administrator_login_password'] = sql_administrator_login_password + workspace_patch_info['identity'] = {} + if type_ is not None: + workspace_patch_info['identity']['type'] = type_ + if len(workspace_patch_info['identity']) == 0: + del workspace_patch_info['identity'] + return sdk_no_wait(no_wait, + client.update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + workspace_patch_info=workspace_patch_info) + + +def synapse_workspace_delete(client, + resource_group_name, + workspace_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_workspace_aad_admin_show(client, + resource_group_name, + workspace_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_workspace_aad_admin_create(client, + resource_group_name, + workspace_name, + tenant_id=None, + login=None, + administrator_type=None, + sid=None, + no_wait=False): + aad_admin_info = {} + if tenant_id is not None: + aad_admin_info['tenant_id'] = tenant_id + if login is not None: + aad_admin_info['login'] = login + if administrator_type is not None: + aad_admin_info['administrator_type'] = administrator_type + if sid is not None: + aad_admin_info['sid'] = sid + return sdk_no_wait(no_wait, + client.create_or_update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + aad_admin_info=aad_admin_info) + + +def synapse_workspace_aad_admin_update(instance, + resource_group_name, + workspace_name, + tenant_id=None, + login=None, + administrator_type=None, + sid=None, + no_wait=False): + if tenant_id is not None: + instance.tenant_id = tenant_id + if login is not None: + instance.login = login + if administrator_type is not None: + instance.administrator_type = administrator_type + if sid is not None: + instance.sid = sid + return instance + + +def synapse_workspace_aad_admin_delete(client, + resource_group_name, + workspace_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_workspace_managed_identity_sql_control_setting_show(client, + resource_group_name, + workspace_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_workspace_managed_identity_sql_control_setting_create(client, + resource_group_name, + workspace_name, + desired_state=None): + grant_sql_control_to_managed_identity = {} + if desired_state is not None: + grant_sql_control_to_managed_identity['desired_state'] = desired_state + return client.create_or_update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + grant_sql_control_to_managed_identity=grant_sql_control_to_managed_identity) + + +def synapse_workspace_managed_identity_sql_control_setting_update(instance, + resource_group_name, + workspace_name, + desired_state=None): + if desired_state is not None: + instance.grant_sql_control_to_managed_identity.desired_state = desired_state + return instance.grant_sql_control_to_managed_identity + + +def synapse_integration_runtime_list(client, + resource_group_name, + workspace_name): + return client.list_by_workspace(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_integration_runtime_show(client, + resource_group_name, + workspace_name, + integration_runtime_name, + if_none_match=None): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name, + if_none_match=if_none_match) + + +def synapse_integration_runtime_create(client, + resource_group_name, + workspace_name, + integration_runtime_name, + properties, + if_match=None, + no_wait=False): + return sdk_no_wait(no_wait, + client.create, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name, + if_match=if_match, + properties=properties) + + +def synapse_integration_runtime_update(client, + resource_group_name, + workspace_name, + integration_runtime_name, + auto_update=None, + update_delay_offset=None): + return client.update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name, + auto_update=auto_update, + update_delay_offset=update_delay_offset) + + +def synapse_integration_runtime_delete(client, + resource_group_name, + workspace_name, + integration_runtime_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_integration_runtime_start(client, + resource_group_name, + workspace_name, + integration_runtime_name): + return client.start(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_integration_runtime_stop(client, + resource_group_name, + workspace_name, + integration_runtime_name): + return client.stop(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_integration_runtime_upgrade(client, + resource_group_name, + workspace_name, + integration_runtime_name): + return client.upgrade(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_integration_runtime_node_ip_address_get(client, + resource_group_name, + workspace_name, + integration_runtime_name, + node_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name) + + +def synapse_integration_runtime_object_metadata_get(client, + resource_group_name, + workspace_name, + integration_runtime_name, + metadata_path=None): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name, + metadata_path=metadata_path) + + +def synapse_integration_runtime_object_metadata_refresh(client, + resource_group_name, + workspace_name, + integration_runtime_name): + return client.refresh(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_integration_runtime_node_show(client, + resource_group_name, + workspace_name, + integration_runtime_name, + node_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name) + + +def synapse_integration_runtime_node_update(client, + resource_group_name, + workspace_name, + integration_runtime_name, + node_name, + concurrent_jobs_limit=None): + return client.update(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name, + concurrent_jobs_limit=concurrent_jobs_limit) + + +def synapse_integration_runtime_node_delete(client, + resource_group_name, + workspace_name, + integration_runtime_name, + node_name): + return client.delete(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name, + node_name=node_name) + + +def synapse_integration_runtime_credentials_sync(client, + resource_group_name, + workspace_name, + integration_runtime_name): + return client.sync(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_integration_runtime_connection_info_get(client, + resource_group_name, + workspace_name, + integration_runtime_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_integration_runtime_auth_key_list(client, + resource_group_name, + workspace_name, + integration_runtime_name): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_integration_runtime_auth_key_regenerate(client, + resource_group_name, + workspace_name, + integration_runtime_name, + key_name=None): + return client.regenerate(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name, + key_name=key_name) + + +def synapse_integration_runtime_monitoring_data_get(client, + resource_group_name, + workspace_name, + integration_runtime_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_integration_runtime_status_get(client, + resource_group_name, + workspace_name, + integration_runtime_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + integration_runtime_name=integration_runtime_name) + + +def synapse_private_link_resource_list(client, + resource_group_name, + workspace_name): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_private_link_resource_show(client, + resource_group_name, + workspace_name, + private_link_resource_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_link_resource_name=private_link_resource_name) + + +def synapse_private_endpoint_connection_list(client, + resource_group_name, + workspace_name): + return client.list(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def synapse_private_endpoint_connection_show(client, + resource_group_name, + workspace_name, + private_endpoint_connection_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name) + + +def synapse_private_endpoint_connection_create(client, + resource_group_name, + workspace_name, + private_endpoint_connection_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.create, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name) + + +def synapse_private_endpoint_connection_delete(client, + resource_group_name, + workspace_name, + private_endpoint_connection_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name) + + +def synapse_private_link_hub_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 synapse_private_link_hub_show(client, + resource_group_name, + private_link_hub_name): + return client.get(resource_group_name=resource_group_name, + private_link_hub_name=private_link_hub_name) + + +def synapse_private_link_hub_create(client, + resource_group_name, + private_link_hub_name, + location, + tags=None): + return client.create_or_update(resource_group_name=resource_group_name, + private_link_hub_name=private_link_hub_name, + tags=tags, + location=location) + + +def synapse_private_link_hub_update(client, + resource_group_name, + private_link_hub_name, + tags=None): + return client.update(resource_group_name=resource_group_name, + private_link_hub_name=private_link_hub_name, + tags=tags) + + +def synapse_private_link_hub_delete(client, + resource_group_name, + private_link_hub_name): + return client.delete(resource_group_name=resource_group_name, + private_link_hub_name=private_link_hub_name) diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/manual/__init__.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/manual/__init__.py new file mode 100644 index 000000000..c9cfdc73e --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/manual/__init__.py @@ -0,0 +1,12 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/report.md b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/report.md new file mode 100644 index 000000000..7eb1dfc33 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/report.md @@ -0,0 +1,1977 @@ +# Azure CLI Module Creation Report + +## EXTENSION +|CLI Extension|Command Groups| +|---------|------------| +|az synapse|[groups](#CommandGroups) + +## GROUPS +### Command groups in `az synapse` extension +|CLI Command Group|Group Swagger name|Commands| +|---------|------------|--------| +|az synapse big-data-pool|BigDataPools|[commands](#CommandsInBigDataPools)| +|az synapse integration-runtime|IntegrationRuntimes|[commands](#CommandsInIntegrationRuntimes)| +|az synapse integration-runtime-auth-key|IntegrationRuntimeAuthKeys|[commands](#CommandsInIntegrationRuntimeAuthKeys)| +|az synapse integration-runtime-connection-info|IntegrationRuntimeConnectionInfos|[commands](#CommandsInIntegrationRuntimeConnectionInfos)| +|az synapse integration-runtime-credentials|IntegrationRuntimeCredentials|[commands](#CommandsInIntegrationRuntimeCredentials)| +|az synapse integration-runtime-monitoring-data|IntegrationRuntimeMonitoringData|[commands](#CommandsInIntegrationRuntimeMonitoringData)| +|az synapse integration-runtime-node|IntegrationRuntimeNodes|[commands](#CommandsInIntegrationRuntimeNodes)| +|az synapse integration-runtime-node-ip-address|IntegrationRuntimeNodeIpAddress|[commands](#CommandsInIntegrationRuntimeNodeIpAddress)| +|az synapse integration-runtime-object-metadata|IntegrationRuntimeObjectMetadata|[commands](#CommandsInIntegrationRuntimeObjectMetadata)| +|az synapse integration-runtime-status|IntegrationRuntimeStatus|[commands](#CommandsInIntegrationRuntimeStatus)| +|az synapse ip-firewall-rule|IpFirewallRules|[commands](#CommandsInIpFirewallRules)| +|az synapse operation|Operations|[commands](#CommandsInOperations)| +|az synapse private-endpoint-connection|PrivateEndpointConnections|[commands](#CommandsInPrivateEndpointConnections)| +|az synapse private-link-hub|PrivateLinkHubs|[commands](#CommandsInPrivateLinkHubs)| +|az synapse private-link-resource|PrivateLinkResources|[commands](#CommandsInPrivateLinkResources)| +|az synapse sql-pool|SqlPools|[commands](#CommandsInSqlPools)| +|az synapse sql-pool-blob-auditing-policy|SqlPoolBlobAuditingPolicies|[commands](#CommandsInSqlPoolBlobAuditingPolicies)| +|az synapse sql-pool-connection-policy|SqlPoolConnectionPolicies|[commands](#CommandsInSqlPoolConnectionPolicies)| +|az synapse sql-pool-data-warehouse-user-activity|SqlPoolDataWarehouseUserActivities|[commands](#CommandsInSqlPoolDataWarehouseUserActivities)| +|az synapse sql-pool-geo-backup-policy|SqlPoolGeoBackupPolicies|[commands](#CommandsInSqlPoolGeoBackupPolicies)| +|az synapse sql-pool-metadata-sync-config|SqlPoolMetadataSyncConfigs|[commands](#CommandsInSqlPoolMetadataSyncConfigs)| +|az synapse sql-pool-operation|SqlPoolOperations|[commands](#CommandsInSqlPoolOperations)| +|az synapse sql-pool-operation-result|SqlPoolOperationResults|[commands](#CommandsInSqlPoolOperationResults)| +|az synapse sql-pool-replication-link|SqlPoolReplicationLinks|[commands](#CommandsInSqlPoolReplicationLinks)| +|az synapse sql-pool-restore-point|SqlPoolRestorePoints|[commands](#CommandsInSqlPoolRestorePoints)| +|az synapse sql-pool-schema|SqlPoolSchemas|[commands](#CommandsInSqlPoolSchemas)| +|az synapse sql-pool-security-alert-policy|SqlPoolSecurityAlertPolicies|[commands](#CommandsInSqlPoolSecurityAlertPolicies)| +|az synapse sql-pool-sensitivity-label|SqlPoolSensitivityLabels|[commands](#CommandsInSqlPoolSensitivityLabels)| +|az synapse sql-pool-table|SqlPoolTables|[commands](#CommandsInSqlPoolTables)| +|az synapse sql-pool-table-column|SqlPoolTableColumns|[commands](#CommandsInSqlPoolTableColumns)| +|az synapse sql-pool-transparent-data-encryption|SqlPoolTransparentDataEncryptions|[commands](#CommandsInSqlPoolTransparentDataEncryptions)| +|az synapse sql-pool-usage|SqlPoolUsages|[commands](#CommandsInSqlPoolUsages)| +|az synapse sql-pool-vulnerability-assessment|SqlPoolVulnerabilityAssessments|[commands](#CommandsInSqlPoolVulnerabilityAssessments)| +|az synapse sql-pool-vulnerability-assessment-rule-baseline|SqlPoolVulnerabilityAssessmentRuleBaselines|[commands](#CommandsInSqlPoolVulnerabilityAssessmentRuleBaselines)| +|az synapse sql-pool-vulnerability-assessment-scan|SqlPoolVulnerabilityAssessmentScans|[commands](#CommandsInSqlPoolVulnerabilityAssessmentScans)| +|az synapse workspace|Workspaces|[commands](#CommandsInWorkspaces)| +|az synapse workspace-aad-admin|WorkspaceAadAdmins|[commands](#CommandsInWorkspaceAadAdmins)| +|az synapse workspace-managed-identity-sql-control-setting|WorkspaceManagedIdentitySqlControlSettings|[commands](#CommandsInWorkspaceManagedIdentitySqlControlSettings)| + +## COMMANDS +### Commands in `az synapse big-data-pool` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse big-data-pool list](#BigDataPoolsListByWorkspace)|ListByWorkspace|[Parameters](#ParametersBigDataPoolsListByWorkspace)|[Example](#ExamplesBigDataPoolsListByWorkspace)| +|[az synapse big-data-pool show](#BigDataPoolsGet)|Get|[Parameters](#ParametersBigDataPoolsGet)|[Example](#ExamplesBigDataPoolsGet)| +|[az synapse big-data-pool create](#BigDataPoolsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersBigDataPoolsCreateOrUpdate#Create)|[Example](#ExamplesBigDataPoolsCreateOrUpdate#Create)| +|[az synapse big-data-pool update](#BigDataPoolsUpdate)|Update|[Parameters](#ParametersBigDataPoolsUpdate)|[Example](#ExamplesBigDataPoolsUpdate)| +|[az synapse big-data-pool delete](#BigDataPoolsDelete)|Delete|[Parameters](#ParametersBigDataPoolsDelete)|[Example](#ExamplesBigDataPoolsDelete)| + +### Commands in `az synapse integration-runtime` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse integration-runtime list](#IntegrationRuntimesListByWorkspace)|ListByWorkspace|[Parameters](#ParametersIntegrationRuntimesListByWorkspace)|[Example](#ExamplesIntegrationRuntimesListByWorkspace)| +|[az synapse integration-runtime show](#IntegrationRuntimesGet)|Get|[Parameters](#ParametersIntegrationRuntimesGet)|[Example](#ExamplesIntegrationRuntimesGet)| +|[az synapse integration-runtime create](#IntegrationRuntimesCreate)|Create|[Parameters](#ParametersIntegrationRuntimesCreate)|[Example](#ExamplesIntegrationRuntimesCreate)| +|[az synapse integration-runtime update](#IntegrationRuntimesUpdate)|Update|[Parameters](#ParametersIntegrationRuntimesUpdate)|[Example](#ExamplesIntegrationRuntimesUpdate)| +|[az synapse integration-runtime delete](#IntegrationRuntimesDelete)|Delete|[Parameters](#ParametersIntegrationRuntimesDelete)|[Example](#ExamplesIntegrationRuntimesDelete)| +|[az synapse integration-runtime start](#IntegrationRuntimesStart)|Start|[Parameters](#ParametersIntegrationRuntimesStart)|[Example](#ExamplesIntegrationRuntimesStart)| +|[az synapse integration-runtime stop](#IntegrationRuntimesStop)|Stop|[Parameters](#ParametersIntegrationRuntimesStop)|[Example](#ExamplesIntegrationRuntimesStop)| +|[az synapse integration-runtime upgrade](#IntegrationRuntimesUpgrade)|Upgrade|[Parameters](#ParametersIntegrationRuntimesUpgrade)|[Example](#ExamplesIntegrationRuntimesUpgrade)| + +### Commands in `az synapse integration-runtime-auth-key` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse integration-runtime-auth-key list](#IntegrationRuntimeAuthKeysList)|List|[Parameters](#ParametersIntegrationRuntimeAuthKeysList)|[Example](#ExamplesIntegrationRuntimeAuthKeysList)| +|[az synapse integration-runtime-auth-key regenerate](#IntegrationRuntimeAuthKeysRegenerate)|Regenerate|[Parameters](#ParametersIntegrationRuntimeAuthKeysRegenerate)|[Example](#ExamplesIntegrationRuntimeAuthKeysRegenerate)| + +### Commands in `az synapse integration-runtime-connection-info` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse integration-runtime-connection-info get](#IntegrationRuntimeConnectionInfosGet)|Get|[Parameters](#ParametersIntegrationRuntimeConnectionInfosGet)|[Example](#ExamplesIntegrationRuntimeConnectionInfosGet)| + +### Commands in `az synapse integration-runtime-credentials` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse integration-runtime-credentials sync](#IntegrationRuntimeCredentialsSync)|Sync|[Parameters](#ParametersIntegrationRuntimeCredentialsSync)|[Example](#ExamplesIntegrationRuntimeCredentialsSync)| + +### Commands in `az synapse integration-runtime-monitoring-data` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse integration-runtime-monitoring-data get](#IntegrationRuntimeMonitoringDataGet)|Get|[Parameters](#ParametersIntegrationRuntimeMonitoringDataGet)|[Example](#ExamplesIntegrationRuntimeMonitoringDataGet)| + +### Commands in `az synapse integration-runtime-node` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse integration-runtime-node show](#IntegrationRuntimeNodesGet)|Get|[Parameters](#ParametersIntegrationRuntimeNodesGet)|[Example](#ExamplesIntegrationRuntimeNodesGet)| +|[az synapse integration-runtime-node update](#IntegrationRuntimeNodesUpdate)|Update|[Parameters](#ParametersIntegrationRuntimeNodesUpdate)|[Example](#ExamplesIntegrationRuntimeNodesUpdate)| +|[az synapse integration-runtime-node delete](#IntegrationRuntimeNodesDelete)|Delete|[Parameters](#ParametersIntegrationRuntimeNodesDelete)|[Example](#ExamplesIntegrationRuntimeNodesDelete)| + +### Commands in `az synapse integration-runtime-node-ip-address` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse integration-runtime-node-ip-address get](#IntegrationRuntimeNodeIpAddressGet)|Get|[Parameters](#ParametersIntegrationRuntimeNodeIpAddressGet)|[Example](#ExamplesIntegrationRuntimeNodeIpAddressGet)| + +### Commands in `az synapse integration-runtime-object-metadata` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse integration-runtime-object-metadata get](#IntegrationRuntimeObjectMetadataGet)|Get|[Parameters](#ParametersIntegrationRuntimeObjectMetadataGet)|[Example](#ExamplesIntegrationRuntimeObjectMetadataGet)| +|[az synapse integration-runtime-object-metadata refresh](#IntegrationRuntimeObjectMetadataRefresh)|Refresh|[Parameters](#ParametersIntegrationRuntimeObjectMetadataRefresh)|[Example](#ExamplesIntegrationRuntimeObjectMetadataRefresh)| + +### Commands in `az synapse integration-runtime-status` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse integration-runtime-status get](#IntegrationRuntimeStatusGet)|Get|[Parameters](#ParametersIntegrationRuntimeStatusGet)|[Example](#ExamplesIntegrationRuntimeStatusGet)| + +### Commands in `az synapse ip-firewall-rule` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse ip-firewall-rule list](#IpFirewallRulesListByWorkspace)|ListByWorkspace|[Parameters](#ParametersIpFirewallRulesListByWorkspace)|[Example](#ExamplesIpFirewallRulesListByWorkspace)| +|[az synapse ip-firewall-rule show](#IpFirewallRulesGet)|Get|[Parameters](#ParametersIpFirewallRulesGet)|[Example](#ExamplesIpFirewallRulesGet)| +|[az synapse ip-firewall-rule create](#IpFirewallRulesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersIpFirewallRulesCreateOrUpdate#Create)|[Example](#ExamplesIpFirewallRulesCreateOrUpdate#Create)| +|[az synapse ip-firewall-rule update](#IpFirewallRulesCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersIpFirewallRulesCreateOrUpdate#Update)|Not Found| +|[az synapse ip-firewall-rule delete](#IpFirewallRulesDelete)|Delete|[Parameters](#ParametersIpFirewallRulesDelete)|[Example](#ExamplesIpFirewallRulesDelete)| +|[az synapse ip-firewall-rule replace-all](#IpFirewallRulesReplaceAll)|ReplaceAll|[Parameters](#ParametersIpFirewallRulesReplaceAll)|[Example](#ExamplesIpFirewallRulesReplaceAll)| + +### Commands in `az synapse operation` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse operation show-azure-async-header-result](#OperationsGetAzureAsyncHeaderResult)|GetAzureAsyncHeaderResult|[Parameters](#ParametersOperationsGetAzureAsyncHeaderResult)|[Example](#ExamplesOperationsGetAzureAsyncHeaderResult)| +|[az synapse operation show-location-header-result](#OperationsGetLocationHeaderResult)|GetLocationHeaderResult|[Parameters](#ParametersOperationsGetLocationHeaderResult)|[Example](#ExamplesOperationsGetLocationHeaderResult)| + +### Commands in `az synapse private-endpoint-connection` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse private-endpoint-connection list](#PrivateEndpointConnectionsList)|List|[Parameters](#ParametersPrivateEndpointConnectionsList)|[Example](#ExamplesPrivateEndpointConnectionsList)| +|[az synapse private-endpoint-connection show](#PrivateEndpointConnectionsGet)|Get|[Parameters](#ParametersPrivateEndpointConnectionsGet)|[Example](#ExamplesPrivateEndpointConnectionsGet)| +|[az synapse private-endpoint-connection create](#PrivateEndpointConnectionsCreate)|Create|[Parameters](#ParametersPrivateEndpointConnectionsCreate)|[Example](#ExamplesPrivateEndpointConnectionsCreate)| +|[az synapse private-endpoint-connection delete](#PrivateEndpointConnectionsDelete)|Delete|[Parameters](#ParametersPrivateEndpointConnectionsDelete)|[Example](#ExamplesPrivateEndpointConnectionsDelete)| + +### Commands in `az synapse private-link-hub` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse private-link-hub list](#PrivateLinkHubsListByResourceGroup)|ListByResourceGroup|[Parameters](#ParametersPrivateLinkHubsListByResourceGroup)|[Example](#ExamplesPrivateLinkHubsListByResourceGroup)| +|[az synapse private-link-hub list](#PrivateLinkHubsList)|List|[Parameters](#ParametersPrivateLinkHubsList)|[Example](#ExamplesPrivateLinkHubsList)| +|[az synapse private-link-hub show](#PrivateLinkHubsGet)|Get|[Parameters](#ParametersPrivateLinkHubsGet)|[Example](#ExamplesPrivateLinkHubsGet)| +|[az synapse private-link-hub create](#PrivateLinkHubsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersPrivateLinkHubsCreateOrUpdate#Create)|[Example](#ExamplesPrivateLinkHubsCreateOrUpdate#Create)| +|[az synapse private-link-hub update](#PrivateLinkHubsUpdate)|Update|[Parameters](#ParametersPrivateLinkHubsUpdate)|[Example](#ExamplesPrivateLinkHubsUpdate)| +|[az synapse private-link-hub delete](#PrivateLinkHubsDelete)|Delete|[Parameters](#ParametersPrivateLinkHubsDelete)|[Example](#ExamplesPrivateLinkHubsDelete)| + +### Commands in `az synapse private-link-resource` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse private-link-resource list](#PrivateLinkResourcesList)|List|[Parameters](#ParametersPrivateLinkResourcesList)|[Example](#ExamplesPrivateLinkResourcesList)| +|[az synapse private-link-resource show](#PrivateLinkResourcesGet)|Get|[Parameters](#ParametersPrivateLinkResourcesGet)|[Example](#ExamplesPrivateLinkResourcesGet)| + +### Commands in `az synapse sql-pool` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool list](#SqlPoolsListByWorkspace)|ListByWorkspace|[Parameters](#ParametersSqlPoolsListByWorkspace)|[Example](#ExamplesSqlPoolsListByWorkspace)| +|[az synapse sql-pool show](#SqlPoolsGet)|Get|[Parameters](#ParametersSqlPoolsGet)|[Example](#ExamplesSqlPoolsGet)| +|[az synapse sql-pool create](#SqlPoolsCreate)|Create|[Parameters](#ParametersSqlPoolsCreate)|[Example](#ExamplesSqlPoolsCreate)| +|[az synapse sql-pool update](#SqlPoolsUpdate)|Update|[Parameters](#ParametersSqlPoolsUpdate)|[Example](#ExamplesSqlPoolsUpdate)| +|[az synapse sql-pool delete](#SqlPoolsDelete)|Delete|[Parameters](#ParametersSqlPoolsDelete)|[Example](#ExamplesSqlPoolsDelete)| +|[az synapse sql-pool pause](#SqlPoolsPause)|Pause|[Parameters](#ParametersSqlPoolsPause)|[Example](#ExamplesSqlPoolsPause)| +|[az synapse sql-pool rename](#SqlPoolsRename)|Rename|[Parameters](#ParametersSqlPoolsRename)|[Example](#ExamplesSqlPoolsRename)| +|[az synapse sql-pool resume](#SqlPoolsResume)|Resume|[Parameters](#ParametersSqlPoolsResume)|[Example](#ExamplesSqlPoolsResume)| + +### Commands in `az synapse sql-pool-blob-auditing-policy` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-blob-auditing-policy show](#SqlPoolBlobAuditingPoliciesGet)|Get|[Parameters](#ParametersSqlPoolBlobAuditingPoliciesGet)|[Example](#ExamplesSqlPoolBlobAuditingPoliciesGet)| +|[az synapse sql-pool-blob-auditing-policy create](#SqlPoolBlobAuditingPoliciesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersSqlPoolBlobAuditingPoliciesCreateOrUpdate#Create)|[Example](#ExamplesSqlPoolBlobAuditingPoliciesCreateOrUpdate#Create)| +|[az synapse sql-pool-blob-auditing-policy update](#SqlPoolBlobAuditingPoliciesCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersSqlPoolBlobAuditingPoliciesCreateOrUpdate#Update)|Not Found| + +### Commands in `az synapse sql-pool-connection-policy` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-connection-policy show](#SqlPoolConnectionPoliciesGet)|Get|[Parameters](#ParametersSqlPoolConnectionPoliciesGet)|[Example](#ExamplesSqlPoolConnectionPoliciesGet)| + +### Commands in `az synapse sql-pool-data-warehouse-user-activity` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-data-warehouse-user-activity show](#SqlPoolDataWarehouseUserActivitiesGet)|Get|[Parameters](#ParametersSqlPoolDataWarehouseUserActivitiesGet)|[Example](#ExamplesSqlPoolDataWarehouseUserActivitiesGet)| + +### Commands in `az synapse sql-pool-geo-backup-policy` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-geo-backup-policy show](#SqlPoolGeoBackupPoliciesGet)|Get|[Parameters](#ParametersSqlPoolGeoBackupPoliciesGet)|[Example](#ExamplesSqlPoolGeoBackupPoliciesGet)| + +### Commands in `az synapse sql-pool-metadata-sync-config` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-metadata-sync-config show](#SqlPoolMetadataSyncConfigsGet)|Get|[Parameters](#ParametersSqlPoolMetadataSyncConfigsGet)|[Example](#ExamplesSqlPoolMetadataSyncConfigsGet)| +|[az synapse sql-pool-metadata-sync-config create](#SqlPoolMetadataSyncConfigsCreate)|Create|[Parameters](#ParametersSqlPoolMetadataSyncConfigsCreate)|[Example](#ExamplesSqlPoolMetadataSyncConfigsCreate)| + +### Commands in `az synapse sql-pool-operation` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-operation list](#SqlPoolOperationsList)|List|[Parameters](#ParametersSqlPoolOperationsList)|[Example](#ExamplesSqlPoolOperationsList)| + +### Commands in `az synapse sql-pool-operation-result` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-operation-result show-location-header-result](#SqlPoolOperationResultsGetLocationHeaderResult)|GetLocationHeaderResult|[Parameters](#ParametersSqlPoolOperationResultsGetLocationHeaderResult)|[Example](#ExamplesSqlPoolOperationResultsGetLocationHeaderResult)| + +### Commands in `az synapse sql-pool-replication-link` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-replication-link list](#SqlPoolReplicationLinksList)|List|[Parameters](#ParametersSqlPoolReplicationLinksList)|[Example](#ExamplesSqlPoolReplicationLinksList)| + +### Commands in `az synapse sql-pool-restore-point` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-restore-point list](#SqlPoolRestorePointsList)|List|[Parameters](#ParametersSqlPoolRestorePointsList)|[Example](#ExamplesSqlPoolRestorePointsList)| +|[az synapse sql-pool-restore-point create](#SqlPoolRestorePointsCreate)|Create|[Parameters](#ParametersSqlPoolRestorePointsCreate)|[Example](#ExamplesSqlPoolRestorePointsCreate)| + +### Commands in `az synapse sql-pool-schema` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-schema list](#SqlPoolSchemasList)|List|[Parameters](#ParametersSqlPoolSchemasList)|[Example](#ExamplesSqlPoolSchemasList)| + +### Commands in `az synapse sql-pool-security-alert-policy` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-security-alert-policy show](#SqlPoolSecurityAlertPoliciesGet)|Get|[Parameters](#ParametersSqlPoolSecurityAlertPoliciesGet)|[Example](#ExamplesSqlPoolSecurityAlertPoliciesGet)| +|[az synapse sql-pool-security-alert-policy create](#SqlPoolSecurityAlertPoliciesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersSqlPoolSecurityAlertPoliciesCreateOrUpdate#Create)|[Example](#ExamplesSqlPoolSecurityAlertPoliciesCreateOrUpdate#Create)| +|[az synapse sql-pool-security-alert-policy update](#SqlPoolSecurityAlertPoliciesCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersSqlPoolSecurityAlertPoliciesCreateOrUpdate#Update)|[Example](#ExamplesSqlPoolSecurityAlertPoliciesCreateOrUpdate#Update)| + +### Commands in `az synapse sql-pool-sensitivity-label` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-sensitivity-label create](#SqlPoolSensitivityLabelsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersSqlPoolSensitivityLabelsCreateOrUpdate#Create)|[Example](#ExamplesSqlPoolSensitivityLabelsCreateOrUpdate#Create)| +|[az synapse sql-pool-sensitivity-label update](#SqlPoolSensitivityLabelsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersSqlPoolSensitivityLabelsCreateOrUpdate#Update)|Not Found| +|[az synapse sql-pool-sensitivity-label delete](#SqlPoolSensitivityLabelsDelete)|Delete|[Parameters](#ParametersSqlPoolSensitivityLabelsDelete)|[Example](#ExamplesSqlPoolSensitivityLabelsDelete)| +|[az synapse sql-pool-sensitivity-label disable-recommendation](#SqlPoolSensitivityLabelsDisableRecommendation)|DisableRecommendation|[Parameters](#ParametersSqlPoolSensitivityLabelsDisableRecommendation)|[Example](#ExamplesSqlPoolSensitivityLabelsDisableRecommendation)| +|[az synapse sql-pool-sensitivity-label enable-recommendation](#SqlPoolSensitivityLabelsEnableRecommendation)|EnableRecommendation|[Parameters](#ParametersSqlPoolSensitivityLabelsEnableRecommendation)|[Example](#ExamplesSqlPoolSensitivityLabelsEnableRecommendation)| +|[az synapse sql-pool-sensitivity-label list-current](#SqlPoolSensitivityLabelsListCurrent)|ListCurrent|[Parameters](#ParametersSqlPoolSensitivityLabelsListCurrent)|[Example](#ExamplesSqlPoolSensitivityLabelsListCurrent)| +|[az synapse sql-pool-sensitivity-label list-recommended](#SqlPoolSensitivityLabelsListRecommended)|ListRecommended|[Parameters](#ParametersSqlPoolSensitivityLabelsListRecommended)|[Example](#ExamplesSqlPoolSensitivityLabelsListRecommended)| + +### Commands in `az synapse sql-pool-table` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-table list](#SqlPoolTablesListBySchema)|ListBySchema|[Parameters](#ParametersSqlPoolTablesListBySchema)|[Example](#ExamplesSqlPoolTablesListBySchema)| + +### Commands in `az synapse sql-pool-table-column` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-table-column list](#SqlPoolTableColumnsListByTableName)|ListByTableName|[Parameters](#ParametersSqlPoolTableColumnsListByTableName)|[Example](#ExamplesSqlPoolTableColumnsListByTableName)| + +### Commands in `az synapse sql-pool-transparent-data-encryption` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-transparent-data-encryption show](#SqlPoolTransparentDataEncryptionsGet)|Get|[Parameters](#ParametersSqlPoolTransparentDataEncryptionsGet)|[Example](#ExamplesSqlPoolTransparentDataEncryptionsGet)| +|[az synapse sql-pool-transparent-data-encryption create](#SqlPoolTransparentDataEncryptionsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersSqlPoolTransparentDataEncryptionsCreateOrUpdate#Create)|[Example](#ExamplesSqlPoolTransparentDataEncryptionsCreateOrUpdate#Create)| +|[az synapse sql-pool-transparent-data-encryption update](#SqlPoolTransparentDataEncryptionsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersSqlPoolTransparentDataEncryptionsCreateOrUpdate#Update)|Not Found| + +### Commands in `az synapse sql-pool-usage` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-usage list](#SqlPoolUsagesList)|List|[Parameters](#ParametersSqlPoolUsagesList)|[Example](#ExamplesSqlPoolUsagesList)| + +### Commands in `az synapse sql-pool-vulnerability-assessment` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-vulnerability-assessment list](#SqlPoolVulnerabilityAssessmentsList)|List|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentsList)|[Example](#ExamplesSqlPoolVulnerabilityAssessmentsList)| +|[az synapse sql-pool-vulnerability-assessment show](#SqlPoolVulnerabilityAssessmentsGet)|Get|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentsGet)|[Example](#ExamplesSqlPoolVulnerabilityAssessmentsGet)| +|[az synapse sql-pool-vulnerability-assessment create](#SqlPoolVulnerabilityAssessmentsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentsCreateOrUpdate#Create)|[Example](#ExamplesSqlPoolVulnerabilityAssessmentsCreateOrUpdate#Create)| +|[az synapse sql-pool-vulnerability-assessment update](#SqlPoolVulnerabilityAssessmentsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentsCreateOrUpdate#Update)|Not Found| +|[az synapse sql-pool-vulnerability-assessment delete](#SqlPoolVulnerabilityAssessmentsDelete)|Delete|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentsDelete)|[Example](#ExamplesSqlPoolVulnerabilityAssessmentsDelete)| + +### Commands in `az synapse sql-pool-vulnerability-assessment-rule-baseline` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-vulnerability-assessment-rule-baseline create](#SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdate#Create)|[Example](#ExamplesSqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdate#Create)| +|[az synapse sql-pool-vulnerability-assessment-rule-baseline update](#SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdate#Update)|Not Found| +|[az synapse sql-pool-vulnerability-assessment-rule-baseline delete](#SqlPoolVulnerabilityAssessmentRuleBaselinesDelete)|Delete|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentRuleBaselinesDelete)|[Example](#ExamplesSqlPoolVulnerabilityAssessmentRuleBaselinesDelete)| + +### Commands in `az synapse sql-pool-vulnerability-assessment-scan` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse sql-pool-vulnerability-assessment-scan list](#SqlPoolVulnerabilityAssessmentScansList)|List|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentScansList)|[Example](#ExamplesSqlPoolVulnerabilityAssessmentScansList)| +|[az synapse sql-pool-vulnerability-assessment-scan export](#SqlPoolVulnerabilityAssessmentScansExport)|Export|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentScansExport)|[Example](#ExamplesSqlPoolVulnerabilityAssessmentScansExport)| +|[az synapse sql-pool-vulnerability-assessment-scan initiate-scan](#SqlPoolVulnerabilityAssessmentScansInitiateScan)|InitiateScan|[Parameters](#ParametersSqlPoolVulnerabilityAssessmentScansInitiateScan)|[Example](#ExamplesSqlPoolVulnerabilityAssessmentScansInitiateScan)| + +### Commands in `az synapse workspace` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse workspace list](#WorkspacesListByResourceGroup)|ListByResourceGroup|[Parameters](#ParametersWorkspacesListByResourceGroup)|[Example](#ExamplesWorkspacesListByResourceGroup)| +|[az synapse workspace list](#WorkspacesList)|List|[Parameters](#ParametersWorkspacesList)|[Example](#ExamplesWorkspacesList)| +|[az synapse workspace show](#WorkspacesGet)|Get|[Parameters](#ParametersWorkspacesGet)|[Example](#ExamplesWorkspacesGet)| +|[az synapse workspace create](#WorkspacesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersWorkspacesCreateOrUpdate#Create)|[Example](#ExamplesWorkspacesCreateOrUpdate#Create)| +|[az synapse workspace update](#WorkspacesUpdate)|Update|[Parameters](#ParametersWorkspacesUpdate)|[Example](#ExamplesWorkspacesUpdate)| +|[az synapse workspace delete](#WorkspacesDelete)|Delete|[Parameters](#ParametersWorkspacesDelete)|[Example](#ExamplesWorkspacesDelete)| + +### Commands in `az synapse workspace-aad-admin` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse workspace-aad-admin show](#WorkspaceAadAdminsGet)|Get|[Parameters](#ParametersWorkspaceAadAdminsGet)|[Example](#ExamplesWorkspaceAadAdminsGet)| +|[az synapse workspace-aad-admin create](#WorkspaceAadAdminsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersWorkspaceAadAdminsCreateOrUpdate#Create)|[Example](#ExamplesWorkspaceAadAdminsCreateOrUpdate#Create)| +|[az synapse workspace-aad-admin update](#WorkspaceAadAdminsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersWorkspaceAadAdminsCreateOrUpdate#Update)|Not Found| +|[az synapse workspace-aad-admin delete](#WorkspaceAadAdminsDelete)|Delete|[Parameters](#ParametersWorkspaceAadAdminsDelete)|[Example](#ExamplesWorkspaceAadAdminsDelete)| + +### Commands in `az synapse workspace-managed-identity-sql-control-setting` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az synapse workspace-managed-identity-sql-control-setting show](#WorkspaceManagedIdentitySqlControlSettingsGet)|Get|[Parameters](#ParametersWorkspaceManagedIdentitySqlControlSettingsGet)|[Example](#ExamplesWorkspaceManagedIdentitySqlControlSettingsGet)| +|[az synapse workspace-managed-identity-sql-control-setting create](#WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersWorkspaceManagedIdentitySqlControlSettingsCreateOrUpdate#Create)|[Example](#ExamplesWorkspaceManagedIdentitySqlControlSettingsCreateOrUpdate#Create)| +|[az synapse workspace-managed-identity-sql-control-setting update](#WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersWorkspaceManagedIdentitySqlControlSettingsCreateOrUpdate#Update)|Not Found| + + +## COMMAND DETAILS +### group `az synapse big-data-pool` +#### Command `az synapse big-data-pool list` + +##### Example +``` +az synapse big-data-pool list --resource-group "ExampleResourceGroup" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +#### Command `az synapse big-data-pool show` + +##### Example +``` +az synapse big-data-pool show --name "ExamplePool" --resource-group "ExampleResourceGroup" --workspace-name \ +"ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--big-data-pool-name**|string|Big Data pool name|big_data_pool_name|bigDataPoolName| + +#### Command `az synapse big-data-pool create` + +##### Example +``` +az synapse big-data-pool create --location "West US 2" --auto-pause delay-in-minutes=15 enabled=true --auto-scale \ +enabled=true max-node-count=50 min-node-count=3 --default-spark-log-folder "/logs" --library-requirements content="" \ +filename="requirements.txt" --node-count 4 --node-size "Medium" --node-size-family "MemoryOptimized" \ +--spark-events-folder "/events" --spark-version "2.4" --tags key="value" --name "ExamplePool" --resource-group \ +"ExampleResourceGroup" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--big-data-pool-name**|string|Big Data pool name|big_data_pool_name|bigDataPoolName| +|**--force**|boolean|Whether to stop any running jobs in the Big Data pool|force|force| +|**--location**|string|The geo-location where the resource lives|location|location| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--provisioning-state**|string|The state of the Big Data pool.|provisioning_state|provisioningState| +|**--auto-scale**|object|Auto-scaling properties|auto_scale|autoScale| +|**--creation-date**|date-time|The time when the Big Data pool was created.|creation_date|creationDate| +|**--auto-pause**|object|Auto-pausing properties|auto_pause|autoPause| +|**--spark-events-folder**|string|The Spark events folder|spark_events_folder|sparkEventsFolder| +|**--node-count**|integer|The number of nodes in the Big Data pool.|node_count|nodeCount| +|**--library-requirements**|object|Library version requirements|library_requirements|libraryRequirements| +|**--spark-version**|string|The Apache Spark version.|spark_version|sparkVersion| +|**--default-spark-log-folder**|string|The default folder where Spark logs will be written.|default_spark_log_folder|defaultSparkLogFolder| +|**--node-size**|choice|The level of compute power that each node in the Big Data pool has.|node_size|nodeSize| +|**--node-size-family**|choice|The kind of nodes that the Big Data pool provides.|node_size_family|nodeSizeFamily| + +#### Command `az synapse big-data-pool update` + +##### Example +``` +az synapse big-data-pool update --name "ExamplePool" --tags key="value" --resource-group "ExampleResourceGroup" \ +--workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--big-data-pool-name**|string|Big Data pool name|big_data_pool_name|bigDataPoolName| +|**--tags**|dictionary|Updated tags for the Big Data pool|tags|tags| + +#### Command `az synapse big-data-pool delete` + +##### Example +``` +az synapse big-data-pool delete --name "ExamplePool" --resource-group "ExampleResourceGroup" --workspace-name \ +"ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--big-data-pool-name**|string|Big Data pool name|big_data_pool_name|bigDataPoolName| + +### group `az synapse integration-runtime` +#### Command `az synapse integration-runtime list` + +##### Example +``` +az synapse integration-runtime list --resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +#### Command `az synapse integration-runtime show` + +##### Example +``` +az synapse integration-runtime show --name "exampleIntegrationRuntime" --resource-group "exampleResourceGroup" \ +--workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| +|**--if-none-match**|string|ETag of the integration runtime entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.|if_none_match|If-None-Match| + +#### Command `az synapse integration-runtime create` + +##### Example +``` +az synapse integration-runtime create --properties "{\\"type\\":\\"SelfHosted\\",\\"description\\":\\"A selfhosted \ +integration runtime\\"}" --name "exampleIntegrationRuntime" --resource-group "exampleResourceGroup" --workspace-name \ +"exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| +|**--if-match**|string|ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.|if_match|If-Match| +|**--properties**|object|Integration runtime properties.|properties|properties| + +#### Command `az synapse integration-runtime update` + +##### Example +``` +az synapse integration-runtime update --name "exampleIntegrationRuntime" --resource-group "exampleResourceGroup" \ +--auto-update "Off" --update-delay-offset "\\"PT3H\\"" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| +|**--auto-update**|choice|Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189.|auto_update|autoUpdate| +|**--update-delay-offset**|string|The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time.|update_delay_offset|updateDelayOffset| + +#### Command `az synapse integration-runtime delete` + +##### Example +``` +az synapse integration-runtime delete --name "exampleIntegrationRuntime" --resource-group "exampleResourceGroup" \ +--workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +#### Command `az synapse integration-runtime start` + +##### Example +``` +az synapse integration-runtime start --name "exampleManagedIntegrationRuntime" --resource-group "exampleResourceGroup" \ +--workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +#### Command `az synapse integration-runtime stop` + +##### Example +``` +az synapse integration-runtime stop --name "exampleManagedIntegrationRuntime" --resource-group "exampleResourceGroup" \ +--workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +#### Command `az synapse integration-runtime upgrade` + +##### Example +``` +az synapse integration-runtime upgrade --name "exampleIntegrationRuntime" --resource-group "exampleResourceGroup" \ +--workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +### group `az synapse integration-runtime-auth-key` +#### Command `az synapse integration-runtime-auth-key list` + +##### Example +``` +az synapse integration-runtime-auth-key list --integration-runtime-name "exampleIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +#### Command `az synapse integration-runtime-auth-key regenerate` + +##### Example +``` +az synapse integration-runtime-auth-key regenerate --integration-runtime-name "exampleIntegrationRuntime" --key-name \ +"authKey2" --resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| +|**--key-name**|choice|The name of the authentication key to regenerate.|key_name|keyName| + +### group `az synapse integration-runtime-connection-info` +#### Command `az synapse integration-runtime-connection-info get` + +##### Example +``` +az synapse integration-runtime-connection-info get --integration-runtime-name "exampleIntegrationRuntime" \ +--resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +### group `az synapse integration-runtime-credentials` +#### Command `az synapse integration-runtime-credentials sync` + +##### Example +``` +az synapse integration-runtime-credentials sync --integration-runtime-name "exampleIntegrationRuntime" \ +--resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +### group `az synapse integration-runtime-monitoring-data` +#### Command `az synapse integration-runtime-monitoring-data get` + +##### Example +``` +az synapse integration-runtime-monitoring-data get --integration-runtime-name "exampleIntegrationRuntime" \ +--resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +### group `az synapse integration-runtime-node` +#### Command `az synapse integration-runtime-node show` + +##### Example +``` +az synapse integration-runtime-node show --integration-runtime-name "exampleIntegrationRuntime" --node-name "Node_1" \ +--resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| +|**--node-name**|string|Integration runtime node name|node_name|nodeName| + +#### Command `az synapse integration-runtime-node update` + +##### Example +``` +az synapse integration-runtime-node update --integration-runtime-name "exampleIntegrationRuntime" --node-name "Node_1" \ +--resource-group "exampleResourceGroup" --concurrent-jobs-limit 2 --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| +|**--node-name**|string|Integration runtime node name|node_name|nodeName| +|**--concurrent-jobs-limit**|integer|The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed.|concurrent_jobs_limit|concurrentJobsLimit| + +#### Command `az synapse integration-runtime-node delete` + +##### Example +``` +az synapse integration-runtime-node delete --integration-runtime-name "exampleIntegrationRuntime" --node-name "Node_1" \ +--resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| +|**--node-name**|string|Integration runtime node name|node_name|nodeName| + +### group `az synapse integration-runtime-node-ip-address` +#### Command `az synapse integration-runtime-node-ip-address get` + +##### Example +``` +az synapse integration-runtime-node-ip-address get --integration-runtime-name "exampleIntegrationRuntime" --node-name \ +"Node_1" --resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| +|**--node-name**|string|Integration runtime node name|node_name|nodeName| + +### group `az synapse integration-runtime-object-metadata` +#### Command `az synapse integration-runtime-object-metadata get` + +##### Example +``` +az synapse integration-runtime-object-metadata get --metadata-path "ssisFolders" --integration-runtime-name \ +"testactivityv2" --resource-group "exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| +|**--metadata-path**|string|Metadata path.|metadata_path|metadataPath| + +#### Command `az synapse integration-runtime-object-metadata refresh` + +##### Example +``` +az synapse integration-runtime-object-metadata refresh --integration-runtime-name "testactivityv2" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +### group `az synapse integration-runtime-status` +#### Command `az synapse integration-runtime-status get` + +##### Example +``` +az synapse integration-runtime-status get --integration-runtime-name "exampleIntegrationRuntime" --resource-group \ +"exampleResourceGroup" --workspace-name "exampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--integration-runtime-name**|string|Integration runtime name|integration_runtime_name|integrationRuntimeName| + +### group `az synapse ip-firewall-rule` +#### Command `az synapse ip-firewall-rule list` + +##### Example +``` +az synapse ip-firewall-rule list --resource-group "ExampleResourceGroup" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +#### Command `az synapse ip-firewall-rule show` + +##### Example +``` +az synapse ip-firewall-rule show --resource-group "ExampleResourceGroup" --rule-name "ExampleIpFirewallRule" \ +--workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--rule-name**|string|The IP firewall rule name|rule_name|ruleName| + +#### Command `az synapse ip-firewall-rule create` + +##### Example +``` +az synapse ip-firewall-rule create --end-ip-address "10.0.0.254" --start-ip-address "10.0.0.0" --resource-group \ +"ExampleResourceGroup" --rule-name "ExampleIpFirewallRule" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--rule-name**|string|The IP firewall rule name|rule_name|ruleName| +|**--end-ip-address**|string|The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress|end_ip_address|endIpAddress| +|**--start-ip-address**|string|The start IP address of the firewall rule. Must be IPv4 format|start_ip_address|startIpAddress| + +#### Command `az synapse ip-firewall-rule update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--rule-name**|string|The IP firewall rule name|rule_name|ruleName| +|**--end-ip-address**|string|The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress|end_ip_address|endIpAddress| +|**--start-ip-address**|string|The start IP address of the firewall rule. Must be IPv4 format|start_ip_address|startIpAddress| + +#### Command `az synapse ip-firewall-rule delete` + +##### Example +``` +az synapse ip-firewall-rule delete --resource-group "ExampleResourceGroup" --rule-name "ExampleIpFirewallRule" \ +--workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--rule-name**|string|The IP firewall rule name|rule_name|ruleName| + +#### Command `az synapse ip-firewall-rule replace-all` + +##### Example +``` +az synapse ip-firewall-rule replace-all --resource-group "ExampleResourceGroup" --workspace-name "ExampleWorkspace" \ +--ip-firewall-rules "{\\"AnotherExampleFirewallRule\\":{\\"endIpAddress\\":\\"10.0.1.254\\",\\"startIpAddress\\":\\"10.\ +0.1.0\\"},\\"ExampleFirewallRule\\":{\\"endIpAddress\\":\\"10.0.0.254\\",\\"startIpAddress\\":\\"10.0.0.0\\"}}" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--ip-firewall-rules**|dictionary|IP firewall rule properties|ip_firewall_rules|ipFirewallRules| + +### group `az synapse operation` +#### Command `az synapse operation show-azure-async-header-result` + +##### Example +``` +az synapse operation show-azure-async-header-result --operation-id "01234567-89ab-4def-0123-456789abcdef" \ +--resource-group "resourceGroup1" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--operation-id**|string|Operation ID|operation_id|operationId| + +#### Command `az synapse operation show-location-header-result` + +##### Example +``` +az synapse operation show-location-header-result --operation-id "01234567-89ab-4def-0123-456789abcdef" \ +--resource-group "resourceGroup1" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--operation-id**|string|Operation ID|operation_id|operationId| + +### group `az synapse private-endpoint-connection` +#### Command `az synapse private-endpoint-connection list` + +##### Example +``` +az synapse private-endpoint-connection list --resource-group "ExampleResourceGroup" --workspace-name \ +"ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +#### Command `az synapse private-endpoint-connection show` + +##### Example +``` +az synapse private-endpoint-connection show --name "ExamplePrivateEndpointConnection" --resource-group \ +"ExampleResourceGroup" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--private-endpoint-connection-name**|string|The name of the private endpoint connection.|private_endpoint_connection_name|privateEndpointConnectionName| + +#### Command `az synapse private-endpoint-connection create` + +##### Example +``` +az synapse private-endpoint-connection create --name "ExamplePrivateEndpointConnection" --resource-group \ +"ExampleResourceGroup" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--private-endpoint-connection-name**|string|The name of the private endpoint connection.|private_endpoint_connection_name|privateEndpointConnectionName| + +#### Command `az synapse private-endpoint-connection delete` + +##### Example +``` +az synapse private-endpoint-connection delete --name "ExamplePrivateEndpointConnection" --resource-group \ +"ExampleResourceGroup" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--private-endpoint-connection-name**|string|The name of the private endpoint connection.|private_endpoint_connection_name|privateEndpointConnectionName| + +### group `az synapse private-link-hub` +#### Command `az synapse private-link-hub list` + +##### Example +``` +az synapse private-link-hub list --resource-group "resourceGroup1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| + +#### Command `az synapse private-link-hub list` + +##### Example +``` +az synapse private-link-hub list +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| + +#### Command `az synapse private-link-hub show` + +##### Example +``` +az synapse private-link-hub show --name "privateLinkHub1" --resource-group "resourceGroup1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--private-link-hub-name**|string|The name of the privateLinkHub|private_link_hub_name|privateLinkHubName| + +#### Command `az synapse private-link-hub create` + +##### Example +``` +az synapse private-link-hub create --location "East US" --tags key="value" --name "privateLinkHub1" --resource-group \ +"resourceGroup1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--private-link-hub-name**|string|The name of the privateLinkHub|private_link_hub_name|privateLinkHubName| +|**--location**|string|The geo-location where the resource lives|location|location| +|**--tags**|dictionary|Resource tags.|tags|tags| + +#### Command `az synapse private-link-hub update` + +##### Example +``` +az synapse private-link-hub update --name "privateLinkHub1" --tags key="value" --resource-group "resourceGroup1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--private-link-hub-name**|string|The name of the privateLinkHub|private_link_hub_name|privateLinkHubName| +|**--tags**|dictionary|Resource tags|tags|tags| + +#### Command `az synapse private-link-hub delete` + +##### Example +``` +az synapse private-link-hub delete --name "privateLinkHub1" --resource-group "resourceGroup1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--private-link-hub-name**|string|The name of the privateLinkHub|private_link_hub_name|privateLinkHubName| + +### group `az synapse private-link-resource` +#### Command `az synapse private-link-resource list` + +##### Example +``` +az synapse private-link-resource list --resource-group "ExampleResourceGroup" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +#### Command `az synapse private-link-resource show` + +##### Example +``` +az synapse private-link-resource show --name "sql" --resource-group "ExampleResourceGroup" --workspace-name \ +"ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--private-link-resource-name**|string|The name of the private link resource|private_link_resource_name|privateLinkResourceName| + +### group `az synapse sql-pool` +#### Command `az synapse sql-pool list` + +##### Example +``` +az synapse sql-pool list --resource-group "sqlcrudtest-6845" --workspace-name "sqlcrudtest-7177" +az synapse sql-pool list --resource-group "sqlcrudtest-6845" --workspace-name "sqlcrudtest-7177" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +#### Command `az synapse sql-pool show` + +##### Example +``` +az synapse sql-pool show --resource-group "sqlcrudtest-6852" --name "sqlcrudtest-9187" --workspace-name \ +"sqlcrudtest-2080" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool create` + +##### Example +``` +az synapse sql-pool create --resource-group "ExampleResourceGroup" --location "West US 2" --collation "" --create-mode \ +"" --creation-date "1970-01-01T00:00:00.000Z" --max-size-bytes 0 --recoverable-database-id "" --restore-point-in-time \ +"1970-01-01T00:00:00.000Z" --source-database-id "" --sku name="" tier="" --name "ExampleSqlPool" --workspace-name \ +"ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--location**|string|The geo-location where the resource lives|location|location| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--sku**|object|SQL pool SKU|sku|sku| +|**--max-size-bytes**|integer|Maximum size in bytes|max_size_bytes|maxSizeBytes| +|**--collation**|string|Collation mode|collation|collation| +|**--source-database-id**|string|Source database to create from|source_database_id|sourceDatabaseId| +|**--recoverable-database-id**|string|Backup database to restore from|recoverable_database_id|recoverableDatabaseId| +|**--provisioning-state**|string|Resource state|provisioning_state|provisioningState| +|**--status**|string|Resource status|status|status| +|**--restore-point-in-time**|date-time|Snapshot time to restore|restore_point_in_time|restorePointInTime| +|**--create-mode**|string|What is this?|create_mode|createMode| +|**--creation-date**|date-time|Date the SQL pool was created|creation_date|creationDate| + +#### Command `az synapse sql-pool update` + +##### Example +``` +az synapse sql-pool update --resource-group "ExampleResourceGroup" --location "West US 2" --collation "" --create-mode \ +"" --creation-date "1970-01-01T00:00:00.000Z" --max-size-bytes 0 --recoverable-database-id "" --restore-point-in-time \ +"1970-01-01T00:00:00.000Z" --source-database-id "" --sku name="" tier="" --name "ExampleSqlPool" --workspace-name \ +"ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--location**|string|The geo-location where the resource lives|location|location| +|**--sku**|object|SQL pool SKU|sku|sku| +|**--max-size-bytes**|integer|Maximum size in bytes|max_size_bytes|maxSizeBytes| +|**--collation**|string|Collation mode|collation|collation| +|**--source-database-id**|string|Source database to create from|source_database_id|sourceDatabaseId| +|**--recoverable-database-id**|string|Backup database to restore from|recoverable_database_id|recoverableDatabaseId| +|**--provisioning-state**|string|Resource state|provisioning_state|provisioningState| +|**--status**|string|Resource status|status|status| +|**--restore-point-in-time**|date-time|Snapshot time to restore|restore_point_in_time|restorePointInTime| +|**--create-mode**|string|What is this?|create_mode|createMode| +|**--creation-date**|date-time|Date the SQL pool was created|creation_date|creationDate| + +#### Command `az synapse sql-pool delete` + +##### Example +``` +az synapse sql-pool delete --resource-group "ExampleResourceGroup" --name "ExampleSqlPool" --workspace-name \ +"ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool pause` + +##### Example +``` +az synapse sql-pool pause --resource-group "Default-SQL-SouthEastAsia" --name "testdwdb" --workspace-name "testsvr" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool rename` + +##### Example +``` +az synapse sql-pool rename --id "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEa\ +stAsia/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/newtestdb" --resource-group "Default-SQL-SouthEastAsia" \ +--name "testdb" --workspace-name "testsvr" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--id**|string|The target ID for the resource|id|id| + +#### Command `az synapse sql-pool resume` + +##### Example +``` +az synapse sql-pool resume --resource-group "sqlcrudtest-6852" --name "sqlcrudtest-9187" --workspace-name \ +"sqlcrudtest-2080" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +### group `az synapse sql-pool-blob-auditing-policy` +#### Command `az synapse sql-pool-blob-auditing-policy show` + +##### Example +``` +az synapse sql-pool-blob-auditing-policy show --resource-group "blobauditingtest-6852" --sql-pool-name "testdb" \ +--workspace-name "blobauditingtest-2080" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool-blob-auditing-policy create` + +##### Example +``` +az synapse sql-pool-blob-auditing-policy create --audit-actions-and-groups "DATABASE_LOGOUT_GROUP" \ +"DATABASE_ROLE_MEMBER_CHANGE_GROUP" "UPDATE on database::TestDatabaseName by public" --is-azure-monitor-target-enabled \ +true --is-storage-secondary-key-in-use false --retention-days 6 --state "Enabled" --storage-account-access-key \ +"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==" --storage-account-subscription-id\ + "00000000-1234-0000-5678-000000000000" --storage-endpoint "https://mystorage.blob.core.windows.net" --resource-group \ +"blobauditingtest-4799" --sql-pool-name "testdb" --workspace-name "blobauditingtest-6440" +az synapse sql-pool-blob-auditing-policy create --state "Enabled" --storage-account-access-key \ +"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==" --storage-endpoint \ +"https://mystorage.blob.core.windows.net" --resource-group "blobauditingtest-4799" --sql-pool-name "testdb" \ +--workspace-name "blobauditingtest-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--state**|sealed-choice|Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required.|state|state| +|**--storage-endpoint**|string|Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.|storage_endpoint|storageEndpoint| +|**--storage-account-access-key**|string|Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required.|storage_account_access_key|storageAccountAccessKey| +|**--retention-days**|integer|Specifies the number of days to keep in the audit logs in the storage account.|retention_days|retentionDays| +|**--audit-actions-and-groups**|array|Specifies the Actions-Groups and Actions to audit. The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. This above combination is also the set that is configured by default when enabling auditing from the Azure portal. The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE REFERENCES The general form for defining an action to be audited is: {action} ON {object} BY {principal} Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on SCHEMA::mySchema by public For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)|audit_actions_and_groups|auditActionsAndGroups| +|**--storage-account-subscription-id**|uuid|Specifies the blob storage subscription Id.|storage_account_subscription_id|storageAccountSubscriptionId| +|**--is-storage-secondary-key-in-use**|boolean|Specifies whether storageAccountAccessKey value is the storage's secondary key.|is_storage_secondary_key_in_use|isStorageSecondaryKeyInUse| +|**--is-azure-monitor-target-enabled**|boolean|Specifies whether audit events are sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. Note that for server level audit you should use the 'master' database as {databaseName}. Diagnostic Settings URI format: PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) |is_azure_monitor_target_enabled|isAzureMonitorTargetEnabled| + +#### Command `az synapse sql-pool-blob-auditing-policy update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--state**|sealed-choice|Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required.|state|state| +|**--storage-endpoint**|string|Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.|storage_endpoint|storageEndpoint| +|**--storage-account-access-key**|string|Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required.|storage_account_access_key|storageAccountAccessKey| +|**--retention-days**|integer|Specifies the number of days to keep in the audit logs in the storage account.|retention_days|retentionDays| +|**--audit-actions-and-groups**|array|Specifies the Actions-Groups and Actions to audit. The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. This above combination is also the set that is configured by default when enabling auditing from the Azure portal. The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE REFERENCES The general form for defining an action to be audited is: {action} ON {object} BY {principal} Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on SCHEMA::mySchema by public For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)|audit_actions_and_groups|auditActionsAndGroups| +|**--storage-account-subscription-id**|uuid|Specifies the blob storage subscription Id.|storage_account_subscription_id|storageAccountSubscriptionId| +|**--is-storage-secondary-key-in-use**|boolean|Specifies whether storageAccountAccessKey value is the storage's secondary key.|is_storage_secondary_key_in_use|isStorageSecondaryKeyInUse| +|**--is-azure-monitor-target-enabled**|boolean|Specifies whether audit events are sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. Note that for server level audit you should use the 'master' database as {databaseName}. Diagnostic Settings URI format: PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) |is_azure_monitor_target_enabled|isAzureMonitorTargetEnabled| + +### group `az synapse sql-pool-connection-policy` +#### Command `az synapse sql-pool-connection-policy show` + +##### Example +``` +az synapse sql-pool-connection-policy show --resource-group "blobauditingtest-6852" --sql-pool-name "testdb" \ +--workspace-name "blobauditingtest-2080" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +### group `az synapse sql-pool-data-warehouse-user-activity` +#### Command `az synapse sql-pool-data-warehouse-user-activity show` + +##### Example +``` +az synapse sql-pool-data-warehouse-user-activity show --resource-group "Default-SQL-SouthEastAsia" --sql-pool-name \ +"testdb" --workspace-name "testsvr" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +### group `az synapse sql-pool-geo-backup-policy` +#### Command `az synapse sql-pool-geo-backup-policy show` + +##### Example +``` +az synapse sql-pool-geo-backup-policy show --resource-group "sqlcrudtest-4799" --sql-pool-name "testdw" \ +--workspace-name "sqlcrudtest-5961" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +### group `az synapse sql-pool-metadata-sync-config` +#### Command `az synapse sql-pool-metadata-sync-config show` + +##### Example +``` +az synapse sql-pool-metadata-sync-config show --resource-group "ExampleResourceGroup" --sql-pool-name "ExampleSqlPool" \ +--workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool-metadata-sync-config create` + +##### Example +``` +az synapse sql-pool-metadata-sync-config create --enabled true --resource-group "ExampleResourceGroup" --sql-pool-name \ +"ExampleSqlPool" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--enabled**|boolean|Indicates whether the metadata sync is enabled or disabled|enabled|enabled| + +### group `az synapse sql-pool-operation` +#### Command `az synapse sql-pool-operation list` + +##### Example +``` +az synapse sql-pool-operation list --resource-group "sqlcrudtest-7398" --sql-pool-name "testdb" --workspace-name \ +"sqlcrudtest-4645" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +### group `az synapse sql-pool-operation-result` +#### Command `az synapse sql-pool-operation-result show-location-header-result` + +##### Example +``` +az synapse sql-pool-operation-result show-location-header-result --operation-id "fedcba98-7654-4210-fedc-ba9876543210" \ +--resource-group "ExampleResourceGroup" --sql-pool-name "ExampleSqlPool" --workspace-name "ExampleWorkspace" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--operation-id**|string|Operation ID|operation_id|operationId| + +### group `az synapse sql-pool-replication-link` +#### Command `az synapse sql-pool-replication-link list` + +##### Example +``` +az synapse sql-pool-replication-link list --resource-group "sqlcrudtest-4799" --sql-pool-name "testdb" \ +--workspace-name "sqlcrudtest-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +### group `az synapse sql-pool-restore-point` +#### Command `az synapse sql-pool-restore-point list` + +##### Example +``` +az synapse sql-pool-restore-point list --resource-group "Default-SQL-SouthEastAsia" --sql-pool-name "testDatabase" \ +--workspace-name "testserver" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool-restore-point create` + +##### Example +``` +az synapse sql-pool-restore-point create --restore-point-label "mylabel" --resource-group "Default-SQL-SouthEastAsia" \ +--sql-pool-name "testDatabase" --workspace-name "testserver" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--restore-point-label**|string|The restore point label to apply|restore_point_label|restorePointLabel| + +### group `az synapse sql-pool-schema` +#### Command `az synapse sql-pool-schema list` + +##### Example +``` +az synapse sql-pool-schema list --resource-group "myRG" --sql-pool-name "myDatabase" --workspace-name "serverName" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--filter**|string|An OData filter expression that filters elements in the collection.|filter|$filter| + +### group `az synapse sql-pool-security-alert-policy` +#### Command `az synapse sql-pool-security-alert-policy show` + +##### Example +``` +az synapse sql-pool-security-alert-policy show --resource-group "securityalert-6852" --sql-pool-name "testdb" \ +--workspace-name "securityalert-2080" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool-security-alert-policy create` + +##### Example +``` +az synapse sql-pool-security-alert-policy create --disabled-alerts "Sql_Injection" "Usage_Anomaly" \ +--email-account-admins true --email-addresses "test@microsoft.com" "user@microsoft.com" --retention-days 6 --state \ +"Enabled" --storage-account-access-key "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3R\ +SD==" --storage-endpoint "https://mystorage.blob.core.windows.net" --resource-group "securityalert-4799" \ +--sql-pool-name "testdb" --workspace-name "securityalert-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--state**|sealed-choice|Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific Sql pool.|state|state| +|**--disabled-alerts**|array|Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action|disabled_alerts|disabledAlerts| +|**--email-addresses**|array|Specifies an array of e-mail addresses to which the alert is sent.|email_addresses|emailAddresses| +|**--email-account-admins**|boolean|Specifies that the alert is sent to the account administrators.|email_account_admins|emailAccountAdmins| +|**--storage-endpoint**|string|Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.|storage_endpoint|storageEndpoint| +|**--storage-account-access-key**|string|Specifies the identifier key of the Threat Detection audit storage account.|storage_account_access_key|storageAccountAccessKey| +|**--retention-days**|integer|Specifies the number of days to keep in the Threat Detection audit logs.|retention_days|retentionDays| + +#### Command `az synapse sql-pool-security-alert-policy update` + +##### Example +``` +az synapse sql-pool-security-alert-policy update --state "Enabled" --resource-group "securityalert-4799" \ +--sql-pool-name "testdb" --workspace-name "securityalert-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--state**|sealed-choice|Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific Sql pool.|state|state| +|**--disabled-alerts**|array|Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action|disabled_alerts|disabledAlerts| +|**--email-addresses**|array|Specifies an array of e-mail addresses to which the alert is sent.|email_addresses|emailAddresses| +|**--email-account-admins**|boolean|Specifies that the alert is sent to the account administrators.|email_account_admins|emailAccountAdmins| +|**--storage-endpoint**|string|Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.|storage_endpoint|storageEndpoint| +|**--storage-account-access-key**|string|Specifies the identifier key of the Threat Detection audit storage account.|storage_account_access_key|storageAccountAccessKey| +|**--retention-days**|integer|Specifies the number of days to keep in the Threat Detection audit logs.|retention_days|retentionDays| + +### group `az synapse sql-pool-sensitivity-label` +#### Command `az synapse sql-pool-sensitivity-label create` + +##### Example +``` +az synapse sql-pool-sensitivity-label create --column-name "myColumn" --information-type "PhoneNumber" \ +--information-type-id "d22fa6e9-5ee4-3bde-4c2b-a409604c4646" --label-id "bf91e08c-f4f0-478a-b016-25164b2a65ff" \ +--label-name "PII" --resource-group "myRG" --schema-name "dbo" --sql-pool-name "myDatabase" --table-name "myTable" \ +--workspace-name "myServer" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--schema-name**|string|The name of the schema.|schema_name|schemaName| +|**--table-name**|string|The name of the table.|table_name|tableName| +|**--column-name**|string|The name of the column.|column_name|columnName| +|**--label-name**|string|The label name.|label_name|labelName| +|**--label-id**|string|The label ID.|label_id|labelId| +|**--information-type**|string|The information type.|information_type|informationType| +|**--information-type-id**|string|The information type ID.|information_type_id|informationTypeId| + +#### Command `az synapse sql-pool-sensitivity-label update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--schema-name**|string|The name of the schema.|schema_name|schemaName| +|**--table-name**|string|The name of the table.|table_name|tableName| +|**--column-name**|string|The name of the column.|column_name|columnName| +|**--label-name**|string|The label name.|label_name|labelName| +|**--label-id**|string|The label ID.|label_id|labelId| +|**--information-type**|string|The information type.|information_type|informationType| +|**--information-type-id**|string|The information type ID.|information_type_id|informationTypeId| + +#### Command `az synapse sql-pool-sensitivity-label delete` + +##### Example +``` +az synapse sql-pool-sensitivity-label delete --column-name "myColumn" --resource-group "myRG" --schema-name "dbo" \ +--sql-pool-name "myDatabase" --table-name "myTable" --workspace-name "myServer" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--schema-name**|string|The name of the schema.|schema_name|schemaName| +|**--table-name**|string|The name of the table.|table_name|tableName| +|**--column-name**|string|The name of the column.|column_name|columnName| + +#### Command `az synapse sql-pool-sensitivity-label disable-recommendation` + +##### Example +``` +az synapse sql-pool-sensitivity-label disable-recommendation --column-name "myColumn" --resource-group "myRG" \ +--schema-name "dbo" --sql-pool-name "myDatabase" --table-name "myTable" --workspace-name "myServer" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--schema-name**|string|The name of the schema.|schema_name|schemaName| +|**--table-name**|string|The name of the table.|table_name|tableName| +|**--column-name**|string|The name of the column.|column_name|columnName| + +#### Command `az synapse sql-pool-sensitivity-label enable-recommendation` + +##### Example +``` +az synapse sql-pool-sensitivity-label enable-recommendation --column-name "myColumn" --resource-group "myRG" \ +--schema-name "dbo" --sql-pool-name "myDatabase" --table-name "myTable" --workspace-name "myServer" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--schema-name**|string|The name of the schema.|schema_name|schemaName| +|**--table-name**|string|The name of the table.|table_name|tableName| +|**--column-name**|string|The name of the column.|column_name|columnName| + +#### Command `az synapse sql-pool-sensitivity-label list-current` + +##### Example +``` +az synapse sql-pool-sensitivity-label list-current --resource-group "myRG" --sql-pool-name "myDatabase" \ +--workspace-name "myServer" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--filter**|string|An OData filter expression that filters elements in the collection.|filter|$filter| + +#### Command `az synapse sql-pool-sensitivity-label list-recommended` + +##### Example +``` +az synapse sql-pool-sensitivity-label list-recommended --resource-group "myRG" --sql-pool-name "myDatabase" \ +--workspace-name "myServer" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--include-disabled-recommendations**|boolean|Specifies whether to include disabled recommendations or not.|include_disabled_recommendations|includeDisabledRecommendations| +|**--skip-token**|string|An OData query option to indicate how many elements to skip in the collection.|skip_token|$skipToken| +|**--filter**|string|An OData filter expression that filters elements in the collection.|filter|$filter| + +### group `az synapse sql-pool-table` +#### Command `az synapse sql-pool-table list` + +##### Example +``` +az synapse sql-pool-table list --resource-group "myRG" --schema-name "dbo" --sql-pool-name "myDatabase" \ +--workspace-name "serverName" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--schema-name**|string|The name of the schema.|schema_name|schemaName| +|**--filter**|string|An OData filter expression that filters elements in the collection.|filter|$filter| + +### group `az synapse sql-pool-table-column` +#### Command `az synapse sql-pool-table-column list` + +##### Example +``` +az synapse sql-pool-table-column list --resource-group "myRG" --schema-name "dbo" --sql-pool-name "myDatabase" \ +--table-name "table1" --workspace-name "serverName" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--schema-name**|string|The name of the schema.|schema_name|schemaName| +|**--table-name**|string|The name of the table.|table_name|tableName| +|**--filter**|string|An OData filter expression that filters elements in the collection.|filter|$filter| + +### group `az synapse sql-pool-transparent-data-encryption` +#### Command `az synapse sql-pool-transparent-data-encryption show` + +##### Example +``` +az synapse sql-pool-transparent-data-encryption show --resource-group "sqlcrudtest-6852" --sql-pool-name \ +"sqlcrudtest-9187" --workspace-name "sqlcrudtest-2080" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool-transparent-data-encryption create` + +##### Example +``` +az synapse sql-pool-transparent-data-encryption create --status "Enabled" --resource-group "sqlcrudtest-6852" \ +--sql-pool-name "sqlcrudtest-9187" --workspace-name "sqlcrudtest-2080" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--status**|sealed-choice|The status of the database transparent data encryption.|status|status| + +#### Command `az synapse sql-pool-transparent-data-encryption update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--status**|sealed-choice|The status of the database transparent data encryption.|status|status| + +### group `az synapse sql-pool-usage` +#### Command `az synapse sql-pool-usage list` + +##### Example +``` +az synapse sql-pool-usage list --resource-group "sqlcrudtest-6730" --sql-pool-name "3481" --workspace-name \ +"sqlcrudtest-9007" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +### group `az synapse sql-pool-vulnerability-assessment` +#### Command `az synapse sql-pool-vulnerability-assessment list` + +##### Example +``` +az synapse sql-pool-vulnerability-assessment list --resource-group "vulnerabilityaseessmenttest-4799" --sql-pool-name \ +"testdb" --workspace-name "vulnerabilityaseessmenttest-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool-vulnerability-assessment show` + +##### Example +``` +az synapse sql-pool-vulnerability-assessment show --resource-group "vulnerabilityaseessmenttest-4799" --sql-pool-name \ +"testdb" --workspace-name "vulnerabilityaseessmenttest-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool-vulnerability-assessment create` + +##### Example +``` +az synapse sql-pool-vulnerability-assessment create --recurring-scans email-subscription-admins=true \ +emails="email1@mail.com" emails="email2@mail.com" is-enabled=true --storage-account-access-key \ +"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" --storage-container-path "https://myStorage.blob.core.window\ +s.net/vulnerability-assessment/" --storage-container-sas-key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"\ + --resource-group "vulnerabilityaseessmenttest-4799" --sql-pool-name "testdb" --workspace-name \ +"vulnerabilityaseessmenttest-6440" +az synapse sql-pool-vulnerability-assessment create --storage-account-access-key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\ +XXXXXXXXXXXXXXXXXXX" --storage-container-path "https://myStorage.blob.core.windows.net/vulnerability-assessment/" \ +--resource-group "vulnerabilityaseessmenttest-4799" --sql-pool-name "testdb" --workspace-name \ +"vulnerabilityaseessmenttest-6440" +az synapse sql-pool-vulnerability-assessment create --storage-container-path "https://myStorage.blob.core.windows.net/v\ +ulnerability-assessment/" --storage-container-sas-key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \ +--resource-group "vulnerabilityaseessmenttest-4799" --sql-pool-name "testdb" --workspace-name \ +"vulnerabilityaseessmenttest-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--storage-container-path**|string|A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set|storage_container_path|storageContainerPath| +|**--storage-container-sas-key**|string|A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.|storage_container_sas_key|storageContainerSasKey| +|**--storage-account-access-key**|string|Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.|storage_account_access_key|storageAccountAccessKey| +|**--recurring-scans**|object|The recurring scans settings|recurring_scans|recurringScans| + +#### Command `az synapse sql-pool-vulnerability-assessment update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--storage-container-path**|string|A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set|storage_container_path|storageContainerPath| +|**--storage-container-sas-key**|string|A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.|storage_container_sas_key|storageContainerSasKey| +|**--storage-account-access-key**|string|Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.|storage_account_access_key|storageAccountAccessKey| +|**--recurring-scans**|object|The recurring scans settings|recurring_scans|recurringScans| + +#### Command `az synapse sql-pool-vulnerability-assessment delete` + +##### Example +``` +az synapse sql-pool-vulnerability-assessment delete --resource-group "vulnerabilityaseessmenttest-4799" \ +--sql-pool-name "testdb" --workspace-name "vulnerabilityaseessmenttest-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +### group `az synapse sql-pool-vulnerability-assessment-rule-baseline` +#### Command `az synapse sql-pool-vulnerability-assessment-rule-baseline create` + +##### Example +``` +az synapse sql-pool-vulnerability-assessment-rule-baseline create --baseline-name "default" --baseline-results \ +result="userA" result="SELECT" --baseline-results result="userB" result="SELECT" --baseline-results result="userC" \ +result="SELECT" result="tableId_4" --resource-group "vulnerabilityaseessmenttest-4799" --rule-id "VA1001" \ +--sql-pool-name "testdb" --workspace-name "vulnerabilityaseessmenttest-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--rule-id**|string|The vulnerability assessment rule ID.|rule_id|ruleId| +|**--baseline-name**|sealed-choice|The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule and master for workspace level rule).|baseline_name|baselineName| +|**--baseline-results**|array|The rule baseline result|baseline_results|baselineResults| + +#### Command `az synapse sql-pool-vulnerability-assessment-rule-baseline update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--rule-id**|string|The vulnerability assessment rule ID.|rule_id|ruleId| +|**--baseline-name**|sealed-choice|The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule and master for workspace level rule).|baseline_name|baselineName| +|**--baseline-results**|array|The rule baseline result|baseline_results|baselineResults| + +#### Command `az synapse sql-pool-vulnerability-assessment-rule-baseline delete` + +##### Example +``` +az synapse sql-pool-vulnerability-assessment-rule-baseline delete --baseline-name "default" --resource-group \ +"vulnerabilityaseessmenttest-4799" --rule-id "VA1001" --sql-pool-name "testdb" --workspace-name \ +"vulnerabilityaseessmenttest-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--rule-id**|string|The vulnerability assessment rule ID.|rule_id|ruleId| +|**--baseline-name**|sealed-choice|The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule and master for workspace level rule).|baseline_name|baselineName| + +### group `az synapse sql-pool-vulnerability-assessment-scan` +#### Command `az synapse sql-pool-vulnerability-assessment-scan list` + +##### Example +``` +az synapse sql-pool-vulnerability-assessment-scan list --resource-group "vulnerabilityassessmenttest-4711" \ +--sql-pool-name "testdb" --workspace-name "vulnerabilityassessmenttest-6411" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| + +#### Command `az synapse sql-pool-vulnerability-assessment-scan export` + +##### Example +``` +az synapse sql-pool-vulnerability-assessment-scan export --resource-group "vulnerabilityassessmenttest-4799" --scan-id \ +"scan001" --sql-pool-name "testdb" --workspace-name "vulnerabilityassessmenttest-6440" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--scan-id**|string|The vulnerability assessment scan Id of the scan to retrieve.|scan_id|scanId| + +#### Command `az synapse sql-pool-vulnerability-assessment-scan initiate-scan` + +##### Example +``` +az synapse sql-pool-vulnerability-assessment-scan initiate-scan --resource-group "vulnerabilityassessmenttest-4711" \ +--scan-id "scan01" --sql-pool-name "testdb" --workspace-name "vulnerabilityassessmenttest-6411" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--sql-pool-name**|string|SQL pool name|sql_pool_name|sqlPoolName| +|**--scan-id**|string|The vulnerability assessment scan Id of the scan to retrieve.|scan_id|scanId| + +### group `az synapse workspace` +#### Command `az synapse workspace list` + +##### Example +``` +az synapse workspace list --resource-group "resourceGroup1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| + +#### Command `az synapse workspace list` + +##### Example +``` +az synapse workspace list +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| + +#### Command `az synapse workspace show` + +##### Example +``` +az synapse workspace show --resource-group "resourceGroup1" --name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +#### Command `az synapse workspace create` + +##### Example +``` +az synapse workspace create --resource-group "resourceGroup1" --type "SystemAssigned" --location "East US" \ +--default-data-lake-storage account-url="https://accountname.dfs.core.windows.net" filesystem="default" \ +--managed-resource-group-name "workspaceManagedResourceGroupUnique" --managed-virtual-network "default" \ +--sql-administrator-login "login" --sql-administrator-login-password "password" --tags key="value" --name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--location**|string|The geo-location where the resource lives|location|location| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--default-data-lake-storage**|object|Workspace default data lake storage account details|default_data_lake_storage|defaultDataLakeStorage| +|**--sql-administrator-login-password**|string|SQL administrator login password|sql_administrator_login_password|sqlAdministratorLoginPassword| +|**--managed-resource-group-name**|string|Workspace managed resource group. The resource group name uniquely identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that the name cannot end with '.'|managed_resource_group_name|managedResourceGroupName| +|**--sql-administrator-login**|string|Login for workspace SQL active directory administrator|sql_administrator_login|sqlAdministratorLogin| +|**--connectivity-endpoints**|dictionary|Connectivity endpoints|connectivity_endpoints|connectivityEndpoints| +|**--managed-virtual-network**|string|Setting this to 'default' will ensure that all compute for this workspace is in a virtual network managed on behalf of the user.|managed_virtual_network|managedVirtualNetwork| +|**--private-endpoint-connections**|array|Private endpoint connections to the workspace|private_endpoint_connections|privateEndpointConnections| +|**--compute-subnet-id**|string|Subnet ID used for computes in workspace|compute_subnet_id|computeSubnetId| +|**--type**|sealed-choice|The type of managed identity for the workspace|type|type| + +#### Command `az synapse workspace update` + +##### Example +``` +az synapse workspace update --resource-group "resourceGroup1" --name "workspace1" --type "SystemAssigned" \ +--sql-administrator-login-password "password" --tags key="value" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--tags**|dictionary|Resource tags|tags|tags| +|**--sql-administrator-login-password**|string|SQL administrator login password|sql_administrator_login_password|sqlAdministratorLoginPassword| +|**--type**|sealed-choice|The type of managed identity for the workspace|type|type| + +#### Command `az synapse workspace delete` + +##### Example +``` +az synapse workspace delete --resource-group "resourceGroup1" --name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +### group `az synapse workspace-aad-admin` +#### Command `az synapse workspace-aad-admin show` + +##### Example +``` +az synapse workspace-aad-admin show --resource-group "resourceGroup1" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +#### Command `az synapse workspace-aad-admin create` + +##### Example +``` +az synapse workspace-aad-admin create --administrator-type "ActiveDirectory" --login "bob@contoso.com" --sid \ +"c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c" --tenant-id "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c" --resource-group \ +"resourceGroup1" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--tenant-id**|string|Tenant ID of the workspace active directory administrator|tenant_id|tenantId| +|**--login**|string|Login of the workspace active directory administrator|login|login| +|**--administrator-type**|string|Workspace active directory administrator type|administrator_type|administratorType| +|**--sid**|string|Object ID of the workspace active directory administrator|sid|sid| + +#### Command `az synapse workspace-aad-admin update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--tenant-id**|string|Tenant ID of the workspace active directory administrator|tenant_id|tenantId| +|**--login**|string|Login of the workspace active directory administrator|login|login| +|**--administrator-type**|string|Workspace active directory administrator type|administrator_type|administratorType| +|**--sid**|string|Object ID of the workspace active directory administrator|sid|sid| + +#### Command `az synapse workspace-aad-admin delete` + +##### Example +``` +az synapse workspace-aad-admin delete --resource-group "resourceGroup1" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +### group `az synapse workspace-managed-identity-sql-control-setting` +#### Command `az synapse workspace-managed-identity-sql-control-setting show` + +##### Example +``` +az synapse workspace-managed-identity-sql-control-setting show --resource-group "resourceGroup1" --workspace-name \ +"workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| + +#### Command `az synapse workspace-managed-identity-sql-control-setting create` + +##### Example +``` +az synapse workspace-managed-identity-sql-control-setting create --desired-state "Enabled" --resource-group \ +"resourceGroup1" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--desired-state**|choice|Desired state|desired_state|desiredState| + +#### Command `az synapse workspace-managed-identity-sql-control-setting update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of the workspace|workspace_name|workspaceName| +|**--desired-state**|choice|Desired state|desired_state|desiredState| diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/__init__.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/__init__.py new file mode 100644 index 000000000..70488e938 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/__init__.py @@ -0,0 +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).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/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/__init__.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/__init__.py new file mode 100644 index 000000000..c9cfdc73e --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/__init__.py @@ -0,0 +1,12 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/example_steps.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/example_steps.py new file mode 100644 index 000000000..5a92b43c5 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/example_steps.py @@ -0,0 +1,1352 @@ +# -------------------------------------------------------------------------- +# 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=line-too-long + + +from .. import try_manual + + +# EXAMPLE: /Workspaces/put/Create or update a workspace +@try_manual +def step_workspace_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace create ' + '--resource-group "{rg_2}" ' + '--type "SystemAssigned" ' + '--location "East US" ' + '--default-data-lake-storage account-url="https://accountname.dfs.core.windows.net" filesystem="default" ' + '--managed-resource-group-name "workspaceManagedResourceGroupUnique" ' + '--managed-virtual-network "default" ' + '--sql-administrator-login "login" ' + '--sql-administrator-login-password "password" ' + '--tags key="value" ' + '--name "{myWorkspace2}"', + checks=[]) + test.cmd('az synapse workspace wait --created ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=checks) + + +# EXAMPLE: /Workspaces/get/Get a workspace +@try_manual +def step_workspace_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace show ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=checks) + + +# EXAMPLE: /Workspaces/get/List workspaces in resource group +@try_manual +def step_workspace_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace list ' + '--resource-group "{rg_2}"', + checks=checks) + + +# EXAMPLE: /Workspaces/get/List workspaces in subscription +@try_manual +def step_workspace_list2(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace list ' + '-g ""', + checks=checks) + + +# EXAMPLE: /Workspaces/patch/Update a workspace +@try_manual +def step_workspace_update(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace update ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}" ' + '--type "SystemAssigned" ' + '--sql-administrator-login-password "password" ' + '--tags key="value"', + checks=checks) + + +# EXAMPLE: /BigDataPools/put/Create or update a Big Data pool +@try_manual +def step_big_data_pool_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool create ' + '--location "West US 2" ' + '--auto-pause delay-in-minutes=15 enabled=true ' + '--auto-scale enabled=true max-node-count=50 min-node-count=3 ' + '--default-spark-log-folder "/logs" ' + '--library-requirements content="" filename="requirements.txt" ' + '--node-count 4 ' + '--node-size "Medium" ' + '--node-size-family "MemoryOptimized" ' + '--spark-events-folder "/events" ' + '--spark-version "2.4" ' + '--tags key="value" ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + test.cmd('az synapse big-data-pool wait --created ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /BigDataPools/get/Get a Big Data pool +@try_manual +def step_big_data_pool_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool show ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /BigDataPools/get/List Big Data pools in a workspace +@try_manual +def step_big_data_pool_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool list ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /BigDataPools/patch/Update a Big Data pool +@try_manual +def step_big_data_pool_update(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool update ' + '--name "{myBigDataPool}" ' + '--tags key="value" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /BigDataPools/delete/Delete a Big Data pool +@try_manual +def step_big_data_pool_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool delete -y ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimes/put/Create integration runtime +@try_manual +def step_integration_runtime_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime create ' + '--properties "{{\\"type\\":\\"SelfHosted\\",\\"description\\":\\"A selfhosted integration runtime\\"}}" ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimes/get/Get integration runtime +@try_manual +def step_integration_runtime_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime show ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimes/get/List integration runtimes +@try_manual +def step_integration_runtime_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime list ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimes/patch/Update integration runtime +@try_manual +def step_integration_runtime_update(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime update ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--auto-update "Off" ' + '--update-delay-offset "\\"PT3H\\"" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimes/post/Start integration runtime +@try_manual +def step_integration_runtime_start(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime start ' + '--name "{myIntegrationRuntime2}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimes/post/Stop integration runtime +@try_manual +def step_integration_runtime_stop(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime stop ' + '--name "{myIntegrationRuntime2}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimes/post/Upgrade integration runtime +@try_manual +def step_integration_runtime_upgrade(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime upgrade ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeAuthKeys/post/List auth keys +@try_manual +def step_integration_runtime_auth_key_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-auth-key list ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeAuthKeys/post/Regenerate auth key +@try_manual +def step_integration_runtime_auth_key_regenerate(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-auth-key regenerate ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--key-name "authKey2" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeConnectionInfos/post/Get connection info +@try_manual +def step_integration_runtime_connection_info_get(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-connection-info get ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeCredentials/post/Sync credentials +@try_manual +def step_integration_runtime_credentials_sync(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-credentials sync ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeMonitoringData/post/Get monitoring data +@try_manual +def step_integration_runtime_monitoring_data_get(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-monitoring-data get ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeNodeIpAddress/post/Get integration runtime node IP address +@try_manual +def step_integration_runtime_node_ip_address_get(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-node-ip-address get ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--node-name "Node_1" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeNodes/get/Get integration runtime node +@try_manual +def step_integration_runtime_node_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-node show ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--node-name "Node_1" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeNodes/patch/Update integration runtime node +@try_manual +def step_integration_runtime_node_update(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-node update ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--node-name "Node_1" ' + '--resource-group "{rg_17}" ' + '--concurrent-jobs-limit 2 ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeNodes/delete/Delete integration runtime node +@try_manual +def step_integration_runtime_node_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-node delete -y ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--node-name "Node_1" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Get integration runtime object metadata +@try_manual +def step_integration_runtime_object_metadata_get(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-object-metadata get ' + '--metadata-path "ssisFolders" ' + '--integration-runtime-name "{myIntegrationRuntime3}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Refresh object metadata +@try_manual +def step_integration_runtime_object_metadata_refresh(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-object-metadata refresh ' + '--integration-runtime-name "{myIntegrationRuntime3}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimeStatus/post/Get status +@try_manual +def step_integration_runtime_status_get(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-status get ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IntegrationRuntimes/delete/Delete integration runtime +@try_manual +def step_integration_runtime_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime delete -y ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + +# EXAMPLE: /IpFirewallRules/put/Create an IP firewall rule +@try_manual +def step_ip_firewall_rule_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule create ' + '--end-ip-address "10.0.0.254" ' + '--start-ip-address "10.0.0.0" ' + '--resource-group "{rg}" ' + '--rule-name "ExampleIpFirewallRule" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /IpFirewallRules/get/Create an IP firewall rule +@try_manual +def step_ip_firewall_rule_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule show ' + '--resource-group "{rg}" ' + '--rule-name "ExampleIpFirewallRule" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /IpFirewallRules/get/List IP firewall rules in a workspace +@try_manual +def step_ip_firewall_rule_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule list ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /IpFirewallRules/post/Replace all IP firewall rules in a workspace +@try_manual +def step_ip_firewall_rule_replace_all(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule replace-all ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}" ' + '--ip-firewall-rules "{{\\"AnotherExampleFirewallRule\\":{{\\"endIpAddress\\":\\"10.0.1.254\\",\\"startIpA' + 'ddress\\":\\"10.0.1.0\\"}},\\"ExampleFirewallRule\\":{{\\"endIpAddress\\":\\"10.0.0.254\\",\\"startIpAddr' + 'ess\\":\\"10.0.0.0\\"}}}}"', + checks=checks) + + +# EXAMPLE: /IpFirewallRules/delete/Delete an IP firewall rule from a workspace +@try_manual +def step_ip_firewall_rule_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule delete -y ' + '--resource-group "{rg}" ' + '--rule-name "ExampleIpFirewallRule" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /Operations/get/Get azure async operation header result +@try_manual +def step_operation_show_azure_async_header_result(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse operation show-azure-async-header-result ' + '--operation-id "01234567-89ab-4def-0123-456789abcdef" ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + +# EXAMPLE: /Operations/get/Get location header result +@try_manual +def step_operation_show_location_header_result(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse operation show-location-header-result ' + '--operation-id "01234567-89ab-4def-0123-456789abcdef" ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + +# EXAMPLE: /PrivateEndpointConnections/put/Approve private endpoint connection +@try_manual +def step_private_endpoint_connection_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-endpoint-connection create ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + test.cmd('az synapse private-endpoint-connection wait --created ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /PrivateEndpointConnections/get/Get private endpoint connection +@try_manual +def step_private_endpoint_connection_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-endpoint-connection show ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /PrivateEndpointConnections/get/List private endpoint connections in workspace +@try_manual +def step_private_endpoint_connection_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-endpoint-connection list ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /PrivateEndpointConnections/delete/Delete private endpoint connection +@try_manual +def step_private_endpoint_connection_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-endpoint-connection delete -y ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /PrivateLinkHubs/put/Create or update a privateLinkHub +@try_manual +def step_private_link_hub_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub create ' + '--location "East US" ' + '--tags key="value" ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + +# EXAMPLE: /PrivateLinkHubs/get/Get a privateLinkHub +@try_manual +def step_private_link_hub_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub show ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + +# EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in resource group +@try_manual +def step_private_link_hub_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub list ' + '--resource-group "{rg_2}"', + checks=checks) + + +# EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in subscription +@try_manual +def step_private_link_hub_list2(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub list ' + '-g ""', + checks=checks) + + +# EXAMPLE: /PrivateLinkHubs/patch/Update a privateLinkHub +@try_manual +def step_private_link_hub_update(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub update ' + '--name "{myPrivateLinkHub}" ' + '--tags key="value" ' + '--resource-group "{rg_2}"', + checks=checks) + + +# EXAMPLE: /PrivateLinkHubs/delete/Delete a privateLinkHub +@try_manual +def step_private_link_hub_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub delete -y ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + +# EXAMPLE: /PrivateLinkResources/get/Get private link resources for workspace +@try_manual +def step_private_link_resource_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-resource list ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /SqlPools/put/Create a SQL Analytics pool +@try_manual +def step_sql_pool_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool create ' + '--resource-group "{rg}" ' + '--location "West US 2" ' + '--collation "" ' + '--create-mode "" ' + '--creation-date "1970-01-01T00:00:00.000Z" ' + '--max-size-bytes 0 ' + '--recoverable-database-id "" ' + '--restore-point-in-time "1970-01-01T00:00:00.000Z" ' + '--source-database-id "" ' + '--sku name="" tier="" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + test.cmd('az synapse sql-pool wait --created ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /SqlPools/get/Get a SQL Analytics pool +@try_manual +def step_sql_pool_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool show ' + '--resource-group "{rg_4}" ' + '--name "{mySqlPool}" ' + '--workspace-name "{myWorkspace4}"', + checks=checks) + + +# EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace +@try_manual +def step_sql_pool_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool list ' + '--resource-group "{rg_3}" ' + '--workspace-name "{myWorkspace3}"', + checks=checks) + + +# EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace with filter +@try_manual +def step_sql_pool_list2(test, checks=None): + return step_sql_pool_list(test, checks) + + +# EXAMPLE: /SqlPools/patch/Update a SQL Analytics pool +@try_manual +def step_sql_pool_update(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool update ' + '--resource-group "{rg}" ' + '--location "West US 2" ' + '--collation "" ' + '--create-mode "" ' + '--creation-date "1970-01-01T00:00:00.000Z" ' + '--max-size-bytes 0 ' + '--recoverable-database-id "" ' + '--restore-point-in-time "1970-01-01T00:00:00.000Z" ' + '--source-database-id "" ' + '--sku name="" tier="" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /SqlPools/post/Pause a SQL Analytics pool +@try_manual +def step_sql_pool_pause(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool pause ' + '--resource-group "{rg_5}" ' + '--name "{mySqlPool3}" ' + '--workspace-name "{myWorkspace5}"', + checks=checks) + + +# EXAMPLE: /SqlPools/post/Rename a SQL Analytics pool +@try_manual +def step_sql_pool_rename(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool rename ' + '--id "/subscriptions/{subscription_id}/resourceGroups/{rg_5}/providers/Microsoft.Synapse/workspaces/{myWo' + 'rkspace5}/sqlPools/{mySqlPool4}" ' + '--resource-group "{rg_5}" ' + '--name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace5}"', + checks=checks) + + +# EXAMPLE: /SqlPools/post/Resume a SQL Analytics pool +@try_manual +def step_sql_pool_resume(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool resume ' + '--resource-group "{rg_4}" ' + '--name "{mySqlPool}" ' + '--workspace-name "{myWorkspace4}"', + checks=checks) + + +# EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with all parameters +@try_manual +def step_sql_pool_blob_auditing_policy_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-blob-auditing-policy create ' + '--audit-actions-and-groups "DATABASE_LOGOUT_GROUP" "DATABASE_ROLE_MEMBER_CHANGE_GROUP" "UPDATE on ' + 'database::TestDatabaseName by public" ' + '--is-azure-monitor-target-enabled true ' + '--is-storage-secondary-key-in-use false ' + '--retention-days 6 ' + '--state "Enabled" ' + '--storage-account-access-key "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD234230943284932847645' + '8/3RSD==" ' + '--storage-account-subscription-id "00000000-1234-0000-5678-000000000000" ' + '--storage-endpoint "https://mystorage.blob.core.windows.net" ' + '--resource-group "{rg_8}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace10}"', + checks=checks) + + +# EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with minimal parameters +@try_manual +def step_sql_pool_blob_auditing_policy_create2(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-blob-auditing-policy create ' + '--state "Enabled" ' + '--storage-account-access-key "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD234230943284932847645' + '8/3RSD==" ' + '--storage-endpoint "https://mystorage.blob.core.windows.net" ' + '--resource-group "{rg_8}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace10}"', + checks=checks) + + +# EXAMPLE: /SqlPoolBlobAuditingPolicies/get/Get blob auditing policy of a SQL Analytics pool +@try_manual +def step_sql_pool_blob_auditing_policy_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-blob-auditing-policy show ' + '--resource-group "{rg_7}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace9}"', + checks=checks) + + +# EXAMPLE: /SqlPoolConnectionPolicies/get/Get a connection policy of a SQL Analytics pool +@try_manual +def step_sql_pool_connection_policy_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-connection-policy show ' + '--resource-group "{rg_7}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace9}"', + checks=checks) + + +# EXAMPLE: /SqlPoolDataWarehouseUserActivities/get/Get a SQL Analytics pool user activity +@try_manual +def step_sql_pool_data_warehouse_user_activity_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-data-warehouse-user-activity show ' + '--resource-group "{rg_5}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace5}"', + checks=checks) + + +# EXAMPLE: /SqlPoolGeoBackupPolicies/get/Get Sql pool geo backup policy +@try_manual +def step_sql_pool_geo_backup_policy_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-geo-backup-policy show ' + '--resource-group "{rg_6}" ' + '--sql-pool-name "{mySqlPool6}" ' + '--workspace-name "{myWorkspace6}"', + checks=checks) + + +# EXAMPLE: /SqlPoolMetadataSyncConfigs/put/Set metadata sync config for a SQL Analytics pool +@try_manual +def step_sql_pool_metadata_sync_config_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-metadata-sync-config create ' + '--enabled true ' + '--resource-group "{rg}" ' + '--sql-pool-name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /SqlPoolMetadataSyncConfigs/get/Get metadata sync config for a SQL Analytics pool +@try_manual +def step_sql_pool_metadata_sync_config_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-metadata-sync-config show ' + '--resource-group "{rg}" ' + '--sql-pool-name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /SqlPoolOperationResults/get/Get the result of an operation on a SQL Analytics pool +@try_manual +def step_sql_pool_operation(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-operation-result show-location-header-result ' + '--operation-id "fedcba98-7654-4210-fedc-ba9876543210" ' + '--resource-group "{rg}" ' + '--sql-pool-name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /SqlPoolOperations/get/List the Sql Analytics pool management operations +@try_manual +def step_sql_pool_operation_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-operation list ' + '--resource-group "{rg_9}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace11}"', + checks=checks) + + +# EXAMPLE: /SqlPoolReplicationLinks/get/Lists a Sql Analytic pool's replication links +@try_manual +def step_sql_pool_replication_link_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-replication-link list ' + '--resource-group "{rg_6}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace8}"', + checks=checks) + + +# EXAMPLE: /SqlPoolRestorePoints/get/Get a list of restore points of a SQL Analytics pool +@try_manual +def step_sql_pool_restore_point_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-restore-point list ' + '--resource-group "{rg_5}" ' + '--sql-pool-name "{mySqlPool7}" ' + '--workspace-name "{myWorkspace7}"', + checks=checks) + + +# EXAMPLE: /SqlPoolRestorePoints/post/Creates Sql pool restore point. +@try_manual +def step_sql_pool_restore_point_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-restore-point create ' + '--restore-point-label "mylabel" ' + '--resource-group "{rg_5}" ' + '--sql-pool-name "{mySqlPool7}" ' + '--workspace-name "{myWorkspace7}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSchemas/get/List the schema in a SQL Analytics pool +@try_manual +def step_sql_pool_schema_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-schema list ' + '--resource-group "{rg_11}" ' + '--sql-pool-name "{mySqlPool9}" ' + '--workspace-name "{myWorkspace14}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Create a Sql pool's threat detection policy with all parameters +@try_manual +def step_sql_pool_security_alert_policy_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy create ' + '--disabled-alerts "Sql_Injection" "Usage_Anomaly" ' + '--email-account-admins true ' + '--email-addresses "test@microsoft.com" "user@microsoft.com" ' + '--retention-days 6 ' + '--state "Enabled" ' + '--storage-account-access-key "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD234230943284932847645' + '8/3RSD==" ' + '--storage-endpoint "https://mystorage.blob.core.windows.net" ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Update a Sql pool's threat detection policy with minimal parameters +@try_manual +def step_sql_pool_security_alert_policy_update(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy update ' + '--state "Enabled" ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSecurityAlertPolicies/get/Get a security alert of a SQL Analytics pool +@try_manual +def step_sql_pool_security_alert_policy_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy show ' + '--resource-group "{rg_15}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace18}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSensitivityLabels/put/Updates the sensitivity label of a given column with all parameters +@try_manual +def step_sql_pool_sensitivity_label_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label create ' + '--column-name "myColumn" ' + '--information-type "PhoneNumber" ' + '--information-type-id "d22fa6e9-5ee4-3bde-4c2b-a409604c4646" ' + '--label-id "bf91e08c-f4f0-478a-b016-25164b2a65ff" ' + '--label-name "PII" ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--table-name "myTable" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the current sensitivity labels of a given SQL Analytics pool +@try_manual +def step_sql_pool_sensitivity_label_list_current(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label list-current ' + '--resource-group "{rg_11}" ' + '--sql-pool-name "{mySqlPool9}" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the recommended sensitivity labels of a given SQL Analytics pool +@try_manual +def step_sql_pool_sensitivity_label_list_recommended(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label list-recommended ' + '--resource-group "{rg_11}" ' + '--sql-pool-name "{mySqlPool9}" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSensitivityLabels/post/Disables sensitivity recommendations on a given column +@try_manual +def step_sql_pool_sensitivity(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label disable-recommendation ' + '--column-name "myColumn" ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--table-name "myTable" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSensitivityLabels/post/Enables sensitivity recommendations on a given column +@try_manual +def step_sql_pool_sensitivity2(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label enable-recommendation ' + '--column-name "myColumn" ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--table-name "myTable" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + +# EXAMPLE: /SqlPoolSensitivityLabels/delete/Deletes the sensitivity label of a given column +@try_manual +def step_sql_pool_sensitivity_label_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label delete -y ' + '--column-name "myColumn" ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--table-name "myTable" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + +# EXAMPLE: /SqlPoolTableColumns/get/List the columns in a table of a given schema in a SQL Analytics pool +@try_manual +def step_sql_pool_table_column_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-table-column list ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--table-name "table1" ' + '--workspace-name "{myWorkspace14}"', + checks=checks) + + +# EXAMPLE: /SqlPoolTables/get/List the tables of a given schema in a SQL Analytics pool +@try_manual +def step_sql_pool_table_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-table list ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--workspace-name "{myWorkspace14}"', + checks=checks) + + +# EXAMPLE: /SqlPoolTransparentDataEncryptions/put/Create or update a Sql pool's transparent data encryption configuration +@try_manual +def step_sql_pool_transparent_data_encryption_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-transparent-data-encryption create ' + '--status "Enabled" ' + '--resource-group "{rg_4}" ' + '--sql-pool-name "{mySqlPool}" ' + '--workspace-name "{myWorkspace4}"', + checks=checks) + + +# EXAMPLE: /SqlPoolTransparentDataEncryptions/get/Get transparent data encryption configuration of a SQL Analytics pool +@try_manual +def step_sql_pool_transparent_data_encryption_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-transparent-data-encryption show ' + '--resource-group "{rg_4}" ' + '--sql-pool-name "{mySqlPool}" ' + '--workspace-name "{myWorkspace4}"', + checks=checks) + + +# EXAMPLE: /SqlPoolUsages/get/List the usages of a SQL Analytics pool +@try_manual +def step_sql_pool_usage_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-usage list ' + '--resource-group "{rg_10}" ' + '--sql-pool-name "{mySqlPool8}" ' + '--workspace-name "{myWorkspace12}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/put/Creates or updates a database's vulnerability assessment rule baseline. +@try_manual +def step_sql_pool_vulnerability(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment-rule-baseline create ' + '--baseline-name "default" ' + '--baseline-results result="userA" result="SELECT" ' + '--baseline-results result="userB" result="SELECT" ' + '--baseline-results result="userC" result="SELECT" result="tableId_4" ' + '--resource-group "{rg_12}" ' + '--rule-id "VA1001" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/delete/Removes a database's vulnerability assessment rule baseline. +@try_manual +def step_sql_pool_vulnerability2(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment-rule-baseline delete -y ' + '--baseline-name "default" ' + '--resource-group "{rg_12}" ' + '--rule-id "VA1001" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with all parameters +@try_manual +def step_sql_pool_vulnerability_assessment_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment create ' + '--recurring-scans email-subscription-admins=true emails="email1@mail.com" emails="email2@mail.com" ' + 'is-enabled=true ' + '--storage-account-access-key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ' + '--storage-container-path "https://myStorage.blob.core.windows.net/vulnerability-assessment/" ' + '--storage-container-sas-key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageAccountAccessKey is specified +@try_manual +def step_sql_pool_vulnerability_assessment_create2(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment create ' + '--storage-account-access-key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ' + '--storage-container-path "https://myStorage.blob.core.windows.net/vulnerability-assessment/" ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageContainerSasKey is specified +@try_manual +def step_sql_pool_vulnerability_assessment_create3(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment create ' + '--storage-container-path "https://myStorage.blob.core.windows.net/vulnerability-assessment/" ' + '--storage-container-sas-key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a Sql pool's vulnerability assessment +@try_manual +def step_sql_pool_vulnerability_assessment_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment show ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a vulnerability assessment of a SQL Analytics pool +@try_manual +def step_sql_pool_vulnerability_assessment_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment list ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessments/delete/Remove a database's vulnerability assessment +@try_manual +def step_sql_pool_vulnerability_assessment_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment delete -y ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/get/Get a vulnerability scan record of a SQL Analytics pool +@try_manual +def step_sql_pool_vulnerability_assessment_scan_list(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment-scan list ' + '--resource-group "{rg_13}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace16}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Executes a Sql pool's vulnerability assessment scan. +@try_manual +def step_sql_pool_vulnerability3(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment-scan initiate-scan ' + '--resource-group "{rg_13}" ' + '--scan-id "scan01" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace16}"', + checks=checks) + + +# EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Export a database's vulnerability assessment scan results. +@try_manual +def step_sql_pool_vulnerability_assessment_scan_export(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment-scan export ' + '--resource-group "{rg_14}" ' + '--scan-id "scan001" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace17}"', + checks=checks) + + +# EXAMPLE: /SqlPools/delete/Delete a SQL Analytics pool +@try_manual +def step_sql_pool_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool delete -y ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + +# EXAMPLE: /WorkspaceAadAdmins/put/Create or update workspace active directory admin +@try_manual +def step_workspace_aad_admin_create(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-aad-admin create ' + '--administrator-type "ActiveDirectory" ' + '--login "bob@contoso.com" ' + '--sid "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c" ' + '--tenant-id "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c" ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + +# EXAMPLE: /WorkspaceAadAdmins/get/Get workspace active directory admin +@try_manual +def step_workspace_aad_admin_show(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-aad-admin show ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + +# EXAMPLE: /WorkspaceAadAdmins/delete/Delete workspace active directory admin +@try_manual +def step_workspace_aad_admin_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-aad-admin delete -y ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + +# EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/put/Create or update managed identity sql control settings +@try_manual +def step_workspace_managed_identity(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-managed-identity-sql-control-setting create ' + '--desired-state "Enabled" ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + +# EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/get/Get managed identity sql control settings +@try_manual +def step_workspace_managed_identity2(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-managed-identity-sql-control-setting show ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + +# EXAMPLE: /Workspaces/delete/Delete a workspace +@try_manual +def step_workspace_delete(test, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace delete -y ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=checks) diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py new file mode 100644 index 000000000..feb0c6ff1 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py @@ -0,0 +1,453 @@ +# -------------------------------------------------------------------------- +# 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_workspace_create +from .example_steps import step_big_data_pool_create +from .example_steps import step_big_data_pool_list +from .example_steps import step_big_data_pool_update +from .example_steps import step_integration_runtime_create +from .example_steps import step_integration_runtime_show +from .example_steps import step_integration_runtime_list +from .example_steps import step_integration_runtime_start +from .example_steps import step_integration_runtime_stop +from .example_steps import step_integration_runtime_upgrade +from .example_steps import step_integration_runtime_update +from .example_steps import step_integration_runtime_auth_key_list +from .example_steps import step_integration_runtime_auth_key_regenerate +from .example_steps import step_integration_runtime_connection_info_get +from .example_steps import step_integration_runtime_credentials_sync +from .example_steps import step_integration_runtime_monitoring_data_get +from .example_steps import step_integration_runtime_node_ip_address_get +from .example_steps import step_integration_runtime_node_show +from .example_steps import step_integration_runtime_node_update +from .example_steps import step_integration_runtime_object_metadata_get +from .example_steps import step_integration_runtime_object_metadata_refresh +from .example_steps import step_integration_runtime_status_get +from .example_steps import step_ip_firewall_rule_show +from .example_steps import step_ip_firewall_rule_list +from .example_steps import step_ip_firewall_rule_replace_all +from .example_steps import step_operation_show_azure_async_header_result +from .example_steps import step_operation_show_location_header_result +from .example_steps import step_private_endpoint_connection_create +from .example_steps import step_private_endpoint_connection_show +from .example_steps import step_private_endpoint_connection_list +from .example_steps import step_private_link_hub_create +from .example_steps import step_private_link_hub_show +from .example_steps import step_private_link_hub_list +from .example_steps import step_private_link_hub_list2 +from .example_steps import step_private_link_hub_update +from .example_steps import step_big_data_pool_show +from .example_steps import step_workspace_show +from .example_steps import step_workspace_list +from .example_steps import step_workspace_list2 +from .example_steps import step_workspace_update +from .example_steps import step_private_link_resource_list +from .example_steps import step_sql_pool_create +from .example_steps import step_sql_pool_show +from .example_steps import step_sql_pool_list +from .example_steps import step_sql_pool_list2 +from .example_steps import step_sql_pool_pause +from .example_steps import step_sql_pool_rename +from .example_steps import step_sql_pool_resume +from .example_steps import step_sql_pool_update +from .example_steps import step_sql_pool_blob_auditing_policy_create +from .example_steps import step_sql_pool_blob_auditing_policy_create2 +from .example_steps import step_sql_pool_blob_auditing_policy_show +from .example_steps import step_sql_pool_connection_policy_show +from .example_steps import step_sql_pool_data_warehouse_user_activity_show +from .example_steps import step_sql_pool_geo_backup_policy_show +from .example_steps import step_sql_pool_metadata_sync_config_create +from .example_steps import step_sql_pool_metadata_sync_config_show +from .example_steps import step_sql_pool_operation +from .example_steps import step_sql_pool_operation_list +from .example_steps import step_sql_pool_replication_link_list +from .example_steps import step_sql_pool_restore_point_list +from .example_steps import step_sql_pool_restore_point_create +from .example_steps import step_sql_pool_schema_list +from .example_steps import step_sql_pool_security_alert_policy_update +from .example_steps import step_sql_pool_security_alert_policy_show +from .example_steps import step_sql_pool_sensitivity_label_create +from .example_steps import step_sql_pool_sensitivity_label_list_current +from .example_steps import step_sql_pool_sensitivity_label_list_recommended +from .example_steps import step_sql_pool_sensitivity +from .example_steps import step_sql_pool_sensitivity2 +from .example_steps import step_sql_pool_table_column_list +from .example_steps import step_sql_pool_table_list +from .example_steps import step_sql_pool_transparent_data_encryption_create +from .example_steps import step_sql_pool_transparent_data_encryption_show +from .example_steps import step_sql_pool_usage_list +from .example_steps import step_sql_pool_vulnerability +from .example_steps import step_sql_pool_vulnerability_assessment_scan_list +from .example_steps import step_sql_pool_vulnerability3 +from .example_steps import step_sql_pool_vulnerability_assessment_scan_export +from .example_steps import step_sql_pool_vulnerability_assessment_create +from .example_steps import step_sql_pool_vulnerability_assessment_create2 +from .example_steps import step_sql_pool_vulnerability_assessment_create3 +from .example_steps import step_sql_pool_vulnerability_assessment_show +from .example_steps import step_sql_pool_vulnerability_assessment_list +from .example_steps import step_sql_pool_sensitivity_label_delete +from .example_steps import step_workspace_aad_admin_create +from .example_steps import step_workspace_aad_admin_show +from .example_steps import step_workspace_managed_identity +from .example_steps import step_workspace_managed_identity2 +from .example_steps import step_big_data_pool_delete +from .example_steps import step_integration_runtime_node_delete +from .example_steps import step_integration_runtime_delete +from .example_steps import step_ip_firewall_rule_delete +from .example_steps import step_private_endpoint_connection_delete +from .example_steps import step_sql_pool_vulnerability2 +from .example_steps import step_private_link_hub_delete +from .example_steps import step_sql_pool_vulnerability_assessment_delete +from .example_steps import step_sql_pool_delete +from .example_steps import step_workspace_aad_admin_delete +from .example_steps import step_workspace_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): + pass + + +# Env cleanup_scenario +@try_manual +def cleanup_scenario(test): + pass + + +# Testcase: Scenario +@try_manual +def call_scenario(test): + setup_scenario(test) + step_workspace_create(test, checks=[ + test.check("identity.type", "SystemAssigned", case_sensitive=False), + test.check("location", "East US", case_sensitive=False), + test.check("defaultDataLakeStorage.accountUrl", "https://accountname.dfs.core.windows.net", + case_sensitive=False), + test.check("defaultDataLakeStorage.filesystem", "default", case_sensitive=False), + test.check("managedResourceGroupName", "workspaceManagedResourceGroupUnique", case_sensitive=False), + test.check("managedVirtualNetwork", "default", case_sensitive=False), + test.check("sqlAdministratorLogin", "login", case_sensitive=False), + test.check("sqlAdministratorLoginPassword", "password", case_sensitive=False), + test.check("tags.key", "value", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_big_data_pool_create(test, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("autoPause.delayInMinutes", 15), + test.check("autoPause.enabled", True), + test.check("autoScale.enabled", True), + test.check("autoScale.maxNodeCount", 50), + test.check("autoScale.minNodeCount", 3), + test.check("defaultSparkLogFolder", "/logs", case_sensitive=False), + test.check("nodeCount", 4), + test.check("nodeSize", "Medium", case_sensitive=False), + test.check("nodeSizeFamily", "MemoryOptimized", case_sensitive=False), + test.check("sparkEventsFolder", "/events", case_sensitive=False), + test.check("sparkVersion", "2.4", case_sensitive=False), + test.check("tags.key", "value", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_big_data_pool_list(test, checks=[ + test.check('length(@)', 1), + ]) + step_big_data_pool_update(test, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("autoPause.delayInMinutes", 15), + test.check("autoPause.enabled", True), + test.check("autoScale.enabled", True), + test.check("autoScale.maxNodeCount", 50), + test.check("autoScale.minNodeCount", 3), + test.check("defaultSparkLogFolder", "/logs", case_sensitive=False), + test.check("nodeCount", 4), + test.check("nodeSize", "Medium", case_sensitive=False), + test.check("nodeSizeFamily", "MemoryOptimized", case_sensitive=False), + test.check("sparkEventsFolder", "/events", case_sensitive=False), + test.check("sparkVersion", "2.4", case_sensitive=False), + test.check("tags.key", "value", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_integration_runtime_create(test, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_show(test, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_list(test, checks=[ + test.check('length(@)', 1), + ]) + step_integration_runtime_start(test, checks=[]) + step_integration_runtime_stop(test, checks=[]) + step_integration_runtime_upgrade(test, checks=[]) + step_integration_runtime_update(test, checks=[ + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_auth_key_list(test, checks=[]) + step_integration_runtime_auth_key_regenerate(test, checks=[]) + step_integration_runtime_connection_info_get(test, checks=[]) + step_integration_runtime_credentials_sync(test, checks=[]) + step_integration_runtime_monitoring_data_get(test, checks=[]) + step_integration_runtime_node_ip_address_get(test, checks=[]) + step_integration_runtime_node_show(test, checks=[]) + step_integration_runtime_node_update(test, checks=[]) + step_integration_runtime_object_metadata_get(test, checks=[]) + step_integration_runtime_object_metadata_refresh(test, checks=[]) + step_integration_runtime_status_get(test, checks=[]) + step_ip_firewall_rule_show(test, checks=[]) + step_ip_firewall_rule_show(test, checks=[]) + step_ip_firewall_rule_list(test, checks=[]) + step_ip_firewall_rule_replace_all(test, checks=[]) + step_operation_show_azure_async_header_result(test, checks=[]) + step_operation_show_location_header_result(test, checks=[]) + step_private_endpoint_connection_create(test, checks=[]) + step_private_endpoint_connection_show(test, checks=[]) + step_private_endpoint_connection_list(test, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_create(test, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("tags.key", "value", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_show(test, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("tags.key", "value", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_list(test, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_list2(test, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_update(test, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("tags.key", "value", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_big_data_pool_show(test, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("autoPause.delayInMinutes", 15), + test.check("autoPause.enabled", True), + test.check("autoScale.enabled", True), + test.check("autoScale.maxNodeCount", 50), + test.check("autoScale.minNodeCount", 3), + test.check("defaultSparkLogFolder", "/logs", case_sensitive=False), + test.check("nodeCount", 4), + test.check("nodeSize", "Medium", case_sensitive=False), + test.check("nodeSizeFamily", "MemoryOptimized", case_sensitive=False), + test.check("sparkEventsFolder", "/events", case_sensitive=False), + test.check("sparkVersion", "2.4", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_workspace_show(test, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("defaultDataLakeStorage.accountUrl", "https://accountname.dfs.core.windows.net", + case_sensitive=False), + test.check("defaultDataLakeStorage.filesystem", "default", case_sensitive=False), + test.check("sqlAdministratorLogin", "login", case_sensitive=False), + test.check("sqlAdministratorLoginPassword", "password", case_sensitive=False), + test.check("tags.key", "value", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_workspace_list(test, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_list2(test, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_update(test, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("defaultDataLakeStorage.accountUrl", "https://accountname.dfs.core.windows.net", + case_sensitive=False), + test.check("defaultDataLakeStorage.filesystem", "default", case_sensitive=False), + test.check("sqlAdministratorLogin", "login", case_sensitive=False), + test.check("sqlAdministratorLoginPassword", "password", case_sensitive=False), + test.check("tags.key", "value", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_private_link_resource_list(test, checks=[]) + step_private_link_resource_list(test, checks=[]) + step_sql_pool_create(test, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("collation", "", case_sensitive=False), + test.check("createMode", "", case_sensitive=False), + test.check("creationDate", "1970-01-01T00:00:00.000Z", case_sensitive=False), + test.check("maxSizeBytes", 0), + test.check("recoverableDatabaseId", "", case_sensitive=False), + test.check("restorePointInTime", "1970-01-01T00:00:00.000Z", case_sensitive=False), + test.check("sourceDatabaseId", "", case_sensitive=False), + test.check("sku.name", "", case_sensitive=False), + test.check("sku.tier", "", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_show(test, checks=[]) + step_sql_pool_list(test, checks=[]) + step_sql_pool_list2(test, checks=[]) + step_sql_pool_pause(test, checks=[]) + step_sql_pool_rename(test, checks=[]) + step_sql_pool_resume(test, checks=[]) + step_sql_pool_update(test, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("collation", "", case_sensitive=False), + test.check("createMode", "", case_sensitive=False), + test.check("creationDate", "1970-01-01T00:00:00.000Z", case_sensitive=False), + test.check("maxSizeBytes", 0), + test.check("recoverableDatabaseId", "", case_sensitive=False), + test.check("restorePointInTime", "1970-01-01T00:00:00.000Z", case_sensitive=False), + test.check("sourceDatabaseId", "", case_sensitive=False), + test.check("sku.name", "", case_sensitive=False), + test.check("sku.tier", "", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_blob_auditing_policy_create(test, checks=[]) + step_sql_pool_blob_auditing_policy_create2(test, checks=[]) + step_sql_pool_blob_auditing_policy_show(test, checks=[]) + step_sql_pool_connection_policy_show(test, checks=[]) + step_sql_pool_data_warehouse_user_activity_show(test, checks=[]) + step_sql_pool_geo_backup_policy_show(test, checks=[]) + step_sql_pool_metadata_sync_config_create(test, checks=[]) + step_sql_pool_metadata_sync_config_show(test, checks=[]) + step_sql_pool_operation(test, checks=[]) + step_sql_pool_operation_list(test, checks=[]) + step_sql_pool_replication_link_list(test, checks=[]) + step_sql_pool_restore_point_list(test, checks=[]) + step_sql_pool_restore_point_create(test, checks=[]) + step_sql_pool_schema_list(test, checks=[]) + # STEP NOT FOUND: Update a Sql pool's threat detection policy with all parameters + step_sql_pool_security_alert_policy_update(test, checks=[]) + step_sql_pool_security_alert_policy_show(test, checks=[]) + step_sql_pool_sensitivity_label_create(test, checks=[]) + step_sql_pool_sensitivity_label_list_current(test, checks=[]) + step_sql_pool_sensitivity_label_list_recommended(test, checks=[]) + step_sql_pool_sensitivity(test, checks=[]) + step_sql_pool_sensitivity2(test, checks=[]) + step_sql_pool_table_column_list(test, checks=[]) + step_sql_pool_table_list(test, checks=[]) + step_sql_pool_transparent_data_encryption_create(test, checks=[]) + step_sql_pool_transparent_data_encryption_show(test, checks=[]) + step_sql_pool_usage_list(test, checks=[]) + step_sql_pool_vulnerability(test, checks=[]) + step_sql_pool_vulnerability_assessment_scan_list(test, checks=[]) + step_sql_pool_vulnerability3(test, checks=[]) + step_sql_pool_vulnerability_assessment_scan_export(test, checks=[]) + step_sql_pool_vulnerability_assessment_create(test, checks=[]) + step_sql_pool_vulnerability_assessment_create2(test, checks=[]) + step_sql_pool_vulnerability_assessment_create3(test, checks=[]) + step_sql_pool_vulnerability_assessment_show(test, checks=[]) + step_sql_pool_vulnerability_assessment_list(test, checks=[]) + step_sql_pool_sensitivity_label_delete(test, checks=[]) + step_workspace_aad_admin_create(test, checks=[]) + step_workspace_aad_admin_show(test, checks=[]) + step_workspace_managed_identity(test, checks=[]) + step_workspace_managed_identity2(test, checks=[]) + step_big_data_pool_delete(test, checks=[]) + step_integration_runtime_node_delete(test, checks=[]) + step_integration_runtime_delete(test, checks=[]) + step_ip_firewall_rule_delete(test, checks=[]) + step_private_endpoint_connection_delete(test, checks=[]) + step_sql_pool_vulnerability2(test, checks=[]) + step_private_link_hub_delete(test, checks=[]) + step_sql_pool_vulnerability_assessment_delete(test, checks=[]) + step_sql_pool_delete(test, checks=[]) + step_workspace_aad_admin_delete(test, checks=[]) + step_workspace_delete(test, checks=[]) + cleanup_scenario(test) + + +# Test class for Scenario +@try_manual +class SynapseScenarioTest(ScenarioTest): + def __init__(self, *args, **kwargs): + super(SynapseScenarioTest, self).__init__(*args, **kwargs) + self.kwargs.update({ + 'subscription_id': self.get_subscription_id() + }) + + self.kwargs.update({ + 'myWorkspace5': 'testsvr', + 'myWorkspace': 'ExampleWorkspace', + 'myWorkspace2': 'workspace1', + 'myWorkspace3': 'sqlcrudtest-7177', + 'myWorkspace4': 'sqlcrudtest-2080', + 'myWorkspace6': 'sqlcrudtest-5961', + 'myWorkspace7': 'testserver', + 'myWorkspace8': 'sqlcrudtest-6440', + 'myWorkspace9': 'blobauditingtest-2080', + 'myWorkspace10': 'blobauditingtest-6440', + 'myWorkspace11': 'sqlcrudtest-4645', + 'myWorkspace12': 'sqlcrudtest-9007', + 'myWorkspace13': 'myServer', + 'myWorkspace14': 'serverName', + 'myWorkspace15': 'vulnerabilityaseessmenttest-6440', + 'myWorkspace16': 'vulnerabilityassessmenttest-6411', + 'myWorkspace17': 'vulnerabilityassessmenttest-6440', + 'myWorkspace18': 'securityalert-2080', + 'myWorkspace19': 'securityalert-6440', + 'myWorkspace20': 'exampleWorkspace', + 'myIntegrationRuntime': 'exampleIntegrationRuntime', + 'myIntegrationRuntime2': 'exampleManagedIntegrationRuntime', + 'myIntegrationRuntime3': 'testactivityv2', + 'myPrivateLinkResource': 'sql', + 'myPrivateEndpointConnection': 'ExamplePrivateEndpointConnection', + 'myPrivateLinkHub': 'privateLinkHub1', + 'myBigDataPool': 'ExamplePool', + 'mySqlPool4': 'newtestdb', + 'mySqlPool8': '3481', + 'mySqlPool': 'sqlcrudtest-9187', + 'mySqlPool2': 'ExampleSqlPool', + 'mySqlPool3': 'testdwdb', + 'mySqlPool5': 'testdb', + 'mySqlPool6': 'testdw', + 'mySqlPool7': 'testDatabase', + 'mySqlPool9': 'myDatabase', + }) + + @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', + parameter_name='rg_5') + @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') + @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', + parameter_name='rg_12') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', + parameter_name='rg_13') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', + parameter_name='rg_14') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') + @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') + def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17): + call_scenario(self) + calc_coverage(__file__) + raise_if() diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.Darwin.txt b/test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.Darwin.txt new file mode 100644 index 000000000..e38415325 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.Darwin.txt @@ -0,0 +1,130 @@ +adal==1.2.3 +antlr4-python3-runtime==4.7.2 +applicationinsights==0.11.9 +argcomplete==1.11.1 +asn1crypto==0.24.0 +azure-batch==9.0.0 +azure-cli==2.11.0 +azure-cli-core==2.11.0 +azure-cli-telemetry==1.0.5 +azure-common==1.1.22 +azure-cosmos==3.2.0 +azure-datalake-store==0.0.49 +azure-devtools==1.2.0 +azure-functions-devops-build==0.0.22 +azure-graphrbac==0.60.0 +azure-keyvault==1.1.0 +azure-mgmt-advisor==2.0.1 +azure-mgmt-apimanagement==0.1.0 +azure-mgmt-appconfiguration==0.5.0 +azure-mgmt-applicationinsights==0.1.1 +azure-mgmt-authorization==0.52.0 +azure-mgmt-batch==9.0.0 +azure-mgmt-batchai==2.0.0 +azure-mgmt-billing==0.2.0 +azure-mgmt-botservice==0.2.0 +azure-mgmt-cdn==5.0.0 +azure-mgmt-cognitiveservices==6.2.0 +azure-mgmt-compute==13.0.0 +azure-mgmt-consumption==2.0.0 +azure-mgmt-containerinstance==1.5.0 +azure-mgmt-containerregistry==3.0.0rc14 +azure-mgmt-containerservice==9.0.1 +azure-mgmt-core==1.2.0 +azure-mgmt-cosmosdb==0.15.0 +azure-mgmt-datalake-analytics==0.2.1 +azure-mgmt-datalake-nspkg==3.0.1 +azure-mgmt-datalake-store==0.5.0 +azure-mgmt-datamigration==0.1.0 +azure-mgmt-deploymentmanager==0.2.0 +azure-mgmt-devtestlabs==4.0.0 +azure-mgmt-dns==2.1.0 +azure-mgmt-eventgrid==3.0.0rc7 +azure-mgmt-eventhub==4.0.0 +azure-mgmt-hdinsight==1.7.0 +azure-mgmt-imagebuilder==0.4.0 +azure-mgmt-iotcentral==3.0.0 +azure-mgmt-iothub==0.12.0 +azure-mgmt-iothubprovisioningservices==0.2.0 +azure-mgmt-keyvault==7.0.0b2 +azure-mgmt-loganalytics==0.7.0 +azure-mgmt-managementgroups==0.2.0 +azure-mgmt-maps==0.1.0 +azure-mgmt-marketplaceordering==0.2.1 +azure-mgmt-media==2.1.0 +azure-mgmt-monitor==0.11.0 +azure-mgmt-msi==0.2.0 +azure-mgmt-netapp==0.12.0 +azure-mgmt-network==11.0.0 +azure-mgmt-policyinsights==0.5.0 +azure-mgmt-privatedns==0.1.0 +azure-mgmt-rdbms==2.2.0 +azure-mgmt-recoveryservices==0.4.0 +azure-mgmt-recoveryservicesbackup==0.6.0 +azure-mgmt-redhatopenshift==0.1.0 +azure-mgmt-redis==7.0.0rc1 +azure-mgmt-relay==0.1.0 +azure-mgmt-reservations==0.6.0 +azure-mgmt-resource==10.2.0 +azure-mgmt-search==2.1.0 +azure-mgmt-security==0.4.1 +azure-mgmt-servicebus==0.6.0 +azure-mgmt-servicefabric==0.4.0 +azure-mgmt-signalr==0.4.0 +azure-mgmt-sql==0.19.0 +azure-mgmt-sqlvirtualmachine==0.5.0 +azure-mgmt-storage==11.1.0 +azure-mgmt-trafficmanager==0.51.0 +azure-mgmt-web==0.47.0 +azure-multiapi-storage==0.4.1 +azure-nspkg==3.0.2 +azure-loganalytics==0.1.0 +azure-storage-common==1.4.2 +azure-synapse-accesscontrol==0.2.0 +azure-synapse-spark==0.2.0 +bcrypt==3.1.7 +certifi==2019.6.16 +cffi==1.14.0 +chardet==3.0.4 +colorama==0.4.1 +ConfigArgParse==0.14.0 +cryptography==3.3.2 +fabric==2.4.0 +humanfriendly==8.0 +idna==2.8 +invoke==1.2.0 +isodate==0.6.0 +Jinja2==2.10.1 +jmespath==0.9.5 +jsmin==2.2.2 +knack==0.7.2 +MarkupSafe==1.1.1 +mock==4.0.2 +msrest==0.6.18 +msrestazure==0.6.3 +multidict==4.5.2 +oauthlib==3.0.1 +paramiko==2.6.0 +pbr==5.3.1 +portalocker==1.4.0 +pycparser==2.19 +PyJWT==1.7.1 +PyNaCl==1.3.0 +pyOpenSSL==19.0.0 +python-dateutil==2.8.0 +pytz==2019.1 +requests==2.22.0 +requests-oauthlib==1.2.0 +scp==0.13.2 +six==1.14.0 +sshtunnel==0.1.5 +tabulate==0.8.3 +urllib3==1.25.3 +vcrpy==2.0.1 +vsts==0.1.25 +vsts-cd-manager==1.0.2 +wcwidth==0.1.7 +websocket-client==0.56.0 +wrapt==1.11.2 +xmltodict==0.12.0 +azure-mgmt-synapse==1.0.0 \ No newline at end of file diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.Linux.txt b/test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.Linux.txt new file mode 100644 index 000000000..e38415325 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.Linux.txt @@ -0,0 +1,130 @@ +adal==1.2.3 +antlr4-python3-runtime==4.7.2 +applicationinsights==0.11.9 +argcomplete==1.11.1 +asn1crypto==0.24.0 +azure-batch==9.0.0 +azure-cli==2.11.0 +azure-cli-core==2.11.0 +azure-cli-telemetry==1.0.5 +azure-common==1.1.22 +azure-cosmos==3.2.0 +azure-datalake-store==0.0.49 +azure-devtools==1.2.0 +azure-functions-devops-build==0.0.22 +azure-graphrbac==0.60.0 +azure-keyvault==1.1.0 +azure-mgmt-advisor==2.0.1 +azure-mgmt-apimanagement==0.1.0 +azure-mgmt-appconfiguration==0.5.0 +azure-mgmt-applicationinsights==0.1.1 +azure-mgmt-authorization==0.52.0 +azure-mgmt-batch==9.0.0 +azure-mgmt-batchai==2.0.0 +azure-mgmt-billing==0.2.0 +azure-mgmt-botservice==0.2.0 +azure-mgmt-cdn==5.0.0 +azure-mgmt-cognitiveservices==6.2.0 +azure-mgmt-compute==13.0.0 +azure-mgmt-consumption==2.0.0 +azure-mgmt-containerinstance==1.5.0 +azure-mgmt-containerregistry==3.0.0rc14 +azure-mgmt-containerservice==9.0.1 +azure-mgmt-core==1.2.0 +azure-mgmt-cosmosdb==0.15.0 +azure-mgmt-datalake-analytics==0.2.1 +azure-mgmt-datalake-nspkg==3.0.1 +azure-mgmt-datalake-store==0.5.0 +azure-mgmt-datamigration==0.1.0 +azure-mgmt-deploymentmanager==0.2.0 +azure-mgmt-devtestlabs==4.0.0 +azure-mgmt-dns==2.1.0 +azure-mgmt-eventgrid==3.0.0rc7 +azure-mgmt-eventhub==4.0.0 +azure-mgmt-hdinsight==1.7.0 +azure-mgmt-imagebuilder==0.4.0 +azure-mgmt-iotcentral==3.0.0 +azure-mgmt-iothub==0.12.0 +azure-mgmt-iothubprovisioningservices==0.2.0 +azure-mgmt-keyvault==7.0.0b2 +azure-mgmt-loganalytics==0.7.0 +azure-mgmt-managementgroups==0.2.0 +azure-mgmt-maps==0.1.0 +azure-mgmt-marketplaceordering==0.2.1 +azure-mgmt-media==2.1.0 +azure-mgmt-monitor==0.11.0 +azure-mgmt-msi==0.2.0 +azure-mgmt-netapp==0.12.0 +azure-mgmt-network==11.0.0 +azure-mgmt-policyinsights==0.5.0 +azure-mgmt-privatedns==0.1.0 +azure-mgmt-rdbms==2.2.0 +azure-mgmt-recoveryservices==0.4.0 +azure-mgmt-recoveryservicesbackup==0.6.0 +azure-mgmt-redhatopenshift==0.1.0 +azure-mgmt-redis==7.0.0rc1 +azure-mgmt-relay==0.1.0 +azure-mgmt-reservations==0.6.0 +azure-mgmt-resource==10.2.0 +azure-mgmt-search==2.1.0 +azure-mgmt-security==0.4.1 +azure-mgmt-servicebus==0.6.0 +azure-mgmt-servicefabric==0.4.0 +azure-mgmt-signalr==0.4.0 +azure-mgmt-sql==0.19.0 +azure-mgmt-sqlvirtualmachine==0.5.0 +azure-mgmt-storage==11.1.0 +azure-mgmt-trafficmanager==0.51.0 +azure-mgmt-web==0.47.0 +azure-multiapi-storage==0.4.1 +azure-nspkg==3.0.2 +azure-loganalytics==0.1.0 +azure-storage-common==1.4.2 +azure-synapse-accesscontrol==0.2.0 +azure-synapse-spark==0.2.0 +bcrypt==3.1.7 +certifi==2019.6.16 +cffi==1.14.0 +chardet==3.0.4 +colorama==0.4.1 +ConfigArgParse==0.14.0 +cryptography==3.3.2 +fabric==2.4.0 +humanfriendly==8.0 +idna==2.8 +invoke==1.2.0 +isodate==0.6.0 +Jinja2==2.10.1 +jmespath==0.9.5 +jsmin==2.2.2 +knack==0.7.2 +MarkupSafe==1.1.1 +mock==4.0.2 +msrest==0.6.18 +msrestazure==0.6.3 +multidict==4.5.2 +oauthlib==3.0.1 +paramiko==2.6.0 +pbr==5.3.1 +portalocker==1.4.0 +pycparser==2.19 +PyJWT==1.7.1 +PyNaCl==1.3.0 +pyOpenSSL==19.0.0 +python-dateutil==2.8.0 +pytz==2019.1 +requests==2.22.0 +requests-oauthlib==1.2.0 +scp==0.13.2 +six==1.14.0 +sshtunnel==0.1.5 +tabulate==0.8.3 +urllib3==1.25.3 +vcrpy==2.0.1 +vsts==0.1.25 +vsts-cd-manager==1.0.2 +wcwidth==0.1.7 +websocket-client==0.56.0 +wrapt==1.11.2 +xmltodict==0.12.0 +azure-mgmt-synapse==1.0.0 \ No newline at end of file diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.windows.txt b/test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.windows.txt new file mode 100644 index 000000000..d2fcaf5af --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/requirements.py3.windows.txt @@ -0,0 +1,129 @@ +adal==1.2.3 +antlr4-python3-runtime==4.7.2 +applicationinsights==0.11.7 +argcomplete==1.11.1 +asn1crypto==0.24.0 +azure-batch==9.0.0 +azure-cli==2.11.0 +azure-cli-core==2.11.0 +azure-cli-telemetry==1.0.5 +azure-common==1.1.22 +azure-cosmos==3.2.0 +azure-datalake-store==0.0.49 +azure-devtools==1.2.0 +azure-functions-devops-build==0.0.22 +azure-graphrbac==0.60.0 +azure-keyvault==1.1.0 +azure-mgmt-advisor==2.0.1 +azure-mgmt-apimanagement==0.1.0 +azure-mgmt-appconfiguration==0.5.0 +azure-mgmt-applicationinsights==0.1.1 +azure-mgmt-authorization==0.52.0 +azure-mgmt-batch==9.0.0 +azure-mgmt-batchai==2.0.0 +azure-mgmt-billing==0.2.0 +azure-mgmt-botservice==0.2.0 +azure-mgmt-cdn==5.0.0 +azure-mgmt-cognitiveservices==6.2.0 +azure-mgmt-compute==13.0.0 +azure-mgmt-consumption==2.0.0 +azure-mgmt-containerinstance==1.5.0 +azure-mgmt-containerregistry==3.0.0rc14 +azure-mgmt-containerservice==9.0.1 +azure-mgmt-core==1.2.0 +azure-mgmt-cosmosdb==0.15.0 +azure-mgmt-datalake-analytics==0.2.1 +azure-mgmt-datalake-nspkg==3.0.1 +azure-mgmt-datalake-store==0.5.0 +azure-mgmt-datamigration==0.1.0 +azure-mgmt-deploymentmanager==0.2.0 +azure-mgmt-devtestlabs==4.0.0 +azure-mgmt-dns==2.1.0 +azure-mgmt-eventgrid==3.0.0rc7 +azure-mgmt-eventhub==4.0.0 +azure-mgmt-hdinsight==1.7.0 +azure-mgmt-imagebuilder==0.4.0 +azure-mgmt-iotcentral==3.0.0 +azure-mgmt-iothub==0.12.0 +azure-mgmt-iothubprovisioningservices==0.2.0 +azure-mgmt-keyvault==7.0.0b2 +azure-mgmt-loganalytics==0.7.0 +azure-mgmt-managementgroups==0.2.0 +azure-mgmt-maps==0.1.0 +azure-mgmt-marketplaceordering==0.2.1 +azure-mgmt-media==2.1.0 +azure-mgmt-monitor==0.11.0 +azure-mgmt-msi==0.2.0 +azure-mgmt-netapp==0.12.0 +azure-mgmt-network==11.0.0 +azure-mgmt-policyinsights==0.5.0 +azure-mgmt-privatedns==0.1.0 +azure-mgmt-rdbms==2.2.0 +azure-mgmt-recoveryservices==0.4.0 +azure-mgmt-recoveryservicesbackup==0.6.0 +azure-mgmt-redhatopenshift==0.1.0 +azure-mgmt-redis==7.0.0rc1 +azure-mgmt-relay==0.1.0 +azure-mgmt-reservations==0.6.0 +azure-mgmt-resource==10.2.0 +azure-mgmt-search==2.1.0 +azure-mgmt-security==0.4.1 +azure-mgmt-servicebus==0.6.0 +azure-mgmt-servicefabric==0.4.0 +azure-mgmt-signalr==0.4.0 +azure-mgmt-sql==0.19.0 +azure-mgmt-sqlvirtualmachine==0.5.0 +azure-mgmt-storage==11.1.0 +azure-mgmt-trafficmanager==0.51.0 +azure-mgmt-web==0.47.0 +azure-multiapi-storage==0.4.1 +azure-nspkg==3.0.2 +azure-loganalytics==0.1.0 +azure-storage-common==1.4.2 +azure-synapse-accesscontrol==0.2.0 +azure-synapse-spark==0.2.0 +bcrypt==3.1.7 +certifi==2019.6.16 +cffi==1.14.0 +chardet==3.0.4 +colorama==0.4.1 +cryptography==3.3.2 +fabric==2.4.0 +humanfriendly==8.0 +idna==2.8 +invoke==1.2.0 +isodate==0.6.0 +Jinja2==2.10.1 +jmespath==0.9.5 +jsmin==2.2.2 +knack==0.7.2 +MarkupSafe==1.1.1 +mock==4.0.2 +msrest==0.6.18 +msrestazure==0.6.3 +oauthlib==3.0.1 +paramiko==2.6.0 +pbr==5.3.1 +portalocker==1.2.1 +pycparser==2.19 +PyJWT==1.7.1 +PyNaCl==1.3.0 +pyOpenSSL==19.0.0 +pypiwin32==223 +pyreadline==2.1 +python-dateutil==2.8.0 +pytz==2019.1 +pywin32==228 +requests==2.22.0 +requests-oauthlib==1.2.0 +scp==0.13.2 +six==1.14.0 +sshtunnel==0.1.5 +tabulate==0.8.3 +urllib3==1.25.3 +vsts==0.1.25 +vsts-cd-manager==1.0.2 +wcwidth==0.1.7 +websocket-client==0.56.0 +xmltodict==0.12.0 +azure-mgmt-synapse==1.0.0 \ No newline at end of file diff --git a/test/scenarios/synapse/output/coretrack1/src/azure-cli/setup.py b/test/scenarios/synapse/output/coretrack1/src/azure-cli/setup.py new file mode 100644 index 000000000..3430565c8 --- /dev/null +++ b/test/scenarios/synapse/output/coretrack1/src/azure-cli/setup.py @@ -0,0 +1,188 @@ +#!/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 __future__ import print_function +from codecs import open +from setuptools import setup, find_packages +import sys + +try: + from azure_cli_bdist_wheel import cmdclass +except ImportError: + from distutils import log as logger + + logger.warn("Wheel is not available, disabling bdist_wheel hook") + cmdclass = {} + +VERSION = "2.11.0" +# If we have source, validate that our version numbers match +# This should prevent uploading releases with mismatched versions. +try: + with open('azure/cli/__main__.py', 'r', encoding='utf-8') as f: + content = f.read() +except OSError: + pass +else: + import re + + m = re.search(r'__version__\s*=\s*[\'"](.+?)[\'"]', content) + if not m: + print('Could not find __version__ in azure/cli/__main__.py') + sys.exit(1) + if m.group(1) != VERSION: + print('Expected __version__ = "{}"; found "{}"'.format(VERSION, m.group(1))) + sys.exit(1) + +CLASSIFIERS = [ + 'Development Status :: 5 - Production/Stable', + '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 = [ + 'antlr4-python3-runtime~=4.7.2', + 'azure-batch~=9.0', + 'azure-cli-core=={}.*'.format(VERSION), + 'azure-cosmos~=3.0,>=3.0.2', + 'azure-datalake-store~=0.0.49', + 'azure-functions-devops-build~=0.0.22', + 'azure-graphrbac~=0.60.0', + 'azure-keyvault~=1.1', + 'azure-mgmt-advisor>=2.0.1,<3.0.0', + 'azure-mgmt-apimanagement~=0.1.0', + 'azure-mgmt-applicationinsights~=0.1.1', + 'azure-mgmt-appconfiguration~=0.5.0', + 'azure-mgmt-authorization~=0.52.0', + 'azure-mgmt-batch~=9.0.0', + 'azure-mgmt-batchai~=2.0', + 'azure-mgmt-billing~=0.2', + 'azure-mgmt-botservice~=0.2.0', + 'azure-mgmt-cdn==5.0.0', + 'azure-mgmt-cognitiveservices~=6.2.0', + 'azure-mgmt-compute~=13.0', + 'azure-mgmt-consumption~=2.0', + 'azure-mgmt-containerinstance~=1.4', + 'azure-mgmt-containerregistry==3.0.0rc14', + 'azure-mgmt-containerservice~=9.0.1', + 'azure-mgmt-cosmosdb~=0.15.0', + 'azure-mgmt-datalake-analytics~=0.2.1', + 'azure-mgmt-datalake-store~=0.5.0', + 'azure-mgmt-datamigration~=0.1.0', + 'azure-mgmt-deploymentmanager~=0.2.0', + 'azure-mgmt-devtestlabs~=4.0', + 'azure-mgmt-dns~=2.1', + 'azure-mgmt-eventgrid==3.0.0rc7', + 'azure-mgmt-eventhub~=4.0.0', + 'azure-mgmt-hdinsight~=1.7.0', + 'azure-mgmt-imagebuilder~=0.4.0', + 'azure-mgmt-iotcentral~=3.0.0', + 'azure-mgmt-iothub~=0.12.0', + 'azure-mgmt-iothubprovisioningservices~=0.2.0', + 'azure-mgmt-keyvault~=7.0.0b2', + 'azure-mgmt-loganalytics~=0.7.0', + 'azure-mgmt-managedservices~=1.0', + 'azure-mgmt-managementgroups~=0.1', + 'azure-mgmt-maps~=0.1.0', + 'azure-mgmt-marketplaceordering~=0.1', + 'azure-mgmt-media~=2.1,>=2.1.0', + 'azure-mgmt-monitor~=0.11.0', + 'azure-mgmt-msi~=0.2', + 'azure-mgmt-netapp~=0.12.0', + 'azure-mgmt-network~=11.0.0', + 'azure-mgmt-policyinsights~=0.5.0', + 'azure-mgmt-privatedns~=0.1.0', + 'azure-mgmt-rdbms~=2.2.0', + 'azure-mgmt-recoveryservices~=0.4.0', + 'azure-mgmt-recoveryservicesbackup~=0.6.0', + 'azure-mgmt-redhatopenshift==0.1.0', + 'azure-mgmt-redis~=7.0.0rc1', + 'azure-mgmt-relay~=0.1.0', + # 'azure-mgmt-reservations~=0.6.0', + 'azure-mgmt-reservations==0.6.0', # TODO: Use requirements.txt instead of '==' #9781 + 'azure-mgmt-search~=2.0', + 'azure-mgmt-security~=0.4.1', + 'azure-mgmt-servicebus~=0.6.0', + 'azure-mgmt-servicefabric~=0.4.0', + 'azure-mgmt-signalr~=0.4.0', + 'azure-mgmt-sql~=0.19.0', + 'azure-mgmt-sqlvirtualmachine~=0.5.0', + 'azure-mgmt-storage~=11.1.0', + 'azure-mgmt-trafficmanager~=0.51.0', + 'azure-mgmt-web~=0.47.0', + 'azure-multiapi-storage~=0.4.1', + 'azure-loganalytics~=0.1.0', + 'azure-storage-common~=1.4', + 'azure-synapse-accesscontrol~=0.2.0', + 'azure-synapse-spark~=0.2.0', + 'cryptography>=3.3.2', + 'fabric~=2.4', + 'jsmin~=2.2.2', + 'pytz==2019.1', + 'scp~=0.13.2', + 'sshtunnel~=0.1.4', + 'urllib3[secure]~=1.18', + 'vsts-cd-manager~=1.0.0,>=1.0.2', + 'websocket-client~=0.56.0', + 'xmltodict~=0.12', + 'javaproperties==0.5.1', + 'jsondiff==1.2.0', + 'azure-mgmt-synapse~=1.0.0' +] + +TESTS_REQUIRE = [ + 'mock~=4.0' +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='azure-cli', + version=VERSION, + description='Microsoft Azure Command-Line Tools', + long_description=README + '\n\n' + HISTORY, + license='MIT', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + zip_safe=False, + classifiers=CLASSIFIERS, + scripts=[ + 'az', + 'az.completion.sh', + 'az.bat', + ], + packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "azure", "azure.cli"]), + install_requires=DEPENDENCIES, + package_data={ + 'azure.cli.command_modules.acr': ['*.json'], + 'azure.cli.command_modules.botservice': ['*.json', '*.config'], + 'azure.cli.command_modules.monitor.operations': ['autoscale-parameters-template.json'], + 'azure.cli.command_modules.servicefabric': [ + 'template/windows/template.json', + 'template/windows/parameter.json', + 'template/linux/template.json', + 'template/linux/parameter.json', + 'template/service/template.json', + 'template/service/parameter.json' + ], + 'azure.cli.command_modules.appservice': [ + 'resources/WindowsFunctionsStacks.json', + 'resources/LinuxFunctionsStacks.json', + 'resources/WebappRuntimeStacks.json' + ] + }, + cmdclass=cmdclass +)