From f53a0e82a8afb213275f0ec5e5572a6558cdff52 Mon Sep 17 00:00:00 2001 From: Yishi Wang Date: Mon, 4 Nov 2024 14:28:46 +0800 Subject: [PATCH 1/2] remove dla module --- .../azure/cli/command_modules/dla/__init__.py | 32 - .../command_modules/dla/_client_factory.py | 82 - .../azure/cli/command_modules/dla/_help.py | 435 -- .../azure/cli/command_modules/dla/_params.py | 103 - .../cli/command_modules/dla/_validators.py | 63 - .../azure/cli/command_modules/dla/commands.py | 191 - .../azure/cli/command_modules/dla/custom.py | 323 -- .../cli/command_modules/dla/tests/__init__.py | 4 - .../dla/tests/latest/__init__.py | 4 - .../dla/tests/latest/recording_processors.py | 38 - .../recordings/test_adla_account_mgmt.yaml | 2129 ---------- .../recordings/test_adla_catalog_mgmt.yaml | 1967 --------- .../latest/recordings/test_adla_job_mgmt.yaml | 1174 ------ .../dla/tests/latest/test_dla_commands.py | 483 --- .../dla/vendored_sdks/__init__.py | 6 - .../azure_mgmt_datalake_analytics/__init__.py | 8 - .../account/__init__.py | 18 - ...ake_analytics_account_management_client.py | 107 - .../account/models/__init__.py | 80 - .../models/add_data_lake_store_parameters.py | 27 - .../models/add_storage_account_parameters.py | 37 - .../account/models/compute_policy.py | 59 - ...ompute_policy_account_create_parameters.py | 58 - ...pute_policy_create_or_update_parameters.py | 53 - .../account/models/compute_policy_paged.py | 27 - .../models/data_lake_analytics_account.py | 198 - .../data_lake_analytics_account_basic.py | 87 - ...data_lake_analytics_account_basic_paged.py | 27 - ...alytics_account_management_client_enums.py | 63 - ...lake_analytics_account_properties_basic.py | 67 - ...ake_analytics_account_update_parameters.py | 98 - .../models/data_lake_store_account_info.py | 46 - .../data_lake_store_account_info_paged.py | 27 - .../account/models/firewall_rule.py | 53 - .../account/models/firewall_rule_paged.py | 27 - .../account/models/optional_sub_resource.py | 44 - .../account/models/resource.py | 53 - .../account/models/sas_token_info.py | 35 - .../account/models/sas_token_info_paged.py | 27 - .../account/models/storage_account_info.py | 52 - .../models/storage_account_info_paged.py | 27 - .../account/models/storage_container.py | 49 - .../account/models/storage_container_paged.py | 27 - .../account/models/sub_resource.py | 44 - .../models/update_firewall_rule_parameters.py | 33 - .../update_storage_account_parameters.py | 33 - .../account/operations/__init__.py | 24 - .../account/operations/account_operations.py | 595 --- .../operations/compute_policies_operations.py | 412 -- .../data_lake_store_accounts_operations.py | 354 -- .../operations/firewall_rules_operations.py | 412 -- .../operations/storage_accounts_operations.py | 667 --- .../account/version.py | 13 - .../catalog/__init__.py | 18 - ...ake_analytics_catalog_management_client.py | 82 - .../catalog/models/__init__.py | 110 - .../catalog/models/catalog_item.py | 31 - .../catalog/models/catalog_item_list.py | 27 - ...cs_catalog_credential_create_parameters.py | 44 - ...cs_catalog_credential_delete_parameters.py | 29 - ...cs_catalog_credential_update_parameters.py | 44 - ...alytics_catalog_management_client_enums.py | 19 - ...alog_secret_create_or_update_parameters.py | 38 - .../catalog/models/ddl_name.py | 43 - .../catalog/models/entity_id.py | 33 - .../catalog/models/external_table.py | 33 - .../catalog/models/type_field_info.py | 31 - .../catalog/models/usql_assembly.py | 62 - .../catalog/models/usql_assembly_clr.py | 42 - .../catalog/models/usql_assembly_clr_paged.py | 27 - .../models/usql_assembly_dependency_info.py | 28 - .../catalog/models/usql_assembly_file_info.py | 37 - .../catalog/models/usql_credential.py | 34 - .../catalog/models/usql_credential_paged.py | 27 - .../catalog/models/usql_database.py | 34 - .../catalog/models/usql_database_paged.py | 27 - .../catalog/models/usql_directed_column.py | 32 - .../catalog/models/usql_distribution_info.py | 41 - .../models/usql_external_data_source.py | 52 - .../models/usql_external_data_source_paged.py | 27 - .../catalog/models/usql_index.py | 67 - .../catalog/models/usql_package.py | 47 - .../catalog/models/usql_package_paged.py | 27 - .../catalog/models/usql_procedure.py | 47 - .../catalog/models/usql_procedure_paged.py | 27 - .../catalog/models/usql_schema.py | 38 - .../catalog/models/usql_schema_paged.py | 27 - .../catalog/models/usql_secret.py | 52 - .../catalog/models/usql_table.py | 67 - .../catalog/models/usql_table_column.py | 32 - .../catalog/models/usql_table_paged.py | 27 - .../catalog/models/usql_table_partition.py | 60 - .../models/usql_table_partition_paged.py | 27 - .../catalog/models/usql_table_statistics.py | 87 - .../models/usql_table_statistics_paged.py | 27 - .../catalog/models/usql_table_type.py | 92 - .../catalog/models/usql_table_type_paged.py | 27 - .../models/usql_table_valued_function.py | 46 - .../usql_table_valued_function_paged.py | 27 - .../catalog/models/usql_type.py | 95 - .../catalog/models/usql_type_paged.py | 27 - .../catalog/models/usql_view.py | 47 - .../catalog/models/usql_view_paged.py | 27 - .../catalog/operations/__init__.py | 16 - .../catalog/operations/catalog_operations.py | 3588 ----------------- .../catalog/version.py | 13 - .../job/__init__.py | 18 - ...ta_lake_analytics_job_management_client.py | 92 - .../job/models/__init__.py | 78 - .../job/models/base_job_parameters.py | 39 - .../job/models/build_job_parameters.py | 42 - .../job/models/create_job_parameters.py | 66 - .../job/models/create_job_properties.py | 45 - .../job/models/create_usql_job_properties.py | 48 - ...e_analytics_job_management_client_enums.py | 67 - .../job/models/diagnostics.py | 61 - .../job/models/hive_job_properties.py | 66 - .../job/models/job_data_path.py | 44 - .../job/models/job_error_details.py | 110 - .../job/models/job_information.py | 120 - .../job/models/job_information_basic.py | 112 - .../job/models/job_information_basic_paged.py | 27 - .../job/models/job_inner_error.py | 92 - .../job/models/job_pipeline_information.py | 102 - .../models/job_pipeline_information_paged.py | 27 - .../models/job_pipeline_run_information.py | 40 - .../job/models/job_properties.py | 45 - .../job/models/job_recurrence_information.py | 84 - .../job_recurrence_information_paged.py | 27 - .../job/models/job_relationship_properties.py | 60 - .../job/models/job_resource.py | 39 - .../job/models/job_state_audit_record.py | 50 - .../job/models/job_statistics.py | 45 - .../job/models/job_statistics_vertex_stage.py | 139 - .../job/models/usql_job_properties.py | 126 - .../job/operations/__init__.py | 20 - .../job/operations/job_operations.py | 538 --- .../job/operations/pipeline_operations.py | 195 - .../job/operations/recurrence_operations.py | 195 - .../job/version.py | 13 - .../azure_mgmt_datalake_analytics/version.py | 8 - src/azure-cli/service_name.json | 5 - 142 files changed, 19703 deletions(-) delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/_client_factory.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/_help.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/_params.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/_validators.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/commands.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/custom.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/tests/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/tests/latest/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/tests/latest/recording_processors.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_account_mgmt.yaml delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_catalog_mgmt.yaml delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_job_mgmt.yaml delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/tests/latest/test_dla_commands.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/data_lake_analytics_account_management_client.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/add_data_lake_store_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/add_storage_account_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_account_create_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_create_or_update_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_basic.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_basic_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_management_client_enums.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_properties_basic.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_update_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_store_account_info.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_store_account_info_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/firewall_rule.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/firewall_rule_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/optional_sub_resource.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/resource.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sas_token_info.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sas_token_info_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_account_info.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_account_info_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_container.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_container_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sub_resource.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/update_firewall_rule_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/update_storage_account_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/account_operations.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/compute_policies_operations.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/data_lake_store_accounts_operations.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/firewall_rules_operations.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/storage_accounts_operations.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/version.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/data_lake_analytics_catalog_management_client.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/catalog_item.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/catalog_item_list.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_create_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_delete_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_update_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_management_client_enums.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_secret_create_or_update_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/ddl_name.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/entity_id.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/external_table.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/type_field_info.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_clr.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_clr_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_dependency_info.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_file_info.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_credential.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_credential_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_database.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_database_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_directed_column.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_distribution_info.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_external_data_source.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_external_data_source_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_index.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_package.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_package_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_procedure.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_procedure_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_schema.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_schema_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_secret.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_column.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_partition.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_partition_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_statistics.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_statistics_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_type.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_type_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_valued_function.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_valued_function_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_type.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_type_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_view.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_view_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/operations/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/operations/catalog_operations.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/version.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/data_lake_analytics_job_management_client.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/base_job_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/build_job_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_job_parameters.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_job_properties.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_usql_job_properties.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/data_lake_analytics_job_management_client_enums.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/diagnostics.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/hive_job_properties.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_data_path.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_error_details.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information_basic.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information_basic_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_inner_error.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_information.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_information_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_run_information.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_properties.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_recurrence_information.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_recurrence_information_paged.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_relationship_properties.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_resource.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_state_audit_record.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_statistics.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_statistics_vertex_stage.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/usql_job_properties.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/__init__.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/job_operations.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/pipeline_operations.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/recurrence_operations.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/version.py delete mode 100644 src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/version.py diff --git a/src/azure-cli/azure/cli/command_modules/dla/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/__init__.py deleted file mode 100644 index fa60e185b5a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -# pylint: disable=unused-import - -from azure.cli.core import AzCommandsLoader - -from azure.cli.command_modules.dla._help import helps # pylint: disable=unused-import - - -class DataLakeAnalyticsCommandsLoader(AzCommandsLoader): - - def __init__(self, cli_ctx=None): - from azure.cli.core.commands import CliCommandType - from azure.cli.core.profiles import ResourceType - dla_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.dla.custom#{}') - super(DataLakeAnalyticsCommandsLoader, self).__init__(cli_ctx=cli_ctx, - resource_type=ResourceType.MGMT_DATALAKE_ANALYTICS, - custom_command_type=dla_custom) - - def load_command_table(self, args): - from azure.cli.command_modules.dla.commands import load_command_table - load_command_table(self, args) - return self.command_table - - def load_arguments(self, command): - from azure.cli.command_modules.dla._params import load_arguments - load_arguments(self, command) - - -COMMAND_LOADER_CLS = DataLakeAnalyticsCommandsLoader diff --git a/src/azure-cli/azure/cli/command_modules/dla/_client_factory.py b/src/azure-cli/azure/cli/command_modules/dla/_client_factory.py deleted file mode 100644 index b4821e44fdf..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/_client_factory.py +++ /dev/null @@ -1,82 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - - -def cf_dla_account(cli_ctx, _): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from .vendored_sdks.azure_mgmt_datalake_analytics.account import DataLakeAnalyticsAccountManagementClient - return get_mgmt_service_client(cli_ctx, DataLakeAnalyticsAccountManagementClient).account - - -def cf_dla_account_firewall(cli_ctx, _): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from .vendored_sdks.azure_mgmt_datalake_analytics.account import DataLakeAnalyticsAccountManagementClient - return get_mgmt_service_client(cli_ctx, DataLakeAnalyticsAccountManagementClient).firewall_rules - - -def cf_dla_account_compute_policy(cli_ctx, _): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from .vendored_sdks.azure_mgmt_datalake_analytics.account import DataLakeAnalyticsAccountManagementClient - return get_mgmt_service_client(cli_ctx, DataLakeAnalyticsAccountManagementClient).compute_policies - - -def cf_dla_account_storage(cli_ctx, _): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from .vendored_sdks.azure_mgmt_datalake_analytics.account import DataLakeAnalyticsAccountManagementClient - return get_mgmt_service_client(cli_ctx, DataLakeAnalyticsAccountManagementClient).storage_accounts - - -def cf_dla_account_adls(cli_ctx, _): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from .vendored_sdks.azure_mgmt_datalake_analytics.account import DataLakeAnalyticsAccountManagementClient - return get_mgmt_service_client(cli_ctx, DataLakeAnalyticsAccountManagementClient).data_lake_store_accounts - - -def cf_dla_catalog(cli_ctx, _): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from .vendored_sdks.azure_mgmt_datalake_analytics.catalog import DataLakeAnalyticsCatalogManagementClient - return get_mgmt_service_client( - cli_ctx, - DataLakeAnalyticsCatalogManagementClient, - subscription_bound=False, - base_url_bound=False, - resource=cli_ctx.cloud.endpoints.active_directory_data_lake_resource_id, - adla_catalog_dns_suffix=cli_ctx.cloud.suffixes.azure_datalake_analytics_catalog_and_job_endpoint).catalog - - -def cf_dla_job(cli_ctx, _): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from .vendored_sdks.azure_mgmt_datalake_analytics.job import DataLakeAnalyticsJobManagementClient - return get_mgmt_service_client( - cli_ctx, - DataLakeAnalyticsJobManagementClient, - subscription_bound=False, - base_url_bound=False, - resource=cli_ctx.cloud.endpoints.active_directory_data_lake_resource_id, - adla_job_dns_suffix=cli_ctx.cloud.suffixes.azure_datalake_analytics_catalog_and_job_endpoint).job - - -def cf_dla_job_recurrence(cli_ctx, _): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from .vendored_sdks.azure_mgmt_datalake_analytics.job import DataLakeAnalyticsJobManagementClient - return get_mgmt_service_client( - cli_ctx, - DataLakeAnalyticsJobManagementClient, - subscription_bound=False, - base_url_bound=False, - resource=cli_ctx.cloud.endpoints.active_directory_data_lake_resource_id, - adla_job_dns_suffix=cli_ctx.cloud.suffixes.azure_datalake_analytics_catalog_and_job_endpoint).recurrence - - -def cf_dla_job_pipeline(cli_ctx, _): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from .vendored_sdks.azure_mgmt_datalake_analytics.job import DataLakeAnalyticsJobManagementClient - return get_mgmt_service_client( - cli_ctx, - DataLakeAnalyticsJobManagementClient, - subscription_bound=False, - base_url_bound=False, - resource=cli_ctx.cloud.endpoints.active_directory_data_lake_resource_id, - adla_job_dns_suffix=cli_ctx.cloud.suffixes.azure_datalake_analytics_catalog_and_job_endpoint).pipeline diff --git a/src/azure-cli/azure/cli/command_modules/dla/_help.py b/src/azure-cli/azure/cli/command_modules/dla/_help.py deleted file mode 100644 index 3ecb4e6e185..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/_help.py +++ /dev/null @@ -1,435 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from knack.help_files import helps # pylint: disable=unused-import -# pylint: disable=line-too-long, too-many-lines - -helps['dla'] = """ -type: group -short-summary: Manage Data Lake Analytics accounts, jobs, and catalogs. -""" - -helps['dla account'] = """ -type: group -short-summary: Manage Data Lake Analytics accounts. -""" - -helps['dla account blob-storage'] = """ -type: group -short-summary: Manage links between Data Lake Analytics accounts and Azure Storage. -""" - -helps['dla account blob-storage add'] = """ -type: command -short-summary: Links an Azure Storage account to the specified Data Lake Analytics account. -""" - -helps['dla account blob-storage update'] = """ -type: command -short-summary: Updates an Azure Storage account linked to the specified Data Lake Analytics account. -""" - -helps['dla account compute-policy'] = """ -type: group -short-summary: Manage Data Lake Analytics account compute policies. -""" - -helps['dla account compute-policy create'] = """ -type: command -short-summary: Create a compute policy in the Data Lake Analytics account. -parameters: - - name: --max-dop-per-job - type: int - short-summary: The maximum degree of parallelism allowed per job for this policy. At least one of `--min-priority-per-job` and `--max-dop-per-job` must be specified. - - name: --min-priority-per-job - type: int - short-summary: The minimum priority allowed per job for this policy. At least one of `--min-priority-per-job` and `--max-dop-per-job` must be specified. - - name: --compute-policy-name - type: string - short-summary: The name of the compute policy to create. - - name: --object-id - type: string - short-summary: The Azure Active Directory object ID of the user, group, or service principal to apply the policy to. - - name: --object-type - type: string - short-summary: The Azure Active Directory object type associated with the supplied object ID. -""" - -helps['dla account compute-policy delete'] = """ -type: command -short-summary: Delete a compute policy in a Data Lake Analytics account. -""" - -helps['dla account compute-policy list'] = """ -type: command -short-summary: List compute policies in the a Lake Analytics account. -""" - -helps['dla account compute-policy show'] = """ -type: command -short-summary: Retrieve a compute policy in a Data Lake Analytics account. -""" - -helps['dla account compute-policy update'] = """ -type: command -short-summary: Update a compute policy in the Data Lake Analytics account. -parameters: - - name: --max-dop-per-job - type: int - short-summary: The maximum degree of parallelism allowed per job for this policy. At least one of `--min-priority-per-job` and `--max-dop-per-job` must be specified. - - name: --min-priority-per-job - type: int - short-summary: The minimum priority allowed per job for this policy. At least one of `--min-priority-per-job` and `--max-dop-per-job` must be specified. - - name: --compute-policy-name - type: string - short-summary: The name of the compute policy to update. -""" - -helps['dla account create'] = """ -type: command -short-summary: Create a Data Lake Analytics account. -parameters: - - name: --default-data-lake-store - type: string - short-summary: The default Data Lake Store account to associate with the created account. - - name: --max-degree-of-parallelism - type: int - short-summary: The maximum degree of parallelism for this account. - - name: --max-job-count - type: int - short-summary: The maximum number of concurrent jobs for this account. - - name: --query-store-retention - type: int - short-summary: The number of days to retain job metadata. -""" - -helps['dla account data-lake-store'] = """ -type: group -short-summary: Manage links between Data Lake Analytics and Data Lake Store accounts. -""" - -helps['dla account delete'] = """ -type: command -short-summary: Delete a Data Lake Analytics account. -""" - -helps['dla account firewall'] = """ -type: group -short-summary: Manage Data Lake Analytics account firewall rules. -""" - -helps['dla account firewall create'] = """ -type: command -short-summary: Create a firewall rule in a Data Lake Analytics account. -parameters: - - name: --end-ip-address - type: string - short-summary: The end of the valid IP range for the firewall rule. - - name: --start-ip-address - type: string - short-summary: The start of the valid IP range for the firewall rule. - - name: --firewall-rule-name - type: string - short-summary: The name of the firewall rule. -""" - -helps['dla account firewall delete'] = """ -type: command -short-summary: Delete a firewall rule in a Data Lake Analytics account. -""" - -helps['dla account firewall list'] = """ -type: command -short-summary: List firewall rules in a Data Lake Analytics account. -""" - -helps['dla account firewall show'] = """ -type: command -short-summary: Retrieve a firewall rule in a Data Lake Analytics account. -""" - -helps['dla account firewall update'] = """ -type: command -short-summary: Update a firewall rule in a Data Lake Analytics account. -""" - -helps['dla account list'] = """ -type: command -short-summary: List available Data Lake Analytics accounts. -""" - -helps['dla account show'] = """ -type: command -short-summary: Get the details of a Data Lake Analytics account. -""" - -helps['dla account update'] = """ -type: command -short-summary: Update a Data Lake Analytics account. -parameters: - - name: --max-degree-of-parallelism - type: int - short-summary: The maximum degree of parallelism for this account. - - name: --max-job-count - type: int - short-summary: The maximum number of concurrent jobs for this account. - - name: --query-store-retention - type: int - short-summary: The number of days to retain job metadata. - - name: --firewall-state - type: string - short-summary: Enable or disable existing firewall rules. - - name: --allow-azure-ips - type: string - short-summary: Allow or block IPs originating from Azure through the firewall. -""" - -helps['dla catalog'] = """ -type: group -short-summary: Manage Data Lake Analytics catalogs. -""" - -helps['dla catalog assembly'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog assemblies. -""" - -helps['dla catalog credential'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog credentials. -""" - -helps['dla catalog credential create'] = """ -type: command -short-summary: Create a new catalog credential for use with an external data source. -parameters: - - name: --credential-name - type: string - short-summary: The name of the credential. - - name: --database-name - type: string - short-summary: The name of the database in which to create the credential. - - name: --user-name - type: string - short-summary: The user name that will be used when authenticating with this credential. -""" - -helps['dla catalog credential delete'] = """ -type: command -short-summary: Delete a catalog credential. -""" - -helps['dla catalog credential list'] = """ -type: command -short-summary: List catalog credentials. -""" - -helps['dla catalog credential show'] = """ -type: command -short-summary: Retrieve a catalog credential. -""" - -helps['dla catalog credential update'] = """ -type: command -short-summary: Update a catalog credential for use with an external data source. -parameters: - - name: --credential-name - type: string - short-summary: The name of the credential to update. - - name: --database-name - type: string - short-summary: The name of the database in which the credential exists. - - name: --user-name - type: string - short-summary: The user name associated with the credential that will have its password updated. -""" - -helps['dla catalog database'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog databases. -""" - -helps['dla catalog external-data-source'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog external data sources. -""" - -helps['dla catalog package'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog packages. -""" - -helps['dla catalog procedure'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog stored procedures. -""" - -helps['dla catalog schema'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog schemas. -""" - -helps['dla catalog table'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog tables. -""" - -helps['dla catalog table list'] = """ -type: command -short-summary: List tables in a database or schema. -parameters: - - name: --database-name - type: string - short-summary: The name of the database. - - name: --schema-name - type: string - short-summary: The schema assocated with the tables to list. -""" - -helps['dla catalog table-partition'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog table partitions. -""" - -helps['dla catalog table-stats'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog table statistics. -""" - -helps['dla catalog table-stats list'] = """ -type: command -short-summary: List table statistics in a database, table, or schema. -parameters: - - name: --database-name - type: string - short-summary: The name of the database. - - name: --schema-name - type: string - short-summary: The schema associated with the tables to list. - - name: --table-name - type: string - short-summary: The table to list statistics for. `--schema-name` must also be specified. -""" - -helps['dla catalog table-type'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog table types. -""" - -helps['dla catalog tvf'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog table valued functions. -""" - -helps['dla catalog tvf list'] = """ -type: command -short-summary: List table valued functions in a database or schema. -parameters: - - name: --database-name - type: string - short-summary: The name of the database. - - name: --schema-name - type: string - short-summary: The name of the schema assocated with table valued functions to list. -""" - -helps['dla catalog view'] = """ -type: group -short-summary: Manage Data Lake Analytics catalog views. -""" - -helps['dla catalog view list'] = """ -type: command -short-summary: List views in a database or schema. -parameters: - - name: --database-name - type: string - short-summary: The name of the database. - - name: --schema-name - type: string - short-summary: The name of the schema associated with the views to list. -""" - -helps['dla job'] = """ -type: group -short-summary: Manage Data Lake Analytics jobs. -""" - -helps['dla job cancel'] = """ -type: command -short-summary: Cancel a Data Lake Analytics job. -""" - -helps['dla job list'] = """ -type: command -short-summary: List Data Lake Analytics jobs. -""" - -helps['dla job pipeline'] = """ -type: group -short-summary: Manage Data Lake Analytics job pipelines. -""" - -helps['dla job pipeline list'] = """ -type: command -short-summary: List job pipelines in a Data Lake Analytics account. -""" - -helps['dla job pipeline show'] = """ -type: command -short-summary: Retrieve a job pipeline in a Data Lake Analytics account. -""" - -helps['dla job recurrence'] = """ -type: group -short-summary: Manage Data Lake Analytics job recurrences. -""" - -helps['dla job recurrence list'] = """ -type: command -short-summary: List job recurrences in a Data Lake Analytics account. -""" - -helps['dla job recurrence show'] = """ -type: command -short-summary: Retrieve a job recurrence in a Data Lake Analytics account. -""" - -helps['dla job show'] = """ -type: command -short-summary: Get information for a Data Lake Analytics job. -""" - -helps['dla job submit'] = """ -type: command -short-summary: Submit a job to a Data Lake Analytics account. -parameters: - - name: --job-name - type: string - short-summary: Name for the submitted job. - - name: --script - type: string - short-summary: Script to submit. This may be '@{file}' to load from a file. - - name: --runtime-version - short-summary: The runtime version to use. - long-summary: This parameter is used for explicitly overwriting the default runtime. It should only be done if you know what you are doing. - - name: --degree-of-parallelism - short-summary: The degree of parallelism for the job. - long-summary: Higher values equate to more parallelism and will usually yield faster running jobs, at the cost of more AUs. - - name: --priority - short-summary: The priority of the job. - long-summary: Lower values increase the priority, with the lowest value being 1. This determines the order jobs are run in. -""" - -helps['dla job wait'] = """ -type: command -short-summary: Wait for a Data Lake Analytics job to finish. -long-summary: This command exits when the job completes. -parameters: - - name: --job-id - type: string - short-summary: 'Job ID to poll for completion.' -""" diff --git a/src/azure-cli/azure/cli/command_modules/dla/_params.py b/src/azure-cli/azure/cli/command_modules/dla/_params.py deleted file mode 100644 index bd57c48b825..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/_params.py +++ /dev/null @@ -1,103 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -from argcomplete.completers import FilesCompleter - -from knack.arguments import CLIArgumentType - -from azure.cli.core.commands.parameters import ( - tags_type, get_resource_name_completion_list, resource_group_name_type, get_enum_type) - -from azure.cli.command_modules.dla._validators import validate_resource_group_name, datetime_format - - -# pylint: disable=line-too-long, too-many-statements -def load_arguments(self, _): - from .vendored_sdks.azure_mgmt_datalake_analytics.account.models import (FirewallState, TierType, FirewallAllowAzureIpsState, AADObjectType) - - from .vendored_sdks.azure_mgmt_datalake_analytics.job.models import (CompileMode, JobState, JobResult) - - datalake_analytics_name_type = CLIArgumentType(help='Name of the Data Lake Analytics account.', options_list=('--account_name',), completer=get_resource_name_completion_list('Microsoft.DataLakeAnalytics/accounts'), id_part='name') - - # PARAMETER REGISTRATIONS - # common - with self.argument_context('dla') as c: - c.argument('resource_group_name', resource_group_name_type, id_part=None, required=False, help='If not specified, will attempt to discover the resource group for the specified Data Lake Analytics account.', validator=validate_resource_group_name) - c.argument('top', help='Maximum number of items to return.', type=int) - c.argument('skip', help='The number of items to skip over before returning elements.', type=int) - c.argument('count', help='The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true.', type=bool) - c.argument('account_name', datalake_analytics_name_type, options_list=['--account', '-n']) - - # account - with self.argument_context('dla account') as c: - c.argument('tags', tags_type) - c.argument('tier', arg_type=get_enum_type(TierType), help='The desired commitment tier for this account to use.') - - with self.argument_context('dla account create') as c: - c.argument('resource_group_name', resource_group_name_type, validator=None) - c.argument('account_name', datalake_analytics_name_type, options_list=('--account', '-n'), completer=None) - - with self.argument_context('dla account update') as c: - c.argument('firewall_state', help='Enable/disable existing firewall rules.', arg_type=get_enum_type(FirewallState)) - c.argument('allow_azure_ips', help='Allow/block Azure originating IPs through the firewall', arg_type=get_enum_type(FirewallAllowAzureIpsState)) - c.argument('max_job_count', help='The maximum supported jobs running under the account at the same time.', type=int) - c.argument('max_degree_of_parallelism', help='The maximum supported degree of parallelism for this account.', type=int) - c.argument('query_store_retention', help='The number of days that job metadata is retained.', type=int) - - with self.argument_context('dla account list') as c: - c.argument('resource_group_name', resource_group_name_type, validator=None) - - # storage - with self.argument_context('dla account blob-storage') as c: - c.argument('access_key', help='the access key associated with this Azure Storage account that will be used to connect to it') - c.argument('suffix', help='the optional suffix for the storage account') - c.argument('storage_account_name', help='Name of an existing storage account to link to.') - - # job - with self.argument_context('dla job submit') as c: - c.argument('compile_mode', arg_type=get_enum_type(CompileMode), help='Indicates the type of compilation to be done on this job. Valid values are: \'Semantic\' (Only performs semantic checks and necessary sanity checks), \'Full\' (full compilation) and \'SingleBox\' (Full compilation performed locally)') - c.argument('compile_only', help='Indicates that the submission should only build the job and not execute if set to true.', action='store_true') - c.argument('script', completer=FilesCompleter(), help="The script to submit. This is either the script contents or use `@` to load the script from a file") - c.argument('pipeline_id', help='Job relationship pipeline GUID.') - c.argument('pipeline_name', help='Friendly name of the job relationship pipeline.') - c.argument('pipeline_uri', help='Unique pipeline URI which links to the originating service for this pipeline.') - c.argument('run_id', help='GUID of the iteration of this pipeline.') - c.argument('recurrence_id', help='Recurrence GUID, unique per activity/script, regardless of iteration. Links different occurrences of the same job together.') - c.argument('recurrence_name', help='Friendly recurrence nae for the correlation between jobs.') - - with self.argument_context('dla job wait') as c: - c.argument('max_wait_time_sec', help='The maximum amount of time to wait before erroring out. Default value is to never timeout. Any value <= 0 means never timeout', type=int) - c.argument('wait_interval_sec', help='The polling interval between checks for the job status, in seconds.', type=int) - - with self.argument_context('dla job list') as c: - c.argument('submitted_after', help='A filter which returns jobs only submitted after the specified time, in ISO-8601 format.', type=datetime_format) - c.argument('submitted_before', help='A filter which returns jobs only submitted before the specified time, in ISO-8601 format.', type=datetime_format) - c.argument('state', arg_type=get_enum_type(JobState), help='A filter which returns jobs with only the specified state(s).', nargs='*') - c.argument('result', arg_type=get_enum_type(JobResult), help='A filter which returns jobs with only the specified result(s).', nargs='*') - c.argument('submitter', help='A filter which returns jobs only by the specified submitter.') - c.argument('name', help='A filter which returns jobs only by the specified friendly name.') - c.argument('pipeline_id', help='A filter which returns jobs only containing the specified pipeline_id.') - c.argument('recurrence_id', help='A filter which returns jobs only containing the specified recurrence_id.') - - # credential - with self.argument_context('dla catalog credential') as c: - c.argument('uri', help='URI of the external data source.') - - with self.argument_context('dla catalog credential create') as c: - c.argument('credential_user_password', options_list=['--password', '-p'], help='Password for the credential user. Will prompt if not given.') - c.argument('credential_user_name', options_list=['--user-name']) - - with self.argument_context('dla catalog credential update') as c: - c.argument('credential_user_name', options_list=['--user-name']) - c.argument('credential_user_password', options_list=['--password', '-p'], help='Current password for the credential user. Will prompt if not given.') - c.argument('new_credential_user_password', options_list=['--new-password'], help='New password for the credential user. Will prompt if not given.') - - # compute policy - with self.argument_context('dla account compute_policy') as c: - c.argument('max_dop_per_job', help='The maximum degree of parallelism allowed per job for this policy. At least one of --min-priority-per-job and --max-dop-per-job must be specified.', type=int) - c.argument('min_priority_per_job', help='The minimum priority allowed per job for this policy. At least one of --min-priority-per-job and --max-dop-per-job must be specified.', type=int) - - with self.argument_context('dla account compute_policy create') as c: - c.argument('object_id', help='The Azure Active Directory object ID of the user, group or service principal to apply the policy to.') - c.argument('object_type', arg_type=get_enum_type(AADObjectType), help='The Azure Active Directory object type associated with the supplied object id.') diff --git a/src/azure-cli/azure/cli/command_modules/dla/_validators.py b/src/azure-cli/azure/cli/command_modules/dla/_validators.py deleted file mode 100644 index 866c4d8c7d7..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/_validators.py +++ /dev/null @@ -1,63 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from knack.util import CLIError - -from azure.cli.core.commands.client_factory import get_mgmt_service_client - - -# Helpers -def _get_resource_group_from_account_name(client, account_name): - """ - Fetch resource group from vault name - :param str vault_name: name of the key vault - :return: resource group name or None - :rtype: str - """ - from msrestazure.tools import parse_resource_id - for acct in client.list(): - id_comps = parse_resource_id(acct.id) - if id_comps['name'] == account_name: - return id_comps['resource_group'] - raise CLIError( - "The Resource 'Microsoft.DataLakeAnalytics/accounts/{}'".format(account_name) + - " not found within subscription: {}".format(client.config.subscription_id)) - - -# COMMAND NAMESPACE VALIDATORS -def validate_resource_group_name(cmd, ns): - from .vendored_sdks.azure_mgmt_datalake_analytics.account import DataLakeAnalyticsAccountManagementClient - if not ns.resource_group_name: - account_name = ns.account_name - client = get_mgmt_service_client(cmd.cli_ctx, DataLakeAnalyticsAccountManagementClient).account - group_name = _get_resource_group_from_account_name(client, account_name) - ns.resource_group_name = group_name - - -def datetime_format(value): - """Validate the correct format of a datetime string and deserialize.""" - from msrest.serialization import Deserializer - from msrest.exceptions import DeserializationError - try: - datetime_obj = Deserializer.deserialize_iso(value) - except DeserializationError: - message = "Argument {} is not a valid ISO-8601 datetime format" - raise ValueError(message.format(value)) - return datetime_obj - - -# pylint: disable=too-many-boolean-expressions -def process_dla_job_submit_namespace(ns): - if (not ns.recurrence_id and - (ns.pipeline_name or - ns.pipeline_uri or - ns.recurrence_id or - ns.recurrence_name or - ns.run_id)): - raise CLIError("--recurrence-id is required if any of the following are specified: " + - "--pipeline-uri, --pipeline-name, --recurrence-id, --recurrence-name, --run-id") - if not ns.pipeline_id and (ns.pipeline_name or ns.pipeline_uri or ns.run_id): - raise CLIError("--pipeline-id and --recurrence-id are required if any of the following are specified: " + - "--pipeline-uri, --pipeline-name, --run-id") diff --git a/src/azure-cli/azure/cli/command_modules/dla/commands.py b/src/azure-cli/azure/cli/command_modules/dla/commands.py deleted file mode 100644 index 5340a4514a8..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/commands.py +++ /dev/null @@ -1,191 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# pylint: disable=line-too-long -from azure.cli.core.commands import CliCommandType -from azure.cli.command_modules.dla._client_factory import ( - cf_dla_account, - cf_dla_account_firewall, - cf_dla_account_adls, - cf_dla_account_storage, - cf_dla_job, - cf_dla_catalog, - cf_dla_job_pipeline, - cf_dla_job_recurrence, - cf_dla_account_compute_policy) -from azure.cli.command_modules.dla._validators import process_dla_job_submit_namespace - - -# pylint: disable=too-many-statements -def load_command_table(self, _): - - adla_format_path = 'azure.cli.command_modules.dla.vendored_sdks.azure_mgmt_datalake_analytics.{}.operations.{}#{}.{{}}' - - dla_account_sdk = CliCommandType( - operations_tmpl=adla_format_path.format('account', 'account_operations', 'AccountOperations'), - client_factory=cf_dla_account) - - dla_firewall_sdk = CliCommandType( - operations_tmpl=adla_format_path.format('account', 'firewall_rules_operations', 'FirewallRulesOperations'), - client_factory=cf_dla_account_firewall) - - dla_job_sdk = CliCommandType( - operations_tmpl=adla_format_path.format('job', 'job_operations', 'JobOperations'), - client_factory=cf_dla_job) - - dla_job_pipeline_sdk = CliCommandType( - operations_tmpl=adla_format_path.format('job', 'pipeline_operations', 'PipelineOperations'), - client_factory=cf_dla_job_pipeline) - - dla_job_recurrence_sdk = CliCommandType( - operations_tmpl=adla_format_path.format('job', 'recurrence_operations', 'RecurrenceOperations'), - client_factory=cf_dla_job_recurrence) - - dla_storage_sdk = CliCommandType( - operations_tmpl=adla_format_path.format('account', 'storage_accounts_operations', 'StorageAccountsOperations'), - client_factory=cf_dla_account_storage) - - dla_dls_sdk = CliCommandType( - operations_tmpl=adla_format_path.format('account', 'data_lake_store_accounts_operations', 'DataLakeStoreAccountsOperations'), - client_factory=cf_dla_account_adls - ) - - dla_catalog_sdk = CliCommandType( - operations_tmpl=adla_format_path.format('catalog', 'catalog_operations', 'CatalogOperations'), - client_factory=cf_dla_catalog - ) - - dla_compute_policy_sdk = CliCommandType( - operations_tmpl=adla_format_path.format('account', 'compute_policies_operations', 'ComputePoliciesOperations'), - client_factory=cf_dla_account_compute_policy - ) - - # account operations - with self.command_group('dla account', dla_account_sdk, client_factory=cf_dla_account) as g: - g.custom_command('create', 'create_adla_account') - g.custom_command('update', 'update_adla_account') - g.custom_command('list', 'list_adla_account') - g.show_command('show', 'get') - g.command('delete', 'delete') - - # account fire wall operations - with self.command_group('dla account firewall', dla_firewall_sdk, client_factory=cf_dla_account_firewall) as g: - g.custom_command('create', 'add_adla_firewall_rule') - g.command('update', 'update') - g.command('list', 'list_by_account') - g.show_command('show', 'get') - g.command('delete', 'delete') - - # job operations - # todo: update to allow for inclusion of statistics/debug data in show - with self.command_group('dla job', dla_job_sdk, client_factory=cf_dla_job) as g: - g.custom_command('submit', 'submit_adla_job', validator=process_dla_job_submit_namespace) - g.custom_command('wait', 'wait_adla_job') - g.show_command('show', 'get') - g.command('cancel', 'cancel') - g.custom_command('list', 'list_adla_jobs') - - # job relationship operations - with self.command_group('dla job pipeline', dla_job_pipeline_sdk) as g: - g.show_command('show', 'get') - g.command('list', 'list') - - with self.command_group('dla job recurrence', dla_job_recurrence_sdk) as g: - g.show_command('show', 'get') - g.command('list', 'list') - - # account data source operations - with self.command_group('dla account blob-storage', dla_storage_sdk, client_factory=cf_dla_account_storage) as g: - g.show_command('show', 'get') - g.custom_command('add', 'add_adla_blob_storage') - g.custom_command('update', 'update_adla_blob_storage') - g.command('delete', 'delete') - g.command('list', 'list_by_account') - - with self.command_group('dla account data-lake-store', dla_dls_sdk) as g: - g.show_command('show', 'get') - g.command('list', 'list_by_account') - g.command('add', 'add') - g.command('delete', 'delete') - - # catalog operations - # credential - with self.command_group('dla catalog credential', dla_catalog_sdk, client_factory=cf_dla_catalog) as g: - g.custom_command('create', 'create_adla_catalog_credential') - g.show_command('show', 'get_credential') - g.custom_command('update', 'update_adla_catalog_credential') - g.command('list', 'list_credentials') - g.command('delete', 'delete_credential') - - # database - with self.command_group('dla catalog database', dla_catalog_sdk) as g: - g.show_command('show', 'get_database') - g.command('list', 'list_databases') - - # schema - with self.command_group('dla catalog schema', dla_catalog_sdk) as g: - g.show_command('show', 'get_schema') - g.command('list', 'list_schemas') - - # table - with self.command_group('dla catalog table', dla_catalog_sdk, client_factory=cf_dla_catalog) as g: - g.show_command('show', 'get_table') - g.custom_command('list', 'list_catalog_tables') - - # assembly - with self.command_group('dla catalog assembly', dla_catalog_sdk) as g: - g.show_command('show', 'get_assembly') - g.command('list', 'list_assemblies') - - # external data source - with self.command_group('dla catalog external-data-source', dla_catalog_sdk) as g: - g.show_command('show', 'get_external_data_source') - g.command('list', 'list_external_data_sources') - - # get procedure - with self.command_group('dla catalog procedure', dla_catalog_sdk) as g: - g.show_command('show', 'get_procedure') - g.command('list', 'list_procedures') - - # get table partition - with self.command_group('dla catalog table-partition', dla_catalog_sdk) as g: - g.show_command('show', 'get_table_partition') - g.command('list', 'list_table_partitions') - - # get table statistics - with self.command_group('dla catalog table-stats', dla_catalog_sdk, client_factory=cf_dla_catalog) as g: - g.show_command('show', 'get_table_statistic') - g.custom_command('list', 'list_catalog_table_statistics') - - # get table types - with self.command_group('dla catalog table-type', dla_catalog_sdk) as g: - g.show_command('show', 'get_table_type') - g.command('list', 'list_table_types') - - # get table valued functions - with self.command_group('dla catalog tvf', dla_catalog_sdk, client_factory=cf_dla_catalog) as g: - g.show_command('show', 'get_table_valued_function') - g.custom_command('list', 'list_catalog_tvfs') - - # get views - with self.command_group('dla catalog view', dla_catalog_sdk, client_factory=cf_dla_catalog) as g: - g.show_command('show', 'get_view') - g.custom_command('list', 'list_catalog_views') - - # get packages - with self.command_group('dla catalog package', dla_catalog_sdk) as g: - g.show_command('show', 'get_package') - g.command('list', 'list_packages') - - # compute policy - with self.command_group('dla account compute-policy', dla_compute_policy_sdk, client_factory=cf_dla_account_compute_policy) as g: - g.custom_command('create', 'create_adla_compute_policy') - g.custom_command('update', 'update_adla_compute_policy') - g.command('list', 'list_by_account') - g.show_command('show', 'get') - g.command('delete', 'delete') - - with self.command_group('dla', deprecate_info=self.deprecate(expiration='2.67.0')): - pass diff --git a/src/azure-cli/azure/cli/command_modules/dla/custom.py b/src/azure-cli/azure/cli/command_modules/dla/custom.py deleted file mode 100644 index 6fad1217209..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/custom.py +++ /dev/null @@ -1,323 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -import time -import uuid - -from knack.log import get_logger -from knack.prompting import prompt_pass, NoTTYException -from knack.util import CLIError - -# pylint: disable=line-too-long -from azure.cli.core.commands.client_factory import get_mgmt_service_client - -logger = get_logger(__name__) - - -# region account -def list_adla_account(client, resource_group_name=None): - account_list = client.list_by_resource_group(resource_group_name=resource_group_name) \ - if resource_group_name else client.list() - return list(account_list) - - -def list_adla_jobs(client, account_name, top=500, name=None, submitter=None, submitted_after=None, - submitted_before=None, state=None, result=None, pipeline_id=None, recurrence_id=None): - odata_filter_list = [] - if submitter: - odata_filter_list.append("submitter eq '{}'".format(submitter)) - if name: - odata_filter_list.append("name eq '{}'".format(name)) - if name: - odata_filter_list.append("name eq '{}'".format(name)) - if state: - odata_filter_list.append("({})".format(" or ".join(["state eq '{}'".format(f) for f in state]))) - if result: - odata_filter_list.append("({})".format(" or ".join(["result eq '{}'".format(f) for f in result]))) - if submitted_after: - odata_filter_list.append("submitTime ge datetimeoffset'{}'".format(submitted_after.isoformat())) - if submitted_before: - odata_filter_list.append("submitTime lt datetimeoffset'{}'".format(submitted_before.isoformat())) - if pipeline_id: - odata_filter_list.append("related/pipelineId eq guid'{}'".format(pipeline_id)) - if recurrence_id: - odata_filter_list.append("related/recurrenceId eq guid'{}'".format(recurrence_id)) - - filter_string = " and ".join(odata_filter_list) - to_return = [] - - job_list = client.list(account_name, - orderby="submitTime desc", - top=top if top <= 300 else None, - filter=filter_string if filter_string else None) - if top <= 300: - return job_list - - job_list = iter(job_list) - for _ in range(top): - elem = next(job_list, None) - if elem: - to_return.append(elem) - else: - break - return to_return - - -def create_adla_account(cmd, client, resource_group_name, account_name, default_data_lake_store, location=None, - tags=None, max_degree_of_parallelism=30, max_job_count=3, query_store_retention=30, tier=None): - from .vendored_sdks.azure_mgmt_datalake_analytics.account.models import DataLakeAnalyticsAccount, DataLakeStoreAccountInfo - adls_list = [] - adls_list.append(DataLakeStoreAccountInfo(default_data_lake_store)) - location = location or _get_resource_group_location(cmd.cli_ctx, resource_group_name) - create_params = DataLakeAnalyticsAccount(location, - default_data_lake_store, - adls_list, - tags=tags, - max_degree_of_parallelism=max_degree_of_parallelism, - max_job_count=max_job_count, - query_store_retention=query_store_retention, - new_tier=tier) - - return client.create(resource_group_name, account_name, create_params).result() - - -def update_adla_account(client, account_name, resource_group_name, tags=None, max_degree_of_parallelism=None, - max_job_count=None, query_store_retention=None, tier=None, firewall_state=None, - allow_azure_ips=None): - from .vendored_sdks.azure_mgmt_datalake_analytics.account.models import DataLakeAnalyticsAccountUpdateParameters - update_params = DataLakeAnalyticsAccountUpdateParameters( - tags=tags, - max_degree_of_parallelism=max_degree_of_parallelism, - max_job_count=max_job_count, - query_store_retention=query_store_retention, - new_tier=tier, - firewall_state=firewall_state, - firewall_allow_azure_ips=allow_azure_ips) - - return client.update(resource_group_name, account_name, update_params).result() -# endregion - - -# region storage -def add_adla_blob_storage(client, account_name, storage_account_name, access_key, resource_group_name, suffix=None): - return client.add(resource_group_name, - account_name, - storage_account_name, - access_key, - suffix) - - -def update_adla_blob_storage(client, account_name, storage_account_name, access_key, resource_group_name, suffix=None): - return client.update(resource_group_name, - account_name, - storage_account_name, - access_key, - suffix) -# endregion - - -# region firewall -def add_adla_firewall_rule(client, account_name, firewall_rule_name, start_ip_address, end_ip_address, - resource_group_name): - from .vendored_sdks.azure_mgmt_datalake_analytics.account.models import FirewallRule - create_params = FirewallRule(start_ip_address, end_ip_address) - return client.create_or_update(resource_group_name, - account_name, - firewall_rule_name, - create_params) -# endregion - - -# region compute policy -def create_adla_compute_policy(client, account_name, compute_policy_name, object_id, object_type, - resource_group_name, max_dop_per_job=None, min_priority_per_job=None): - from .vendored_sdks.azure_mgmt_datalake_analytics.account.models import ComputePolicyCreateOrUpdateParameters - if not max_dop_per_job and not min_priority_per_job: - raise CLIError('Please specify at least one of --max-dop-per-job and --min-priority-per-job') - - create_params = ComputePolicyCreateOrUpdateParameters(object_id=object_id, - object_type=object_type) - - if max_dop_per_job: - create_params.max_degree_of_parallelism_per_job = int(max_dop_per_job) - - if min_priority_per_job: - create_params.min_priority_per_job = int(min_priority_per_job) - - return client.create_or_update(resource_group_name, - account_name, - compute_policy_name, - create_params) - - -def update_adla_compute_policy(client, account_name, compute_policy_name, resource_group_name, - max_dop_per_job=None, min_priority_per_job=None): - if not max_dop_per_job and not min_priority_per_job: - raise CLIError('Please specify at least one of --max-dop-per-job and --min-priority-per-job') - - if max_dop_per_job: - max_dop_per_job = int(max_dop_per_job) - - if min_priority_per_job: - min_priority_per_job = int(min_priority_per_job) - - return client.update(resource_group_name, - account_name, - compute_policy_name, - max_dop_per_job, - min_priority_per_job) -# endregion - - -# region catalog -def create_adla_catalog_credential(client, account_name, database_name, credential_name, credential_user_name, uri, - credential_user_password=None): - from .vendored_sdks.azure_mgmt_datalake_analytics.catalog.models import DataLakeAnalyticsCatalogCredentialCreateParameters - if not credential_user_password: - try: - credential_user_password = prompt_pass('Password:', confirm=True) - except NoTTYException: - - raise CLIError('Please specify both --user-name and --password in non-interactive mode.') - - create_params = DataLakeAnalyticsCatalogCredentialCreateParameters(credential_user_password, - uri, - credential_user_name) - client.create_credential(account_name, database_name, credential_name, create_params) - - -def update_adla_catalog_credential(client, account_name, database_name, credential_name, credential_user_name, uri, - credential_user_password=None, new_credential_user_password=None): - from .vendored_sdks.azure_mgmt_datalake_analytics.catalog.models import DataLakeAnalyticsCatalogCredentialUpdateParameters - if not credential_user_password: - try: - credential_user_password = prompt_pass('Current Password:', confirm=True) - except NoTTYException: - - raise CLIError('Please specify --user-name --password and --new-password in non-interactive mode.') - - if not new_credential_user_password: - try: - new_credential_user_password = prompt_pass('New Password:', confirm=True) - except NoTTYException: - - raise CLIError('Please specify --user-name --password and --new-password in non-interactive mode.') - - update_params = DataLakeAnalyticsCatalogCredentialUpdateParameters(credential_user_password, - new_credential_user_password, - uri, - credential_user_name) - client.update_credential(account_name, database_name, credential_name, update_params) -# endregion - - -# region catalog lists -def list_catalog_tables(client, account_name, database_name, schema_name=None): - if not schema_name: - return client.list_tables_by_database(account_name, database_name) - - return client.list_tables(account_name, database_name, schema_name) - - -def list_catalog_views(client, account_name, database_name, schema_name=None): - if not schema_name: - return client.list_views_by_database(account_name, database_name) - - return client.list_views(account_name, database_name, schema_name) - - -def list_catalog_tvfs(client, account_name, database_name, schema_name=None): - if not schema_name: - return client.list_table_valued_functions_by_database(account_name, database_name) - - return client.list_table_valued_functions(account_name, database_name, schema_name) - - -def list_catalog_table_statistics(client, account_name, database_name, schema_name=None, table_name=None): - if not schema_name and table_name: - logger.warning('--table-name must be specified with --schema-name to be used. Defaulting to list all statistics in the database: %s', database_name) - - if not schema_name: - return client.list_table_statistics_by_database(account_name, database_name) - - if not table_name: - return client.list_table_statistics_by_database_and_schema(account_name, database_name, schema_name) - - return client.list_table_statistics(account_name, database_name, schema_name, table_name) -# endregion - - -# region job -def submit_adla_job(client, account_name, job_name, script, runtime_version=None, compile_mode=None, compile_only=False, - degree_of_parallelism=1, priority=1000, recurrence_id=None, recurrence_name=None, pipeline_id=None, - pipeline_name=None, pipeline_uri=None, run_id=None): - from .vendored_sdks.azure_mgmt_datalake_analytics.job.models import ( - JobType, CreateJobParameters, BuildJobParameters, CreateUSqlJobProperties, JobRelationshipProperties) - - if not script: - # pylint: disable=line-too-long - raise CLIError('Could not read script content from the supplied --script param. It is either empty or an invalid file') - - job_properties = CreateUSqlJobProperties(script) - if runtime_version: - job_properties.runtime_version = runtime_version - - if compile_mode: - job_properties.compile_mode = compile_mode - - if compile_only: - build_params = BuildJobParameters(JobType.usql, - job_properties, - job_name) - - return client.build(account_name, build_params) - - create_params = CreateJobParameters(JobType.usql, - job_properties, - job_name, - degree_of_parallelism, - priority) - if recurrence_id: - create_params.related = JobRelationshipProperties(recurrence_id, - pipeline_id, - pipeline_name, - pipeline_uri, - run_id, - recurrence_name) - - job_id = _get_uuid_str() - - return client.create(account_name, job_id, create_params) - - -def wait_adla_job(client, account_name, job_id, wait_interval_sec=5, max_wait_time_sec=-1): - from .vendored_sdks.azure_mgmt_datalake_analytics.job.models import JobState - if wait_interval_sec < 1: - raise CLIError('wait times must be greater than 0 when polling jobs. Value specified: {}' - .format(wait_interval_sec)) - - job = client.get(account_name, job_id) - time_waited_sec = 0 - while job.state != JobState.ended: - if 0 < time_waited_sec >= max_wait_time_sec: - # pylint: disable=line-too-long - raise CLIError('Data Lake Analytics Job with ID: {0} has not completed in {1} seconds. Check job runtime or increase the value of --max-wait-time-sec'.format(job_id, time_waited_sec)) - logger.info('Job is not yet done. Current job state: \'%s\'', job.state) - time.sleep(wait_interval_sec) - job = client.get(account_name, job_id) - - return job -# endregion - - -# helpers -def _get_uuid_str(): - return str(uuid.uuid1()) - - -def _get_resource_group_location(cli_ctx, resource_group_name): - from azure.cli.core.profiles import ResourceType - client = get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES) - # pylint: disable=no-member - return client.resource_groups.get(resource_group_name).location diff --git a/src/azure-cli/azure/cli/command_modules/dla/tests/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/tests/__init__.py deleted file mode 100644 index 34913fb394d..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/tests/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- diff --git a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/tests/latest/__init__.py deleted file mode 100644 index 34913fb394d..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- diff --git a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recording_processors.py b/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recording_processors.py deleted file mode 100644 index 514ba511e1b..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recording_processors.py +++ /dev/null @@ -1,38 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azure.cli.testsdk.scenario_tests import RecordingProcessor, mock_in_unit_test - - -MOCK_JOB_ID = '00000000-0000-0000-0000-000000000000' - - -class JobIdReplacer(RecordingProcessor): - - """Replace the random job id with a fixed mock name.""" - def process_request(self, request): - import re - request.uri = re.sub('/Jobs/([^/?]+)', '/Jobs/{}'.format(MOCK_JOB_ID), request.uri) - return request - - def process_response(self, response): - if response['body']['string']: - response['body']['string'] = self._replace_job_id(response['body']['string']) - return response - - # pylint: disable=no-self-use - def _replace_job_id(self, val): - import re - if 'jobId' in val: - return re.sub(r'"jobId":"([^"]+)"', r'"jobId":"{}"'.format(MOCK_JOB_ID), val, flags=re.IGNORECASE) - return val - - -def patch_uuid_str(unit_test): - - def _mock_get_uuid_str(*args, **kwargs): # pylint: disable=unused-argument - return MOCK_JOB_ID - - mock_in_unit_test(unit_test, 'azure.cli.command_modules.dla.custom._get_uuid_str', _mock_get_uuid_str) diff --git a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_account_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_account_mgmt.yaml deleted file mode 100644 index b2687c876fa..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_account_mgmt.yaml +++ /dev/null @@ -1,2129 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus2", "properties": {"encryptionState": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - Content-Length: - - '70' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000003?api-version=2016-11-01 - response: - body: - string: '{"properties":{"encryptionState":"Disabled","provisioningState":"Creating","state":null,"endpoint":null,"accountId":"419b4b40-d892-455c-bc05-cb092342828f"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000003","name":"cliadls000003","type":"Microsoft.DataLakeStore/accounts"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/419b4b40-d892-455c-bc05-cb092342828f_0?api-version=2016-11-01 - cache-control: - - no-cache - content-length: - - '398' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:46:59 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000003/operationresults/0?api-version=2016-11-01 - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.33.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/419b4b40-d892-455c-bc05-cb092342828f_0?api-version=2016-11-01 - response: - body: - string: '{"status":"InProgress","startTime":"2022-02-23T07:46:58.4501298Z"}' - headers: - cache-control: - - no-cache - content-length: - - '66' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:47:10 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.33.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/419b4b40-d892-455c-bc05-cb092342828f_0?api-version=2016-11-01 - response: - body: - string: '{"status":"Succeeded","startTime":"2022-02-23T07:46:58.4501298Z","endTime":"2022-02-23T07:47:28.825114Z"}' - headers: - cache-control: - - no-cache - content-length: - - '105' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:47:42 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.33.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000003?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallAllowDataLakeAnalytics":"Disabled","firewallRules":[],"virtualNetworkRules":[],"trustedIdProviderState":"Disabled","trustedIdProviders":[],"encryptionState":"Disabled","encryptionConfig":{},"currentTier":"Consumption","newTier":"Consumption","dataLakePerformanceTierState":"Disabled","provisioningState":"Succeeded","state":"Active","endpoint":"cliadls000003.azuredatalakestore.net","accountId":"419b4b40-d892-455c-bc05-cb092342828f","creationTime":"2022-02-23T07:46:59.78836Z","lastModifiedTime":"2022-02-23T07:46:59.78836Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000003","name":"cliadls000003","type":"Microsoft.DataLakeStore/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '855' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:47:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus2", "properties": {"encryptionState": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - Content-Length: - - '70' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000004?api-version=2016-11-01 - response: - body: - string: '{"properties":{"encryptionState":"Disabled","provisioningState":"Creating","state":null,"endpoint":null,"accountId":"88557d5b-d009-4774-b167-3548d2681506"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000004","name":"cliadls000004","type":"Microsoft.DataLakeStore/accounts"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/88557d5b-d009-4774-b167-3548d2681506_0?api-version=2016-11-01 - cache-control: - - no-cache - content-length: - - '398' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:47:52 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000004/operationresults/0?api-version=2016-11-01 - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.33.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/88557d5b-d009-4774-b167-3548d2681506_0?api-version=2016-11-01 - response: - body: - string: '{"status":"InProgress","startTime":"2022-02-23T07:47:52.1220656Z"}' - headers: - cache-control: - - no-cache - content-length: - - '66' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:48:04 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.33.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/88557d5b-d009-4774-b167-3548d2681506_0?api-version=2016-11-01 - response: - body: - string: '{"status":"Succeeded","startTime":"2022-02-23T07:47:52.1220656Z","endTime":"2022-02-23T07:48:22.5439202Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:48:36 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.33.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000004?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallAllowDataLakeAnalytics":"Disabled","firewallRules":[],"virtualNetworkRules":[],"trustedIdProviderState":"Disabled","trustedIdProviders":[],"encryptionState":"Disabled","encryptionConfig":{},"currentTier":"Consumption","newTier":"Consumption","dataLakePerformanceTierState":"Disabled","provisioningState":"Succeeded","state":"Active","endpoint":"cliadls000004.azuredatalakestore.net","accountId":"88557d5b-d009-4774-b167-3548d2681506","creationTime":"2022-02-23T07:47:52.7921776Z","lastModifiedTime":"2022-02-23T07:47:52.7921776Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000004","name":"cliadls000004","type":"Microsoft.DataLakeStore/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '859' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:48:38 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"sku": {"name": "Standard_GRS"}, "kind": "StorageV2", "location": "eastus2", - "properties": {"encryption": {"services": {"blob": {}}, "keySource": "Microsoft.Storage"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - storage account create - Connection: - - keep-alive - Content-Length: - - '169' - Content-Type: - - application/json - ParameterSetName: - - -g -n -l --sku - User-Agent: - - AZURECLI/2.33.1 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.Storage/storageAccounts/cliwasb000002?api-version=2021-09-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/plain; charset=utf-8 - date: - - Wed, 23 Feb 2022 07:48:47 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/5623c655-b89d-41a5-a54e-bab21af58608?monitor=true&api-version=2021-09-01 - pragma: - - no-cache - server: - - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - storage account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --sku - User-Agent: - - AZURECLI/2.33.1 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2/asyncoperations/5623c655-b89d-41a5-a54e-bab21af58608?monitor=true&api-version=2021-09-01 - response: - body: - string: '{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.Storage/storageAccounts/cliwasb000002","name":"cliwasb000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-02-23T07:48:45.8678606Z","key2":"2022-02-23T07:48:45.8678606Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-02-23T07:48:45.8834970Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-02-23T07:48:45.8834970Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-02-23T07:48:45.7741083Z","primaryEndpoints":{"dfs":"https://cliwasb000002.dfs.core.windows.net/","web":"https://cliwasb000002.z20.web.core.windows.net/","blob":"https://cliwasb000002.blob.core.windows.net/","queue":"https://cliwasb000002.queue.core.windows.net/","table":"https://cliwasb000002.table.core.windows.net/","file":"https://cliwasb000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available"}}' - headers: - cache-control: - - no-cache - content-length: - - '1472' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:49:04 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - storage account keys list - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -n - User-Agent: - - AZURECLI/2.33.1 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.Storage/storageAccounts/cliwasb000002/listKeys?api-version=2021-09-01&$expand=kerb - response: - body: - string: '{"keys":[{"creationTime":"2022-02-23T07:48:45.8678606Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-02-23T07:48:45.8678606Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' - headers: - cache-control: - - no-cache - content-length: - - '260' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:49:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus2", "properties": {"defaultDataLakeStoreAccount": "cliadls000003", - "maxDegreeOfParallelism": 30, "queryStoreRetention": 30, "maxJobCount": 3, "dataLakeStoreAccounts": - [{"name": "cliadls000003"}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Length: - - '216' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005?api-version=2016-11-01 - response: - body: - string: '{"properties":{"defaultDataLakeStoreAccount":"cliadls000003","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000003"}],"maxDegreeOfParallelism":30,"maxJobCount":3,"queryStoreRetention":30,"provisioningState":"Creating","state":null,"endpoint":null,"accountId":"567c1e3c-6b29-483d-8e04-69667735c435"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005","name":"cliadla000005","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/567c1e3c-6b29-483d-8e04-69667735c435_0?api-version=2016-11-01 - cache-control: - - no-cache - content-length: - - '592' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:49:15 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/operationresults/0?api-version=2016-11-01 - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/567c1e3c-6b29-483d-8e04-69667735c435_0?api-version=2016-11-01 - response: - body: - string: '{"status":"InProgress","startTime":"2022-02-23T07:49:14.4747624Z"}' - headers: - cache-control: - - no-cache - content-length: - - '66' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:49:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/567c1e3c-6b29-483d-8e04-69667735c435_0?api-version=2016-11-01 - response: - body: - string: '{"status":"Succeeded","startTime":"2022-02-23T07:49:14.4747624Z","endTime":"2022-02-23T07:49:47.2560349Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:49:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallRules":[],"virtualNetworkRules":[],"debugDataAccessLevel":"All","defaultDataLakeStoreAccount":"cliadls000003","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000003"}],"publicDataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"adltrainingsampledata"},{"properties":{"suffix":"azuredatalakestore.net"},"name":"ghinsights"}],"storageAccounts":[],"maxDegreeOfParallelism":30,"maxJobCount":3,"systemMaxDegreeOfParallelism":100,"systemMaxJobCount":20,"maxDegreeOfParallelismPerJob":30,"minPriorityPerJob":1,"computePolicies":[],"queryStoreRetention":30,"hiveMetastores":[],"currentTier":"Consumption","newTier":"Consumption","provisioningState":"Succeeded","state":"Active","endpoint":"cliadla000005.azuredatalakeanalytics.net","accountId":"567c1e3c-6b29-483d-8e04-69667735c435","creationTime":"2022-02-23T07:49:47.2537469Z","lastModifiedTime":"2022-02-23T07:49:47.2537469Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005","name":"cliadla000005","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '1279' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:00 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n -g - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallRules":[],"virtualNetworkRules":[],"debugDataAccessLevel":"All","defaultDataLakeStoreAccount":"cliadls000003","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000003"}],"publicDataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"adltrainingsampledata"},{"properties":{"suffix":"azuredatalakestore.net"},"name":"ghinsights"}],"storageAccounts":[],"maxDegreeOfParallelism":30,"maxJobCount":3,"systemMaxDegreeOfParallelism":100,"systemMaxJobCount":20,"maxDegreeOfParallelismPerJob":30,"minPriorityPerJob":1,"computePolicies":[],"queryStoreRetention":30,"hiveMetastores":[],"currentTier":"Consumption","newTier":"Consumption","provisioningState":"Succeeded","state":"Active","endpoint":"cliadla000005.azuredatalakeanalytics.net","accountId":"567c1e3c-6b29-483d-8e04-69667735c435","creationTime":"2022-02-23T07:49:47.2537469Z","lastModifiedTime":"2022-02-23T07:49:47.2537469Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005","name":"cliadla000005","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '1279' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01 - response: - body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","state":"Active","endpoint":"cliadla000005.azuredatalakeanalytics.net","accountId":"567c1e3c-6b29-483d-8e04-69667735c435","creationTime":"2022-02-23T07:49:47.2537469Z","lastModifiedTime":"2022-02-23T07:49:47.2537469Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005","name":"cliadla000005","type":"Microsoft.DataLakeAnalytics/accounts"}],"count":1}' - headers: - cache-control: - - no-cache - content-length: - - '538' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:04 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01 - response: - body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","state":"Active","endpoint":"cliadla000005.azuredatalakeanalytics.net","accountId":"567c1e3c-6b29-483d-8e04-69667735c435","creationTime":"2022-02-23T07:49:47.2537469Z","lastModifiedTime":"2022-02-23T07:49:47.2537469Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005","name":"cliadla000005","type":"Microsoft.DataLakeAnalytics/accounts"}],"count":1}' - headers: - cache-control: - - no-cache - content-length: - - '538' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:06 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"properties": {"maxDegreeOfParallelism": 15, "queryStoreRetention": 15, - "maxJobCount": 2, "firewallState": "Enabled", "firewallAllowAzureIps": "Enabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account update - Connection: - - keep-alive - Content-Length: - - '155' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --firewall-state --max-degree-of-parallelism --max-job-count --query-store-retention - --allow-azure-ips - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Enabled","firewallAllowAzureIps":"Enabled","firewallRules":[],"virtualNetworkRules":[],"debugDataAccessLevel":"All","defaultDataLakeStoreAccount":"cliadls000003","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000003"}],"storageAccounts":[],"maxDegreeOfParallelism":30,"maxJobCount":3,"maxDegreeOfParallelismPerJob":30,"minPriorityPerJob":1,"computePolicies":[],"queryStoreRetention":30,"hiveMetastores":[],"currentTier":"Consumption","newTier":"Consumption","provisioningState":"Succeeded","state":"Active","endpoint":"cliadla000005.azuredatalakeanalytics.net","accountId":"567c1e3c-6b29-483d-8e04-69667735c435","creationTime":"2022-02-23T07:49:47.2537469Z","lastModifiedTime":"2022-02-23T07:50:09.4348998Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005","name":"cliadla000005","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '1034' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:12 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n -g - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Enabled","firewallAllowAzureIps":"Enabled","firewallRules":[],"virtualNetworkRules":[],"debugDataAccessLevel":"All","defaultDataLakeStoreAccount":"cliadls000003","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000003"}],"publicDataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"adltrainingsampledata"},{"properties":{"suffix":"azuredatalakestore.net"},"name":"ghinsights"}],"storageAccounts":[],"maxDegreeOfParallelism":15,"maxJobCount":2,"systemMaxDegreeOfParallelism":100,"systemMaxJobCount":20,"maxDegreeOfParallelismPerJob":15,"minPriorityPerJob":1,"computePolicies":[],"queryStoreRetention":15,"hiveMetastores":[],"currentTier":"Consumption","newTier":"Consumption","provisioningState":"Succeeded","state":"Active","endpoint":"cliadla000005.azuredatalakeanalytics.net","accountId":"567c1e3c-6b29-483d-8e04-69667735c435","creationTime":"2022-02-23T07:49:47.2537469Z","lastModifiedTime":"2022-02-23T07:50:09.4348998Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005","name":"cliadla000005","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '1277' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"properties": {"accessKey": "veryFakedStorageAccountKey=="}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account blob-storage add - Connection: - - keep-alive - Content-Length: - - '61' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --storage-account-name --access-key - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/StorageAccounts/cliwasb000002?api-version=2016-11-01 - response: - body: - string: '{"properties":{"suffix":"core.windows.net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/storageAccounts/cliwasb000002","name":"cliwasb000002","type":"Microsoft.DataLakeAnalytics/accounts/storageAccounts"}' - headers: - cache-control: - - no-cache - content-length: - - '319' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:17 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account blob-storage show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --storage-account-name - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/StorageAccounts/cliwasb000002?api-version=2016-11-01 - response: - body: - string: '{"properties":{"suffix":"core.windows.net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/storageAccounts/cliwasb000002","name":"cliwasb000002","type":"Microsoft.DataLakeAnalytics/accounts/storageAccounts"}' - headers: - cache-control: - - no-cache - content-length: - - '319' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account blob-storage list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/StorageAccounts/?api-version=2016-11-01 - response: - body: - string: '{"value":[{"properties":{"suffix":"core.windows.net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/storageAccounts/cliwasb000002","name":"cliwasb000002","type":"Microsoft.DataLakeAnalytics/accounts/storageAccounts"}]}' - headers: - cache-control: - - no-cache - content-length: - - '331' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:21 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account blob-storage delete - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --storage-account-name - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/StorageAccounts/cliwasb000002?api-version=2016-11-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 23 Feb 2022 07:50:32 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account blob-storage list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/StorageAccounts/?api-version=2016-11-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:34 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account data-lake-store add - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --data-lake-store-account-name - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/DataLakeStoreAccounts/cliadls000004?api-version=2016-11-01 - response: - body: - string: '{"properties":{"suffix":"azuredatalakestore.net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/dataLakeStoreAccounts/cliadls000004","name":"cliadls000004","type":"Microsoft.DataLakeAnalytics/accounts/dataLakeStoreAccounts"}' - headers: - cache-control: - - no-cache - content-length: - - '337' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:36 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account data-lake-store show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --data-lake-store-account-name - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/DataLakeStoreAccounts/cliadls000004?api-version=2016-11-01 - response: - body: - string: '{"properties":{"suffix":"azuredatalakestore.net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/dataLakeStoreAccounts/cliadls000004","name":"cliadls000004","type":"Microsoft.DataLakeAnalytics/accounts/dataLakeStoreAccounts"}' - headers: - cache-control: - - no-cache - content-length: - - '337' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:38 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account data-lake-store list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/DataLakeStoreAccounts/?api-version=2016-11-01 - response: - body: - string: '{"value":[{"properties":{"suffix":"azuredatalakestore.net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/dataLakeStoreAccounts/cliadls000004","name":"cliadls000004","type":"Microsoft.DataLakeAnalytics/accounts/dataLakeStoreAccounts"},{"properties":{"suffix":"azuredatalakestore.net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/dataLakeStoreAccounts/cliadls000003","name":"cliadls000003","type":"Microsoft.DataLakeAnalytics/accounts/dataLakeStoreAccounts"}]}' - headers: - cache-control: - - no-cache - content-length: - - '687' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account data-lake-store delete - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --data-lake-store-account-name - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/DataLakeStoreAccounts/cliadls000004?api-version=2016-11-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 23 Feb 2022 07:50:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14997' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account data-lake-store list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/DataLakeStoreAccounts/?api-version=2016-11-01 - response: - body: - string: '{"value":[{"properties":{"suffix":"azuredatalakestore.net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/dataLakeStoreAccounts/cliadls000003","name":"cliadls000003","type":"Microsoft.DataLakeAnalytics/accounts/dataLakeStoreAccounts"}]}' - headers: - cache-control: - - no-cache - content-length: - - '349' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"properties": {"objectId": "181c08fa-7ac8-48a6-a869-342ab74566a4", "objectType": - "User", "maxDegreeOfParallelismPerJob": 2}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account compute-policy create - Connection: - - keep-alive - Content-Length: - - '125' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --compute-policy-name --object-id --object-type --max-dop-per-job - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycliuserpolicy?api-version=2016-11-01 - response: - body: - string: '{"properties":{"objectId":"181c08fa-7ac8-48a6-a869-342ab74566a4","objectType":"User","maxDegreeOfParallelismPerJob":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycliuserpolicy","name":"pycliuserpolicy","type":"Microsoft.DataLakeAnalytics/accounts/computePolicies"}' - headers: - cache-control: - - no-cache - content-length: - - '398' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account compute-policy show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --compute-policy-name - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycliuserpolicy?api-version=2016-11-01 - response: - body: - string: '{"properties":{"objectId":"181c08fa-7ac8-48a6-a869-342ab74566a4","objectType":"User","maxDegreeOfParallelismPerJob":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycliuserpolicy","name":"pycliuserpolicy","type":"Microsoft.DataLakeAnalytics/accounts/computePolicies"}' - headers: - cache-control: - - no-cache - content-length: - - '398' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"properties": {"objectId": "f0bec09f-45a4-4c58-ac5b-cf0516d7bc68", "objectType": - "Group", "maxDegreeOfParallelismPerJob": 2}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account compute-policy create - Connection: - - keep-alive - Content-Length: - - '126' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --compute-policy-name --object-id --object-type --max-dop-per-job - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycligrouppolicy?api-version=2016-11-01 - response: - body: - string: '{"properties":{"objectId":"f0bec09f-45a4-4c58-ac5b-cf0516d7bc68","objectType":"Group","maxDegreeOfParallelismPerJob":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycligrouppolicy","name":"pycligrouppolicy","type":"Microsoft.DataLakeAnalytics/accounts/computePolicies"}' - headers: - cache-control: - - no-cache - content-length: - - '401' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:54 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"properties": {"minPriorityPerJob": 2}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account compute-policy update - Connection: - - keep-alive - Content-Length: - - '40' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --compute-policy-name --min-priority-per-job - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycliuserpolicy?api-version=2016-11-01 - response: - body: - string: '{"properties":{"objectId":"181c08fa-7ac8-48a6-a869-342ab74566a4","objectType":"User","maxDegreeOfParallelismPerJob":2,"minPriorityPerJob":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycliuserpolicy","name":"pycliuserpolicy","type":"Microsoft.DataLakeAnalytics/accounts/computePolicies"}' - headers: - cache-control: - - no-cache - content-length: - - '420' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account compute-policy list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies?api-version=2016-11-01 - response: - body: - string: '{"value":[{"properties":{"objectId":"f0bec09f-45a4-4c58-ac5b-cf0516d7bc68","objectType":"Group","maxDegreeOfParallelismPerJob":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycligrouppolicy","name":"pycligrouppolicy","type":"Microsoft.DataLakeAnalytics/accounts/computePolicies"},{"properties":{"objectId":"181c08fa-7ac8-48a6-a869-342ab74566a4","objectType":"User","maxDegreeOfParallelismPerJob":2,"minPriorityPerJob":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycliuserpolicy","name":"pycliuserpolicy","type":"Microsoft.DataLakeAnalytics/accounts/computePolicies"}]}' - headers: - cache-control: - - no-cache - content-length: - - '834' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:50:58 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account compute-policy delete - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --compute-policy-name - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycliuserpolicy?api-version=2016-11-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 23 Feb 2022 07:50:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account compute-policy list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies?api-version=2016-11-01 - response: - body: - string: '{"value":[{"properties":{"objectId":"f0bec09f-45a4-4c58-ac5b-cf0516d7bc68","objectType":"Group","maxDegreeOfParallelismPerJob":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005/computePolicies/pycligrouppolicy","name":"pycligrouppolicy","type":"Microsoft.DataLakeAnalytics/accounts/computePolicies"}]}' - headers: - cache-control: - - no-cache - content-length: - - '413' - content-type: - - application/json - date: - - Wed, 23 Feb 2022 07:51:01 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account delete - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000005?api-version=2016-11-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 23 Feb 2022 07:51:10 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g - User-Agent: - - python/3.7.9 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.33.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 23 Feb 2022 07:51:11 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_catalog_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_catalog_mgmt.yaml deleted file mode 100644 index adbc48de41a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_catalog_mgmt.yaml +++ /dev/null @@ -1,1967 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus2", "properties": {"encryptionState": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - Content-Length: - - '70' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002?api-version=2016-11-01 - response: - body: - string: '{"properties":{"encryptionState":"Disabled","provisioningState":"Creating","state":null,"endpoint":null,"accountId":"d08a99c2-a236-499b-82e8-d08c53846d48"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002","name":"cliadls000002","type":"Microsoft.DataLakeStore/accounts"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/d08a99c2-a236-499b-82e8-d08c53846d48_0?api-version=2016-11-01 - cache-control: - - no-cache - content-length: - - '471' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:18:42 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002/operationresults/0?api-version=2016-11-01 - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.11.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/d08a99c2-a236-499b-82e8-d08c53846d48_0?api-version=2016-11-01 - response: - body: - string: '{"status":"InProgress"}' - headers: - cache-control: - - no-cache - content-length: - - '23' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:18:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.11.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/d08a99c2-a236-499b-82e8-d08c53846d48_0?api-version=2016-11-01 - response: - body: - string: '{"status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:19:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.11.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallAllowDataLakeAnalytics":"Disabled","firewallRules":[],"virtualNetworkRules":[],"trustedIdProviderState":"Disabled","trustedIdProviders":[],"encryptionState":"Disabled","encryptionConfig":{},"currentTier":"Consumption","newTier":"Consumption","dataLakePerformanceTierState":"Disabled","provisioningState":"Succeeded","state":"Active","endpoint":"cliadls000002.azuredatalakestore.net","accountId":"d08a99c2-a236-499b-82e8-d08c53846d48","creationTime":"2020-08-27T03:18:43.2419001Z","lastModifiedTime":"2020-08-27T03:18:43.2419001Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002","name":"cliadls000002","type":"Microsoft.DataLakeStore/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '943' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:19:28 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus2", "properties": {"defaultDataLakeStoreAccount": "cliadls000002", - "maxDegreeOfParallelism": 30, "queryStoreRetention": 30, "maxJobCount": 3, "dataLakeStoreAccounts": - [{"name": "cliadls000002"}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Length: - - '238' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003?api-version=2016-11-01 - response: - body: - string: '{"properties":{"defaultDataLakeStoreAccount":"cliadls000002","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000002"}],"maxDegreeOfParallelism":30,"maxJobCount":3,"queryStoreRetention":30,"provisioningState":"Creating","state":null,"endpoint":null,"accountId":"cb1b4f4d-33a3-4624-a8db-7bcf8aef2d8e"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003","name":"cliadla000003","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/cb1b4f4d-33a3-4624-a8db-7bcf8aef2d8e_0?api-version=2016-11-01 - cache-control: - - no-cache - content-length: - - '687' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:19:36 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003/operationresults/0?api-version=2016-11-01 - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1195' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/cb1b4f4d-33a3-4624-a8db-7bcf8aef2d8e_0?api-version=2016-11-01 - response: - body: - string: '{"status":"InProgress"}' - headers: - cache-control: - - no-cache - content-length: - - '23' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:19:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/cb1b4f4d-33a3-4624-a8db-7bcf8aef2d8e_0?api-version=2016-11-01 - response: - body: - string: '{"status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:20:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallRules":[],"virtualNetworkRules":[],"debugDataAccessLevel":"All","defaultDataLakeStoreAccount":"cliadls000002","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000002"}],"publicDataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"adltrainingsampledata"},{"properties":{"suffix":"azuredatalakestore.net"},"name":"ghinsights"}],"storageAccounts":[],"maxDegreeOfParallelism":30,"maxJobCount":3,"systemMaxDegreeOfParallelism":100,"systemMaxJobCount":20,"maxDegreeOfParallelismPerJob":30,"minPriorityPerJob":1,"computePolicies":[],"queryStoreRetention":30,"hiveMetastores":[],"currentTier":"Consumption","newTier":"Consumption","provisioningState":"Succeeded","state":"Active","endpoint":"cliadla000003.azuredatalakeanalytics.net","accountId":"cb1b4f4d-33a3-4624-a8db-7bcf8aef2d8e","creationTime":"2020-08-27T03:19:37.0752164Z","lastModifiedTime":"2020-08-27T03:19:37.0752164Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_catalog_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003","name":"cliadla000003","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '1385' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:20:21 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"type": "USql", "properties": {"script": "DROP DATABASE IF EXISTS catalog_item_1;\nCREATE - DATABASE catalog_item_1;\nCREATE TABLE catalog_item_1.dbo.catalog_item_2 (\n UserId - int,\n Start DateTime,\n Region string,\n Query string,\n Duration int,\n Urls - string,\n ClickedUrls string,\n INDEX idx1 CLUSTERED (Region ASC)\n PARTITIONED - BY (UserId) HASH (Region));\nALTER TABLE catalog_item_1.dbo.catalog_item_2 ADD - IF NOT EXISTS PARTITION (1);\nDROP FUNCTION IF EXISTS catalog_item_1.dbo.catalog_item_3;\nCREATE - FUNCTION catalog_item_1.dbo.catalog_item_3()\n RETURNS @result TABLE (\n s_date - DateTime,\n s_time string,\n s_sitename string,\n cs_method string,\n cs_uristem - string,\n cs_uriquery string,\n s_port int,\n cs_username string,\n c_ip - string,\n cs_useragent string,\n cs_cookie string,\n cs_referer string,\n cs_host - string,\n sc_status int,\n sc_substatus int,\n sc_win32status int,\n sc_bytes - int,\n cs_bytes int,\n s_timetaken int) AS\n BEGIN\n @result - = EXTRACT\n s_date DateTime,\n s_time string,\n s_sitename - string,\n cs_method string,\n cs_uristem string,\n cs_uriquery - string,\n s_port int,\n cs_username string,\n c_ip - string,\n cs_useragent string,\n cs_cookie string,\n cs_referer - string,\n cs_host string,\n sc_status int,\n sc_substatus - int,\n sc_win32status int,\n sc_bytes int,\n cs_bytes - int,\n s_timetaken int FROM \"@/Samples/Data/WebLog.log\" USING Extractors.Text(delimiter:'' - '');\n RETURN;\n END;\nCREATE VIEW catalog_item_1.dbo.catalog_item_8 - AS SELECT * FROM (VALUES(1,2),(2,4)) AS T(a, b);\nCREATE PROCEDURE catalog_item_1.dbo.catalog_item_4() - AS BEGIN CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b); END;", "type": "USql"}, "name": "python cli catalog job", "degreeOfParallelism": - 1, "priority": 1000}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job submit - Connection: - - keep-alive - Content-Length: - - '2044' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-name --script - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: PUT - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"python cli - catalog job","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:26.5790134+00:00","state":"Compiling","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:26.5790134+00:00","details":"userName:;submitMachine:N/A"}],"properties":{"owner":"feng.zhou@microsoft.com","runtimeVersion":"default","rootProcessNodeId":"00000000-0000-0000-0000-000000000000","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/algebra.xml","compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT0S","totalPausedTime":"PT0S","totalQueuedTime":"PT0S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:26 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"python cli - catalog job","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:26.5790134+00:00","state":"Compiling","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:26.5790134+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:26.9696177+00:00","details":"Compilation:ae212ec8-d793-4f53-a189-dd5a025cdd53;Status:Dispatched"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"default","rootProcessNodeId":"00000000-0000-0000-0000-000000000000","script":"DROP - DATABASE IF EXISTS catalog_item_1;\nCREATE DATABASE catalog_item_1;\nCREATE - TABLE catalog_item_1.dbo.catalog_item_2 (\n UserId int,\n Start DateTime,\n Region - string,\n Query string,\n Duration int,\n Urls string,\n ClickedUrls string,\n INDEX - idx1 CLUSTERED (Region ASC)\n PARTITIONED BY (UserId) HASH (Region));\nALTER - TABLE catalog_item_1.dbo.catalog_item_2 ADD IF NOT EXISTS PARTITION (1);\nDROP - FUNCTION IF EXISTS catalog_item_1.dbo.catalog_item_3;\nCREATE FUNCTION catalog_item_1.dbo.catalog_item_3()\n RETURNS - @result TABLE (\n s_date DateTime,\n s_time string,\n s_sitename - string,\n cs_method string,\n cs_uristem string,\n cs_uriquery string,\n s_port - int,\n cs_username string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status int,\n sc_substatus - int,\n sc_win32status int,\n sc_bytes int,\n cs_bytes int,\n s_timetaken - int) AS\n BEGIN\n @result = EXTRACT\n s_date DateTime,\n s_time - string,\n s_sitename string,\n cs_method string,\n cs_uristem - string,\n cs_uriquery string,\n s_port int,\n cs_username - string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status - int,\n sc_substatus int,\n sc_win32status int,\n sc_bytes - int,\n cs_bytes int,\n s_timetaken int FROM \"@/Samples/Data/WebLog.log\" - USING Extractors.Text(delimiter:'' '');\n RETURN;\n END;\nCREATE - VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b);\nCREATE PROCEDURE catalog_item_1.dbo.catalog_item_4() AS BEGIN - CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b); END;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/algebra.xml","compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT1.7901905S","totalPausedTime":"PT0S","totalQueuedTime":"PT0S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:27 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"python cli - catalog job","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:26.5790134+00:00","state":"Compiling","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:26.5790134+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:26.9696177+00:00","details":"Compilation:ae212ec8-d793-4f53-a189-dd5a025cdd53;Status:Dispatched"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"default","rootProcessNodeId":"00000000-0000-0000-0000-000000000000","script":"DROP - DATABASE IF EXISTS catalog_item_1;\nCREATE DATABASE catalog_item_1;\nCREATE - TABLE catalog_item_1.dbo.catalog_item_2 (\n UserId int,\n Start DateTime,\n Region - string,\n Query string,\n Duration int,\n Urls string,\n ClickedUrls string,\n INDEX - idx1 CLUSTERED (Region ASC)\n PARTITIONED BY (UserId) HASH (Region));\nALTER - TABLE catalog_item_1.dbo.catalog_item_2 ADD IF NOT EXISTS PARTITION (1);\nDROP - FUNCTION IF EXISTS catalog_item_1.dbo.catalog_item_3;\nCREATE FUNCTION catalog_item_1.dbo.catalog_item_3()\n RETURNS - @result TABLE (\n s_date DateTime,\n s_time string,\n s_sitename - string,\n cs_method string,\n cs_uristem string,\n cs_uriquery string,\n s_port - int,\n cs_username string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status int,\n sc_substatus - int,\n sc_win32status int,\n sc_bytes int,\n cs_bytes int,\n s_timetaken - int) AS\n BEGIN\n @result = EXTRACT\n s_date DateTime,\n s_time - string,\n s_sitename string,\n cs_method string,\n cs_uristem - string,\n cs_uriquery string,\n s_port int,\n cs_username - string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status - int,\n sc_substatus int,\n sc_win32status int,\n sc_bytes - int,\n cs_bytes int,\n s_timetaken int FROM \"@/Samples/Data/WebLog.log\" - USING Extractors.Text(delimiter:'' '');\n RETURN;\n END;\nCREATE - VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b);\nCREATE PROCEDURE catalog_item_1.dbo.catalog_item_4() AS BEGIN - CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b); END;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/algebra.xml","compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT7.2898632S","totalPausedTime":"PT0S","totalQueuedTime":"PT0S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:33 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"python cli - catalog job","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:26.5790134+00:00","state":"Compiling","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:26.5790134+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:26.9696177+00:00","details":"Compilation:ae212ec8-d793-4f53-a189-dd5a025cdd53;Status:Dispatched"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"default","rootProcessNodeId":"00000000-0000-0000-0000-000000000000","script":"DROP - DATABASE IF EXISTS catalog_item_1;\nCREATE DATABASE catalog_item_1;\nCREATE - TABLE catalog_item_1.dbo.catalog_item_2 (\n UserId int,\n Start DateTime,\n Region - string,\n Query string,\n Duration int,\n Urls string,\n ClickedUrls string,\n INDEX - idx1 CLUSTERED (Region ASC)\n PARTITIONED BY (UserId) HASH (Region));\nALTER - TABLE catalog_item_1.dbo.catalog_item_2 ADD IF NOT EXISTS PARTITION (1);\nDROP - FUNCTION IF EXISTS catalog_item_1.dbo.catalog_item_3;\nCREATE FUNCTION catalog_item_1.dbo.catalog_item_3()\n RETURNS - @result TABLE (\n s_date DateTime,\n s_time string,\n s_sitename - string,\n cs_method string,\n cs_uristem string,\n cs_uriquery string,\n s_port - int,\n cs_username string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status int,\n sc_substatus - int,\n sc_win32status int,\n sc_bytes int,\n cs_bytes int,\n s_timetaken - int) AS\n BEGIN\n @result = EXTRACT\n s_date DateTime,\n s_time - string,\n s_sitename string,\n cs_method string,\n cs_uristem - string,\n cs_uriquery string,\n s_port int,\n cs_username - string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status - int,\n sc_substatus int,\n sc_win32status int,\n sc_bytes - int,\n cs_bytes int,\n s_timetaken int FROM \"@/Samples/Data/WebLog.log\" - USING Extractors.Text(delimiter:'' '');\n RETURN;\n END;\nCREATE - VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b);\nCREATE PROCEDURE catalog_item_1.dbo.catalog_item_4() AS BEGIN - CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b); END;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/algebra.xml","compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT12.7738424S","totalPausedTime":"PT0S","totalQueuedTime":"PT0S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:38 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"python cli - catalog job","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:26.5790134+00:00","state":"Starting","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:26.5790134+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:26.9696177+00:00","details":"Compilation:ae212ec8-d793-4f53-a189-dd5a025cdd53;Status:Dispatched"},{"newState":"Queued","timeStamp":"2020-08-27T03:20:41.4851366+00:00"},{"newState":"Scheduling","timeStamp":"2020-08-27T03:20:41.5007207+00:00","details":"Detail:Dispatching - job to cluster.;rootProcessId:2ae32c40-f61a-41d9-8171-981dac10daef"},{"newState":"Starting","timeStamp":"2020-08-27T03:20:41.5007207+00:00","details":"runtimeVersion:release_20200124live_adl_16283022_2"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"__CompilerTimers.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__CompilerTimers.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGen__.pdb","type":"VertexResource"},{"name":"__ScopeCodeGenResources__.zip","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenResources__.zip","type":"VertexResource"},{"name":"__SystemInternalInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__SystemInternalInfo__.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.dll.cs","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGen__.dll.cs","type":"StatisticsResource"},{"name":"query.abr","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/query.abr","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOutput__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenCompileOutput__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOptions__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenCompileOptions__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.cppresources","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenEngine__.cppresources","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGen__.dll","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenEngine__.pdb","type":"VertexResource"},{"name":"__ScopeDiagnosisInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeDiagnosisInfo__.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenEngine__.dll","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.dll.cpp","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenEngine__.dll.cpp","type":"StatisticsResource"},{"name":"ScopeVertexDef.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/ScopeVertexDef.xml","type":"VertexResource"},{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"release_20200124live_adl_16283022_2","rootProcessNodeId":"2ae32c40-f61a-41d9-8171-981dac10daef","script":"DROP - DATABASE IF EXISTS catalog_item_1;\nCREATE DATABASE catalog_item_1;\nCREATE - TABLE catalog_item_1.dbo.catalog_item_2 (\n UserId int,\n Start DateTime,\n Region - string,\n Query string,\n Duration int,\n Urls string,\n ClickedUrls string,\n INDEX - idx1 CLUSTERED (Region ASC)\n PARTITIONED BY (UserId) HASH (Region));\nALTER - TABLE catalog_item_1.dbo.catalog_item_2 ADD IF NOT EXISTS PARTITION (1);\nDROP - FUNCTION IF EXISTS catalog_item_1.dbo.catalog_item_3;\nCREATE FUNCTION catalog_item_1.dbo.catalog_item_3()\n RETURNS - @result TABLE (\n s_date DateTime,\n s_time string,\n s_sitename - string,\n cs_method string,\n cs_uristem string,\n cs_uriquery string,\n s_port - int,\n cs_username string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status int,\n sc_substatus - int,\n sc_win32status int,\n sc_bytes int,\n cs_bytes int,\n s_timetaken - int) AS\n BEGIN\n @result = EXTRACT\n s_date DateTime,\n s_time - string,\n s_sitename string,\n cs_method string,\n cs_uristem - string,\n cs_uriquery string,\n s_port int,\n cs_username - string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status - int,\n sc_substatus int,\n sc_win32status int,\n sc_bytes - int,\n cs_bytes int,\n s_timetaken int FROM \"@/Samples/Data/WebLog.log\" - USING Extractors.Text(delimiter:'' '');\n RETURN;\n END;\nCREATE - VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b);\nCREATE PROCEDURE catalog_item_1.dbo.catalog_item_4() AS BEGIN - CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b); END;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/algebra.xml","yarnApplicationId":1123958,"yarnApplicationTimeStamp":1597854468023,"compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT14.5155189S","totalPausedTime":"PT0S","totalQueuedTime":"PT0.0155841S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:44 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"python cli - catalog job","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:26.5790134+00:00","startTime":"2020-08-27T03:20:41.524+00:00","endTime":"2020-08-27T03:20:49.149+00:00","state":"Ended","result":"Succeeded","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:26.5790134+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:26.9696177+00:00","details":"Compilation:ae212ec8-d793-4f53-a189-dd5a025cdd53;Status:Dispatched"},{"newState":"Queued","timeStamp":"2020-08-27T03:20:41.4851366+00:00"},{"newState":"Scheduling","timeStamp":"2020-08-27T03:20:41.5007207+00:00","details":"Detail:Dispatching - job to cluster.;rootProcessId:2ae32c40-f61a-41d9-8171-981dac10daef"},{"newState":"Starting","timeStamp":"2020-08-27T03:20:41.5007207+00:00","details":"runtimeVersion:release_20200124live_adl_16283022_2"},{"newState":"Running","timeStamp":"2020-08-27T03:20:49.7975384+00:00","details":"runAttempt:1"},{"newState":"Ended","timeStamp":"2020-08-27T03:20:49.8131396+00:00","details":"result:Succeeded"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"__CompilerTimers.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__CompilerTimers.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGen__.pdb","type":"VertexResource"},{"name":"__ScopeCodeGenResources__.zip","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenResources__.zip","type":"VertexResource"},{"name":"__SystemInternalInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__SystemInternalInfo__.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.dll.cs","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGen__.dll.cs","type":"StatisticsResource"},{"name":"query.abr","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/query.abr","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOutput__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenCompileOutput__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOptions__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenCompileOptions__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.cppresources","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenEngine__.cppresources","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGen__.dll","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenEngine__.pdb","type":"VertexResource"},{"name":"__ScopeDiagnosisInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeDiagnosisInfo__.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenEngine__.dll","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.dll.cpp","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeCodeGenEngine__.dll.cpp","type":"StatisticsResource"},{"name":"ScopeVertexDef.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/ScopeVertexDef.xml","type":"VertexResource"},{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"release_20200124live_adl_16283022_2","rootProcessNodeId":"2ae32c40-f61a-41d9-8171-981dac10daef","script":"DROP - DATABASE IF EXISTS catalog_item_1;\nCREATE DATABASE catalog_item_1;\nCREATE - TABLE catalog_item_1.dbo.catalog_item_2 (\n UserId int,\n Start DateTime,\n Region - string,\n Query string,\n Duration int,\n Urls string,\n ClickedUrls string,\n INDEX - idx1 CLUSTERED (Region ASC)\n PARTITIONED BY (UserId) HASH (Region));\nALTER - TABLE catalog_item_1.dbo.catalog_item_2 ADD IF NOT EXISTS PARTITION (1);\nDROP - FUNCTION IF EXISTS catalog_item_1.dbo.catalog_item_3;\nCREATE FUNCTION catalog_item_1.dbo.catalog_item_3()\n RETURNS - @result TABLE (\n s_date DateTime,\n s_time string,\n s_sitename - string,\n cs_method string,\n cs_uristem string,\n cs_uriquery string,\n s_port - int,\n cs_username string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status int,\n sc_substatus - int,\n sc_win32status int,\n sc_bytes int,\n cs_bytes int,\n s_timetaken - int) AS\n BEGIN\n @result = EXTRACT\n s_date DateTime,\n s_time - string,\n s_sitename string,\n cs_method string,\n cs_uristem - string,\n cs_uriquery string,\n s_port int,\n cs_username - string,\n c_ip string,\n cs_useragent string,\n cs_cookie - string,\n cs_referer string,\n cs_host string,\n sc_status - int,\n sc_substatus int,\n sc_win32status int,\n sc_bytes - int,\n cs_bytes int,\n s_timetaken int FROM \"@/Samples/Data/WebLog.log\" - USING Extractors.Text(delimiter:'' '');\n RETURN;\n END;\nCREATE - VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b);\nCREATE PROCEDURE catalog_item_1.dbo.catalog_item_4() AS BEGIN - CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) - AS T(a, b); END;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/3db858d2-e814-11ea-b1cc-f01898e9a685/algebra.xml","yarnApplicationId":1123958,"yarnApplicationTimeStamp":1597854468023,"compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT14.5155189S","totalPausedTime":"PT0S","totalQueuedTime":"PT0.0155841S","totalRunningTime":"PT0.0156012S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:51 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog database list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#databases\"\ - ,\"value\":[\r\n {\r\n \"computeAccountName\":\"cliadla000003\",\"\ - databaseName\":\"catalog_item_1\",\"version\":\"3d965781-ea1f-4ca0-9840-f93811d9d348\"\ - \r\n },{\r\n \"computeAccountName\":\"cliadla000003\",\"databaseName\"\ - :\"master\",\"version\":\"2cdf9d85-33ac-42d6-bafa-328a18fecb4d\"\r\n }\r\ - \n ]\r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:20:52 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog database show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#databases/$entity\"\ - ,\"computeAccountName\":\"cliadla000003\",\"databaseName\":\"catalog_item_1\"\ - ,\"version\":\"3d965781-ea1f-4ca0-9840-f93811d9d348\"\r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:20:54 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog schema list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#schemas\"\ - ,\"value\":[\r\n {\r\n \"computeAccountName\":\"cliadla000003\",\"\ - databaseName\":\"catalog_item_1\",\"schemaName\":\"dbo\",\"version\":\"324ca669-3483-4321-b061-bad0ebbbbdb9\"\ - \r\n },{\r\n \"computeAccountName\":\"cliadla000003\",\"databaseName\"\ - :\"catalog_item_1\",\"schemaName\":\"INFORMATION_SCHEMA\",\"version\":\"0f8d615e-6ad1-46ca-beaa-5f913b24bbe7\"\ - \r\n },{\r\n \"computeAccountName\":\"cliadla000003\",\"databaseName\"\ - :\"catalog_item_1\",\"schemaName\":\"sys\",\"version\":\"92d2ee22-c10a-47ff-b59f-532f6aba9ff4\"\ - \r\n },{\r\n \"computeAccountName\":\"cliadla000003\",\"databaseName\"\ - :\"catalog_item_1\",\"schemaName\":\"usql\",\"version\":\"24fb84f5-244c-42c4-8743-6847a4701b70\"\ - \r\n }\r\n ]\r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:20:55 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog schema show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#schemas/$entity\"\ - ,\"computeAccountName\":\"cliadla000003\",\"databaseName\":\"catalog_item_1\"\ - ,\"schemaName\":\"dbo\",\"version\":\"324ca669-3483-4321-b061-bad0ebbbbdb9\"\ - \r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:20:57 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog table list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/tables?basic=false&api-version=2016-11-01 - response: - body: - string: '{"nextLink":null,"value":[{"tableName":"catalog_item_2","columnList":[{"name":"UserId","type":"System.Int32"},{"name":"Start","type":"System.DateTime"},{"name":"Region","type":"System.String"},{"name":"Query","type":"System.String"},{"name":"Duration","type":"System.Int32"},{"name":"Urls","type":"System.String"},{"name":"ClickedUrls","type":"System.String"}],"indexList":[{"name":"idx1","indexKeys":[{"name":"Region","descending":false}],"columns":["Region","UserId"],"distributionInfo":{"type":2,"keys":[{"name":"Region","descending":false}],"count":0,"dynamicCount":0},"partitionFunction":"23d3d19d-0809-4305-9ec3-669e3498c231","partitionKeyList":["UserId"],"isColumnstore":false,"indexId":1,"isUnique":false}],"partitionKeyList":[],"externalTable":null,"distributionInfo":null,"computeAccountName":"cliadla000003","databaseName":"catalog_item_1","schemaName":"dbo","createTime":"2020-08-27T03:20:48.29-07:00","updateTime":"2020-08-27T03:20:48.29-07:00","version":"d437deae-fe62-4036-bcc7-6d98102bf911"}],"count":1}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:58 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog table list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/tables?basic=false&api-version=2016-11-01 - response: - body: - string: '{"nextLink":null,"value":[{"tableName":"catalog_item_2","columnList":[{"name":"UserId","type":"System.Int32"},{"name":"Start","type":"System.DateTime"},{"name":"Region","type":"System.String"},{"name":"Query","type":"System.String"},{"name":"Duration","type":"System.Int32"},{"name":"Urls","type":"System.String"},{"name":"ClickedUrls","type":"System.String"}],"indexList":[{"name":"idx1","indexKeys":[{"name":"Region","descending":false}],"columns":["Region","UserId"],"distributionInfo":{"type":2,"keys":[{"name":"Region","descending":false}],"count":0,"dynamicCount":0},"partitionFunction":"23d3d19d-0809-4305-9ec3-669e3498c231","partitionKeyList":["UserId"],"isColumnstore":false,"indexId":1,"isUnique":false}],"partitionKeyList":[],"externalTable":null,"distributionInfo":null,"computeAccountName":"cliadla000003","databaseName":"catalog_item_1","schemaName":"dbo","createTime":"2020-08-27T03:20:48.29-07:00","updateTime":"2020-08-27T03:20:48.29-07:00","version":"d437deae-fe62-4036-bcc7-6d98102bf911"}],"count":1}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:00 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog table show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name --table-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/tables/catalog_item_2?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#tables/$entity\"\ - ,\"tableName\":\"catalog_item_2\",\"columnList\":[\r\n {\r\n \"name\"\ - :\"UserId\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Start\"\ - ,\"type\":\"System.DateTime\"\r\n },{\r\n \"name\":\"Region\",\"type\"\ - :\"System.String\"\r\n },{\r\n \"name\":\"Query\",\"type\":\"System.String\"\ - \r\n },{\r\n \"name\":\"Duration\",\"type\":\"System.Int32\"\r\n \ - \ },{\r\n \"name\":\"Urls\",\"type\":\"System.String\"\r\n },{\r\ - \n \"name\":\"ClickedUrls\",\"type\":\"System.String\"\r\n }\r\n \ - \ ],\"indexList\":[\r\n {\r\n \"name\":\"idx1\",\"indexKeys\":[\r\n\ - \ {\r\n \"name\":\"Region\",\"descending\":false\r\n \ - \ }\r\n ],\"columns\":[\r\n \"Region\",\"UserId\"\r\n ],\"\ - distributionInfo\":{\r\n \"type\":2,\"keys\":[\r\n {\r\n \ - \ \"name\":\"Region\",\"descending\":false\r\n }\r\n \ - \ ],\"count\":0,\"dynamicCount\":0\r\n },\"partitionFunction\":\"\ - 23d3d19d-0809-4305-9ec3-669e3498c231\",\"partitionKeyList\":[\r\n \"\ - UserId\"\r\n ],\"isColumnstore\":false,\"indexId\":1,\"isUnique\":false\r\ - \n }\r\n ],\"partitionKeyList\":[\r\n \r\n ],\"externalTable\":null,\"\ - distributionInfo\":null,\"computeAccountName\":\"cliadla000003\",\"databaseName\"\ - :\"catalog_item_1\",\"schemaName\":\"dbo\",\"createTime\":\"2020-08-27T03:20:48.29-07:00\"\ - ,\"updateTime\":\"2020-08-27T03:20:48.29-07:00\",\"version\":\"d437deae-fe62-4036-bcc7-6d98102bf911\"\ - \r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:01 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog view list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/views?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#views\"\ - ,\"value\":[\r\n {\r\n \"viewName\":\"catalog_item_8\",\"definition\"\ - :\"CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4))\ - \ AS T(a, b);\",\"computeAccountName\":\"cliadla000003\",\"databaseName\"\ - :\"catalog_item_1\",\"schemaName\":\"dbo\",\"createTime\":\"2020-08-27T03:20:48.307-07:00\"\ - ,\"updateTime\":\"2020-08-27T03:20:48.307-07:00\",\"version\":\"6783d145-5ad7-4587-a312-310a460cd431\"\ - \r\n }\r\n ]\r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:02 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog view list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/views?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#views\"\ - ,\"value\":[\r\n {\r\n \"viewName\":\"catalog_item_8\",\"definition\"\ - :\"CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4))\ - \ AS T(a, b);\",\"computeAccountName\":\"cliadla000003\",\"databaseName\"\ - :\"catalog_item_1\",\"schemaName\":\"dbo\",\"createTime\":\"2020-08-27T03:20:48.307-07:00\"\ - ,\"updateTime\":\"2020-08-27T03:20:48.307-07:00\",\"version\":\"6783d145-5ad7-4587-a312-310a460cd431\"\ - \r\n }\r\n ]\r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:04 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog view show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name --view-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/views/catalog_item_8?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#views/$entity\"\ - ,\"viewName\":\"catalog_item_8\",\"definition\":\"CREATE VIEW catalog_item_1.dbo.catalog_item_8\ - \ AS SELECT * FROM (VALUES(1,2),(2,4)) AS T(a, b);\",\"computeAccountName\"\ - :\"cliadla000003\",\"databaseName\":\"catalog_item_1\",\"schemaName\":\"dbo\"\ - ,\"createTime\":\"2020-08-27T03:20:48.307-07:00\",\"updateTime\":\"2020-08-27T03:20:48.307-07:00\"\ - ,\"version\":\"6783d145-5ad7-4587-a312-310a460cd431\"\r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:05 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog procedure list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/procedures?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#procedures\"\ - ,\"value\":[\r\n {\r\n \"procName\":\"catalog_item_4\",\"definition\"\ - :\"CREATE PROCEDURE catalog_item_1.dbo.catalog_item_4() AS BEGIN CREATE VIEW\ - \ catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) AS\ - \ T(a, b); END;\",\"computeAccountName\":\"cliadla000003\",\"databaseName\"\ - :\"catalog_item_1\",\"schemaName\":\"dbo\",\"createTime\":null,\"updateTime\"\ - :null,\"version\":\"d2c9e2cd-d8fc-4712-8e1f-808ae191c826\"\r\n }\r\n ]\r\ - \n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:08 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog procedure show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name --procedure-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/procedures/catalog_item_4?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#procedures/$entity\"\ - ,\"procName\":\"catalog_item_4\",\"definition\":\"CREATE PROCEDURE catalog_item_1.dbo.catalog_item_4()\ - \ AS BEGIN CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM\ - \ (VALUES(1,2),(2,4)) AS T(a, b); END;\",\"computeAccountName\":\"cliadla000003\"\ - ,\"databaseName\":\"catalog_item_1\",\"schemaName\":\"dbo\",\"createTime\"\ - :null,\"updateTime\":null,\"version\":\"d2c9e2cd-d8fc-4712-8e1f-808ae191c826\"\ - \r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:09 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog procedure list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/procedures?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#procedures\"\ - ,\"value\":[\r\n {\r\n \"procName\":\"catalog_item_4\",\"definition\"\ - :\"CREATE PROCEDURE catalog_item_1.dbo.catalog_item_4() AS BEGIN CREATE VIEW\ - \ catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) AS\ - \ T(a, b); END;\",\"computeAccountName\":\"cliadla000003\",\"databaseName\"\ - :\"catalog_item_1\",\"schemaName\":\"dbo\",\"createTime\":null,\"updateTime\"\ - :null,\"version\":\"d2c9e2cd-d8fc-4712-8e1f-808ae191c826\"\r\n }\r\n ]\r\ - \n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:11 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog procedure show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name --procedure-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/procedures/catalog_item_4?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#procedures/$entity\"\ - ,\"procName\":\"catalog_item_4\",\"definition\":\"CREATE PROCEDURE catalog_item_1.dbo.catalog_item_4()\ - \ AS BEGIN CREATE VIEW catalog_item_1.dbo.catalog_item_8 AS SELECT * FROM\ - \ (VALUES(1,2),(2,4)) AS T(a, b); END;\",\"computeAccountName\":\"cliadla000003\"\ - ,\"databaseName\":\"catalog_item_1\",\"schemaName\":\"dbo\",\"createTime\"\ - :null,\"updateTime\":null,\"version\":\"d2c9e2cd-d8fc-4712-8e1f-808ae191c826\"\ - \r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:12 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog tvf list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/tablevaluedfunctions?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions\"\ - ,\"value\":[\r\n {\r\n \"tvfName\":\"catalog_item_3\",\"definition\"\ - :\"CREATE FUNCTION catalog_item_1.dbo.catalog_item_3()\\n RETURNS @result\ - \ TABLE (\\n s_date DateTime,\\n s_time string,\\n s_sitename string,\\\ - n cs_method string,\\n cs_uristem string,\\n cs_uriquery string,\\\ - n s_port int,\\n cs_username string,\\n c_ip string,\\n cs_useragent\ - \ string,\\n cs_cookie string,\\n cs_referer string,\\n cs_host string,\\\ - n sc_status int,\\n sc_substatus int,\\n sc_win32status int,\\n \ - \ sc_bytes int,\\n cs_bytes int,\\n s_timetaken int) AS\\n BEGIN\\\ - n @result = EXTRACT\\n s_date DateTime,\\n s_time\ - \ string,\\n s_sitename string,\\n cs_method string,\\n\ - \ cs_uristem string,\\n cs_uriquery string,\\n \ - \ s_port int,\\n cs_username string,\\n c_ip string,\\n\ - \ cs_useragent string,\\n cs_cookie string,\\n \ - \ cs_referer string,\\n cs_host string,\\n sc_status int,\\\ - n sc_substatus int,\\n sc_win32status int,\\n sc_bytes\ - \ int,\\n cs_bytes int,\\n s_timetaken int FROM \\\"@/Samples/Data/WebLog.log\\\ - \" USING Extractors.Text(delimiter:' ');\\n RETURN;\\n END;\",\"\ - computeAccountName\":\"cliadla000003\",\"databaseName\":\"catalog_item_1\"\ - ,\"schemaName\":\"dbo\",\"createTime\":\"2020-08-27T03:20:48.307-07:00\",\"\ - updateTime\":\"2020-08-27T03:20:48.307-07:00\",\"version\":\"a1083041-dd3e-448d-b0b0-36be69ceec0c\"\ - \r\n }\r\n ]\r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:13 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog tvf list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/tablevaluedfunctions?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions\"\ - ,\"value\":[\r\n {\r\n \"tvfName\":\"catalog_item_3\",\"definition\"\ - :\"CREATE FUNCTION catalog_item_1.dbo.catalog_item_3()\\n RETURNS @result\ - \ TABLE (\\n s_date DateTime,\\n s_time string,\\n s_sitename string,\\\ - n cs_method string,\\n cs_uristem string,\\n cs_uriquery string,\\\ - n s_port int,\\n cs_username string,\\n c_ip string,\\n cs_useragent\ - \ string,\\n cs_cookie string,\\n cs_referer string,\\n cs_host string,\\\ - n sc_status int,\\n sc_substatus int,\\n sc_win32status int,\\n \ - \ sc_bytes int,\\n cs_bytes int,\\n s_timetaken int) AS\\n BEGIN\\\ - n @result = EXTRACT\\n s_date DateTime,\\n s_time\ - \ string,\\n s_sitename string,\\n cs_method string,\\n\ - \ cs_uristem string,\\n cs_uriquery string,\\n \ - \ s_port int,\\n cs_username string,\\n c_ip string,\\n\ - \ cs_useragent string,\\n cs_cookie string,\\n \ - \ cs_referer string,\\n cs_host string,\\n sc_status int,\\\ - n sc_substatus int,\\n sc_win32status int,\\n sc_bytes\ - \ int,\\n cs_bytes int,\\n s_timetaken int FROM \\\"@/Samples/Data/WebLog.log\\\ - \" USING Extractors.Text(delimiter:' ');\\n RETURN;\\n END;\",\"\ - computeAccountName\":\"cliadla000003\",\"databaseName\":\"catalog_item_1\"\ - ,\"schemaName\":\"dbo\",\"createTime\":\"2020-08-27T03:20:48.307-07:00\",\"\ - updateTime\":\"2020-08-27T03:20:48.307-07:00\",\"version\":\"a1083041-dd3e-448d-b0b0-36be69ceec0c\"\ - \r\n }\r\n ]\r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:15 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog tvf show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --schema-name --table-valued-function-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/schemas/dbo/tablevaluedfunctions/catalog_item_3?api-version=2016-11-01 - response: - body: - string: "{\r\n \"@odata.context\":\"https://cliadla000003.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions/$entity\"\ - ,\"tvfName\":\"catalog_item_3\",\"definition\":\"CREATE FUNCTION catalog_item_1.dbo.catalog_item_3()\\\ - n RETURNS @result TABLE (\\n s_date DateTime,\\n s_time string,\\n\ - \ s_sitename string,\\n cs_method string,\\n cs_uristem string,\\\ - n cs_uriquery string,\\n s_port int,\\n cs_username string,\\n \ - \ c_ip string,\\n cs_useragent string,\\n cs_cookie string,\\n cs_referer\ - \ string,\\n cs_host string,\\n sc_status int,\\n sc_substatus int,\\\ - n sc_win32status int,\\n sc_bytes int,\\n cs_bytes int,\\n s_timetaken\ - \ int) AS\\n BEGIN\\n @result = EXTRACT\\n s_date DateTime,\\\ - n s_time string,\\n s_sitename string,\\n cs_method\ - \ string,\\n cs_uristem string,\\n cs_uriquery string,\\\ - n s_port int,\\n cs_username string,\\n c_ip string,\\\ - n cs_useragent string,\\n cs_cookie string,\\n \ - \ cs_referer string,\\n cs_host string,\\n sc_status int,\\\ - n sc_substatus int,\\n sc_win32status int,\\n sc_bytes\ - \ int,\\n cs_bytes int,\\n s_timetaken int FROM \\\"@/Samples/Data/WebLog.log\\\ - \" USING Extractors.Text(delimiter:' ');\\n RETURN;\\n END;\",\"\ - computeAccountName\":\"cliadla000003\",\"databaseName\":\"catalog_item_1\"\ - ,\"schemaName\":\"dbo\",\"createTime\":\"2020-08-27T03:20:48.307-07:00\",\"\ - updateTime\":\"2020-08-27T03:20:48.307-07:00\",\"version\":\"a1083041-dd3e-448d-b0b0-36be69ceec0c\"\ - \r\n}" - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; odata.metadata=minimal - date: - - Thu, 27 Aug 2020 03:21:17 GMT - expires: - - '-1' - odata-version: - - '4.0' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"password": "catalog_item_7", "uri": "http://adl.contoso.com:443", "userId": - "catalog_item_6"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog credential create - Connection: - - keep-alive - Content-Length: - - '95' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --credential-name --user-name --password --uri - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: PUT - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/credentials/catalog_item_5?api-version=2016-11-01 - response: - body: - string: '' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - date: - - Thu, 27 Aug 2020 03:21:18 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog credential list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/credentials?api-version=2016-11-01 - response: - body: - string: '{"value":[{"credentialName":"catalog_item_5"}]}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:20 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog credential show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --credential-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/credentials/catalog_item_5?api-version=2016-11-01 - response: - body: - string: '{"credentialName":"catalog_item_5"}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:22 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog credential delete - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name --credential-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: POST - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/credentials/catalog_item_5?cascade=false&api-version=2016-11-01 - response: - body: - string: '' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - date: - - Thu, 27 Aug 2020 03:21:24 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla catalog credential list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --database-name - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticscatalogmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/catalog/usql/databases/catalog_item_1/credentials?api-version=2016-11-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:26 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_job_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_job_mgmt.yaml deleted file mode 100644 index 8e01c2ac5c0..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/recordings/test_adla_job_mgmt.yaml +++ /dev/null @@ -1,1174 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus2", "properties": {"encryptionState": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - Content-Length: - - '70' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002?api-version=2016-11-01 - response: - body: - string: '{"properties":{"encryptionState":"Disabled","provisioningState":"Creating","state":null,"endpoint":null,"accountId":"484814d6-4745-457f-b789-34925264ae5f"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002","name":"cliadls000002","type":"Microsoft.DataLakeStore/accounts"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/484814d6-4745-457f-b789-34925264ae5f_0?api-version=2016-11-01 - cache-control: - - no-cache - content-length: - - '471' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:18:42 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002/operationresults/0?api-version=2016-11-01 - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1193' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.11.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/484814d6-4745-457f-b789-34925264ae5f_0?api-version=2016-11-01 - response: - body: - string: '{"status":"InProgress"}' - headers: - cache-control: - - no-cache - content-length: - - '23' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:18:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.11.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/484814d6-4745-457f-b789-34925264ae5f_0?api-version=2016-11-01 - response: - body: - string: '{"status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:19:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --disable-encryption - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.11.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallAllowDataLakeAnalytics":"Disabled","firewallRules":[],"virtualNetworkRules":[],"trustedIdProviderState":"Disabled","trustedIdProviders":[],"encryptionState":"Disabled","encryptionConfig":{},"currentTier":"Consumption","newTier":"Consumption","dataLakePerformanceTierState":"Disabled","provisioningState":"Succeeded","state":"Active","endpoint":"cliadls000002.azuredatalakestore.net","accountId":"484814d6-4745-457f-b789-34925264ae5f","creationTime":"2020-08-27T03:18:42.2095313Z","lastModifiedTime":"2020-08-27T03:18:42.2095313Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002","name":"cliadls000002","type":"Microsoft.DataLakeStore/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '943' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:19:28 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dls account show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-datalake-store/0.5.0 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallAllowDataLakeAnalytics":"Disabled","firewallRules":[],"virtualNetworkRules":[],"trustedIdProviderState":"Disabled","trustedIdProviders":[],"encryptionState":"Disabled","encryptionConfig":{},"currentTier":"Consumption","newTier":"Consumption","dataLakePerformanceTierState":"Disabled","provisioningState":"Succeeded","state":"Active","endpoint":"cliadls000002.azuredatalakestore.net","accountId":"484814d6-4745-457f-b789-34925264ae5f","creationTime":"2020-08-27T03:18:42.2095313Z","lastModifiedTime":"2020-08-27T03:18:42.2095313Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeStore/accounts/cliadls000002","name":"cliadls000002","type":"Microsoft.DataLakeStore/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '943' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:19:31 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus2", "properties": {"defaultDataLakeStoreAccount": "cliadls000002", - "maxDegreeOfParallelism": 30, "queryStoreRetention": 30, "maxJobCount": 3, "dataLakeStoreAccounts": - [{"name": "cliadls000002"}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Length: - - '238' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003?api-version=2016-11-01 - response: - body: - string: '{"properties":{"defaultDataLakeStoreAccount":"cliadls000002","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000002"}],"maxDegreeOfParallelism":30,"maxJobCount":3,"queryStoreRetention":30,"provisioningState":"Creating","state":null,"endpoint":null,"accountId":"c6a5476d-7db7-4b09-b505-a19dc19894c0"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003","name":"cliadla000003","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/c6a5476d-7db7-4b09-b505-a19dc19894c0_0?api-version=2016-11-01 - cache-control: - - no-cache - content-length: - - '687' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:19:39 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003/operationresults/0?api-version=2016-11-01 - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/c6a5476d-7db7-4b09-b505-a19dc19894c0_0?api-version=2016-11-01 - response: - body: - string: '{"status":"InProgress"}' - headers: - cache-control: - - no-cache - content-length: - - '23' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:19:51 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/c6a5476d-7db7-4b09-b505-a19dc19894c0_0?api-version=2016-11-01 - response: - body: - string: '{"status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:20:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account create - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -l --default-data-lake-store - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallRules":[],"virtualNetworkRules":[],"debugDataAccessLevel":"All","defaultDataLakeStoreAccount":"cliadls000002","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000002"}],"publicDataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"adltrainingsampledata"},{"properties":{"suffix":"azuredatalakestore.net"},"name":"ghinsights"}],"storageAccounts":[],"maxDegreeOfParallelism":30,"maxJobCount":3,"systemMaxDegreeOfParallelism":100,"systemMaxJobCount":20,"maxDegreeOfParallelismPerJob":30,"minPriorityPerJob":1,"computePolicies":[],"queryStoreRetention":30,"hiveMetastores":[],"currentTier":"Consumption","newTier":"Consumption","provisioningState":"Succeeded","state":"Active","endpoint":"cliadla000003.azuredatalakeanalytics.net","accountId":"c6a5476d-7db7-4b09-b505-a19dc19894c0","creationTime":"2020-08-27T03:19:39.3501381Z","lastModifiedTime":"2020-08-27T03:19:39.3501381Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003","name":"cliadla000003","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '1385' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:20:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla account show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsaccountmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003?api-version=2016-11-01 - response: - body: - string: '{"properties":{"firewallState":"Disabled","firewallAllowAzureIps":"Disabled","firewallRules":[],"virtualNetworkRules":[],"debugDataAccessLevel":"All","defaultDataLakeStoreAccount":"cliadls000002","dataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"cliadls000002"}],"publicDataLakeStoreAccounts":[{"properties":{"suffix":"azuredatalakestore.net"},"name":"adltrainingsampledata"},{"properties":{"suffix":"azuredatalakestore.net"},"name":"ghinsights"}],"storageAccounts":[],"maxDegreeOfParallelism":30,"maxJobCount":3,"systemMaxDegreeOfParallelism":100,"systemMaxJobCount":20,"maxDegreeOfParallelismPerJob":30,"minPriorityPerJob":1,"computePolicies":[],"queryStoreRetention":30,"hiveMetastores":[],"currentTier":"Consumption","newTier":"Consumption","provisioningState":"Succeeded","state":"Active","endpoint":"cliadla000003.azuredatalakeanalytics.net","accountId":"c6a5476d-7db7-4b09-b505-a19dc19894c0","creationTime":"2020-08-27T03:19:39.3501381Z","lastModifiedTime":"2020-08-27T03:19:39.3501381Z"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_adla_job_mgmt000001/providers/Microsoft.DataLakeAnalytics/accounts/cliadla000003","name":"cliadla000003","type":"Microsoft.DataLakeAnalytics/accounts"}' - headers: - cache-control: - - no-cache - content-length: - - '1385' - content-type: - - application/json - date: - - Thu, 27 Aug 2020 03:20:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"type": "USql", "properties": {"script": "DROP DATABASE IF EXISTS FOO; - CREATE DATABASE FOO;", "type": "USql"}, "name": "clijobtest", "degreeOfParallelism": - 1, "priority": 1000}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job submit - Connection: - - keep-alive - Content-Length: - - '177' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-name --script - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: PUT - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:33.0945484+00:00","state":"Compiling","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:33.0945484+00:00","details":"userName:;submitMachine:N/A"}],"properties":{"owner":"feng.zhou@microsoft.com","runtimeVersion":"default","rootProcessNodeId":"00000000-0000-0000-0000-000000000000","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/40b76f46-e814-11ea-9ea0-f01898e9a685/algebra.xml","compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT0S","totalPausedTime":"PT0S","totalQueuedTime":"PT0S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:32 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job cancel - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: POST - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000/CancelJob?api-version=2016-11-01 - response: - body: - string: '' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - date: - - Thu, 27 Aug 2020 03:20:37 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:33.0945484+00:00","endTime":"2020-08-27T03:20:35.2665203+00:00","state":"Ended","result":"Cancelled","errorMessage":[{"errorId":"I_USER_CJS_CANCELEDBYUSER","name":"CANCELED_BY_USER","severity":"Info","source":"User","component":"CJS","message":"Job - was cancelled.","details":"","description":"Job was cancelled by .","resolution":"","helpLink":"","innerError":null}],"stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:33.0945484+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:33.469558+00:00","details":"Compilation:e3cc3665-4d70-4f68-8f65-bcaf0e6ac984;Status:Dispatched"},{"newState":"Ended","timeStamp":"2020-08-27T03:20:35.2665203+00:00","details":"result:CanceledByUser"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/40b76f46-e814-11ea-9ea0-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/40b76f46-e814-11ea-9ea0-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"default","rootProcessNodeId":"00000000-0000-0000-0000-000000000000","script":"DROP - DATABASE IF EXISTS FOO; CREATE DATABASE FOO;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/40b76f46-e814-11ea-9ea0-f01898e9a685/algebra.xml","compileMode":"Semantic","errorSource":"UserError","totalCompilationTime":"PT1.7969623S","totalPausedTime":"PT0S","totalQueuedTime":"PT0S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:40 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"type": "USql", "properties": {"script": "DROP DATABASE IF EXISTS FOO; - CREATE DATABASE FOO;", "type": "USql"}, "name": "clijobtest", "degreeOfParallelism": - 1, "priority": 1000, "related": {"pipelineId": "3f9a237a-325e-4ec8-9e10-60222a71354d", - "pipelineName": "py_pipeline_name", "pipelineUri": "https://begoldsm.contoso.com/jobs", - "runId": "a3f300fc-4496-40ad-b76d-7696e3723b77", "recurrenceId": "58cab1f7-fe29-46ce-89ab-628a1e09c5bf", - "recurrenceName": "py_recurrence_name"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job submit - Connection: - - keep-alive - Content-Length: - - '477' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-name --script --recurrence-name --recurrence-id --pipeline-name --pipeline-id - --pipeline-uri --run-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: PUT - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:42.5007378+00:00","state":"Compiling","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:42.5007378+00:00","details":"userName:;submitMachine:N/A"}],"properties":{"owner":"feng.zhou@microsoft.com","runtimeVersion":"default","rootProcessNodeId":"00000000-0000-0000-0000-000000000000","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/algebra.xml","compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT0S","totalPausedTime":"PT0S","totalQueuedTime":"PT0S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"},"related":{"pipelineId":"3f9a237a-325e-4ec8-9e10-60222a71354d","pipelineName":"py_pipeline_name","pipelineUri":"https://begoldsm.contoso.com/jobs","runId":"a3f300fc-4496-40ad-b76d-7696e3723b77","recurrenceId":"58cab1f7-fe29-46ce-89ab-628a1e09c5bf","recurrenceName":"py_recurrence_name"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:42 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:42.5007378+00:00","state":"Compiling","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:42.5007378+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:42.5788499+00:00","details":"Compilation:e699dca6-0d3a-46f4-99ef-49a365286ea6;Status:Dispatched"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"default","rootProcessNodeId":"00000000-0000-0000-0000-000000000000","script":"DROP - DATABASE IF EXISTS FOO; CREATE DATABASE FOO;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/algebra.xml","compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT1.8788593S","totalPausedTime":"PT0S","totalQueuedTime":"PT0S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"},"related":{"pipelineId":"3f9a237a-325e-4ec8-9e10-60222a71354d","pipelineName":"py_pipeline_name","pipelineUri":"https://begoldsm.contoso.com/jobs","runId":"a3f300fc-4496-40ad-b76d-7696e3723b77","recurrenceId":"58cab1f7-fe29-46ce-89ab-628a1e09c5bf","recurrenceName":"py_recurrence_name"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:44 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:42.5007378+00:00","state":"Compiling","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:42.5007378+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:42.5788499+00:00","details":"Compilation:e699dca6-0d3a-46f4-99ef-49a365286ea6;Status:Dispatched"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"default","rootProcessNodeId":"00000000-0000-0000-0000-000000000000","script":"DROP - DATABASE IF EXISTS FOO; CREATE DATABASE FOO;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/algebra.xml","compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT7.4566617S","totalPausedTime":"PT0S","totalQueuedTime":"PT0S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"},"related":{"pipelineId":"3f9a237a-325e-4ec8-9e10-60222a71354d","pipelineName":"py_pipeline_name","pipelineUri":"https://begoldsm.contoso.com/jobs","runId":"a3f300fc-4496-40ad-b76d-7696e3723b77","recurrenceId":"58cab1f7-fe29-46ce-89ab-628a1e09c5bf","recurrenceName":"py_recurrence_name"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:49 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:42.5007378+00:00","state":"Starting","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:42.5007378+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:42.5788499+00:00","details":"Compilation:e699dca6-0d3a-46f4-99ef-49a365286ea6;Status:Dispatched"},{"newState":"Queued","timeStamp":"2020-08-27T03:20:54.1568742+00:00"},{"newState":"Scheduling","timeStamp":"2020-08-27T03:20:54.1881461+00:00","details":"Detail:Dispatching - job to cluster.;rootProcessId:06ca0872-8d2f-41e1-b0da-5e499e652d88"},{"newState":"Starting","timeStamp":"2020-08-27T03:20:54.203772+00:00","details":"runtimeVersion:release_20200124live_adl_16283022_2"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"__ScopeDiagnosisInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeDiagnosisInfo__.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGenResources__.zip","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenResources__.zip","type":"VertexResource"},{"name":"__ScopeCodeGen__.dll.cs","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGen__.dll.cs","type":"StatisticsResource"},{"name":"__CompilerTimers.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__CompilerTimers.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOutput__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenCompileOutput__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.dll.cpp","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.dll.cpp","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGen__.dll","type":"VertexResource"},{"name":"query.abr","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/query.abr","type":"StatisticsResource"},{"name":"diagnosticsjson","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/diagnosticsjson","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOptions__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenCompileOptions__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGen__.pdb","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.cppresources","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.cppresources","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.pdb","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.dll","type":"VertexResource"},{"name":"__SystemInternalInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__SystemInternalInfo__.xml","type":"StatisticsResource"},{"name":"ScopeVertexDef.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/ScopeVertexDef.xml","type":"VertexResource"},{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"release_20200124live_adl_16283022_2","rootProcessNodeId":"06ca0872-8d2f-41e1-b0da-5e499e652d88","script":"DROP - DATABASE IF EXISTS FOO; CREATE DATABASE FOO;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/algebra.xml","yarnApplicationId":1123988,"yarnApplicationTimeStamp":1597854468023,"compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT11.5780243S","totalPausedTime":"PT0S","totalQueuedTime":"PT0.0312719S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"},"related":{"pipelineId":"3f9a237a-325e-4ec8-9e10-60222a71354d","pipelineName":"py_pipeline_name","pipelineUri":"https://begoldsm.contoso.com/jobs","runId":"a3f300fc-4496-40ad-b76d-7696e3723b77","recurrenceId":"58cab1f7-fe29-46ce-89ab-628a1e09c5bf","recurrenceName":"py_recurrence_name"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:20:55 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:42.5007378+00:00","state":"Starting","result":"None","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:42.5007378+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:42.5788499+00:00","details":"Compilation:e699dca6-0d3a-46f4-99ef-49a365286ea6;Status:Dispatched"},{"newState":"Queued","timeStamp":"2020-08-27T03:20:54.1568742+00:00"},{"newState":"Scheduling","timeStamp":"2020-08-27T03:20:54.1881461+00:00","details":"Detail:Dispatching - job to cluster.;rootProcessId:06ca0872-8d2f-41e1-b0da-5e499e652d88"},{"newState":"Starting","timeStamp":"2020-08-27T03:20:54.203772+00:00","details":"runtimeVersion:release_20200124live_adl_16283022_2"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"__ScopeDiagnosisInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeDiagnosisInfo__.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGenResources__.zip","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenResources__.zip","type":"VertexResource"},{"name":"__ScopeCodeGen__.dll.cs","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGen__.dll.cs","type":"StatisticsResource"},{"name":"__CompilerTimers.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__CompilerTimers.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOutput__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenCompileOutput__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.dll.cpp","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.dll.cpp","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGen__.dll","type":"VertexResource"},{"name":"query.abr","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/query.abr","type":"StatisticsResource"},{"name":"diagnosticsjson","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/diagnosticsjson","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOptions__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenCompileOptions__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGen__.pdb","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.cppresources","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.cppresources","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.pdb","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.dll","type":"VertexResource"},{"name":"__SystemInternalInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__SystemInternalInfo__.xml","type":"StatisticsResource"},{"name":"ScopeVertexDef.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/ScopeVertexDef.xml","type":"VertexResource"},{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"release_20200124live_adl_16283022_2","rootProcessNodeId":"06ca0872-8d2f-41e1-b0da-5e499e652d88","script":"DROP - DATABASE IF EXISTS FOO; CREATE DATABASE FOO;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/algebra.xml","yarnApplicationId":1123988,"yarnApplicationTimeStamp":1597854468023,"compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT11.5780243S","totalPausedTime":"PT0S","totalQueuedTime":"PT0.0312719S","totalRunningTime":"PT0S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"},"related":{"pipelineId":"3f9a237a-325e-4ec8-9e10-60222a71354d","pipelineName":"py_pipeline_name","pipelineUri":"https://begoldsm.contoso.com/jobs","runId":"a3f300fc-4496-40ad-b76d-7696e3723b77","recurrenceId":"58cab1f7-fe29-46ce-89ab-628a1e09c5bf","recurrenceName":"py_recurrence_name"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:00 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job wait - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --job-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs/00000000-0000-0000-0000-000000000000?api-version=2016-11-01 - response: - body: - string: '{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:42.5007378+00:00","startTime":"2020-08-27T03:20:54.212+00:00","endTime":"2020-08-27T03:21:02.259+00:00","state":"Ended","result":"Succeeded","stateAuditRecords":[{"newState":"New","timeStamp":"2020-08-27T03:20:42.5007378+00:00","details":"userName:;submitMachine:N/A"},{"newState":"Compiling","timeStamp":"2020-08-27T03:20:42.5788499+00:00","details":"Compilation:e699dca6-0d3a-46f4-99ef-49a365286ea6;Status:Dispatched"},{"newState":"Queued","timeStamp":"2020-08-27T03:20:54.1568742+00:00"},{"newState":"Scheduling","timeStamp":"2020-08-27T03:20:54.1881461+00:00","details":"Detail:Dispatching - job to cluster.;rootProcessId:06ca0872-8d2f-41e1-b0da-5e499e652d88"},{"newState":"Starting","timeStamp":"2020-08-27T03:20:54.203772+00:00","details":"runtimeVersion:release_20200124live_adl_16283022_2"},{"newState":"Running","timeStamp":"2020-08-27T03:21:01.5161731+00:00","details":"runAttempt:1"},{"newState":"Ended","timeStamp":"2020-08-27T03:21:05.4380293+00:00","details":"result:Succeeded"}],"properties":{"owner":"feng.zhou@microsoft.com","resources":[{"name":"__ScopeDiagnosisInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeDiagnosisInfo__.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGenResources__.zip","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenResources__.zip","type":"VertexResource"},{"name":"__ScopeCodeGen__.dll.cs","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGen__.dll.cs","type":"StatisticsResource"},{"name":"__CompilerTimers.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__CompilerTimers.xml","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOutput__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenCompileOutput__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.dll.cpp","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.dll.cpp","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGen__.dll","type":"VertexResource"},{"name":"query.abr","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/query.abr","type":"StatisticsResource"},{"name":"diagnosticsjson","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/diagnosticsjson","type":"StatisticsResource"},{"name":"__ScopeCodeGenCompileOptions__.txt","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenCompileOptions__.txt","type":"StatisticsResource"},{"name":"__ScopeCodeGen__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGen__.pdb","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.cppresources","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.cppresources","type":"StatisticsResource"},{"name":"__ScopeCodeGenEngine__.pdb","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.pdb","type":"VertexResource"},{"name":"__ScopeCodeGenEngine__.dll","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeCodeGenEngine__.dll","type":"VertexResource"},{"name":"__SystemInternalInfo__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__SystemInternalInfo__.xml","type":"StatisticsResource"},{"name":"ScopeVertexDef.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/ScopeVertexDef.xml","type":"VertexResource"},{"name":"Profile","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/profile","type":"StatisticsResource"},{"name":"__ScopeRuntimeStatistics__.xml","resourcePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/__ScopeRuntimeStatistics__.xml","type":"StatisticsResource"}],"runtimeVersion":"release_20200124live_adl_16283022_2","rootProcessNodeId":"06ca0872-8d2f-41e1-b0da-5e499e652d88","script":"DROP - DATABASE IF EXISTS FOO; CREATE DATABASE FOO;","algebraFilePath":"adl://cliadls000002.azuredatalakestore.net/system/jobservice/jobs/Usql/2020/08/27/03/20/48fed3c4-e814-11ea-9ea0-f01898e9a685/algebra.xml","yarnApplicationId":1123988,"yarnApplicationTimeStamp":1597854468023,"compileMode":"Semantic","errorSource":"Unknown","totalCompilationTime":"PT11.5780243S","totalPausedTime":"PT0S","totalQueuedTime":"PT0.0312719S","totalRunningTime":"PT3.9218562S","expirationTimeUtc":"0001-01-01T00:00:00Z","type":"USql"},"related":{"pipelineId":"3f9a237a-325e-4ec8-9e10-60222a71354d","pipelineName":"py_pipeline_name","pipelineUri":"https://begoldsm.contoso.com/jobs","runId":"a3f300fc-4496-40ad-b76d-7696e3723b77","recurrenceId":"58cab1f7-fe29-46ce-89ab-628a1e09c5bf","recurrenceName":"py_recurrence_name"}}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:05 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/Jobs?$orderby=submitTime%20desc&api-version=2016-11-01 - response: - body: - string: '{"value":[{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:42.5007378+00:00","startTime":"2020-08-27T03:20:54.212+00:00","endTime":"2020-08-27T03:21:02.259+00:00","state":"Ended","result":"Succeeded","related":{"pipelineId":"3f9a237a-325e-4ec8-9e10-60222a71354d","pipelineName":"py_pipeline_name","pipelineUri":"https://begoldsm.contoso.com/jobs","runId":"a3f300fc-4496-40ad-b76d-7696e3723b77","recurrenceId":"58cab1f7-fe29-46ce-89ab-628a1e09c5bf","recurrenceName":"py_recurrence_name"}},{"jobId":"00000000-0000-0000-0000-000000000000","name":"clijobtest","type":"USql","submitter":"feng.zhou@microsoft.com","degreeOfParallelism":1,"degreeOfParallelismPercent":0.0,"priority":1000,"submitTime":"2020-08-27T03:20:33.0945484+00:00","endTime":"2020-08-27T03:20:35.2665203+00:00","state":"Ended","result":"Cancelled","related":{}}],"count":0}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:07 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job recurrence list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/recurrences?api-version=2016-11-01 - response: - body: - string: '{"value":[{"recurrenceId":"58cab1f7-fe29-46ce-89ab-628a1e09c5bf","recurrenceName":"py_recurrence_name","numJobsFailed":0,"numJobsCanceled":0,"numJobsSucceeded":1,"auHoursFailed":0.0,"auHoursCanceled":0.0,"auHoursSucceeded":0.0022352777777777779,"lastSubmitTime":"2020-08-27T03:20:42.5007378+00:00"}],"count":1}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:08 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job recurrence show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --recurrence-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/recurrences/58cab1f7-fe29-46ce-89ab-628a1e09c5bf?api-version=2016-11-01 - response: - body: - string: '{"recurrenceId":"58cab1f7-fe29-46ce-89ab-628a1e09c5bf","recurrenceName":"py_recurrence_name","numJobsFailed":0,"numJobsCanceled":0,"numJobsSucceeded":1,"auHoursFailed":0.0,"auHoursCanceled":0.0,"auHoursSucceeded":0.0022352777777777779,"lastSubmitTime":"2020-08-27T03:20:42.5007378+00:00"}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:09 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job pipeline list - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/pipelines?api-version=2016-11-01 - response: - body: - string: '{"value":[{"pipelineId":"3f9a237a-325e-4ec8-9e10-60222a71354d","pipelineName":"py_pipeline_name","pipelineUri":"https://begoldsm.contoso.com/jobs","numJobsFailed":0,"numJobsCanceled":0,"numJobsSucceeded":1,"auHoursFailed":0.0,"auHoursCanceled":0.0,"auHoursSucceeded":0.0022352777777777779,"lastSubmitTime":"2020-08-27T03:20:42.5007378+00:00"}],"count":1}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:11 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - dla job pipeline show - Connection: - - keep-alive - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n --pipeline-id - User-Agent: - - python/3.8.0 (macOS-10.15-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - datalakeanalyticsjobmanagementclient/0.1.6 Azure-SDK-For-Python AZURECLI/2.11.0 - accept-language: - - en-US - method: GET - uri: https://cliadla000003.azuredatalakeanalytics.net/pipelines/3f9a237a-325e-4ec8-9e10-60222a71354d?api-version=2016-11-01 - response: - body: - string: '{"pipelineId":"3f9a237a-325e-4ec8-9e10-60222a71354d","pipelineName":"py_pipeline_name","pipelineUri":"https://begoldsm.contoso.com/jobs","numJobsFailed":0,"numJobsCanceled":0,"numJobsSucceeded":1,"auHoursFailed":0.0,"auHoursCanceled":0.0,"auHoursSucceeded":0.0022352777777777779,"lastSubmitTime":"2020-08-27T03:20:42.5007378+00:00","runs":[{"item1":"a3f300fc-4496-40ad-b76d-7696e3723b77","item2":"2020-08-27T03:20:42.5007378+00:00"}],"recurrences":["58cab1f7-fe29-46ce-89ab-628a1e09c5bf"]}' - headers: - cache-control: - - private, no-cache, no-store, max-age=0 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 27 Aug 2020 03:21:13 GMT - expires: - - '-1' - strict-transport-security: - - max-age=15724800; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/test_dla_commands.py b/src/azure-cli/azure/cli/command_modules/dla/tests/latest/test_dla_commands.py deleted file mode 100644 index 22d2e72d8e8..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/tests/latest/test_dla_commands.py +++ /dev/null @@ -1,483 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# pylint: disable=line-too-long -from unittest import mock - -from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, StorageAccountPreparer - -from knack.util import CLIError - - -# pylint: disable=too-many-instance-attributes -class DataLakeAnalyticsScenarioTest(ScenarioTest): - - def __init__(self, method_name): - from .recording_processors import JobIdReplacer, patch_uuid_str - return super(DataLakeAnalyticsScenarioTest, self).__init__(method_name, - recording_processors=JobIdReplacer(), - replay_patches=patch_uuid_str) - - @ResourceGroupPreparer(name_prefix='cli_test_adla_catalog_mgmt') - def test_adla_catalog_mgmt(self, resource_group): - - self.kwargs.update({ - 'dls': self.create_random_name('cliadls', 24), - 'dla': self.create_random_name('cliadla', 24), - 'loc': 'eastus2', - - # define catalog item names - 'db': 'catalog_item_1', - 'table': 'catalog_item_2', - 'tvf': 'catalog_item_3', - 'proc': 'catalog_item_4', - 'cred': 'catalog_item_5', - 'cred_username': 'catalog_item_6', - 'cred_pwd': 'catalog_item_7', - 'view': 'catalog_item_8' - }) - - # create ADLS accounts - self.cmd('dls account create -g {rg} -n {dls} -l {loc} --disable-encryption') - self.cmd('dla account create -g {rg} -n {dla} -l {loc} --default-data-lake-store {dls}') - # run job to construct catalog - catalog_script = '''DROP DATABASE IF EXISTS {0}; -CREATE DATABASE {0}; -CREATE TABLE {0}.dbo.{1} ( - UserId int, - Start DateTime, - Region string, - Query string, - Duration int, - Urls string, - ClickedUrls string, - INDEX idx1 CLUSTERED (Region ASC) - PARTITIONED BY (UserId) HASH (Region)); -ALTER TABLE {0}.dbo.{1} ADD IF NOT EXISTS PARTITION (1); -DROP FUNCTION IF EXISTS {0}.dbo.{2}; -CREATE FUNCTION {0}.dbo.{2}() - RETURNS @result TABLE ( - s_date DateTime, - s_time string, - s_sitename string, - cs_method string, - cs_uristem string, - cs_uriquery string, - s_port int, - cs_username string, - c_ip string, - cs_useragent string, - cs_cookie string, - cs_referer string, - cs_host string, - sc_status int, - sc_substatus int, - sc_win32status int, - sc_bytes int, - cs_bytes int, - s_timetaken int) AS - BEGIN - @result = EXTRACT - s_date DateTime, - s_time string, - s_sitename string, - cs_method string, - cs_uristem string, - cs_uriquery string, - s_port int, - cs_username string, - c_ip string, - cs_useragent string, - cs_cookie string, - cs_referer string, - cs_host string, - sc_status int, - sc_substatus int, - sc_win32status int, - sc_bytes int, - cs_bytes int, - s_timetaken int FROM \\"@/Samples/Data/WebLog.log\\" USING Extractors.Text(delimiter:' '); - RETURN; - END; -CREATE VIEW {0}.dbo.{3} AS SELECT * FROM (VALUES(1,2),(2,4)) AS T(a, b); -CREATE PROCEDURE {0}.dbo.{4}() AS BEGIN CREATE VIEW {0}.dbo.{3} AS SELECT * FROM (VALUES(1,2),(2,4)) AS T(a, b); END;''' - catalog_script = catalog_script.format(self.kwargs['db'], self.kwargs['table'], self.kwargs['tvf'], self.kwargs['view'], self.kwargs['proc']) - self.kwargs['job_id'] = self.cmd('dla job submit -n {{dla}} --job-name "python cli catalog job" --script "{}"'.format(catalog_script)).get_output_in_json()['jobId'] - result = self.cmd('dla job wait -n {dla} --job-id {job_id}').get_output_in_json() - assert result['result'] == 'Succeeded' - - # get all the catalog items - # list all DBs - self.cmd('dla catalog database list -n {dla}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 2), # because there is always the master DB - ]) - # get a specific DB - self.cmd('dla catalog database show -n {dla} --database-name {db}', checks=[ - self.check('name', '{db}'), - ]) - # list all schemas - self.cmd('dla catalog schema list -n {dla} --database-name {db}', checks=[ - self.check('type(@)', 'array'), - ]) - # get a specific schema - self.cmd('dla catalog schema show -n {dla} --database-name {db} --schema-name dbo', checks=[ - self.check('name', 'dbo'), - self.check('databaseName', '{db}'), - ]) - # list all tables - self.cmd('dla catalog table list -n {dla} --database-name {db} --schema-name dbo', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - # list all tables without specifying schema - self.cmd('dla catalog table list -n {dla} --database-name {db}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - # get a specific table - self.cmd('dla catalog table show -n {dla} --database-name {db} --schema-name dbo --table-name {table}', checks=[ - self.check('name', '{table}'), - self.check('databaseName', '{db}'), - self.check('schemaName', 'dbo'), - ]) - # list all views - self.cmd('dla catalog view list -n {dla} --database-name {db} --schema-name dbo', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - # list all views without specifying schema - self.cmd('dla catalog view list -n {dla} --database-name {db}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - # get a specific view - self.cmd('dla catalog view show -n {dla} --database-name {db} --schema-name dbo --view-name {view}', checks=[ - self.check('name', '{view}'), - self.check('databaseName', '{db}'), - self.check('schemaName', 'dbo'), - ]) - # list all procs - self.cmd('dla catalog procedure list -n {dla} --database-name {db} --schema-name dbo', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - # get a specific proc - self.cmd('dla catalog procedure show -n {dla} --database-name {db} --schema-name dbo --procedure-name {proc}', checks=[ - self.check('name', '{proc}'), - self.check('databaseName', '{db}'), - self.check('schemaName', 'dbo'), - ]) - # list all procs - self.cmd('dla catalog procedure list -n {dla} --database-name {db} --schema-name dbo', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - # get a specific proc - self.cmd('dla catalog procedure show -n {dla} --database-name {db} --schema-name dbo --procedure-name {proc}', checks=[ - self.check('name', '{proc}'), - self.check('databaseName', '{db}'), - self.check('schemaName', 'dbo'), - ]) - # list all tvfs - self.cmd('dla catalog tvf list -n {dla} --database-name {db} --schema-name dbo', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - # list all tvfs without specifying schema - self.cmd('dla catalog tvf list -n {dla} --database-name {db}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - # get a specific proc - self.cmd('dla catalog tvf show -n {dla} --database-name {db} --schema-name dbo --table-valued-function-name {tvf}', checks=[ - self.check('name', '{tvf}'), - self.check('databaseName', '{db}'), - self.check('schemaName', 'dbo'), - ]) - - # credential crud - # create a credential - self.cmd('dla catalog credential create -n {dla} --database-name {db} --credential-name {cred} --user-name {cred_username} --password {cred_pwd} --uri "http://adl.contoso.com:443"') - - # list credentials - self.cmd('dla catalog credential list -n {dla} --database-name {db}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - - # get the specific credential - self.cmd('dla catalog credential show -n {dla} --database-name {db} --credential-name {cred}', checks=[ - self.check('name', '{cred}'), - ]) - - # delete the specific credential - self.cmd('dla catalog credential delete -n {dla} --database-name {db} --credential-name {cred}') - - # list credentials and validate they are gone. - self.cmd('dla catalog credential list -n {dla} --database-name {db}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 0), - ]) - - @ResourceGroupPreparer(name_prefix='cli_test_adla_job_mgmt') - def test_adla_job_mgmt(self, resource_group): - - self.kwargs.update({ - 'dls': self.create_random_name('cliadls', 24), - 'dla': self.create_random_name('cliadla', 24), - 'loc': 'eastus2', - # job relation ship variables - 'pipeline_id': '3f9a237a-325e-4ec8-9e10-60222a71354d', - 'pipeline_name': 'py_pipeline_name', - 'pipeline_uri': 'https://begoldsm.contoso.com/jobs', - 'recurrence_id': '58cab1f7-fe29-46ce-89ab-628a1e09c5bf', - 'recurrence_name': 'py_recurrence_name', - 'run_id': 'a3f300fc-4496-40ad-b76d-7696e3723b77' - }) - - # create ADLS accounts - self.cmd('dls account create -g {rg} -n {dls} -l {loc} --disable-encryption') - self.cmd('dls account show -g {rg} -n {dls}', checks=[ - self.check('name', '{dls}'), - self.check('location', '{loc}'), - self.check('resourceGroup', '{rg}') - ]) - - self.cmd('dla account create -g {rg} -n {dla} -l {loc} --default-data-lake-store {dls}') - self.cmd('dla account show -g {rg} -n {dla}', checks=[ - self.check('name', '{dla}'), - self.check('location', '{loc}'), - self.check('resourceGroup', '{rg}') - ]) - - # submit job - should work with no relationship params - result = self.cmd('dla job submit -n {dla} --job-name clijobtest --script "DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO;"', checks=[ - self.check('name', 'clijobtest'), - ]).get_output_in_json() - # cancel job - self.kwargs['job_id'] = result['jobId'] - self.cmd('dla job cancel -n {dla} --job-id {job_id}') - - # get the job and confirm that it was cancelled - self.cmd('dla job show -n {dla} --job-id {job_id}', checks=[ - self.check('name', 'clijobtest'), - self.check('result', 'Cancelled'), - ]) - - # job relationship. Attempt to submit a job with invalid job relationship param combos - with self.assertRaises(CLIError): - self.cmd('dla job submit -n {dla} --job-name clijobtest --script "DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO;" --recurrence-name {recurrence_name}') - - with self.assertRaises(CLIError): - self.cmd('dla job submit -n {dla} --job-name clijobtest --script "DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO;" --recurrence-name {recurrence_name} --recurrence-id {recurrence_id} --pipeline-name {pipeline_name}') - - # re-submit job with a fully populated relationship - result = self.cmd('dla job submit -n {dla} --job-name clijobtest --script "DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO;" --recurrence-name {recurrence_name} --recurrence-id {recurrence_id} --pipeline-name {pipeline_name} --pipeline-id {pipeline_id} --pipeline-uri {pipeline_uri} --run-id {run_id}', - checks=self.check('name', 'clijobtest')).get_output_in_json() - - # wait for the job to finish - self.kwargs['job_id'] = result['jobId'] - self.cmd('dla job wait -n {dla} --job-id {job_id}', checks=[ - self.check('name', 'clijobtest'), - self.check('result', 'Succeeded'), - self.check('related.recurrenceId', '{recurrence_id}'), - self.check('related.recurrenceName', '{recurrence_name}'), - self.check('related.pipelineId', '{pipeline_id}'), - self.check('related.pipelineName', '{pipeline_name}'), - self.check('related.pipelineUri', '{pipeline_uri}'), - self.check('related.runId', '{run_id}'), - ]) - - # list all jobs - self.cmd('dla job list -n {dla}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 2) - ]) - - # get and list job relationships (recurrence and pipeline) - result = self.cmd('dla job recurrence list -n {dla}').get_output_in_json() - assert isinstance(result, list) - assert len(result) >= 1 - - self.cmd('dla job recurrence show -n {dla} --recurrence-id {recurrence_id}', checks=[ - self.check('recurrenceId', '{recurrence_id}'), - self.check('recurrenceName', '{recurrence_name}'), - ]) - - result = self.cmd('dla job pipeline list -n {dla}').get_output_in_json() - assert isinstance(result, list) - assert len(result) >= 1 - - result = self.cmd('dla job pipeline show -n {dla} --pipeline-id {pipeline_id}', checks=[ - self.check('pipelineId', '{pipeline_id}'), - self.check('pipelineName', '{pipeline_name}'), - self.check('pipelineUri', '{pipeline_uri}'), - ]).get_output_in_json() - - assert isinstance(result['runs'], list) - assert len(result['runs']) >= 1 - - @ResourceGroupPreparer(name_prefix='cli_test_adla_mgmt') - @StorageAccountPreparer(name_prefix='cliwasb', length=12, sku='Standard_GRS') - def test_adla_account_mgmt(self, resource_group, storage_account_info): - - self.kwargs.update({ - 'dls1': self.create_random_name('cliadls', 12), - 'dls2': self.create_random_name('cliadls', 12), - 'dla': self.create_random_name('cliadla', 12), - 'wasb': storage_account_info[0], - 'wasb_key': storage_account_info[1], - 'loc': 'eastus2', - # compute policy variables - 'user_policy': 'pycliuserpolicy', - 'user_oid': '181c08fa-7ac8-48a6-a869-342ab74566a4', # azureclitest - 'group_policy': 'pycligrouppolicy', - 'group_oid': 'f0bec09f-45a4-4c58-ac5b-cf0516d7bc68' # AzureSDKTeam - }) - - # create ADLS accounts - self.cmd('dls account create -g {rg} -n {dls1} -l {loc} --disable-encryption') - self.cmd('dls account create -g {rg} -n {dls2} -l {loc} --disable-encryption') - - # test create keyvault with default access policy set - self.cmd('dla account create -g {rg} -n {dla} -l {loc} --default-data-lake-store {dls1}', checks=[ - self.check('name', '{dla}'), - self.check('location', '{loc}'), - self.check('resourceGroup', '{rg}'), - self.check('defaultDataLakeStoreAccount', '{dls1}'), - self.check('type(dataLakeStoreAccounts)', 'array'), - self.check('length(dataLakeStoreAccounts)', 1), - self.check('maxDegreeOfParallelism', 30), - self.check('maxJobCount', 3), - self.check('queryStoreRetention', 30), - ]) - self.cmd('dla account show -n {dla} -g {rg}', checks=[ - self.check('name', '{dla}'), - self.check('location', '{loc}'), - self.check('resourceGroup', '{rg}'), - self.check('defaultDataLakeStoreAccount', '{dls1}'), - self.check('type(dataLakeStoreAccounts)', 'array'), - self.check('length(dataLakeStoreAccounts)', 1), - self.check('maxDegreeOfParallelism', 30), - self.check('maxJobCount', 3), - self.check('queryStoreRetention', 30), - ]) - self.cmd('dla account list -g {rg}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - self.check('[0].name', '{dla}'), - self.check('[0].location', '{loc}'), - self.check('[0].resourceGroup', '{rg}'), - ]) - result = self.cmd('dla account list').get_output_in_json() - assert isinstance(result, list) - assert len(result) >= 1 - - # test update acct - self.cmd('dla account update -g {rg} -n {dla} --firewall-state Enabled --max-degree-of-parallelism 15 --max-job-count 2 --query-store-retention 15 --allow-azure-ips Enabled') - self.cmd('dla account show -n {dla} -g {rg}', checks=[ - self.check('name', '{dla}'), - self.check('location', '{loc}'), - self.check('resourceGroup', '{rg}'), - self.check('defaultDataLakeStoreAccount', '{dls1}'), - self.check('type(dataLakeStoreAccounts)', 'array'), - self.check('length(dataLakeStoreAccounts)', 1), - self.check('maxDegreeOfParallelism', 15), - self.check('maxJobCount', 2), - self.check('queryStoreRetention', 15) - # TODO: add validation for firewall rules once they are - # live in production. - ]) - - # test wasb add, get delete - self.cmd('dla account blob-storage add -g {rg} -n {dla} --storage-account-name {wasb} --access-key {wasb_key}') - self.cmd('dla account blob-storage show -g {rg} -n {dla} --storage-account-name {wasb}', checks=[ - self.check('name', '{wasb}') - ]) - self.cmd('dla account blob-storage list -g {rg} -n {dla}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - self.cmd('dla account blob-storage delete -g {rg} -n {dla} --storage-account-name {wasb}') - self.cmd('dla account blob-storage list -g {rg} -n {dla}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 0), - ]) - - # test adls acct add get, delete - self.cmd('dla account data-lake-store add -g {rg} -n {dla} --data-lake-store-account-name {dls2}') - self.cmd('dla account data-lake-store show -g {rg} -n {dla} --data-lake-store-account-name {dls2}', checks=[ - self.check('name', '{dls2}') - ]) - self.cmd('dla account data-lake-store list -g {rg} -n {dla}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 2), - ]) - self.cmd('dla account data-lake-store delete -g {rg} -n {dla} --data-lake-store-account-name {dls2}') - self.cmd('dla account data-lake-store list -g {rg} -n {dla}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - - # test compute policy - # assert that it throws if I don't specify either of the policy types - with self.assertRaises(CLIError): - self.cmd('dla account compute-policy create -g {rg} -n {dla} --compute-policy-name {user_policy} --object-id {user_oid} --object-type User') - - self.cmd('dla account compute-policy create -g {rg} -n {dla} --compute-policy-name {user_policy} --object-id {user_oid} --object-type User --max-dop-per-job 2', checks=[ - self.check('name', '{user_policy}'), - self.check('objectId', '{user_oid}'), - self.check('objectType', 'User'), - self.check('maxDegreeOfParallelismPerJob', 2), - ]) - - # get the policy - self.cmd('dla account compute-policy show -g {rg} -n {dla} --compute-policy-name {user_policy}', checks=[ - self.check('name', '{user_policy}'), - self.check('objectId', '{user_oid}'), - self.check('objectType', 'User'), - self.check('maxDegreeOfParallelismPerJob', 2), - self.check('minPriorityPerJob', None), - ]) - - # add the group policy - self.cmd('dla account compute-policy create -g {rg} -n {dla} --compute-policy-name {group_policy} --object-id {group_oid} --object-type Group --max-dop-per-job 2', checks=[ - self.check('name', '{group_policy}'), - self.check('objectId', '{group_oid}'), - self.check('objectType', 'Group'), - self.check('maxDegreeOfParallelismPerJob', 2), - ]) - - # update the user policy - self.cmd('dla account compute-policy update -g {rg} -n {dla} --compute-policy-name {user_policy} --min-priority-per-job 2', checks=[ - self.check('name', '{user_policy}'), - self.check('objectId', '{user_oid}'), - self.check('objectType', 'User'), - self.check('maxDegreeOfParallelismPerJob', 2), - self.check('minPriorityPerJob', 2), - ]) - - # list the policies - self.cmd('dla account compute-policy list -g {rg} -n {dla}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 2), - ]) - - # delete the user policy - self.cmd('dla account compute-policy delete -g {rg} -n {dla} --compute-policy-name {user_policy}') - - # list again and verify there is one less policy - self.cmd('dla account compute-policy list -g {rg} -n {dla}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 1), - ]) - - # test account deletion - self.cmd('dla account delete -g {rg} -n {dla}') - self.cmd('dla account list -g {rg}', checks=[ - self.check('type(@)', 'array'), - self.check('length(@)', 0), - ]) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/__init__.py deleted file mode 100644 index 68ee4bfbbe7..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -# pylint: skip-file -# flake8: noqa diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/__init__.py deleted file mode 100644 index d0fcdd00a3f..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -from .account import DataLakeAnalyticsAccountManagementClient -from .catalog import DataLakeAnalyticsCatalogManagementClient -from .job import DataLakeAnalyticsJobManagementClient - -from .version import VERSION - -__version__ = VERSION - diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/__init__.py deleted file mode 100644 index cf9b64c2000..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .data_lake_analytics_account_management_client import DataLakeAnalyticsAccountManagementClient -from .version import VERSION - -__all__ = ['DataLakeAnalyticsAccountManagementClient'] - -__version__ = VERSION - diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/data_lake_analytics_account_management_client.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/data_lake_analytics_account_management_client.py deleted file mode 100644 index af67d64f38a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/data_lake_analytics_account_management_client.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.compute_policies_operations import ComputePoliciesOperations -from .operations.firewall_rules_operations import FirewallRulesOperations -from .operations.storage_accounts_operations import StorageAccountsOperations -from .operations.data_lake_store_accounts_operations import DataLakeStoreAccountsOperations -from .operations.account_operations import AccountOperations -from . import models - - -class DataLakeAnalyticsAccountManagementClientConfiguration(AzureConfiguration): - """Configuration for DataLakeAnalyticsAccountManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Get subscription credentials which uniquely - identify Microsoft Azure subscription. The subscription ID forms part of - the URI for every service call. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not isinstance(subscription_id, str): - raise TypeError("Parameter 'subscription_id' must be str.") - if not base_url: - base_url = 'https://management.azure.com' - - super(DataLakeAnalyticsAccountManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('datalakeanalyticsaccountmanagementclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - - -class DataLakeAnalyticsAccountManagementClient(object): - """Creates an Azure Data Lake Analytics account management client. - - :ivar config: Configuration for client. - :vartype config: DataLakeAnalyticsAccountManagementClientConfiguration - - :ivar compute_policies: ComputePolicies operations - :vartype compute_policies: azure.mgmt.datalake.analytics.account.operations.ComputePoliciesOperations - :ivar firewall_rules: FirewallRules operations - :vartype firewall_rules: azure.mgmt.datalake.analytics.account.operations.FirewallRulesOperations - :ivar storage_accounts: StorageAccounts operations - :vartype storage_accounts: azure.mgmt.datalake.analytics.account.operations.StorageAccountsOperations - :ivar data_lake_store_accounts: DataLakeStoreAccounts operations - :vartype data_lake_store_accounts: azure.mgmt.datalake.analytics.account.operations.DataLakeStoreAccountsOperations - :ivar account: Account operations - :vartype account: azure.mgmt.datalake.analytics.account.operations.AccountOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Get subscription credentials which uniquely - identify Microsoft Azure subscription. The subscription ID forms part of - the URI for every service call. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = DataLakeAnalyticsAccountManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2016-11-01' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.compute_policies = ComputePoliciesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.firewall_rules = FirewallRulesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.storage_accounts = StorageAccountsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.data_lake_store_accounts = DataLakeStoreAccountsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.account = AccountOperations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/__init__.py deleted file mode 100644 index 873f6b045f4..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/__init__.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .storage_account_info import StorageAccountInfo -from .storage_container import StorageContainer -from .sas_token_info import SasTokenInfo -from .data_lake_store_account_info import DataLakeStoreAccountInfo -from .firewall_rule import FirewallRule -from .compute_policy_account_create_parameters import ComputePolicyAccountCreateParameters -from .compute_policy import ComputePolicy -from .add_data_lake_store_parameters import AddDataLakeStoreParameters -from .add_storage_account_parameters import AddStorageAccountParameters -from .update_storage_account_parameters import UpdateStorageAccountParameters -from .compute_policy_create_or_update_parameters import ComputePolicyCreateOrUpdateParameters -from .data_lake_analytics_account_update_parameters import DataLakeAnalyticsAccountUpdateParameters -from .data_lake_analytics_account_properties_basic import DataLakeAnalyticsAccountPropertiesBasic -from .data_lake_analytics_account_basic import DataLakeAnalyticsAccountBasic -from .data_lake_analytics_account import DataLakeAnalyticsAccount -from .update_firewall_rule_parameters import UpdateFirewallRuleParameters -from .resource import Resource -from .optional_sub_resource import OptionalSubResource -from .sub_resource import SubResource -from .compute_policy_paged import ComputePolicyPaged -from .firewall_rule_paged import FirewallRulePaged -from .storage_container_paged import StorageContainerPaged -from .sas_token_info_paged import SasTokenInfoPaged -from .storage_account_info_paged import StorageAccountInfoPaged -from .data_lake_store_account_info_paged import DataLakeStoreAccountInfoPaged -from .data_lake_analytics_account_basic_paged import DataLakeAnalyticsAccountBasicPaged -from .data_lake_analytics_account_management_client_enums import ( - TierType, - FirewallState, - FirewallAllowAzureIpsState, - AADObjectType, - DataLakeAnalyticsAccountStatus, - DataLakeAnalyticsAccountState, -) - -__all__ = [ - 'StorageAccountInfo', - 'StorageContainer', - 'SasTokenInfo', - 'DataLakeStoreAccountInfo', - 'FirewallRule', - 'ComputePolicyAccountCreateParameters', - 'ComputePolicy', - 'AddDataLakeStoreParameters', - 'AddStorageAccountParameters', - 'UpdateStorageAccountParameters', - 'ComputePolicyCreateOrUpdateParameters', - 'DataLakeAnalyticsAccountUpdateParameters', - 'DataLakeAnalyticsAccountPropertiesBasic', - 'DataLakeAnalyticsAccountBasic', - 'DataLakeAnalyticsAccount', - 'UpdateFirewallRuleParameters', - 'Resource', - 'OptionalSubResource', - 'SubResource', - 'ComputePolicyPaged', - 'FirewallRulePaged', - 'StorageContainerPaged', - 'SasTokenInfoPaged', - 'StorageAccountInfoPaged', - 'DataLakeStoreAccountInfoPaged', - 'DataLakeAnalyticsAccountBasicPaged', - 'TierType', - 'FirewallState', - 'FirewallAllowAzureIpsState', - 'AADObjectType', - 'DataLakeAnalyticsAccountStatus', - 'DataLakeAnalyticsAccountState', -] diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/add_data_lake_store_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/add_data_lake_store_parameters.py deleted file mode 100644 index 5453e3da739..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/add_data_lake_store_parameters.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AddDataLakeStoreParameters(Model): - """Additional Data Lake Store parameters. - - :param suffix: the optional suffix for the Data Lake Store account. - :type suffix: str - """ - - _attribute_map = { - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, suffix=None): - self.suffix = suffix diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/add_storage_account_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/add_storage_account_parameters.py deleted file mode 100644 index 957513bb71e..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/add_storage_account_parameters.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AddStorageAccountParameters(Model): - """Storage account parameters for a storage account being added to a Data Lake - Analytics account. - - :param access_key: the access key associated with this Azure Storage - account that will be used to connect to it. - :type access_key: str - :param suffix: the optional suffix for the storage account. - :type suffix: str - """ - - _validation = { - 'access_key': {'required': True}, - } - - _attribute_map = { - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, access_key, suffix=None): - self.access_key = access_key - self.suffix = suffix diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy.py deleted file mode 100644 index 107da8fb74d..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ComputePolicy(Model): - """The parameters used to create a new compute policy. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The name of the compute policy - :vartype name: str - :ivar object_id: The AAD object identifier for the entity to create a - policy for. - :vartype object_id: str - :ivar object_type: The type of AAD object the object identifier refers to. - Possible values include: 'User', 'Group', 'ServicePrincipal' - :vartype object_type: str or :class:`AADObjectType - ` - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. - :type min_priority_per_job: int - """ - - _validation = { - 'name': {'readonly': True}, - 'object_id': {'readonly': True}, - 'object_type': {'readonly': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, max_degree_of_parallelism_per_job=None, min_priority_per_job=None): - self.name = None - self.object_id = None - self.object_type = None - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_account_create_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_account_create_parameters.py deleted file mode 100644 index 9bb85f34de5..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_account_create_parameters.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ComputePolicyAccountCreateParameters(Model): - """The parameters used to create a new compute policy. - - :param name: The unique name of the policy to create - :type name: str - :param object_id: The AAD object identifier for the entity to create a - policy for. - :type object_id: str - :param object_type: The type of AAD object the object identifier refers - to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or :class:`AADObjectType - ` - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'name': {'required': True}, - 'object_id': {'required': True}, - 'object_type': {'required': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, name, object_id, object_type, max_degree_of_parallelism_per_job=None, min_priority_per_job=None): - self.name = name - self.object_id = object_id - self.object_type = object_type - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_create_or_update_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_create_or_update_parameters.py deleted file mode 100644 index 2a711a2166f..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_create_or_update_parameters.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ComputePolicyCreateOrUpdateParameters(Model): - """The parameters used to create a new compute policy. - - :param object_id: The AAD object identifier for the entity to create a - policy for. - :type object_id: str - :param object_type: The type of AAD object the object identifier refers - to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or :class:`AADObjectType - ` - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'object_id': {'required': True}, - 'object_type': {'required': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, object_id, object_type, max_degree_of_parallelism_per_job=None, min_priority_per_job=None): - self.object_id = object_id - self.object_type = object_type - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_paged.py deleted file mode 100644 index 3cd24ed75e1..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/compute_policy_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ComputePolicyPaged(Paged): - """ - A paging container for iterating over a list of :class:`ComputePolicy ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ComputePolicy]'} - } - - def __init__(self, *args, **kwargs): - - super(ComputePolicyPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account.py deleted file mode 100644 index 28708bcd73a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class DataLakeAnalyticsAccount(Resource): - """A Data Lake Analytics account object, containing all information associated - with the named Data Lake Analytics account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict - :ivar provisioning_state: the provisioning status of the Data Lake - Analytics account. Possible values include: 'Failed', 'Creating', - 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', - 'Deleted' - :vartype provisioning_state: str or :class:`DataLakeAnalyticsAccountStatus - ` - :ivar state: the state of the Data Lake Analytics account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or :class:`DataLakeAnalyticsAccountState - ` - :ivar creation_time: the account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: the account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: the full CName endpoint for this account. - :vartype endpoint: str - :ivar account_id: The unique identifier associated with this Data Lake - Analytics account. - :vartype account_id: str - :param default_data_lake_store_account: the default data lake storage - account associated with this Data Lake Analytics account. - :type default_data_lake_store_account: str - :param max_degree_of_parallelism: the maximum supported degree of - parallelism for this account. Default value: 30 . - :type max_degree_of_parallelism: int - :param query_store_retention: the number of days that job metadata is - retained. Default value: 30 . - :type query_store_retention: int - :param max_job_count: the maximum supported jobs running under the account - at the same time. Default value: 3 . - :type max_job_count: int - :ivar system_max_degree_of_parallelism: the system defined maximum - supported degree of parallelism for this account, which restricts the - maximum value of parallelism the user can set for the account.. - :vartype system_max_degree_of_parallelism: int - :ivar system_max_job_count: the system defined maximum supported jobs - running under the account at the same time, which restricts the maximum - number of running jobs the user can set for the account. - :vartype system_max_job_count: int - :param data_lake_store_accounts: the list of Data Lake storage accounts - associated with this account. - :type data_lake_store_accounts: list of :class:`DataLakeStoreAccountInfo - ` - :param storage_accounts: the list of Azure Blob storage accounts - associated with this account. - :type storage_accounts: list of :class:`StorageAccountInfo - ` - :param new_tier: the commitment tier for the next month. Possible values - include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', - 'Commitment_1000AUHours', 'Commitment_5000AUHours', - 'Commitment_10000AUHours', 'Commitment_50000AUHours', - 'Commitment_100000AUHours', 'Commitment_500000AUHours' - :type new_tier: str or :class:`TierType - ` - :ivar current_tier: the commitment tier in use for the current month. - Possible values include: 'Consumption', 'Commitment_100AUHours', - 'Commitment_500AUHours', 'Commitment_1000AUHours', - 'Commitment_5000AUHours', 'Commitment_10000AUHours', - 'Commitment_50000AUHours', 'Commitment_100000AUHours', - 'Commitment_500000AUHours' - :vartype current_tier: str or :class:`TierType - ` - :param firewall_state: The current state of the IP address firewall for - this Data Lake Analytics account. Possible values include: 'Enabled', - 'Disabled' - :type firewall_state: str or :class:`FirewallState - ` - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or :class:`FirewallAllowAzureIpsState - ` - :param firewall_rules: The list of firewall rules associated with this - Data Lake Analytics account. - :type firewall_rules: list of :class:`FirewallRule - ` - :param max_degree_of_parallelism_per_job: the maximum supported degree of - parallelism per job for this account. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: the minimum supported priority per job for - this account. - :type min_priority_per_job: int - :param compute_policies: the list of compute policies to create in this - account. - :type compute_policies: list of - :class:`ComputePolicyAccountCreateParameters - ` - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'readonly': True}, - 'account_id': {'readonly': True}, - 'default_data_lake_store_account': {'required': True}, - 'max_degree_of_parallelism': {'minimum': 1}, - 'query_store_retention': {'maximum': 180, 'minimum': 1}, - 'max_job_count': {'minimum': 1}, - 'system_max_degree_of_parallelism': {'readonly': True}, - 'system_max_job_count': {'readonly': True}, - 'data_lake_store_accounts': {'required': True}, - 'current_tier': {'readonly': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - 'default_data_lake_store_account': {'key': 'properties.defaultDataLakeStoreAccount', 'type': 'str'}, - 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, - 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, - 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, - 'system_max_degree_of_parallelism': {'key': 'properties.systemMaxDegreeOfParallelism', 'type': 'int'}, - 'system_max_job_count': {'key': 'properties.systemMaxJobCount', 'type': 'int'}, - 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[DataLakeStoreAccountInfo]'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccountInfo]'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'current_tier': {'key': 'properties.currentTier', 'type': 'TierType'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - 'compute_policies': {'key': 'properties.computePolicies', 'type': '[ComputePolicyAccountCreateParameters]'}, - } - - def __init__(self, location, default_data_lake_store_account, data_lake_store_accounts, tags=None, max_degree_of_parallelism=30, query_store_retention=30, max_job_count=3, storage_accounts=None, new_tier=None, firewall_state=None, firewall_allow_azure_ips=None, firewall_rules=None, max_degree_of_parallelism_per_job=None, min_priority_per_job=None, compute_policies=None): - super(DataLakeAnalyticsAccount, self).__init__(location=location, tags=tags) - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None - self.account_id = None - self.default_data_lake_store_account = default_data_lake_store_account - self.max_degree_of_parallelism = max_degree_of_parallelism - self.query_store_retention = query_store_retention - self.max_job_count = max_job_count - self.system_max_degree_of_parallelism = None - self.system_max_job_count = None - self.data_lake_store_accounts = data_lake_store_accounts - self.storage_accounts = storage_accounts - self.new_tier = new_tier - self.current_tier = None - self.firewall_state = firewall_state - self.firewall_allow_azure_ips = firewall_allow_azure_ips - self.firewall_rules = firewall_rules - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job - self.compute_policies = compute_policies diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_basic.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_basic.py deleted file mode 100644 index 61b694f43d5..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_basic.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class DataLakeAnalyticsAccountBasic(Resource): - """A Data Lake Analytics account object, containing all information associated - with the named Data Lake Analytics account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict - :ivar provisioning_state: the provisioning status of the Data Lake - Analytics account. Possible values include: 'Failed', 'Creating', - 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', - 'Deleted' - :vartype provisioning_state: str or :class:`DataLakeAnalyticsAccountStatus - ` - :ivar state: the state of the Data Lake Analytics account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or :class:`DataLakeAnalyticsAccountState - ` - :ivar creation_time: the account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: the account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: the full CName endpoint for this account. - :vartype endpoint: str - :ivar account_id: The unique identifier associated with this Data Lake - Analytics account. - :vartype account_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'readonly': True}, - 'account_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - } - - def __init__(self, location, tags=None): - super(DataLakeAnalyticsAccountBasic, self).__init__(location=location, tags=tags) - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None - self.account_id = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_basic_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_basic_paged.py deleted file mode 100644 index 279867b941e..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_basic_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DataLakeAnalyticsAccountBasicPaged(Paged): - """ - A paging container for iterating over a list of :class:`DataLakeAnalyticsAccountBasic ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DataLakeAnalyticsAccountBasic]'} - } - - def __init__(self, *args, **kwargs): - - super(DataLakeAnalyticsAccountBasicPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_management_client_enums.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_management_client_enums.py deleted file mode 100644 index ed4a500305c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_management_client_enums.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class TierType(Enum): - - consumption = "Consumption" - commitment_100_au_hours = "Commitment_100AUHours" - commitment_500_au_hours = "Commitment_500AUHours" - commitment_1000_au_hours = "Commitment_1000AUHours" - commitment_5000_au_hours = "Commitment_5000AUHours" - commitment_10000_au_hours = "Commitment_10000AUHours" - commitment_50000_au_hours = "Commitment_50000AUHours" - commitment_100000_au_hours = "Commitment_100000AUHours" - commitment_500000_au_hours = "Commitment_500000AUHours" - - -class FirewallState(Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class FirewallAllowAzureIpsState(Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class AADObjectType(Enum): - - user = "User" - group = "Group" - service_principal = "ServicePrincipal" - - -class DataLakeAnalyticsAccountStatus(Enum): - - failed = "Failed" - creating = "Creating" - running = "Running" - succeeded = "Succeeded" - patching = "Patching" - suspending = "Suspending" - resuming = "Resuming" - deleting = "Deleting" - deleted = "Deleted" - - -class DataLakeAnalyticsAccountState(Enum): - - active = "Active" - suspended = "Suspended" diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_properties_basic.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_properties_basic.py deleted file mode 100644 index 9cfae99acc4..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_properties_basic.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataLakeAnalyticsAccountPropertiesBasic(Model): - """The basic account specific properties that are associated with an - underlying Data Lake Analytics account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: the provisioning status of the Data Lake - Analytics account. Possible values include: 'Failed', 'Creating', - 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', - 'Deleted' - :vartype provisioning_state: str or :class:`DataLakeAnalyticsAccountStatus - ` - :ivar state: the state of the Data Lake Analytics account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or :class:`DataLakeAnalyticsAccountState - ` - :ivar creation_time: the account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: the account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: the full CName endpoint for this account. - :vartype endpoint: str - :ivar account_id: The unique identifier associated with this Data Lake - Analytics account. - :vartype account_id: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'readonly': True}, - 'account_id': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, - 'state': {'key': 'state', 'type': 'DataLakeAnalyticsAccountState'}, - 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - } - - def __init__(self): - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None - self.account_id = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_update_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_update_parameters.py deleted file mode 100644 index 4d9f461391d..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_analytics_account_update_parameters.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataLakeAnalyticsAccountUpdateParameters(Model): - """The parameters that can be used to update an existing Data Lake Analytics - account. - - :param tags: Resource tags - :type tags: dict - :param max_degree_of_parallelism: the maximum supported degree of - parallelism for this account. - :type max_degree_of_parallelism: int - :param query_store_retention: the number of days that job metadata is - retained. - :type query_store_retention: int - :param max_job_count: the maximum supported jobs running under the account - at the same time. - :type max_job_count: int - :param new_tier: the commitment tier to use for next month. Possible - values include: 'Consumption', 'Commitment_100AUHours', - 'Commitment_500AUHours', 'Commitment_1000AUHours', - 'Commitment_5000AUHours', 'Commitment_10000AUHours', - 'Commitment_50000AUHours', 'Commitment_100000AUHours', - 'Commitment_500000AUHours' - :type new_tier: str or :class:`TierType - ` - :param firewall_state: The current state of the IP address firewall for - this Data Lake Analytics account. Possible values include: 'Enabled', - 'Disabled' - :type firewall_state: str or :class:`FirewallState - ` - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or :class:`FirewallAllowAzureIpsState - ` - :param firewall_rules: The list of firewall rules associated with this - Data Lake Analytics account. - :type firewall_rules: list of :class:`FirewallRule - ` - :param max_degree_of_parallelism_per_job: the maximum supported degree of - parallelism per job for this account. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: the minimum supported priority per job for - this account. - :type min_priority_per_job: int - :param compute_policies: the list of existing compute policies to update - in this account. - :type compute_policies: list of :class:`ComputePolicy - ` - """ - - _validation = { - 'max_degree_of_parallelism': {'minimum': 1}, - 'query_store_retention': {'maximum': 180, 'minimum': 1}, - 'max_job_count': {'minimum': 1}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, - 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, - 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - 'compute_policies': {'key': 'properties.computePolicies', 'type': '[ComputePolicy]'}, - } - - def __init__(self, tags=None, max_degree_of_parallelism=None, query_store_retention=None, max_job_count=None, new_tier=None, firewall_state=None, firewall_allow_azure_ips=None, firewall_rules=None, max_degree_of_parallelism_per_job=None, min_priority_per_job=None, compute_policies=None): - self.tags = tags - self.max_degree_of_parallelism = max_degree_of_parallelism - self.query_store_retention = query_store_retention - self.max_job_count = max_job_count - self.new_tier = new_tier - self.firewall_state = firewall_state - self.firewall_allow_azure_ips = firewall_allow_azure_ips - self.firewall_rules = firewall_rules - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job - self.compute_policies = compute_policies diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_store_account_info.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_store_account_info.py deleted file mode 100644 index 7edb5f34586..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_store_account_info.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class DataLakeStoreAccountInfo(SubResource): - """Data Lake Store account information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :param name: Resource name - :type name: str - :ivar type: Resource type - :vartype type: str - :param suffix: the optional suffix for the Data Lake Store account. - :type suffix: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, name, suffix=None): - super(DataLakeStoreAccountInfo, self).__init__(name=name) - self.suffix = suffix diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_store_account_info_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_store_account_info_paged.py deleted file mode 100644 index e3f82dc99f3..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/data_lake_store_account_info_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DataLakeStoreAccountInfoPaged(Paged): - """ - A paging container for iterating over a list of :class:`DataLakeStoreAccountInfo ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DataLakeStoreAccountInfo]'} - } - - def __init__(self, *args, **kwargs): - - super(DataLakeStoreAccountInfoPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/firewall_rule.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/firewall_rule.py deleted file mode 100644 index a8c56398f0e..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/firewall_rule.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .optional_sub_resource import OptionalSubResource - - -class FirewallRule(OptionalSubResource): - """Data Lake Analytics firewall rule information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :param name: Resource name - :type name: str - :ivar type: Resource type - :vartype type: str - :param start_ip_address: the start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: the end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'start_ip_address': {'required': True}, - 'end_ip_address': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, start_ip_address, end_ip_address, name=None): - super(FirewallRule, self).__init__(name=name) - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/firewall_rule_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/firewall_rule_paged.py deleted file mode 100644 index 20614418048..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/firewall_rule_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class FirewallRulePaged(Paged): - """ - A paging container for iterating over a list of :class:`FirewallRule ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[FirewallRule]'} - } - - def __init__(self, *args, **kwargs): - - super(FirewallRulePaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/optional_sub_resource.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/optional_sub_resource.py deleted file mode 100644 index c2f462fb376..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/optional_sub_resource.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OptionalSubResource(Model): - """The Resource model definition for a nested resource with no required - properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :param name: Resource name - :type name: str - :ivar type: Resource type - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, name=None): - self.id = None - self.name = name - self.type = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/resource.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/resource.py deleted file mode 100644 index 18861c15a8b..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """The Resource model definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, location, tags=None): - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sas_token_info.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sas_token_info.py deleted file mode 100644 index 7c7e2dfa277..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sas_token_info.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SasTokenInfo(Model): - """SAS token information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar access_token: the access token for the associated Azure Storage - Container. - :vartype access_token: str - """ - - _validation = { - 'access_token': {'readonly': True}, - } - - _attribute_map = { - 'access_token': {'key': 'accessToken', 'type': 'str'}, - } - - def __init__(self): - self.access_token = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sas_token_info_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sas_token_info_paged.py deleted file mode 100644 index 42eb70a3150..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sas_token_info_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class SasTokenInfoPaged(Paged): - """ - A paging container for iterating over a list of :class:`SasTokenInfo ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SasTokenInfo]'} - } - - def __init__(self, *args, **kwargs): - - super(SasTokenInfoPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_account_info.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_account_info.py deleted file mode 100644 index fbbc04119b2..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_account_info.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class StorageAccountInfo(SubResource): - """Azure Storage account information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :param name: Resource name - :type name: str - :ivar type: Resource type - :vartype type: str - :param access_key: the access key associated with this Azure Storage - account that will be used to connect to it. - :type access_key: str - :param suffix: the optional suffix for the storage account. - :type suffix: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - 'type': {'readonly': True}, - 'access_key': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, name, access_key, suffix=None): - super(StorageAccountInfo, self).__init__(name=name) - self.access_key = access_key - self.suffix = suffix diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_account_info_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_account_info_paged.py deleted file mode 100644 index ed2c0704083..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_account_info_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class StorageAccountInfoPaged(Paged): - """ - A paging container for iterating over a list of :class:`StorageAccountInfo ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[StorageAccountInfo]'} - } - - def __init__(self, *args, **kwargs): - - super(StorageAccountInfoPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_container.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_container.py deleted file mode 100644 index 7280a7e2f18..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_container.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageContainer(Model): - """Azure Storage blob container information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: the unique identifier of the blob container. - :vartype id: str - :ivar name: the name of the blob container. - :vartype name: str - :ivar type: the type of the blob container. - :vartype type: str - :ivar last_modified_time: the last modified time of the blob container. - :vartype last_modified_time: datetime - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - } - - def __init__(self): - self.id = None - self.name = None - self.type = None - self.last_modified_time = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_container_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_container_paged.py deleted file mode 100644 index c18b0555a33..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/storage_container_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class StorageContainerPaged(Paged): - """ - A paging container for iterating over a list of :class:`StorageContainer ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[StorageContainer]'} - } - - def __init__(self, *args, **kwargs): - - super(StorageContainerPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sub_resource.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sub_resource.py deleted file mode 100644 index 101d908394c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/sub_resource.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """The Sub Resource model definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :param name: Resource name - :type name: str - :ivar type: Resource type - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, name): - self.id = None - self.name = name - self.type = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/update_firewall_rule_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/update_firewall_rule_parameters.py deleted file mode 100644 index 430c4987446..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/update_firewall_rule_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateFirewallRuleParameters(Model): - """Data Lake Analytics firewall rule update parameters. - - :param start_ip_address: the start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: the end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _attribute_map = { - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, start_ip_address=None, end_ip_address=None): - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/update_storage_account_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/update_storage_account_parameters.py deleted file mode 100644 index df778702bf2..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/models/update_storage_account_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateStorageAccountParameters(Model): - """Storage account parameters for a storage account being updated in a Data - Lake Analytics account. - - :param access_key: the updated access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: the optional suffix for the storage account. - :type suffix: str - """ - - _attribute_map = { - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, access_key=None, suffix=None): - self.access_key = access_key - self.suffix = suffix diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/__init__.py deleted file mode 100644 index cceba2aec10..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .compute_policies_operations import ComputePoliciesOperations -from .firewall_rules_operations import FirewallRulesOperations -from .storage_accounts_operations import StorageAccountsOperations -from .data_lake_store_accounts_operations import DataLakeStoreAccountsOperations -from .account_operations import AccountOperations - -__all__ = [ - 'ComputePoliciesOperations', - 'FirewallRulesOperations', - 'StorageAccountsOperations', - 'DataLakeStoreAccountsOperations', - 'AccountOperations', -] diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/account_operations.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/account_operations.py deleted file mode 100644 index 54ceca3684b..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/account_operations.py +++ /dev/null @@ -1,595 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -from msrestazure.azure_operation import AzureOperationPoller - -from .. import models - - -class AccountOperations(object): - """AccountOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-11-01". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-11-01" - - self.config = config - - def list_by_resource_group( - self, resource_group_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Gets the first page of Data Lake Analytics accounts, if any, within a - specific resource group. This includes a link to the next page, if any. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of - :class:`DataLakeAnalyticsAccountBasic - ` - :rtype: :class:`DataLakeAnalyticsAccountBasicPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list( - self, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Gets the first page of Data Lake Analytics accounts, if any, within the - current subscription. This includes a link to the next page, if any. - - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of - :class:`DataLakeAnalyticsAccountBasic - ` - :rtype: :class:`DataLakeAnalyticsAccountBasicPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create( - self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates the specified Data Lake Analytics account. This supplies the - user with computation services for Data Lake Analytics workloads. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account.the account will be - associated with. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - create. - :type account_name: str - :param parameters: Parameters supplied to the create Data Lake - Analytics account operation. - :type parameters: :class:`DataLakeAnalyticsAccount - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: - :class:`AzureOperationPoller` - instance that returns :class:`DataLakeAnalyticsAccount - ` - or :class:`ClientRawResponse` if - raw=true - :rtype: - :class:`AzureOperationPoller` - or :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'DataLakeAnalyticsAccount') - - # Construct and send request - def long_running_send(): - - request = self._client.put(url, query_parameters) - return self._client.send( - request, header_parameters, body_content, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [200, 201]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DataLakeAnalyticsAccount', response) - if response.status_code == 201: - deserialized = self._deserialize('DataLakeAnalyticsAccount', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) - - def update( - self, resource_group_name, account_name, parameters=None, custom_headers=None, raw=False, **operation_config): - """Updates the Data Lake Analytics account object specified by the - accountName with the contents of the account object. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - update. - :type account_name: str - :param parameters: Parameters supplied to the update Data Lake - Analytics account operation. - :type parameters: :class:`DataLakeAnalyticsAccountUpdateParameters - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: - :class:`AzureOperationPoller` - instance that returns :class:`DataLakeAnalyticsAccount - ` - or :class:`ClientRawResponse` if - raw=true - :rtype: - :class:`AzureOperationPoller` - or :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if parameters is not None: - body_content = self._serialize.body(parameters, 'DataLakeAnalyticsAccountUpdateParameters') - else: - body_content = None - - # Construct and send request - def long_running_send(): - - request = self._client.patch(url, query_parameters) - return self._client.send( - request, header_parameters, body_content, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [200, 201]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DataLakeAnalyticsAccount', response) - if response.status_code == 201: - deserialized = self._deserialize('DataLakeAnalyticsAccount', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) - - def delete( - self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): - """Begins the delete process for the Data Lake Analytics account object - specified by the account name. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - delete - :type account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: - :class:`AzureOperationPoller` - instance that returns None or - :class:`ClientRawResponse` if - raw=true - :rtype: - :class:`AzureOperationPoller` - or :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - def long_running_send(): - - request = self._client.delete(url, query_parameters) - return self._client.send(request, header_parameters, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [200, 202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) - - def get( - self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): - """Gets details of the specified Data Lake Analytics account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - retrieve. - :type account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`DataLakeAnalyticsAccount - ` - or :class:`ClientRawResponse` if - raw=true - :rtype: :class:`DataLakeAnalyticsAccount - ` - or :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DataLakeAnalyticsAccount', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/compute_policies_operations.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/compute_policies_operations.py deleted file mode 100644 index 1dae436a6af..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/compute_policies_operations.py +++ /dev/null @@ -1,412 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ComputePoliciesOperations(object): - """ComputePoliciesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-11-01". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-11-01" - - self.config = config - - def create_or_update( - self, resource_group_name, account_name, compute_policy_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates or updates the specified compute policy. During update, the - compute policy with the specified name will be replaced with this new - compute policy. An account supports, at most, 50 policies. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - add or replace the compute policy. - :type account_name: str - :param compute_policy_name: The name of the compute policy to create - or update. - :type compute_policy_name: str - :param parameters: Parameters supplied to create or update the compute - policy. The max degree of parallelism per job property, min priority - per job property, or both must be present. - :type parameters: :class:`ComputePolicyCreateOrUpdateParameters - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`ComputePolicy - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`ComputePolicy - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'computePolicyName': self._serialize.url("compute_policy_name", compute_policy_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ComputePolicyCreateOrUpdateParameters') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ComputePolicy', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, account_name, compute_policy_name, max_degree_of_parallelism_per_job=None, min_priority_per_job=None, custom_headers=None, raw=False, **operation_config): - """Updates the specified compute policy. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - which to update the compute policy. - :type account_name: str - :param compute_policy_name: The name of the compute policy to update. - :type compute_policy_name: str - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user - can use to submit jobs. - :type min_priority_per_job: int - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`ComputePolicy - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`ComputePolicy - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - parameters = None - if max_degree_of_parallelism_per_job is not None or min_priority_per_job is not None: - parameters = models.ComputePolicy(max_degree_of_parallelism_per_job=max_degree_of_parallelism_per_job, min_priority_per_job=min_priority_per_job) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'computePolicyName': self._serialize.url("compute_policy_name", compute_policy_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if parameters is not None: - body_content = self._serialize.body(parameters, 'ComputePolicy') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ComputePolicy', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, account_name, compute_policy_name, custom_headers=None, raw=False, **operation_config): - """Deletes the specified compute policy from the specified Data Lake - Analytics account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to delete the compute policy. - :type account_name: str - :param compute_policy_name: The name of the compute policy to delete. - :type compute_policy_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'computePolicyName': self._serialize.url("compute_policy_name", compute_policy_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, account_name, compute_policy_name, custom_headers=None, raw=False, **operation_config): - """Gets the specified Data Lake Analytics compute policy. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to get the compute policy. - :type account_name: str - :param compute_policy_name: The name of the compute policy to - retrieve. - :type compute_policy_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`ComputePolicy - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`ComputePolicy - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'computePolicyName': self._serialize.url("compute_policy_name", compute_policy_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ComputePolicy', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_by_account( - self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): - """Lists the Data Lake Analytics compute policies within the specified - Data Lake Analytics account. An account supports, at most, 50 policies. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to get the compute policies. - :type account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`ComputePolicy - ` - :rtype: :class:`ComputePolicyPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ComputePolicyPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ComputePolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/data_lake_store_accounts_operations.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/data_lake_store_accounts_operations.py deleted file mode 100644 index e7146df9c79..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/data_lake_store_accounts_operations.py +++ /dev/null @@ -1,354 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class DataLakeStoreAccountsOperations(object): - """DataLakeStoreAccountsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-11-01". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-11-01" - - self.config = config - - def add( - self, resource_group_name, account_name, data_lake_store_account_name, suffix=None, custom_headers=None, raw=False, **operation_config): - """Updates the specified Data Lake Analytics account to include the - additional Data Lake Store account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - which to add the Data Lake Store account. - :type account_name: str - :param data_lake_store_account_name: The name of the Data Lake Store - account to add. - :type data_lake_store_account_name: str - :param suffix: the optional suffix for the Data Lake Store account. - :type suffix: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - parameters = None - if suffix is not None: - parameters = models.AddDataLakeStoreParameters(suffix=suffix) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'dataLakeStoreAccountName': self._serialize.url("data_lake_store_account_name", data_lake_store_account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if parameters is not None: - body_content = self._serialize.body(parameters, 'AddDataLakeStoreParameters') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, account_name, data_lake_store_account_name, custom_headers=None, raw=False, **operation_config): - """Updates the Data Lake Analytics account specified to remove the - specified Data Lake Store account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to remove the Data Lake Store account. - :type account_name: str - :param data_lake_store_account_name: The name of the Data Lake Store - account to remove - :type data_lake_store_account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'dataLakeStoreAccountName': self._serialize.url("data_lake_store_account_name", data_lake_store_account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, account_name, data_lake_store_account_name, custom_headers=None, raw=False, **operation_config): - """Gets the specified Data Lake Store account details in the specified - Data Lake Analytics account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to retrieve the Data Lake Store account details. - :type account_name: str - :param data_lake_store_account_name: The name of the Data Lake Store - account to retrieve - :type data_lake_store_account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`DataLakeStoreAccountInfo - ` - or :class:`ClientRawResponse` if - raw=true - :rtype: :class:`DataLakeStoreAccountInfo - ` - or :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'dataLakeStoreAccountName': self._serialize.url("data_lake_store_account_name", data_lake_store_account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DataLakeStoreAccountInfo', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_by_account( - self, resource_group_name, account_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Gets the first page of Data Lake Store accounts linked to the specified - Data Lake Analytics account. The response includes a link to the next - page, if any. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account for - which to list Data Lake Store accounts. - :type account_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`DataLakeStoreAccountInfo - ` - :rtype: :class:`DataLakeStoreAccountInfoPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.DataLakeStoreAccountInfoPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.DataLakeStoreAccountInfoPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/firewall_rules_operations.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/firewall_rules_operations.py deleted file mode 100644 index abe419d78f8..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/firewall_rules_operations.py +++ /dev/null @@ -1,412 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class FirewallRulesOperations(object): - """FirewallRulesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-11-01". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-11-01" - - self.config = config - - def create_or_update( - self, resource_group_name, account_name, firewall_rule_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates or updates the specified firewall rule. During update, the - firewall rule with the specified name will be replaced with this new - firewall rule. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - add or replace the firewall rule. - :type account_name: str - :param firewall_rule_name: The name of the firewall rule to create or - update. - :type firewall_rule_name: str - :param parameters: Parameters supplied to create or update the - firewall rule. - :type parameters: :class:`FirewallRule - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`FirewallRule - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`FirewallRule - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'FirewallRule') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('FirewallRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, account_name, firewall_rule_name, start_ip_address=None, end_ip_address=None, custom_headers=None, raw=False, **operation_config): - """Updates the specified firewall rule. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - which to update the firewall rule. - :type account_name: str - :param firewall_rule_name: The name of the firewall rule to update. - :type firewall_rule_name: str - :param start_ip_address: the start IP address for the firewall rule. - This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type start_ip_address: str - :param end_ip_address: the end IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type end_ip_address: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`FirewallRule - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`FirewallRule - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - parameters = None - if start_ip_address is not None or end_ip_address is not None: - parameters = models.UpdateFirewallRuleParameters(start_ip_address=start_ip_address, end_ip_address=end_ip_address) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if parameters is not None: - body_content = self._serialize.body(parameters, 'UpdateFirewallRuleParameters') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('FirewallRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, account_name, firewall_rule_name, custom_headers=None, raw=False, **operation_config): - """Deletes the specified firewall rule from the specified Data Lake - Analytics account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to delete the firewall rule. - :type account_name: str - :param firewall_rule_name: The name of the firewall rule to delete. - :type firewall_rule_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, account_name, firewall_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets the specified Data Lake Analytics firewall rule. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to get the firewall rule. - :type account_name: str - :param firewall_rule_name: The name of the firewall rule to retrieve. - :type firewall_rule_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`FirewallRule - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`FirewallRule - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('FirewallRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_by_account( - self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): - """Lists the Data Lake Analytics firewall rules within the specified Data - Lake Analytics account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to get the firewall rules. - :type account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`FirewallRule - ` - :rtype: :class:`FirewallRulePaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.FirewallRulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.FirewallRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/storage_accounts_operations.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/storage_accounts_operations.py deleted file mode 100644 index 76481dbb529..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/operations/storage_accounts_operations.py +++ /dev/null @@ -1,667 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class StorageAccountsOperations(object): - """StorageAccountsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-11-01". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-11-01" - - self.config = config - - def add( - self, resource_group_name, account_name, storage_account_name, access_key, suffix=None, custom_headers=None, raw=False, **operation_config): - """Updates the specified Data Lake Analytics account to add an Azure - Storage account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - which to add the Azure Storage account. - :type account_name: str - :param storage_account_name: The name of the Azure Storage account to - add - :type storage_account_name: str - :param access_key: the access key associated with this Azure Storage - account that will be used to connect to it. - :type access_key: str - :param suffix: the optional suffix for the storage account. - :type suffix: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - parameters = models.AddStorageAccountParameters(access_key=access_key, suffix=suffix) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'storageAccountName': self._serialize.url("storage_account_name", storage_account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'AddStorageAccountParameters') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def update( - self, resource_group_name, account_name, storage_account_name, access_key=None, suffix=None, custom_headers=None, raw=False, **operation_config): - """Updates the Data Lake Analytics account to replace Azure Storage blob - account details, such as the access key and/or suffix. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account to - modify storage accounts in - :type account_name: str - :param storage_account_name: The Azure Storage account to modify - :type storage_account_name: str - :param access_key: the updated access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: the optional suffix for the storage account. - :type suffix: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - parameters = None - if access_key is not None or suffix is not None: - parameters = models.UpdateStorageAccountParameters(access_key=access_key, suffix=suffix) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'storageAccountName': self._serialize.url("storage_account_name", storage_account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if parameters is not None: - body_content = self._serialize.body(parameters, 'UpdateStorageAccountParameters') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, account_name, storage_account_name, custom_headers=None, raw=False, **operation_config): - """Updates the specified Data Lake Analytics account to remove an Azure - Storage account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to remove the Azure Storage account. - :type account_name: str - :param storage_account_name: The name of the Azure Storage account to - remove - :type storage_account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'storageAccountName': self._serialize.url("storage_account_name", storage_account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, account_name, storage_account_name, custom_headers=None, raw=False, **operation_config): - """Gets the specified Azure Storage account linked to the given Data Lake - Analytics account. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which to retrieve Azure storage account details. - :type account_name: str - :param storage_account_name: The name of the Azure Storage account for - which to retrieve the details. - :type storage_account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`StorageAccountInfo - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`StorageAccountInfo - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'storageAccountName': self._serialize.url("storage_account_name", storage_account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('StorageAccountInfo', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_storage_container( - self, resource_group_name, account_name, storage_account_name, container_name, custom_headers=None, raw=False, **operation_config): - """Gets the specified Azure Storage container associated with the given - Data Lake Analytics and Azure Storage accounts. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account for - which to retrieve blob container. - :type account_name: str - :param storage_account_name: The name of the Azure storage account - from which to retrieve the blob container. - :type storage_account_name: str - :param container_name: The name of the Azure storage container to - retrieve - :type container_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`StorageContainer - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`StorageContainer - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers/{containerName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'storageAccountName': self._serialize.url("storage_account_name", storage_account_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('StorageContainer', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_storage_containers( - self, resource_group_name, account_name, storage_account_name, custom_headers=None, raw=False, **operation_config): - """Lists the Azure Storage containers, if any, associated with the - specified Data Lake Analytics and Azure Storage account combination. - The response includes a link to the next page of results, if any. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account for - which to list Azure Storage blob containers. - :type account_name: str - :param storage_account_name: The name of the Azure storage account - from which to list blob containers. - :type storage_account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`StorageContainer - ` - :rtype: :class:`StorageContainerPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'storageAccountName': self._serialize.url("storage_account_name", storage_account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.StorageContainerPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.StorageContainerPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_sas_tokens( - self, resource_group_name, account_name, storage_account_name, container_name, custom_headers=None, raw=False, **operation_config): - """Gets the SAS token associated with the specified Data Lake Analytics - and Azure Storage account and container combination. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account from - which an Azure Storage account's SAS token is being requested. - :type account_name: str - :param storage_account_name: The name of the Azure storage account for - which the SAS token is being requested. - :type storage_account_name: str - :param container_name: The name of the Azure storage container for - which the SAS token is being requested. - :type container_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`SasTokenInfo - ` - :rtype: :class:`SasTokenInfoPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers/{containerName}/listSasTokens' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'storageAccountName': self._serialize.url("storage_account_name", storage_account_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.SasTokenInfoPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SasTokenInfoPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_by_account( - self, resource_group_name, account_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Gets the first page of Azure Storage accounts, if any, linked to the - specified Data Lake Analytics account. The response includes a link to - the next page, if any. - - :param resource_group_name: The name of the Azure resource group that - contains the Data Lake Analytics account. - :type resource_group_name: str - :param account_name: The name of the Data Lake Analytics account for - which to list Azure Storage accounts. - :type account_name: str - :param filter: The OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`StorageAccountInfo - ` - :rtype: :class:`StorageAccountInfoPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'accountName': self._serialize.url("account_name", account_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.StorageAccountInfoPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.StorageAccountInfoPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/version.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/version.py deleted file mode 100644 index 9a6b4374370..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/account/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "0.1.6" - diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/__init__.py deleted file mode 100644 index 39a62e8061a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .data_lake_analytics_catalog_management_client import DataLakeAnalyticsCatalogManagementClient -from .version import VERSION - -__all__ = ['DataLakeAnalyticsCatalogManagementClient'] - -__version__ = VERSION - diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/data_lake_analytics_catalog_management_client.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/data_lake_analytics_catalog_management_client.py deleted file mode 100644 index 729cf43a59b..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/data_lake_analytics_catalog_management_client.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.catalog_operations import CatalogOperations -from . import models - - -class DataLakeAnalyticsCatalogManagementClientConfiguration(AzureConfiguration): - """Configuration for DataLakeAnalyticsCatalogManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param adla_catalog_dns_suffix: Gets the DNS suffix used as the base for - all Azure Data Lake Analytics Catalog service requests. - :type adla_catalog_dns_suffix: str - """ - - def __init__( - self, credentials, adla_catalog_dns_suffix): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if adla_catalog_dns_suffix is None: - raise ValueError("Parameter 'adla_catalog_dns_suffix' must not be None.") - if not isinstance(adla_catalog_dns_suffix, str): - raise TypeError("Parameter 'adla_catalog_dns_suffix' must be str.") - base_url = 'https://{accountName}.{adlaCatalogDnsSuffix}' - - super(DataLakeAnalyticsCatalogManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('datalakeanalyticscatalogmanagementclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.adla_catalog_dns_suffix = adla_catalog_dns_suffix - - -class DataLakeAnalyticsCatalogManagementClient(object): - """Creates an Azure Data Lake Analytics catalog client. - - :ivar config: Configuration for client. - :vartype config: DataLakeAnalyticsCatalogManagementClientConfiguration - - :ivar catalog: Catalog operations - :vartype catalog: azure.mgmt.datalake.analytics.catalog.operations.CatalogOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param adla_catalog_dns_suffix: Gets the DNS suffix used as the base for - all Azure Data Lake Analytics Catalog service requests. - :type adla_catalog_dns_suffix: str - """ - - def __init__( - self, credentials, adla_catalog_dns_suffix): - - self.config = DataLakeAnalyticsCatalogManagementClientConfiguration(credentials, adla_catalog_dns_suffix) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2016-11-01' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.catalog = CatalogOperations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/__init__.py deleted file mode 100644 index 188e23fef42..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/__init__.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .data_lake_analytics_catalog_secret_create_or_update_parameters import DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters -from .data_lake_analytics_catalog_credential_create_parameters import DataLakeAnalyticsCatalogCredentialCreateParameters -from .data_lake_analytics_catalog_credential_delete_parameters import DataLakeAnalyticsCatalogCredentialDeleteParameters -from .data_lake_analytics_catalog_credential_update_parameters import DataLakeAnalyticsCatalogCredentialUpdateParameters -from .usql_secret import USqlSecret -from .usql_external_data_source import USqlExternalDataSource -from .usql_credential import USqlCredential -from .usql_procedure import USqlProcedure -from .usql_table_column import USqlTableColumn -from .usql_directed_column import USqlDirectedColumn -from .usql_distribution_info import USqlDistributionInfo -from .usql_index import USqlIndex -from .ddl_name import DdlName -from .entity_id import EntityId -from .external_table import ExternalTable -from .type_field_info import TypeFieldInfo -from .usql_table import USqlTable -from .usql_table_type import USqlTableType -from .usql_view import USqlView -from .usql_package import USqlPackage -from .usql_table_partition import USqlTablePartition -from .usql_table_statistics import USqlTableStatistics -from .usql_type import USqlType -from .usql_table_valued_function import USqlTableValuedFunction -from .usql_assembly_file_info import USqlAssemblyFileInfo -from .usql_assembly_dependency_info import USqlAssemblyDependencyInfo -from .usql_assembly import USqlAssembly -from .usql_assembly_clr import USqlAssemblyClr -from .usql_schema import USqlSchema -from .usql_database import USqlDatabase -from .catalog_item import CatalogItem -from .catalog_item_list import CatalogItemList -from .usql_credential_paged import USqlCredentialPaged -from .usql_external_data_source_paged import USqlExternalDataSourcePaged -from .usql_procedure_paged import USqlProcedurePaged -from .usql_table_paged import USqlTablePaged -from .usql_table_statistics_paged import USqlTableStatisticsPaged -from .usql_table_type_paged import USqlTableTypePaged -from .usql_package_paged import USqlPackagePaged -from .usql_view_paged import USqlViewPaged -from .usql_table_partition_paged import USqlTablePartitionPaged -from .usql_type_paged import USqlTypePaged -from .usql_table_valued_function_paged import USqlTableValuedFunctionPaged -from .usql_assembly_clr_paged import USqlAssemblyClrPaged -from .usql_schema_paged import USqlSchemaPaged -from .usql_database_paged import USqlDatabasePaged -from .data_lake_analytics_catalog_management_client_enums import ( - FileType, -) - -__all__ = [ - 'DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters', - 'DataLakeAnalyticsCatalogCredentialCreateParameters', - 'DataLakeAnalyticsCatalogCredentialDeleteParameters', - 'DataLakeAnalyticsCatalogCredentialUpdateParameters', - 'USqlSecret', - 'USqlExternalDataSource', - 'USqlCredential', - 'USqlProcedure', - 'USqlTableColumn', - 'USqlDirectedColumn', - 'USqlDistributionInfo', - 'USqlIndex', - 'DdlName', - 'EntityId', - 'ExternalTable', - 'TypeFieldInfo', - 'USqlTable', - 'USqlTableType', - 'USqlView', - 'USqlPackage', - 'USqlTablePartition', - 'USqlTableStatistics', - 'USqlType', - 'USqlTableValuedFunction', - 'USqlAssemblyFileInfo', - 'USqlAssemblyDependencyInfo', - 'USqlAssembly', - 'USqlAssemblyClr', - 'USqlSchema', - 'USqlDatabase', - 'CatalogItem', - 'CatalogItemList', - 'USqlCredentialPaged', - 'USqlExternalDataSourcePaged', - 'USqlProcedurePaged', - 'USqlTablePaged', - 'USqlTableStatisticsPaged', - 'USqlTableTypePaged', - 'USqlPackagePaged', - 'USqlViewPaged', - 'USqlTablePartitionPaged', - 'USqlTypePaged', - 'USqlTableValuedFunctionPaged', - 'USqlAssemblyClrPaged', - 'USqlSchemaPaged', - 'USqlDatabasePaged', - 'FileType', -] diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/catalog_item.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/catalog_item.py deleted file mode 100644 index cce66f94f3a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/catalog_item.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CatalogItem(Model): - """A Data Lake Analytics catalog item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None): - self.compute_account_name = compute_account_name - self.version = version diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/catalog_item_list.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/catalog_item_list.py deleted file mode 100644 index 6931091e6f8..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/catalog_item_list.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CatalogItemList(Model): - """A Data Lake Analytics catalog item list. - - :param next_link: the link to the next page of results. - :type next_link: str - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, next_link=None): - self.next_link = next_link diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_create_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_create_parameters.py deleted file mode 100644 index a82a7a43c0c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_create_parameters.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataLakeAnalyticsCatalogCredentialCreateParameters(Model): - """Data Lake Analytics catalog credential creation parameters. - - :param password: the password for the credential and user with access to - the data source. - :type password: str - :param uri: the URI identifier for the data source this credential can - connect to in the format : - :type uri: str - :param user_id: the object identifier for the user associated with this - credential with access to the data source. - :type user_id: str - """ - - _validation = { - 'password': {'required': True}, - 'uri': {'required': True}, - 'user_id': {'required': True}, - } - - _attribute_map = { - 'password': {'key': 'password', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'user_id': {'key': 'userId', 'type': 'str'}, - } - - def __init__(self, password, uri, user_id): - self.password = password - self.uri = uri - self.user_id = user_id diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_delete_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_delete_parameters.py deleted file mode 100644 index e4b9d7154ff..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_delete_parameters.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataLakeAnalyticsCatalogCredentialDeleteParameters(Model): - """Data Lake Analytics catalog credential deletion parameters. - - :param password: the current password for the credential and user with - access to the data source. This is required if the requester is not the - account owner. - :type password: str - """ - - _attribute_map = { - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, password=None): - self.password = password diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_update_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_update_parameters.py deleted file mode 100644 index 202db206170..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_credential_update_parameters.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataLakeAnalyticsCatalogCredentialUpdateParameters(Model): - """Data Lake Analytics catalog credential update parameters. - - :param password: the current password for the credential and user with - access to the data source. This is required if the requester is not the - account owner. - :type password: str - :param new_password: the new password for the credential and user with - access to the data source. - :type new_password: str - :param uri: the URI identifier for the data source this credential can - connect to in the format : - :type uri: str - :param user_id: the object identifier for the user associated with this - credential with access to the data source. - :type user_id: str - """ - - _attribute_map = { - 'password': {'key': 'password', 'type': 'str'}, - 'new_password': {'key': 'newPassword', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'user_id': {'key': 'userId', 'type': 'str'}, - } - - def __init__(self, password=None, new_password=None, uri=None, user_id=None): - self.password = password - self.new_password = new_password - self.uri = uri - self.user_id = user_id diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_management_client_enums.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_management_client_enums.py deleted file mode 100644 index ff37fe2c01c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_management_client_enums.py +++ /dev/null @@ -1,19 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class FileType(Enum): - - assembly = "Assembly" - resource = "Resource" - nodeploy = "Nodeploy" diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_secret_create_or_update_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_secret_create_or_update_parameters.py deleted file mode 100644 index 2be2b55ec3f..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/data_lake_analytics_catalog_secret_create_or_update_parameters.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters(Model): - """Data Lake Analytics catalog secret creation and update parameters. This is - deprecated and will be removed in the next release. Please use - DataLakeAnalyticsCatalogCredentialCreateOrUpdateParameters instead. - - :param password: the password for the secret to pass in - :type password: str - :param uri: the URI identifier for the secret in the format - : - :type uri: str - """ - - _validation = { - 'password': {'required': True}, - } - - _attribute_map = { - 'password': {'key': 'password', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - } - - def __init__(self, password, uri=None): - self.password = password - self.uri = uri diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/ddl_name.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/ddl_name.py deleted file mode 100644 index 9791ea31c7c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/ddl_name.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DdlName(Model): - """A Data Lake Analytics DDL name item. - - :param first_part: the name of the table associated with this database and - schema. - :type first_part: str - :param second_part: the name of the table associated with this database - and schema. - :type second_part: str - :param third_part: the name of the table associated with this database and - schema. - :type third_part: str - :param server: the name of the table associated with this database and - schema. - :type server: str - """ - - _attribute_map = { - 'first_part': {'key': 'firstPart', 'type': 'str'}, - 'second_part': {'key': 'secondPart', 'type': 'str'}, - 'third_part': {'key': 'thirdPart', 'type': 'str'}, - 'server': {'key': 'server', 'type': 'str'}, - } - - def __init__(self, first_part=None, second_part=None, third_part=None, server=None): - self.first_part = first_part - self.second_part = second_part - self.third_part = third_part - self.server = server diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/entity_id.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/entity_id.py deleted file mode 100644 index bed40f424cd..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/entity_id.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EntityId(Model): - """A Data Lake Analytics catalog entity identifier object. - - :param name: the name of the external table associated with this database, - schema and table. - :type name: :class:`DdlName - ` - :param version: the version of the external data source. - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'DdlName'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, name=None, version=None): - self.name = name - self.version = version diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/external_table.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/external_table.py deleted file mode 100644 index b7443ffc35f..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/external_table.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExternalTable(Model): - """A Data Lake Analytics catalog external table item. - - :param table_name: the name of the table associated with this database and - schema. - :type table_name: str - :param data_source: the data source associated with this external table. - :type data_source: :class:`EntityId - ` - """ - - _attribute_map = { - 'table_name': {'key': 'tableName', 'type': 'str'}, - 'data_source': {'key': 'dataSource', 'type': 'EntityId'}, - } - - def __init__(self, table_name=None, data_source=None): - self.table_name = table_name - self.data_source = data_source diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/type_field_info.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/type_field_info.py deleted file mode 100644 index 3f0b5c854bc..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/type_field_info.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TypeFieldInfo(Model): - """A Data Lake Analytics catalog type field information item. - - :param name: the name of the field associated with this type. - :type name: str - :param type: the type of the field. - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, name=None, type=None): - self.name = name - self.type = type diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly.py deleted file mode 100644 index ddca1d8d597..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlAssembly(CatalogItem): - """A Data Lake Analytics catalog U-SQL Assembly. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param name: the name of the assembly. - :type name: str - :param clr_name: the name of the CLR. - :type clr_name: str - :param is_visible: the switch indicating if this assembly is visible or - not. - :type is_visible: bool - :param is_user_defined: the switch indicating if this assembly is user - defined or not. - :type is_user_defined: bool - :param files: the list of files associated with the assembly - :type files: list of :class:`USqlAssemblyFileInfo - ` - :param dependencies: the list of dependencies associated with the assembly - :type dependencies: list of :class:`USqlAssemblyDependencyInfo - ` - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'name': {'key': 'assemblyName', 'type': 'str'}, - 'clr_name': {'key': 'clrName', 'type': 'str'}, - 'is_visible': {'key': 'isVisible', 'type': 'bool'}, - 'is_user_defined': {'key': 'isUserDefined', 'type': 'bool'}, - 'files': {'key': 'files', 'type': '[USqlAssemblyFileInfo]'}, - 'dependencies': {'key': 'dependencies', 'type': '[USqlAssemblyDependencyInfo]'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, name=None, clr_name=None, is_visible=None, is_user_defined=None, files=None, dependencies=None): - super(USqlAssembly, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.name = name - self.clr_name = clr_name - self.is_visible = is_visible - self.is_user_defined = is_user_defined - self.files = files - self.dependencies = dependencies diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_clr.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_clr.py deleted file mode 100644 index ab4c6bb9567..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_clr.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlAssemblyClr(CatalogItem): - """A Data Lake Analytics catalog U-SQL assembly CLR item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param name: the name of the assembly. - :type name: str - :param clr_name: the name of the CLR. - :type clr_name: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'name': {'key': 'assemblyClrName', 'type': 'str'}, - 'clr_name': {'key': 'clrName', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, name=None, clr_name=None): - super(USqlAssemblyClr, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.name = name - self.clr_name = clr_name diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_clr_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_clr_paged.py deleted file mode 100644 index caae702d9f0..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_clr_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlAssemblyClrPaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlAssemblyClr ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlAssemblyClr]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlAssemblyClrPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_dependency_info.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_dependency_info.py deleted file mode 100644 index 5517879e36a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_dependency_info.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class USqlAssemblyDependencyInfo(Model): - """A Data Lake Analytics catalog U-SQL dependency information item. - - :param entity_id: the EntityId of the dependency. - :type entity_id: :class:`EntityId - ` - """ - - _attribute_map = { - 'entity_id': {'key': 'entityId', 'type': 'EntityId'}, - } - - def __init__(self, entity_id=None): - self.entity_id = entity_id diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_file_info.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_file_info.py deleted file mode 100644 index 39c9f0f1f74..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_assembly_file_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class USqlAssemblyFileInfo(Model): - """A Data Lake Analytics catalog U-SQL assembly file information item. - - :param type: the assembly file type. Possible values include: 'Assembly', - 'Resource', 'Nodeploy' - :type type: str or :class:`FileType - ` - :param original_path: the the original path to the assembly file. - :type original_path: str - :param content_path: the the content path to the assembly file. - :type content_path: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'original_path': {'key': 'originalPath', 'type': 'str'}, - 'content_path': {'key': 'contentPath', 'type': 'str'}, - } - - def __init__(self, type=None, original_path=None, content_path=None): - self.type = type - self.original_path = original_path - self.content_path = content_path diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_credential.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_credential.py deleted file mode 100644 index 292d9c9d7ab..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_credential.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlCredential(CatalogItem): - """A Data Lake Analytics catalog U-SQL credential item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param name: the name of the credential. - :type name: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'name': {'key': 'credentialName', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None, name=None): - super(USqlCredential, self).__init__(compute_account_name=compute_account_name, version=version) - self.name = name diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_credential_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_credential_paged.py deleted file mode 100644 index fd7b50a9ae6..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_credential_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlCredentialPaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlCredential ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlCredential]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlCredentialPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_database.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_database.py deleted file mode 100644 index ff1657b30b3..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_database.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlDatabase(CatalogItem): - """A Data Lake Analytics catalog U-SQL database item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param name: the name of the database. - :type name: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'name': {'key': 'databaseName', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None, name=None): - super(USqlDatabase, self).__init__(compute_account_name=compute_account_name, version=version) - self.name = name diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_database_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_database_paged.py deleted file mode 100644 index acebb850068..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_database_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlDatabasePaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlDatabase ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlDatabase]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlDatabasePaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_directed_column.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_directed_column.py deleted file mode 100644 index 2e271cbeca1..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_directed_column.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class USqlDirectedColumn(Model): - """A Data Lake Analytics catalog U-SQL directed column item. - - :param name: the name of the index in the table. - :type name: str - :param descending: the switch indicating if the index is descending or - not. - :type descending: bool - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'descending': {'key': 'descending', 'type': 'bool'}, - } - - def __init__(self, name=None, descending=None): - self.name = name - self.descending = descending diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_distribution_info.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_distribution_info.py deleted file mode 100644 index ffc0f7a5794..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_distribution_info.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class USqlDistributionInfo(Model): - """A Data Lake Analytics catalog U-SQL distribution information object. - - :param type: the type of this distribution. - :type type: int - :param keys: the list of directed columns in the distribution - :type keys: list of :class:`USqlDirectedColumn - ` - :param count: the count of indices using this distribution. - :type count: int - :param dynamic_count: the dynamic count of indices using this - distribution. - :type dynamic_count: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'int'}, - 'keys': {'key': 'keys', 'type': '[USqlDirectedColumn]'}, - 'count': {'key': 'count', 'type': 'int'}, - 'dynamic_count': {'key': 'dynamicCount', 'type': 'int'}, - } - - def __init__(self, type=None, keys=None, count=None, dynamic_count=None): - self.type = type - self.keys = keys - self.count = count - self.dynamic_count = dynamic_count diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_external_data_source.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_external_data_source.py deleted file mode 100644 index 56f1934350c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_external_data_source.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlExternalDataSource(CatalogItem): - """A Data Lake Analytics catalog U-SQL external datasource item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param name: the name of the external data source. - :type name: str - :param provider: the name of the provider for the external data source. - :type provider: str - :param provider_string: the name of the provider string for the external - data source. - :type provider_string: str - :param pushdown_types: the list of types to push down from the external - data source. - :type pushdown_types: list of str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'name': {'key': 'externalDataSourceName', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'provider_string': {'key': 'providerString', 'type': 'str'}, - 'pushdown_types': {'key': 'pushdownTypes', 'type': '[str]'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, name=None, provider=None, provider_string=None, pushdown_types=None): - super(USqlExternalDataSource, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.name = name - self.provider = provider - self.provider_string = provider_string - self.pushdown_types = pushdown_types diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_external_data_source_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_external_data_source_paged.py deleted file mode 100644 index fc5cf4ae6b1..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_external_data_source_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlExternalDataSourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlExternalDataSource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlExternalDataSource]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlExternalDataSourcePaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_index.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_index.py deleted file mode 100644 index f57608b7246..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_index.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class USqlIndex(Model): - """A Data Lake Analytics catalog U-SQL table index item. - - :param name: the name of the index in the table. - :type name: str - :param index_keys: the list of directed columns in the index - :type index_keys: list of :class:`USqlDirectedColumn - ` - :param columns: the list of columns in the index - :type columns: list of str - :param distribution_info: the distributions info of the index - :type distribution_info: :class:`USqlDistributionInfo - ` - :param partition_function: partition function ID for the index. - :type partition_function: str - :param partition_key_list: the list of partion keys in the index - :type partition_key_list: list of str - :param stream_names: the list of full paths to the streams that contain - this index in the DataLake account. - :type stream_names: list of str - :param is_columnstore: the switch indicating if this index is a - columnstore index. - :type is_columnstore: bool - :param index_id: the ID of this index within the table. - :type index_id: int - :param is_unique: the switch indicating if this index is a unique index. - :type is_unique: bool - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'index_keys': {'key': 'indexKeys', 'type': '[USqlDirectedColumn]'}, - 'columns': {'key': 'columns', 'type': '[str]'}, - 'distribution_info': {'key': 'distributionInfo', 'type': 'USqlDistributionInfo'}, - 'partition_function': {'key': 'partitionFunction', 'type': 'str'}, - 'partition_key_list': {'key': 'partitionKeyList', 'type': '[str]'}, - 'stream_names': {'key': 'streamNames', 'type': '[str]'}, - 'is_columnstore': {'key': 'isColumnstore', 'type': 'bool'}, - 'index_id': {'key': 'indexId', 'type': 'int'}, - 'is_unique': {'key': 'isUnique', 'type': 'bool'}, - } - - def __init__(self, name=None, index_keys=None, columns=None, distribution_info=None, partition_function=None, partition_key_list=None, stream_names=None, is_columnstore=None, index_id=None, is_unique=None): - self.name = name - self.index_keys = index_keys - self.columns = columns - self.distribution_info = distribution_info - self.partition_function = partition_function - self.partition_key_list = partition_key_list - self.stream_names = stream_names - self.is_columnstore = is_columnstore - self.index_id = index_id - self.is_unique = is_unique diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_package.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_package.py deleted file mode 100644 index bcb62ae92f1..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_package.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlPackage(CatalogItem): - """A Data Lake Analytics catalog U-SQL package item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database containing the package. - :type database_name: str - :param schema_name: the name of the schema associated with this package - and database. - :type schema_name: str - :param name: the name of the package. - :type name: str - :param definition: the definition of the package. - :type definition: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'name': {'key': 'packageName', 'type': 'str'}, - 'definition': {'key': 'definition', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, schema_name=None, name=None, definition=None): - super(USqlPackage, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.schema_name = schema_name - self.name = name - self.definition = definition diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_package_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_package_paged.py deleted file mode 100644 index 2d8c3977a4f..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_package_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlPackagePaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlPackage ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlPackage]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlPackagePaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_procedure.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_procedure.py deleted file mode 100644 index 94123ace034..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_procedure.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlProcedure(CatalogItem): - """A Data Lake Analytics catalog U-SQL procedure item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param schema_name: the name of the schema associated with this procedure - and database. - :type schema_name: str - :param name: the name of the procedure. - :type name: str - :param definition: the defined query of the procedure. - :type definition: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'name': {'key': 'procName', 'type': 'str'}, - 'definition': {'key': 'definition', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, schema_name=None, name=None, definition=None): - super(USqlProcedure, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.schema_name = schema_name - self.name = name - self.definition = definition diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_procedure_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_procedure_paged.py deleted file mode 100644 index 61b23707c7e..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_procedure_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlProcedurePaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlProcedure ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlProcedure]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlProcedurePaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_schema.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_schema.py deleted file mode 100644 index a9a2d9f40b5..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_schema.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlSchema(CatalogItem): - """A Data Lake Analytics catalog U-SQL schema item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param name: the name of the schema. - :type name: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'name': {'key': 'schemaName', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, name=None): - super(USqlSchema, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.name = name diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_schema_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_schema_paged.py deleted file mode 100644 index f8f8d238619..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_schema_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlSchemaPaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlSchema ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlSchema]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlSchemaPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_secret.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_secret.py deleted file mode 100644 index 17113d2b7b7..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_secret.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlSecret(CatalogItem): - """A Data Lake Analytics catalog U-SQL secret item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param name: the name of the secret. - :type name: str - :param creation_time: the creation time of the credential object. This is - the only information returned about a secret from a GET. - :type creation_time: datetime - :param uri: the URI identifier for the secret in the format - : - :type uri: str - :param password: the password for the secret to pass in - :type password: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'name': {'key': 'secretName', 'type': 'str'}, - 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, name=None, creation_time=None, uri=None, password=None): - super(USqlSecret, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.name = name - self.creation_time = creation_time - self.uri = uri - self.password = password diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table.py deleted file mode 100644 index 6a0c0bde871..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlTable(CatalogItem): - """A Data Lake Analytics catalog U-SQL table item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param schema_name: the name of the schema associated with this table and - database. - :type schema_name: str - :param name: the name of the table. - :type name: str - :param column_list: the list of columns in this table - :type column_list: list of :class:`USqlTableColumn - ` - :param index_list: the list of indices in this table - :type index_list: list of :class:`USqlIndex - ` - :param partition_key_list: the list of partition keys in the table - :type partition_key_list: list of str - :param external_table: the external table associated with the table. - :type external_table: :class:`ExternalTable - ` - :param distribution_info: the distributions info of the table - :type distribution_info: :class:`USqlDistributionInfo - ` - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'name': {'key': 'tableName', 'type': 'str'}, - 'column_list': {'key': 'columnList', 'type': '[USqlTableColumn]'}, - 'index_list': {'key': 'indexList', 'type': '[USqlIndex]'}, - 'partition_key_list': {'key': 'partitionKeyList', 'type': '[str]'}, - 'external_table': {'key': 'externalTable', 'type': 'ExternalTable'}, - 'distribution_info': {'key': 'distributionInfo', 'type': 'USqlDistributionInfo'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, schema_name=None, name=None, column_list=None, index_list=None, partition_key_list=None, external_table=None, distribution_info=None): - super(USqlTable, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.schema_name = schema_name - self.name = name - self.column_list = column_list - self.index_list = index_list - self.partition_key_list = partition_key_list - self.external_table = external_table - self.distribution_info = distribution_info diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_column.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_column.py deleted file mode 100644 index 0eed3e31817..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_column.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class USqlTableColumn(Model): - """A Data Lake Analytics catalog U-SQL table column item. - - :param name: the name of the column in the table. - :type name: str - :param type: the object type of the specified column (such as - System.String). - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, name=None, type=None): - self.name = name - self.type = type diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_paged.py deleted file mode 100644 index b96cd3580b1..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlTablePaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlTable ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlTable]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlTablePaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_partition.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_partition.py deleted file mode 100644 index 82c554ffcf3..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_partition.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlTablePartition(CatalogItem): - """A Data Lake Analytics catalog U-SQL table partition item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param schema_name: the name of the schema associated with this table - partition and database. - :type schema_name: str - :param name: the name of the table partition. - :type name: str - :param parent_name: the Ddl object of the partition's parent. - :type parent_name: :class:`DdlName - ` - :param index_id: the index ID for this partition. - :type index_id: int - :param label: the list of labels associated with this partition. - :type label: list of str - :param create_date: the creation time of the partition - :type create_date: datetime - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'name': {'key': 'partitionName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'DdlName'}, - 'index_id': {'key': 'indexId', 'type': 'int'}, - 'label': {'key': 'label', 'type': '[str]'}, - 'create_date': {'key': 'createDate', 'type': 'iso-8601'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, schema_name=None, name=None, parent_name=None, index_id=None, label=None, create_date=None): - super(USqlTablePartition, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.schema_name = schema_name - self.name = name - self.parent_name = parent_name - self.index_id = index_id - self.label = label - self.create_date = create_date diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_partition_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_partition_paged.py deleted file mode 100644 index 2b0f1db6ac4..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_partition_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlTablePartitionPaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlTablePartition ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlTablePartition]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlTablePartitionPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_statistics.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_statistics.py deleted file mode 100644 index d25e5f78450..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_statistics.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlTableStatistics(CatalogItem): - """A Data Lake Analytics catalog U-SQL table statistics item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param schema_name: the name of the schema associated with this table and - database. - :type schema_name: str - :param table_name: the name of the table. - :type table_name: str - :param name: the name of the table statistics. - :type name: str - :param user_stat_name: the name of the user statistics. - :type user_stat_name: str - :param stat_data_path: the path to the statistics data. - :type stat_data_path: str - :param create_time: the creation time of the statistics. - :type create_time: datetime - :param update_time: the last time the statistics were updated. - :type update_time: datetime - :param is_user_created: the switch indicating if these statistics are user - created. - :type is_user_created: bool - :param is_auto_created: the switch indicating if these statistics are - automatically created. - :type is_auto_created: bool - :param has_filter: the switch indicating if these statistics have a - filter. - :type has_filter: bool - :param filter_definition: the filter definition for the statistics. - :type filter_definition: str - :param col_names: the list of column names associated with these - statistics. - :type col_names: list of str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'table_name': {'key': 'tableName', 'type': 'str'}, - 'name': {'key': 'statisticsName', 'type': 'str'}, - 'user_stat_name': {'key': 'userStatName', 'type': 'str'}, - 'stat_data_path': {'key': 'statDataPath', 'type': 'str'}, - 'create_time': {'key': 'createTime', 'type': 'iso-8601'}, - 'update_time': {'key': 'updateTime', 'type': 'iso-8601'}, - 'is_user_created': {'key': 'isUserCreated', 'type': 'bool'}, - 'is_auto_created': {'key': 'isAutoCreated', 'type': 'bool'}, - 'has_filter': {'key': 'hasFilter', 'type': 'bool'}, - 'filter_definition': {'key': 'filterDefinition', 'type': 'str'}, - 'col_names': {'key': 'colNames', 'type': '[str]'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, schema_name=None, table_name=None, name=None, user_stat_name=None, stat_data_path=None, create_time=None, update_time=None, is_user_created=None, is_auto_created=None, has_filter=None, filter_definition=None, col_names=None): - super(USqlTableStatistics, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.schema_name = schema_name - self.table_name = table_name - self.name = name - self.user_stat_name = user_stat_name - self.stat_data_path = stat_data_path - self.create_time = create_time - self.update_time = update_time - self.is_user_created = is_user_created - self.is_auto_created = is_auto_created - self.has_filter = has_filter - self.filter_definition = filter_definition - self.col_names = col_names diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_statistics_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_statistics_paged.py deleted file mode 100644 index 47fa3fd26bc..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_statistics_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlTableStatisticsPaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlTableStatistics ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlTableStatistics]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlTableStatisticsPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_type.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_type.py deleted file mode 100644 index d2a473fb05e..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_type.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .usql_type import USqlType - - -class USqlTableType(USqlType): - """A Data Lake Analytics catalog U-SQL table type item. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param schema_name: the name of the schema associated with this table and - database. - :type schema_name: str - :param name: the name of type for this type. - :type name: str - :param type_family: the type family for this type. - :type type_family: str - :param c_sharp_name: the C# name for this type. - :type c_sharp_name: str - :param full_csharp_name: the fully qualified C# name for this type. - :type full_csharp_name: str - :param system_type_id: the system type ID for this type. - :type system_type_id: int - :param user_type_id: the user type ID for this type. - :type user_type_id: int - :param schema_id: the schema ID for this type. - :type schema_id: int - :param principal_id: the principal ID for this type. - :type principal_id: int - :param is_nullable: the the switch indicating if this type is nullable. - :type is_nullable: bool - :param is_user_defined: the the switch indicating if this type is user - defined. - :type is_user_defined: bool - :param is_assembly_type: the the switch indicating if this type is an - assembly type. - :type is_assembly_type: bool - :param is_table_type: the the switch indicating if this type is a table - type. - :type is_table_type: bool - :param is_complex_type: the the switch indicating if this type is a - complex type. - :type is_complex_type: bool - :ivar columns: the type field information associated with this table type. - :vartype columns: list of :class:`TypeFieldInfo - ` - """ - - _validation = { - 'columns': {'readonly': True}, - } - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'name': {'key': 'typeName', 'type': 'str'}, - 'type_family': {'key': 'typeFamily', 'type': 'str'}, - 'c_sharp_name': {'key': 'cSharpName', 'type': 'str'}, - 'full_csharp_name': {'key': 'fullCSharpName', 'type': 'str'}, - 'system_type_id': {'key': 'systemTypeId', 'type': 'int'}, - 'user_type_id': {'key': 'userTypeId', 'type': 'int'}, - 'schema_id': {'key': 'schemaId', 'type': 'int'}, - 'principal_id': {'key': 'principalId', 'type': 'int'}, - 'is_nullable': {'key': 'isNullable', 'type': 'bool'}, - 'is_user_defined': {'key': 'isUserDefined', 'type': 'bool'}, - 'is_assembly_type': {'key': 'isAssemblyType', 'type': 'bool'}, - 'is_table_type': {'key': 'isTableType', 'type': 'bool'}, - 'is_complex_type': {'key': 'isComplexType', 'type': 'bool'}, - 'columns': {'key': 'columns', 'type': '[TypeFieldInfo]'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, schema_name=None, name=None, type_family=None, c_sharp_name=None, full_csharp_name=None, system_type_id=None, user_type_id=None, schema_id=None, principal_id=None, is_nullable=None, is_user_defined=None, is_assembly_type=None, is_table_type=None, is_complex_type=None): - super(USqlTableType, self).__init__(compute_account_name=compute_account_name, version=version, database_name=database_name, schema_name=schema_name, name=name, type_family=type_family, c_sharp_name=c_sharp_name, full_csharp_name=full_csharp_name, system_type_id=system_type_id, user_type_id=user_type_id, schema_id=schema_id, principal_id=principal_id, is_nullable=is_nullable, is_user_defined=is_user_defined, is_assembly_type=is_assembly_type, is_table_type=is_table_type, is_complex_type=is_complex_type) - self.columns = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_type_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_type_paged.py deleted file mode 100644 index 9cda3f159c8..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_type_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlTableTypePaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlTableType ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlTableType]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlTableTypePaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_valued_function.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_valued_function.py deleted file mode 100644 index 70d2c94a50b..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_valued_function.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlTableValuedFunction(CatalogItem): - """A Data Lake Analytics catalog U-SQL table valued function item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param schema_name: the name of the schema associated with this database. - :type schema_name: str - :param name: the name of the table valued function. - :type name: str - :param definition: the definition of the table valued function. - :type definition: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'name': {'key': 'tvfName', 'type': 'str'}, - 'definition': {'key': 'definition', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, schema_name=None, name=None, definition=None): - super(USqlTableValuedFunction, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.schema_name = schema_name - self.name = name - self.definition = definition diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_valued_function_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_valued_function_paged.py deleted file mode 100644 index 36065b69b52..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_table_valued_function_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlTableValuedFunctionPaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlTableValuedFunction ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlTableValuedFunction]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlTableValuedFunctionPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_type.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_type.py deleted file mode 100644 index 680abeb5447..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_type.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlType(CatalogItem): - """A Data Lake Analytics catalog U-SQL type item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param schema_name: the name of the schema associated with this table and - database. - :type schema_name: str - :param name: the name of type for this type. - :type name: str - :param type_family: the type family for this type. - :type type_family: str - :param c_sharp_name: the C# name for this type. - :type c_sharp_name: str - :param full_csharp_name: the fully qualified C# name for this type. - :type full_csharp_name: str - :param system_type_id: the system type ID for this type. - :type system_type_id: int - :param user_type_id: the user type ID for this type. - :type user_type_id: int - :param schema_id: the schema ID for this type. - :type schema_id: int - :param principal_id: the principal ID for this type. - :type principal_id: int - :param is_nullable: the the switch indicating if this type is nullable. - :type is_nullable: bool - :param is_user_defined: the the switch indicating if this type is user - defined. - :type is_user_defined: bool - :param is_assembly_type: the the switch indicating if this type is an - assembly type. - :type is_assembly_type: bool - :param is_table_type: the the switch indicating if this type is a table - type. - :type is_table_type: bool - :param is_complex_type: the the switch indicating if this type is a - complex type. - :type is_complex_type: bool - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'name': {'key': 'typeName', 'type': 'str'}, - 'type_family': {'key': 'typeFamily', 'type': 'str'}, - 'c_sharp_name': {'key': 'cSharpName', 'type': 'str'}, - 'full_csharp_name': {'key': 'fullCSharpName', 'type': 'str'}, - 'system_type_id': {'key': 'systemTypeId', 'type': 'int'}, - 'user_type_id': {'key': 'userTypeId', 'type': 'int'}, - 'schema_id': {'key': 'schemaId', 'type': 'int'}, - 'principal_id': {'key': 'principalId', 'type': 'int'}, - 'is_nullable': {'key': 'isNullable', 'type': 'bool'}, - 'is_user_defined': {'key': 'isUserDefined', 'type': 'bool'}, - 'is_assembly_type': {'key': 'isAssemblyType', 'type': 'bool'}, - 'is_table_type': {'key': 'isTableType', 'type': 'bool'}, - 'is_complex_type': {'key': 'isComplexType', 'type': 'bool'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, schema_name=None, name=None, type_family=None, c_sharp_name=None, full_csharp_name=None, system_type_id=None, user_type_id=None, schema_id=None, principal_id=None, is_nullable=None, is_user_defined=None, is_assembly_type=None, is_table_type=None, is_complex_type=None): - super(USqlType, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.schema_name = schema_name - self.name = name - self.type_family = type_family - self.c_sharp_name = c_sharp_name - self.full_csharp_name = full_csharp_name - self.system_type_id = system_type_id - self.user_type_id = user_type_id - self.schema_id = schema_id - self.principal_id = principal_id - self.is_nullable = is_nullable - self.is_user_defined = is_user_defined - self.is_assembly_type = is_assembly_type - self.is_table_type = is_table_type - self.is_complex_type = is_complex_type diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_type_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_type_paged.py deleted file mode 100644 index f079ab67436..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_type_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlTypePaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlType ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlType]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlTypePaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_view.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_view.py deleted file mode 100644 index 54a30de755c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_view.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_item import CatalogItem - - -class USqlView(CatalogItem): - """A Data Lake Analytics catalog U-SQL view item. - - :param compute_account_name: the name of the Data Lake Analytics account. - :type compute_account_name: str - :param version: the version of the catalog item. - :type version: str - :param database_name: the name of the database. - :type database_name: str - :param schema_name: the name of the schema associated with this view and - database. - :type schema_name: str - :param name: the name of the view. - :type name: str - :param definition: the defined query of the view. - :type definition: str - """ - - _attribute_map = { - 'compute_account_name': {'key': 'computeAccountName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'name': {'key': 'viewName', 'type': 'str'}, - 'definition': {'key': 'definition', 'type': 'str'}, - } - - def __init__(self, compute_account_name=None, version=None, database_name=None, schema_name=None, name=None, definition=None): - super(USqlView, self).__init__(compute_account_name=compute_account_name, version=version) - self.database_name = database_name - self.schema_name = schema_name - self.name = name - self.definition = definition diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_view_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_view_paged.py deleted file mode 100644 index 5536566708a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/models/usql_view_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class USqlViewPaged(Paged): - """ - A paging container for iterating over a list of :class:`USqlView ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[USqlView]'} - } - - def __init__(self, *args, **kwargs): - - super(USqlViewPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/operations/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/operations/__init__.py deleted file mode 100644 index da1ff05e429..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/operations/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .catalog_operations import CatalogOperations - -__all__ = [ - 'CatalogOperations', -] diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/operations/catalog_operations.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/operations/catalog_operations.py deleted file mode 100644 index f4b47017681..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/operations/catalog_operations.py +++ /dev/null @@ -1,3588 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class CatalogOperations(object): - """CatalogOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-11-01". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-11-01" - - self.config = config - - def create_secret( - self, account_name, database_name, secret_name, password, uri=None, custom_headers=None, raw=False, **operation_config): - """Creates the specified secret for use with external data sources in the - specified database. This is deprecated and will be removed in the next - release. Please use CreateCredential instead. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database in which to create the - secret. - :type database_name: str - :param secret_name: The name of the secret. - :type secret_name: str - :param password: the password for the secret to pass in - :type password: str - :param uri: the URI identifier for the secret in the format - : - :type uri: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - parameters = models.DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters(password=password, uri=uri) - - # Construct URL - url = '/catalog/usql/databases/{databaseName}/secrets/{secretName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'secretName': self._serialize.url("secret_name", secret_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def update_secret( - self, account_name, database_name, secret_name, password, uri=None, custom_headers=None, raw=False, **operation_config): - """Modifies the specified secret for use with external data sources in the - specified database. This is deprecated and will be removed in the next - release. Please use UpdateCredential instead. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the secret. - :type database_name: str - :param secret_name: The name of the secret. - :type secret_name: str - :param password: the password for the secret to pass in - :type password: str - :param uri: the URI identifier for the secret in the format - : - :type uri: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - parameters = models.DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters(password=password, uri=uri) - - # Construct URL - url = '/catalog/usql/databases/{databaseName}/secrets/{secretName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'secretName': self._serialize.url("secret_name", secret_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters') - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete_secret( - self, account_name, database_name, secret_name, custom_headers=None, raw=False, **operation_config): - """Deletes the specified secret in the specified database. This is - deprecated and will be removed in the next release. Please use - DeleteCredential instead. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the secret. - :type database_name: str - :param secret_name: The name of the secret to delete - :type secret_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/secrets/{secretName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'secretName': self._serialize.url("secret_name", secret_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_secret( - self, account_name, database_name, secret_name, custom_headers=None, raw=False, **operation_config): - """Gets the specified secret in the specified database. This is deprecated - and will be removed in the next release. Please use GetCredential - instead. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the secret. - :type database_name: str - :param secret_name: The name of the secret to get - :type secret_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlSecret - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlSecret - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/secrets/{secretName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'secretName': self._serialize.url("secret_name", secret_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlSecret', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete_all_secrets( - self, account_name, database_name, custom_headers=None, raw=False, **operation_config): - """Deletes all secrets in the specified database. This is deprecated and - will be removed in the next release. In the future, please only drop - individual credentials using DeleteCredential. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the secret. - :type database_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/secrets' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def create_credential( - self, account_name, database_name, credential_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates the specified credential for use with external data sources in - the specified database. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database in which to create the - credential. Note: This is NOT an external database name, but the name - of an existing U-SQL database that should contain the new credential - object. - :type database_name: str - :param credential_name: The name of the credential. - :type credential_name: str - :param parameters: The parameters required to create the credential - (name and password) - :type parameters: - :class:`DataLakeAnalyticsCatalogCredentialCreateParameters - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/credentials/{credentialName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'credentialName': self._serialize.url("credential_name", credential_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'DataLakeAnalyticsCatalogCredentialCreateParameters') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def update_credential( - self, account_name, database_name, credential_name, parameters, custom_headers=None, raw=False, **operation_config): - """Modifies the specified credential for use with external data sources in - the specified database. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - credential. - :type database_name: str - :param credential_name: The name of the credential. - :type credential_name: str - :param parameters: The parameters required to modify the credential - (name and password) - :type parameters: - :class:`DataLakeAnalyticsCatalogCredentialUpdateParameters - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/credentials/{credentialName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'credentialName': self._serialize.url("credential_name", credential_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'DataLakeAnalyticsCatalogCredentialUpdateParameters') - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete_credential( - self, account_name, database_name, credential_name, cascade=False, password=None, custom_headers=None, raw=False, **operation_config): - """Deletes the specified credential in the specified database. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - credential. - :type database_name: str - :param credential_name: The name of the credential to delete - :type credential_name: str - :param cascade: Indicates if the delete should be a cascading delete - (which deletes all resources dependent on the credential as well as - the credential) or not. If false will fail if there are any resources - relying on the credential. - :type cascade: bool - :param password: the current password for the credential and user with - access to the data source. This is required if the requester is not - the account owner. - :type password: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - parameters = None - if password is not None: - parameters = models.DataLakeAnalyticsCatalogCredentialDeleteParameters(password=password) - - # Construct URL - url = '/catalog/usql/databases/{databaseName}/credentials/{credentialName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'credentialName': self._serialize.url("credential_name", credential_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if cascade is not None: - query_parameters['cascade'] = self._serialize.query("cascade", cascade, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if parameters is not None: - body_content = self._serialize.body(parameters, 'DataLakeAnalyticsCatalogCredentialDeleteParameters') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_credential( - self, account_name, database_name, credential_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified credential from the Data Lake Analytics - catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the schema. - :type database_name: str - :param credential_name: The name of the credential. - :type credential_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlCredential - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlCredential - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/credentials/{credentialName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'credentialName': self._serialize.url("credential_name", credential_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlCredential', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_credentials( - self, account_name, database_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of credentials from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the schema. - :type database_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlCredential - ` - :rtype: :class:`USqlCredentialPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/credentials' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlCredentialPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlCredentialPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_external_data_source( - self, account_name, database_name, external_data_source_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified external data source from the Data Lake - Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the external - data source. - :type database_name: str - :param external_data_source_name: The name of the external data - source. - :type external_data_source_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlExternalDataSource - ` - or :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlExternalDataSource - ` - or :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/externaldatasources/{externalDataSourceName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'externalDataSourceName': self._serialize.url("external_data_source_name", external_data_source_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlExternalDataSource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_external_data_sources( - self, account_name, database_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of external data sources from the Data Lake - Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the external - data sources. - :type database_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlExternalDataSource - ` - :rtype: :class:`USqlExternalDataSourcePaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/externaldatasources' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlExternalDataSourcePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlExternalDataSourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_procedure( - self, account_name, database_name, schema_name, procedure_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified procedure from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - procedure. - :type database_name: str - :param schema_name: The name of the schema containing the procedure. - :type schema_name: str - :param procedure_name: The name of the procedure. - :type procedure_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlProcedure - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlProcedure - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures/{procedureName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'procedureName': self._serialize.url("procedure_name", procedure_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlProcedure', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_procedures( - self, account_name, database_name, schema_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of procedures from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - procedures. - :type database_name: str - :param schema_name: The name of the schema containing the procedures. - :type schema_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlProcedure - ` - :rtype: :class:`USqlProcedurePaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlProcedurePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlProcedurePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_table( - self, account_name, database_name, schema_name, table_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified table from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the table. - :type database_name: str - :param schema_name: The name of the schema containing the table. - :type schema_name: str - :param table_name: The name of the table. - :type table_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlTable - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlTable - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'tableName': self._serialize.url("table_name", table_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlTable', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_tables( - self, account_name, database_name, schema_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, basic=False, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of tables from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the tables. - :type database_name: str - :param schema_name: The name of the schema containing the tables. - :type schema_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param basic: The basic switch indicates what level of information to - return when listing tables. When basic is true, only database_name, - schema_name, table_name and version are returned for each table, - otherwise all table metadata is returned. By default, it is false. - Optional. - :type basic: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlTable - ` - :rtype: :class:`USqlTablePaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - if basic is not None: - query_parameters['basic'] = self._serialize.query("basic", basic, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTablePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTablePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_table_statistics_by_database_and_schema( - self, account_name, database_name, schema_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of all table statistics within the specified schema - from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - statistics. - :type database_name: str - :param schema_name: The name of the schema containing the statistics. - :type schema_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlTableStatistics - ` - :rtype: :class:`USqlTableStatisticsPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/statistics' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTableStatisticsPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTableStatisticsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_table_type( - self, account_name, database_name, schema_name, table_type_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified table type from the Data Lake Analytics - catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the table - type. - :type database_name: str - :param schema_name: The name of the schema containing the table type. - :type schema_name: str - :param table_type_name: The name of the table type to retrieve. - :type table_type_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlTableType - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlTableType - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes/{tableTypeName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'tableTypeName': self._serialize.url("table_type_name", table_type_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlTableType', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_table_types( - self, account_name, database_name, schema_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of table types from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the table - types. - :type database_name: str - :param schema_name: The name of the schema containing the table types. - :type schema_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlTableType - ` - :rtype: :class:`USqlTableTypePaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTableTypePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTableTypePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_package( - self, account_name, database_name, schema_name, package_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified package from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the package. - :type database_name: str - :param schema_name: The name of the schema containing the package. - :type schema_name: str - :param package_name: The name of the package. - :type package_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlPackage - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlPackage - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages/{packageName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'packageName': self._serialize.url("package_name", package_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlPackage', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_packages( - self, account_name, database_name, schema_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of packages from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - packages. - :type database_name: str - :param schema_name: The name of the schema containing the packages. - :type schema_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlPackage - ` - :rtype: :class:`USqlPackagePaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlPackagePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlPackagePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_view( - self, account_name, database_name, schema_name, view_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified view from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the view. - :type database_name: str - :param schema_name: The name of the schema containing the view. - :type schema_name: str - :param view_name: The name of the view. - :type view_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlView - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlView - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views/{viewName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'viewName': self._serialize.url("view_name", view_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlView', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_views( - self, account_name, database_name, schema_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of views from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the views. - :type database_name: str - :param schema_name: The name of the schema containing the views. - :type schema_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlView - ` - :rtype: :class:`USqlViewPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlViewPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlViewPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_table_statistic( - self, account_name, database_name, schema_name, table_name, statistics_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified table statistics from the Data Lake Analytics - catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - statistics. - :type database_name: str - :param schema_name: The name of the schema containing the statistics. - :type schema_name: str - :param table_name: The name of the table containing the statistics. - :type table_name: str - :param statistics_name: The name of the table statistics. - :type statistics_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlTableStatistics - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlTableStatistics - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics/{statisticsName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'tableName': self._serialize.url("table_name", table_name, 'str'), - 'statisticsName': self._serialize.url("statistics_name", statistics_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlTableStatistics', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_table_statistics( - self, account_name, database_name, schema_name, table_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of table statistics from the Data Lake Analytics - catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - statistics. - :type database_name: str - :param schema_name: The name of the schema containing the statistics. - :type schema_name: str - :param table_name: The name of the table containing the statistics. - :type table_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlTableStatistics - ` - :rtype: :class:`USqlTableStatisticsPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'tableName': self._serialize.url("table_name", table_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTableStatisticsPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTableStatisticsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_table_partition( - self, account_name, database_name, schema_name, table_name, partition_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified table partition from the Data Lake Analytics - catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - partition. - :type database_name: str - :param schema_name: The name of the schema containing the partition. - :type schema_name: str - :param table_name: The name of the table containing the partition. - :type table_name: str - :param partition_name: The name of the table partition. - :type partition_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlTablePartition - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlTablePartition - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'tableName': self._serialize.url("table_name", table_name, 'str'), - 'partitionName': self._serialize.url("partition_name", partition_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlTablePartition', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_table_partitions( - self, account_name, database_name, schema_name, table_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of table partitions from the Data Lake Analytics - catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - partitions. - :type database_name: str - :param schema_name: The name of the schema containing the partitions. - :type schema_name: str - :param table_name: The name of the table containing the partitions. - :type table_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlTablePartition - ` - :rtype: :class:`USqlTablePartitionPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'tableName': self._serialize.url("table_name", table_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTablePartitionPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTablePartitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_types( - self, account_name, database_name, schema_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of types within the specified database and schema - from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the types. - :type database_name: str - :param schema_name: The name of the schema containing the types. - :type schema_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlType - ` - :rtype: :class:`USqlTypePaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/types' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTypePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTypePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_table_valued_function( - self, account_name, database_name, schema_name, table_valued_function_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified table valued function from the Data Lake - Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the table - valued function. - :type database_name: str - :param schema_name: The name of the schema containing the table valued - function. - :type schema_name: str - :param table_valued_function_name: The name of the - tableValuedFunction. - :type table_valued_function_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlTableValuedFunction - ` - or :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlTableValuedFunction - ` - or :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions/{tableValuedFunctionName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), - 'tableValuedFunctionName': self._serialize.url("table_valued_function_name", table_valued_function_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlTableValuedFunction', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_table_valued_functions( - self, account_name, database_name, schema_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of table valued functions from the Data Lake - Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the table - valued functions. - :type database_name: str - :param schema_name: The name of the schema containing the table valued - functions. - :type schema_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlTableValuedFunction - ` - :rtype: :class:`USqlTableValuedFunctionPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTableValuedFunctionPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTableValuedFunctionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_assembly( - self, account_name, database_name, assembly_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified assembly from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - assembly. - :type database_name: str - :param assembly_name: The name of the assembly. - :type assembly_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlAssembly - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlAssembly - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/assemblies/{assemblyName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'assemblyName': self._serialize.url("assembly_name", assembly_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlAssembly', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_assemblies( - self, account_name, database_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of assemblies from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the - assembly. - :type database_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlAssemblyClr - ` - :rtype: :class:`USqlAssemblyClrPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/assemblies' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlAssemblyClrPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlAssemblyClrPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_schema( - self, account_name, database_name, schema_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified schema from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the schema. - :type database_name: str - :param schema_name: The name of the schema. - :type schema_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlSchema - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlSchema - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas/{schemaName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'schemaName': self._serialize.url("schema_name", schema_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlSchema', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_schemas( - self, account_name, database_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of schemas from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the schema. - :type database_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlSchema - ` - :rtype: :class:`USqlSchemaPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/schemas' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlSchemaPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlSchemaPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_table_statistics_by_database( - self, account_name, database_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of all statistics in a database from the Data Lake - Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the table - statistics. - :type database_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlTableStatistics - ` - :rtype: :class:`USqlTableStatisticsPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/statistics' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTableStatisticsPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTableStatisticsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_tables_by_database( - self, account_name, database_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, basic=False, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of all tables in a database from the Data Lake - Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the tables. - :type database_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param basic: The basic switch indicates what level of information to - return when listing tables. When basic is true, only database_name, - schema_name, table_name and version are returned for each table, - otherwise all table metadata is returned. By default, it is false - :type basic: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlTable - ` - :rtype: :class:`USqlTablePaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/tables' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - if basic is not None: - query_parameters['basic'] = self._serialize.query("basic", basic, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTablePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTablePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_table_valued_functions_by_database( - self, account_name, database_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of all table valued functions in a database from the - Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the table - valued functions. - :type database_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlTableValuedFunction - ` - :rtype: :class:`USqlTableValuedFunctionPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/tablevaluedfunctions' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlTableValuedFunctionPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlTableValuedFunctionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_views_by_database( - self, account_name, database_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of all views in a database from the Data Lake - Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database containing the views. - :type database_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlView - ` - :rtype: :class:`USqlViewPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases/{databaseName}/views' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlViewPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlViewPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_database( - self, account_name, database_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the specified database from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param database_name: The name of the database. - :type database_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`USqlDatabase - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`USqlDatabase - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/catalog/usql/databases/{databaseName}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True), - 'databaseName': self._serialize.url("database_name", database_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('USqlDatabase', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_databases( - self, account_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Retrieves the list of databases from the Data Lake Analytics catalog. - - :param account_name: The Azure Data Lake Analytics account upon which - to execute catalog operations. - :type account_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`USqlDatabase - ` - :rtype: :class:`USqlDatabasePaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/catalog/usql/databases' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaCatalogDnsSuffix': self._serialize.url("self.config.adla_catalog_dns_suffix", self.config.adla_catalog_dns_suffix, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.USqlDatabasePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.USqlDatabasePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/version.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/version.py deleted file mode 100644 index 9a6b4374370..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/catalog/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "0.1.6" - diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/__init__.py deleted file mode 100644 index 8867563082d..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .data_lake_analytics_job_management_client import DataLakeAnalyticsJobManagementClient -from .version import VERSION - -__all__ = ['DataLakeAnalyticsJobManagementClient'] - -__version__ = VERSION - diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/data_lake_analytics_job_management_client.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/data_lake_analytics_job_management_client.py deleted file mode 100644 index d68073d125f..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/data_lake_analytics_job_management_client.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.pipeline_operations import PipelineOperations -from .operations.recurrence_operations import RecurrenceOperations -from .operations.job_operations import JobOperations -from . import models - - -class DataLakeAnalyticsJobManagementClientConfiguration(AzureConfiguration): - """Configuration for DataLakeAnalyticsJobManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param adla_job_dns_suffix: Gets the DNS suffix used as the base for all - Azure Data Lake Analytics Job service requests. - :type adla_job_dns_suffix: str - """ - - def __init__( - self, credentials, adla_job_dns_suffix): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if adla_job_dns_suffix is None: - raise ValueError("Parameter 'adla_job_dns_suffix' must not be None.") - if not isinstance(adla_job_dns_suffix, str): - raise TypeError("Parameter 'adla_job_dns_suffix' must be str.") - base_url = 'https://{accountName}.{adlaJobDnsSuffix}' - - super(DataLakeAnalyticsJobManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('datalakeanalyticsjobmanagementclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.adla_job_dns_suffix = adla_job_dns_suffix - - -class DataLakeAnalyticsJobManagementClient(object): - """Creates an Azure Data Lake Analytics job client. - - :ivar config: Configuration for client. - :vartype config: DataLakeAnalyticsJobManagementClientConfiguration - - :ivar pipeline: Pipeline operations - :vartype pipeline: azure.mgmt.datalake.analytics.job.operations.PipelineOperations - :ivar recurrence: Recurrence operations - :vartype recurrence: azure.mgmt.datalake.analytics.job.operations.RecurrenceOperations - :ivar job: Job operations - :vartype job: azure.mgmt.datalake.analytics.job.operations.JobOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param adla_job_dns_suffix: Gets the DNS suffix used as the base for all - Azure Data Lake Analytics Job service requests. - :type adla_job_dns_suffix: str - """ - - def __init__( - self, credentials, adla_job_dns_suffix): - - self.config = DataLakeAnalyticsJobManagementClientConfiguration(credentials, adla_job_dns_suffix) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2016-11-01' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.pipeline = PipelineOperations( - self._client, self.config, self._serialize, self._deserialize) - self.recurrence = RecurrenceOperations( - self._client, self.config, self._serialize, self._deserialize) - self.job = JobOperations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/__init__.py deleted file mode 100644 index d28921edb70..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/__init__.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job_statistics_vertex_stage import JobStatisticsVertexStage -from .job_statistics import JobStatistics -from .job_data_path import JobDataPath -from .job_state_audit_record import JobStateAuditRecord -from .job_resource import JobResource -from .diagnostics import Diagnostics -from .usql_job_properties import USqlJobProperties -from .hive_job_properties import HiveJobProperties -from .job_properties import JobProperties -from .create_usql_job_properties import CreateUSqlJobProperties -from .create_job_properties import CreateJobProperties -from .job_inner_error import JobInnerError -from .job_error_details import JobErrorDetails -from .job_relationship_properties import JobRelationshipProperties -from .job_pipeline_run_information import JobPipelineRunInformation -from .job_pipeline_information import JobPipelineInformation -from .job_recurrence_information import JobRecurrenceInformation -from .create_job_parameters import CreateJobParameters -from .build_job_parameters import BuildJobParameters -from .base_job_parameters import BaseJobParameters -from .job_information_basic import JobInformationBasic -from .job_information import JobInformation -from .job_pipeline_information_paged import JobPipelineInformationPaged -from .job_recurrence_information_paged import JobRecurrenceInformationPaged -from .job_information_basic_paged import JobInformationBasicPaged -from .data_lake_analytics_job_management_client_enums import ( - JobResourceType, - SeverityTypes, - CompileMode, - JobType, - JobState, - JobResult, -) - -__all__ = [ - 'JobStatisticsVertexStage', - 'JobStatistics', - 'JobDataPath', - 'JobStateAuditRecord', - 'JobResource', - 'Diagnostics', - 'USqlJobProperties', - 'HiveJobProperties', - 'JobProperties', - 'CreateUSqlJobProperties', - 'CreateJobProperties', - 'JobInnerError', - 'JobErrorDetails', - 'JobRelationshipProperties', - 'JobPipelineRunInformation', - 'JobPipelineInformation', - 'JobRecurrenceInformation', - 'CreateJobParameters', - 'BuildJobParameters', - 'BaseJobParameters', - 'JobInformationBasic', - 'JobInformation', - 'JobPipelineInformationPaged', - 'JobRecurrenceInformationPaged', - 'JobInformationBasicPaged', - 'JobResourceType', - 'SeverityTypes', - 'CompileMode', - 'JobType', - 'JobState', - 'JobResult', -] diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/base_job_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/base_job_parameters.py deleted file mode 100644 index 8ff42cdafe6..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/base_job_parameters.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BaseJobParameters(Model): - """Data Lake Analytics Job Parameters base class for build and submit. - - :param type: the job type of the current job (Hive or USql). Possible - values include: 'USql', 'Hive' - :type type: str or :class:`JobType - ` - :param properties: the job specific properties. - :type properties: :class:`CreateJobProperties - ` - """ - - _validation = { - 'type': {'required': True}, - 'properties': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'JobType'}, - 'properties': {'key': 'properties', 'type': 'CreateJobProperties'}, - } - - def __init__(self, type, properties): - self.type = type - self.properties = properties diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/build_job_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/build_job_parameters.py deleted file mode 100644 index 3bc9fe52b14..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/build_job_parameters.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .base_job_parameters import BaseJobParameters - - -class BuildJobParameters(BaseJobParameters): - """The parameters used to build a new Data Lake Analytics job. - - :param type: the job type of the current job (Hive or USql). Possible - values include: 'USql', 'Hive' - :type type: str or :class:`JobType - ` - :param properties: the job specific properties. - :type properties: :class:`CreateJobProperties - ` - :param name: the friendly name of the job to build. - :type name: str - """ - - _validation = { - 'type': {'required': True}, - 'properties': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'JobType'}, - 'properties': {'key': 'properties', 'type': 'CreateJobProperties'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, type, properties, name=None): - super(BuildJobParameters, self).__init__(type=type, properties=properties) - self.name = name diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_job_parameters.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_job_parameters.py deleted file mode 100644 index d8fb4e346f1..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_job_parameters.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .base_job_parameters import BaseJobParameters - - -class CreateJobParameters(BaseJobParameters): - """The parameters used to submit a new Data Lake Analytics job. - - :param type: the job type of the current job (Hive or USql). Possible - values include: 'USql', 'Hive' - :type type: str or :class:`JobType - ` - :param properties: the job specific properties. - :type properties: :class:`CreateJobProperties - ` - :param name: the friendly name of the job to submit. - :type name: str - :param degree_of_parallelism: the degree of parallelism to use for this - job. This must be greater than 0, if set to less than 0 it will default to - 1. Default value: 1 . - :type degree_of_parallelism: int - :param priority: the priority value to use for the current job. Lower - numbers have a higher priority. By default, a job has a priority of 1000. - This must be greater than 0. - :type priority: int - :param log_file_patterns: the list of log file name patterns to find in - the logFolder. '*' is the only matching character allowed. Example format: - jobExecution*.log or *mylog*.txt - :type log_file_patterns: list of str - :param related: the recurring job relationship information properties. - :type related: :class:`JobRelationshipProperties - ` - """ - - _validation = { - 'type': {'required': True}, - 'properties': {'required': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'JobType'}, - 'properties': {'key': 'properties', 'type': 'CreateJobProperties'}, - 'name': {'key': 'name', 'type': 'str'}, - 'degree_of_parallelism': {'key': 'degreeOfParallelism', 'type': 'int'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'log_file_patterns': {'key': 'logFilePatterns', 'type': '[str]'}, - 'related': {'key': 'related', 'type': 'JobRelationshipProperties'}, - } - - def __init__(self, type, properties, name, degree_of_parallelism=1, priority=None, log_file_patterns=None, related=None): - super(CreateJobParameters, self).__init__(type=type, properties=properties) - self.name = name - self.degree_of_parallelism = degree_of_parallelism - self.priority = priority - self.log_file_patterns = log_file_patterns - self.related = related diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_job_properties.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_job_properties.py deleted file mode 100644 index c4599162449..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_job_properties.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateJobProperties(Model): - """The common Data Lake Analytics job properties for job submission. - - :param runtime_version: the runtime version of the Data Lake Analytics - engine to use for the specific type of job being run. - :type runtime_version: str - :param script: the script to run - :type script: str - :param type: Polymorphic Discriminator - :type type: str - """ - - _validation = { - 'script': {'required': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'runtime_version': {'key': 'runtimeVersion', 'type': 'str'}, - 'script': {'key': 'script', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'type': {'USql': 'CreateUSqlJobProperties'} - } - - def __init__(self, script, runtime_version=None): - self.runtime_version = runtime_version - self.script = script - self.type = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_usql_job_properties.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_usql_job_properties.py deleted file mode 100644 index e85a3bcfa20..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/create_usql_job_properties.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .create_job_properties import CreateJobProperties - - -class CreateUSqlJobProperties(CreateJobProperties): - """U-SQL job properties used when submitting U-SQL jobs. - - :param runtime_version: the runtime version of the Data Lake Analytics - engine to use for the specific type of job being run. - :type runtime_version: str - :param script: the script to run - :type script: str - :param type: Polymorphic Discriminator - :type type: str - :param compile_mode: Optionally enforces a specific compilation mode for - the job during execution. If this is not specified during submission, the - server will determine the optimal compilation mode. Possible values - include: 'Semantic', 'Full', 'SingleBox' - :type compile_mode: str or :class:`CompileMode - ` - """ - - _validation = { - 'script': {'required': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'runtime_version': {'key': 'runtimeVersion', 'type': 'str'}, - 'script': {'key': 'script', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'compile_mode': {'key': 'compileMode', 'type': 'CompileMode'}, - } - - def __init__(self, script, runtime_version=None, compile_mode=None): - super(CreateUSqlJobProperties, self).__init__(runtime_version=runtime_version, script=script) - self.compile_mode = compile_mode - self.type = 'USql' diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/data_lake_analytics_job_management_client_enums.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/data_lake_analytics_job_management_client_enums.py deleted file mode 100644 index fdec7b65d26..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/data_lake_analytics_job_management_client_enums.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class JobResourceType(Enum): - - vertex_resource = "VertexResource" - job_manager_resource = "JobManagerResource" - statistics_resource = "StatisticsResource" - vertex_resource_in_user_folder = "VertexResourceInUserFolder" - job_manager_resource_in_user_folder = "JobManagerResourceInUserFolder" - statistics_resource_in_user_folder = "StatisticsResourceInUserFolder" - - -class SeverityTypes(Enum): - - warning = "Warning" - error = "Error" - info = "Info" - severe_warning = "SevereWarning" - deprecated = "Deprecated" - user_warning = "UserWarning" - - -class CompileMode(Enum): - - semantic = "Semantic" - full = "Full" - single_box = "SingleBox" - - -class JobType(Enum): - - usql = "USql" - hive = "Hive" - - -class JobState(Enum): - - accepted = "Accepted" - compiling = "Compiling" - ended = "Ended" - new = "New" - queued = "Queued" - running = "Running" - scheduling = "Scheduling" - starting = "Starting" - paused = "Paused" - waiting_for_capacity = "WaitingForCapacity" - - -class JobResult(Enum): - - none = "None" - succeeded = "Succeeded" - cancelled = "Cancelled" - failed = "Failed" diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/diagnostics.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/diagnostics.py deleted file mode 100644 index 7def54e08cd..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/diagnostics.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Diagnostics(Model): - """Error diagnostic information for failed jobs. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar column_number: the column where the error occured. - :vartype column_number: int - :ivar end: the ending index of the error. - :vartype end: int - :ivar line_number: the line number the error occured on. - :vartype line_number: int - :ivar message: the error message. - :vartype message: str - :ivar severity: the severity of the error. Possible values include: - 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', 'UserWarning' - :vartype severity: str or :class:`SeverityTypes - ` - :ivar start: the starting index of the error. - :vartype start: int - """ - - _validation = { - 'column_number': {'readonly': True}, - 'end': {'readonly': True}, - 'line_number': {'readonly': True}, - 'message': {'readonly': True}, - 'severity': {'readonly': True}, - 'start': {'readonly': True}, - } - - _attribute_map = { - 'column_number': {'key': 'columnNumber', 'type': 'int'}, - 'end': {'key': 'end', 'type': 'int'}, - 'line_number': {'key': 'lineNumber', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'severity': {'key': 'severity', 'type': 'SeverityTypes'}, - 'start': {'key': 'start', 'type': 'int'}, - } - - def __init__(self): - self.column_number = None - self.end = None - self.line_number = None - self.message = None - self.severity = None - self.start = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/hive_job_properties.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/hive_job_properties.py deleted file mode 100644 index 74df4f70dd0..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/hive_job_properties.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job_properties import JobProperties - - -class HiveJobProperties(JobProperties): - """Hive job properties used when retrieving Hive jobs. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param runtime_version: the runtime version of the Data Lake Analytics - engine to use for the specific type of job being run. - :type runtime_version: str - :param script: the script to run - :type script: str - :param type: Polymorphic Discriminator - :type type: str - :ivar logs_location: the Hive logs location - :vartype logs_location: str - :ivar output_location: the location of Hive job output files (both - execution output and results) - :vartype output_location: str - :ivar statement_count: the number of statements that will be run based on - the script - :vartype statement_count: int - :ivar executed_statement_count: the number of statements that have been - run based on the script - :vartype executed_statement_count: int - """ - - _validation = { - 'script': {'required': True}, - 'type': {'required': True}, - 'logs_location': {'readonly': True}, - 'output_location': {'readonly': True}, - 'statement_count': {'readonly': True}, - 'executed_statement_count': {'readonly': True}, - } - - _attribute_map = { - 'runtime_version': {'key': 'runtimeVersion', 'type': 'str'}, - 'script': {'key': 'script', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'logs_location': {'key': 'logsLocation', 'type': 'str'}, - 'output_location': {'key': 'outputLocation', 'type': 'str'}, - 'statement_count': {'key': 'statementCount', 'type': 'int'}, - 'executed_statement_count': {'key': 'executedStatementCount', 'type': 'int'}, - } - - def __init__(self, script, runtime_version=None): - super(HiveJobProperties, self).__init__(runtime_version=runtime_version, script=script) - self.logs_location = None - self.output_location = None - self.statement_count = None - self.executed_statement_count = None - self.type = 'Hive' diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_data_path.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_data_path.py deleted file mode 100644 index 394b125f35b..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_data_path.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobDataPath(Model): - """A Data Lake Analytics job data path item. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar job_id: the id of the job this data is for. - :vartype job_id: str - :ivar command: the command that this job data relates to. - :vartype command: str - :ivar paths: the list of paths to all of the job data. - :vartype paths: list of str - """ - - _validation = { - 'job_id': {'readonly': True}, - 'command': {'readonly': True}, - 'paths': {'readonly': True}, - } - - _attribute_map = { - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'command': {'key': 'command', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[str]'}, - } - - def __init__(self): - self.job_id = None - self.command = None - self.paths = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_error_details.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_error_details.py deleted file mode 100644 index 9b160bd9753..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_error_details.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobErrorDetails(Model): - """The Data Lake Analytics job error details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar description: the error message description - :vartype description: str - :ivar details: the details of the error message. - :vartype details: str - :ivar end_offset: the end offset in the job where the error was found. - :vartype end_offset: int - :ivar error_id: the specific identifier for the type of error encountered - in the job. - :vartype error_id: str - :ivar file_path: the path to any supplemental error files, if any. - :vartype file_path: str - :ivar help_link: the link to MSDN or Azure help for this type of error, if - any. - :vartype help_link: str - :ivar internal_diagnostics: the internal diagnostic stack trace if the - user requesting the job error details has sufficient permissions it will - be retrieved, otherwise it will be empty. - :vartype internal_diagnostics: str - :ivar line_number: the specific line number in the job where the error - occured. - :vartype line_number: int - :ivar message: the user friendly error message for the failure. - :vartype message: str - :ivar resolution: the recommended resolution for the failure, if any. - :vartype resolution: str - :ivar inner_error: the inner error of this specific job error message, if - any. - :vartype inner_error: :class:`JobInnerError - ` - :ivar severity: the severity level of the failure. Possible values - include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', - 'UserWarning' - :vartype severity: str or :class:`SeverityTypes - ` - :ivar source: the ultimate source of the failure (usually either SYSTEM or - USER). - :vartype source: str - :ivar start_offset: the start offset in the job where the error was found - :vartype start_offset: int - """ - - _validation = { - 'description': {'readonly': True}, - 'details': {'readonly': True}, - 'end_offset': {'readonly': True}, - 'error_id': {'readonly': True}, - 'file_path': {'readonly': True}, - 'help_link': {'readonly': True}, - 'internal_diagnostics': {'readonly': True}, - 'line_number': {'readonly': True}, - 'message': {'readonly': True}, - 'resolution': {'readonly': True}, - 'inner_error': {'readonly': True}, - 'severity': {'readonly': True}, - 'source': {'readonly': True}, - 'start_offset': {'readonly': True}, - } - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'details': {'key': 'details', 'type': 'str'}, - 'end_offset': {'key': 'endOffset', 'type': 'int'}, - 'error_id': {'key': 'errorId', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'help_link': {'key': 'helpLink', 'type': 'str'}, - 'internal_diagnostics': {'key': 'internalDiagnostics', 'type': 'str'}, - 'line_number': {'key': 'lineNumber', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'resolution': {'key': 'resolution', 'type': 'str'}, - 'inner_error': {'key': 'innerError', 'type': 'JobInnerError'}, - 'severity': {'key': 'severity', 'type': 'SeverityTypes'}, - 'source': {'key': 'source', 'type': 'str'}, - 'start_offset': {'key': 'startOffset', 'type': 'int'}, - } - - def __init__(self): - self.description = None - self.details = None - self.end_offset = None - self.error_id = None - self.file_path = None - self.help_link = None - self.internal_diagnostics = None - self.line_number = None - self.message = None - self.resolution = None - self.inner_error = None - self.severity = None - self.source = None - self.start_offset = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information.py deleted file mode 100644 index b4c54c483e3..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job_information_basic import JobInformationBasic - - -class JobInformation(JobInformationBasic): - """The extended Data Lake Analytics job information properties returned when - retrieving a specific job. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar job_id: the job's unique identifier (a GUID). - :vartype job_id: str - :param name: the friendly name of the job. - :type name: str - :param type: the job type of the current job (Hive or USql). Possible - values include: 'USql', 'Hive' - :type type: str or :class:`JobType - ` - :ivar submitter: the user or account that submitted the job. - :vartype submitter: str - :param degree_of_parallelism: the degree of parallelism used for this job. - This must be greater than 0, if set to less than 0 it will default to 1. - Default value: 1 . - :type degree_of_parallelism: int - :param priority: the priority value for the current job. Lower numbers - have a higher priority. By default, a job has a priority of 1000. This - must be greater than 0. - :type priority: int - :ivar submit_time: the time the job was submitted to the service. - :vartype submit_time: datetime - :ivar start_time: the start time of the job. - :vartype start_time: datetime - :ivar end_time: the completion time of the job. - :vartype end_time: datetime - :ivar state: the job state. When the job is in the Ended state, refer to - Result and ErrorMessage for details. Possible values include: 'Accepted', - 'Compiling', 'Ended', 'New', 'Queued', 'Running', 'Scheduling', - 'Starting', 'Paused', 'WaitingForCapacity' - :vartype state: str or :class:`JobState - ` - :ivar result: the result of job execution or the current result of the - running job. Possible values include: 'None', 'Succeeded', 'Cancelled', - 'Failed' - :vartype result: str or :class:`JobResult - ` - :ivar log_folder: the log folder path to use in the following format: - adl://.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/. - :vartype log_folder: str - :param log_file_patterns: the list of log file name patterns to find in - the logFolder. '*' is the only matching character allowed. Example format: - jobExecution*.log or *mylog*.txt - :type log_file_patterns: list of str - :param related: the recurring job relationship information properties. - :type related: :class:`JobRelationshipProperties - ` - :ivar error_message: the error message details for the job, if the job - failed. - :vartype error_message: list of :class:`JobErrorDetails - ` - :ivar state_audit_records: the job state audit records, indicating when - various operations have been performed on this job. - :vartype state_audit_records: list of :class:`JobStateAuditRecord - ` - :param properties: the job specific properties. - :type properties: :class:`JobProperties - ` - """ - - _validation = { - 'job_id': {'readonly': True}, - 'name': {'required': True}, - 'type': {'required': True}, - 'submitter': {'readonly': True}, - 'submit_time': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'state': {'readonly': True}, - 'result': {'readonly': True}, - 'log_folder': {'readonly': True}, - 'error_message': {'readonly': True}, - 'state_audit_records': {'readonly': True}, - 'properties': {'required': True}, - } - - _attribute_map = { - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'JobType'}, - 'submitter': {'key': 'submitter', 'type': 'str'}, - 'degree_of_parallelism': {'key': 'degreeOfParallelism', 'type': 'int'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'submit_time': {'key': 'submitTime', 'type': 'iso-8601'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'JobState'}, - 'result': {'key': 'result', 'type': 'JobResult'}, - 'log_folder': {'key': 'logFolder', 'type': 'str'}, - 'log_file_patterns': {'key': 'logFilePatterns', 'type': '[str]'}, - 'related': {'key': 'related', 'type': 'JobRelationshipProperties'}, - 'error_message': {'key': 'errorMessage', 'type': '[JobErrorDetails]'}, - 'state_audit_records': {'key': 'stateAuditRecords', 'type': '[JobStateAuditRecord]'}, - 'properties': {'key': 'properties', 'type': 'JobProperties'}, - } - - def __init__(self, name, type, properties, degree_of_parallelism=1, priority=None, log_file_patterns=None, related=None): - super(JobInformation, self).__init__(name=name, type=type, degree_of_parallelism=degree_of_parallelism, priority=priority, log_file_patterns=log_file_patterns, related=related) - self.error_message = None - self.state_audit_records = None - self.properties = properties diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information_basic.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information_basic.py deleted file mode 100644 index b20b9b65323..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information_basic.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobInformationBasic(Model): - """The common Data Lake Analytics job information properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar job_id: the job's unique identifier (a GUID). - :vartype job_id: str - :param name: the friendly name of the job. - :type name: str - :param type: the job type of the current job (Hive or USql). Possible - values include: 'USql', 'Hive' - :type type: str or :class:`JobType - ` - :ivar submitter: the user or account that submitted the job. - :vartype submitter: str - :param degree_of_parallelism: the degree of parallelism used for this job. - This must be greater than 0, if set to less than 0 it will default to 1. - Default value: 1 . - :type degree_of_parallelism: int - :param priority: the priority value for the current job. Lower numbers - have a higher priority. By default, a job has a priority of 1000. This - must be greater than 0. - :type priority: int - :ivar submit_time: the time the job was submitted to the service. - :vartype submit_time: datetime - :ivar start_time: the start time of the job. - :vartype start_time: datetime - :ivar end_time: the completion time of the job. - :vartype end_time: datetime - :ivar state: the job state. When the job is in the Ended state, refer to - Result and ErrorMessage for details. Possible values include: 'Accepted', - 'Compiling', 'Ended', 'New', 'Queued', 'Running', 'Scheduling', - 'Starting', 'Paused', 'WaitingForCapacity' - :vartype state: str or :class:`JobState - ` - :ivar result: the result of job execution or the current result of the - running job. Possible values include: 'None', 'Succeeded', 'Cancelled', - 'Failed' - :vartype result: str or :class:`JobResult - ` - :ivar log_folder: the log folder path to use in the following format: - adl://.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/. - :vartype log_folder: str - :param log_file_patterns: the list of log file name patterns to find in - the logFolder. '*' is the only matching character allowed. Example format: - jobExecution*.log or *mylog*.txt - :type log_file_patterns: list of str - :param related: the recurring job relationship information properties. - :type related: :class:`JobRelationshipProperties - ` - """ - - _validation = { - 'job_id': {'readonly': True}, - 'name': {'required': True}, - 'type': {'required': True}, - 'submitter': {'readonly': True}, - 'submit_time': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'state': {'readonly': True}, - 'result': {'readonly': True}, - 'log_folder': {'readonly': True}, - } - - _attribute_map = { - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'JobType'}, - 'submitter': {'key': 'submitter', 'type': 'str'}, - 'degree_of_parallelism': {'key': 'degreeOfParallelism', 'type': 'int'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'submit_time': {'key': 'submitTime', 'type': 'iso-8601'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'JobState'}, - 'result': {'key': 'result', 'type': 'JobResult'}, - 'log_folder': {'key': 'logFolder', 'type': 'str'}, - 'log_file_patterns': {'key': 'logFilePatterns', 'type': '[str]'}, - 'related': {'key': 'related', 'type': 'JobRelationshipProperties'}, - } - - def __init__(self, name, type, degree_of_parallelism=1, priority=None, log_file_patterns=None, related=None): - self.job_id = None - self.name = name - self.type = type - self.submitter = None - self.degree_of_parallelism = degree_of_parallelism - self.priority = priority - self.submit_time = None - self.start_time = None - self.end_time = None - self.state = None - self.result = None - self.log_folder = None - self.log_file_patterns = log_file_patterns - self.related = related diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information_basic_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information_basic_paged.py deleted file mode 100644 index 85a36a8c551..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_information_basic_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class JobInformationBasicPaged(Paged): - """ - A paging container for iterating over a list of :class:`JobInformationBasic ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[JobInformationBasic]'} - } - - def __init__(self, *args, **kwargs): - - super(JobInformationBasicPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_inner_error.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_inner_error.py deleted file mode 100644 index 00b1e4eaf1c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_inner_error.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobInnerError(Model): - """The Data Lake Analytics job error details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar diagnostic_code: the diagnostic error code. - :vartype diagnostic_code: int - :ivar severity: the severity level of the failure. Possible values - include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', - 'UserWarning' - :vartype severity: str or :class:`SeverityTypes - ` - :ivar details: the details of the error message. - :vartype details: str - :ivar component: the component that failed. - :vartype component: str - :ivar error_id: the specific identifier for the type of error encountered - in the job. - :vartype error_id: str - :ivar help_link: the link to MSDN or Azure help for this type of error, if - any. - :vartype help_link: str - :ivar internal_diagnostics: the internal diagnostic stack trace if the - user requesting the job error details has sufficient permissions it will - be retrieved, otherwise it will be empty. - :vartype internal_diagnostics: str - :ivar message: the user friendly error message for the failure. - :vartype message: str - :ivar resolution: the recommended resolution for the failure, if any. - :vartype resolution: str - :ivar source: the ultimate source of the failure (usually either SYSTEM or - USER). - :vartype source: str - :ivar description: the error message description - :vartype description: str - """ - - _validation = { - 'diagnostic_code': {'readonly': True}, - 'severity': {'readonly': True}, - 'details': {'readonly': True}, - 'component': {'readonly': True}, - 'error_id': {'readonly': True}, - 'help_link': {'readonly': True}, - 'internal_diagnostics': {'readonly': True}, - 'message': {'readonly': True}, - 'resolution': {'readonly': True}, - 'source': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'diagnostic_code': {'key': 'diagnosticCode', 'type': 'int'}, - 'severity': {'key': 'severity', 'type': 'SeverityTypes'}, - 'details': {'key': 'details', 'type': 'str'}, - 'component': {'key': 'component', 'type': 'str'}, - 'error_id': {'key': 'errorId', 'type': 'str'}, - 'help_link': {'key': 'helpLink', 'type': 'str'}, - 'internal_diagnostics': {'key': 'internalDiagnostics', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'resolution': {'key': 'resolution', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self): - self.diagnostic_code = None - self.severity = None - self.details = None - self.component = None - self.error_id = None - self.help_link = None - self.internal_diagnostics = None - self.message = None - self.resolution = None - self.source = None - self.description = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_information.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_information.py deleted file mode 100644 index 99a475912ae..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_information.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobPipelineInformation(Model): - """Job Pipeline Information, showing the relationship of jobs and recurrences - of those jobs in a pipeline. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar pipeline_id: the job relationship pipeline identifier (a GUID). - :vartype pipeline_id: str - :ivar pipeline_name: the friendly name of the job relationship pipeline, - which does not need to be unique. - :vartype pipeline_name: str - :ivar pipeline_uri: the pipeline uri, unique, links to the originating - service for this pipeline. - :vartype pipeline_uri: str - :ivar num_jobs_failed: the number of jobs in this pipeline that have - failed. - :vartype num_jobs_failed: int - :ivar num_jobs_canceled: the number of jobs in this pipeline that have - been canceled. - :vartype num_jobs_canceled: int - :ivar num_jobs_succeeded: the number of jobs in this pipeline that have - succeeded. - :vartype num_jobs_succeeded: int - :ivar au_hours_failed: the number of job execution hours that resulted in - failed jobs. - :vartype au_hours_failed: float - :ivar au_hours_canceled: the number of job execution hours that resulted - in canceled jobs. - :vartype au_hours_canceled: float - :ivar au_hours_succeeded: the number of job execution hours that resulted - in successful jobs. - :vartype au_hours_succeeded: float - :ivar last_submit_time: the last time a job in this pipeline was - submitted. - :vartype last_submit_time: datetime - :ivar runs: the list of recurrence identifiers representing each run of - this pipeline. - :vartype runs: list of :class:`JobPipelineRunInformation - ` - :ivar recurrences: the list of recurrence identifiers representing each - run of this pipeline. - :vartype recurrences: list of str - """ - - _validation = { - 'pipeline_id': {'readonly': True}, - 'pipeline_name': {'readonly': True, 'max_length': 260}, - 'pipeline_uri': {'readonly': True}, - 'num_jobs_failed': {'readonly': True}, - 'num_jobs_canceled': {'readonly': True}, - 'num_jobs_succeeded': {'readonly': True}, - 'au_hours_failed': {'readonly': True}, - 'au_hours_canceled': {'readonly': True}, - 'au_hours_succeeded': {'readonly': True}, - 'last_submit_time': {'readonly': True}, - 'runs': {'readonly': True}, - 'recurrences': {'readonly': True}, - } - - _attribute_map = { - 'pipeline_id': {'key': 'pipelineId', 'type': 'str'}, - 'pipeline_name': {'key': 'pipelineName', 'type': 'str'}, - 'pipeline_uri': {'key': 'pipelineUri', 'type': 'str'}, - 'num_jobs_failed': {'key': 'numJobsFailed', 'type': 'int'}, - 'num_jobs_canceled': {'key': 'numJobsCanceled', 'type': 'int'}, - 'num_jobs_succeeded': {'key': 'numJobsSucceeded', 'type': 'int'}, - 'au_hours_failed': {'key': 'auHoursFailed', 'type': 'float'}, - 'au_hours_canceled': {'key': 'auHoursCanceled', 'type': 'float'}, - 'au_hours_succeeded': {'key': 'auHoursSucceeded', 'type': 'float'}, - 'last_submit_time': {'key': 'lastSubmitTime', 'type': 'iso-8601'}, - 'runs': {'key': 'runs', 'type': '[JobPipelineRunInformation]'}, - 'recurrences': {'key': 'recurrences', 'type': '[str]'}, - } - - def __init__(self): - self.pipeline_id = None - self.pipeline_name = None - self.pipeline_uri = None - self.num_jobs_failed = None - self.num_jobs_canceled = None - self.num_jobs_succeeded = None - self.au_hours_failed = None - self.au_hours_canceled = None - self.au_hours_succeeded = None - self.last_submit_time = None - self.runs = None - self.recurrences = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_information_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_information_paged.py deleted file mode 100644 index c33529c88e6..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_information_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class JobPipelineInformationPaged(Paged): - """ - A paging container for iterating over a list of :class:`JobPipelineInformation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[JobPipelineInformation]'} - } - - def __init__(self, *args, **kwargs): - - super(JobPipelineInformationPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_run_information.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_run_information.py deleted file mode 100644 index ff829170c6e..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_pipeline_run_information.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobPipelineRunInformation(Model): - """Run info for a specific job pipeline. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar run_id: the run identifier of an instance of pipeline executions (a - GUID). - :vartype run_id: str - :ivar last_submit_time: the time this instance was last submitted. - :vartype last_submit_time: datetime - """ - - _validation = { - 'run_id': {'readonly': True}, - 'last_submit_time': {'readonly': True}, - } - - _attribute_map = { - 'run_id': {'key': 'runId', 'type': 'str'}, - 'last_submit_time': {'key': 'lastSubmitTime', 'type': 'iso-8601'}, - } - - def __init__(self): - self.run_id = None - self.last_submit_time = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_properties.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_properties.py deleted file mode 100644 index 54ecbbff64a..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_properties.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobProperties(Model): - """The common Data Lake Analytics job properties. - - :param runtime_version: the runtime version of the Data Lake Analytics - engine to use for the specific type of job being run. - :type runtime_version: str - :param script: the script to run - :type script: str - :param type: Polymorphic Discriminator - :type type: str - """ - - _validation = { - 'script': {'required': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'runtime_version': {'key': 'runtimeVersion', 'type': 'str'}, - 'script': {'key': 'script', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'type': {'USql': 'USqlJobProperties', 'Hive': 'HiveJobProperties'} - } - - def __init__(self, script, runtime_version=None): - self.runtime_version = runtime_version - self.script = script - self.type = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_recurrence_information.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_recurrence_information.py deleted file mode 100644 index b37a2c98a00..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_recurrence_information.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobRecurrenceInformation(Model): - """Recurrence job information for a specific recurrence. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar recurrence_id: the recurrence identifier (a GUID), unique per - activity/script, regardless of iterations. This is something to link - different occurrences of the same job together. - :vartype recurrence_id: str - :ivar recurrence_name: the recurrence name, user friendly name for the - correlation between jobs. - :vartype recurrence_name: str - :ivar num_jobs_failed: the number of jobs in this recurrence that have - failed. - :vartype num_jobs_failed: int - :ivar num_jobs_canceled: the number of jobs in this recurrence that have - been canceled. - :vartype num_jobs_canceled: int - :ivar num_jobs_succeeded: the number of jobs in this recurrence that have - succeeded. - :vartype num_jobs_succeeded: int - :ivar au_hours_failed: the number of job execution hours that resulted in - failed jobs. - :vartype au_hours_failed: float - :ivar au_hours_canceled: the number of job execution hours that resulted - in canceled jobs. - :vartype au_hours_canceled: float - :ivar au_hours_succeeded: the number of job execution hours that resulted - in successful jobs. - :vartype au_hours_succeeded: float - :ivar last_submit_time: the last time a job in this recurrence was - submitted. - :vartype last_submit_time: datetime - """ - - _validation = { - 'recurrence_id': {'readonly': True}, - 'recurrence_name': {'readonly': True}, - 'num_jobs_failed': {'readonly': True}, - 'num_jobs_canceled': {'readonly': True}, - 'num_jobs_succeeded': {'readonly': True}, - 'au_hours_failed': {'readonly': True}, - 'au_hours_canceled': {'readonly': True}, - 'au_hours_succeeded': {'readonly': True}, - 'last_submit_time': {'readonly': True}, - } - - _attribute_map = { - 'recurrence_id': {'key': 'recurrenceId', 'type': 'str'}, - 'recurrence_name': {'key': 'recurrenceName', 'type': 'str'}, - 'num_jobs_failed': {'key': 'numJobsFailed', 'type': 'int'}, - 'num_jobs_canceled': {'key': 'numJobsCanceled', 'type': 'int'}, - 'num_jobs_succeeded': {'key': 'numJobsSucceeded', 'type': 'int'}, - 'au_hours_failed': {'key': 'auHoursFailed', 'type': 'float'}, - 'au_hours_canceled': {'key': 'auHoursCanceled', 'type': 'float'}, - 'au_hours_succeeded': {'key': 'auHoursSucceeded', 'type': 'float'}, - 'last_submit_time': {'key': 'lastSubmitTime', 'type': 'iso-8601'}, - } - - def __init__(self): - self.recurrence_id = None - self.recurrence_name = None - self.num_jobs_failed = None - self.num_jobs_canceled = None - self.num_jobs_succeeded = None - self.au_hours_failed = None - self.au_hours_canceled = None - self.au_hours_succeeded = None - self.last_submit_time = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_recurrence_information_paged.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_recurrence_information_paged.py deleted file mode 100644 index ead66eb0c35..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_recurrence_information_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class JobRecurrenceInformationPaged(Paged): - """ - A paging container for iterating over a list of :class:`JobRecurrenceInformation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[JobRecurrenceInformation]'} - } - - def __init__(self, *args, **kwargs): - - super(JobRecurrenceInformationPaged, self).__init__(*args, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_relationship_properties.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_relationship_properties.py deleted file mode 100644 index df704d923be..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_relationship_properties.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobRelationshipProperties(Model): - """Job relationship information properties including pipeline information, - correlation information, etc. - - :param pipeline_id: the job relationship pipeline identifier (a GUID). - :type pipeline_id: str - :param pipeline_name: the friendly name of the job relationship pipeline, - which does not need to be unique. - :type pipeline_name: str - :param pipeline_uri: the pipeline uri, unique, links to the originating - service for this pipeline. - :type pipeline_uri: str - :param run_id: the run identifier (a GUID), unique identifier of the - iteration of this pipeline. - :type run_id: str - :param recurrence_id: the recurrence identifier (a GUID), unique per - activity/script, regardless of iterations. This is something to link - different occurrences of the same job together. - :type recurrence_id: str - :param recurrence_name: the recurrence name, user friendly name for the - correlation between jobs. - :type recurrence_name: str - """ - - _validation = { - 'pipeline_name': {'max_length': 260}, - 'recurrence_id': {'required': True}, - 'recurrence_name': {'max_length': 260}, - } - - _attribute_map = { - 'pipeline_id': {'key': 'pipelineId', 'type': 'str'}, - 'pipeline_name': {'key': 'pipelineName', 'type': 'str'}, - 'pipeline_uri': {'key': 'pipelineUri', 'type': 'str'}, - 'run_id': {'key': 'runId', 'type': 'str'}, - 'recurrence_id': {'key': 'recurrenceId', 'type': 'str'}, - 'recurrence_name': {'key': 'recurrenceName', 'type': 'str'}, - } - - def __init__(self, recurrence_id, pipeline_id=None, pipeline_name=None, pipeline_uri=None, run_id=None, recurrence_name=None): - self.pipeline_id = pipeline_id - self.pipeline_name = pipeline_name - self.pipeline_uri = pipeline_uri - self.run_id = run_id - self.recurrence_id = recurrence_id - self.recurrence_name = recurrence_name diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_resource.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_resource.py deleted file mode 100644 index fd433c5aa75..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_resource.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobResource(Model): - """The Data Lake Analytics job resources. - - :param name: the name of the resource. - :type name: str - :param resource_path: the path to the resource. - :type resource_path: str - :param type: the job resource type. Possible values include: - 'VertexResource', 'JobManagerResource', 'StatisticsResource', - 'VertexResourceInUserFolder', 'JobManagerResourceInUserFolder', - 'StatisticsResourceInUserFolder' - :type type: str or :class:`JobResourceType - ` - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'resource_path': {'key': 'resourcePath', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'JobResourceType'}, - } - - def __init__(self, name=None, resource_path=None, type=None): - self.name = name - self.resource_path = resource_path - self.type = type diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_state_audit_record.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_state_audit_record.py deleted file mode 100644 index 50c488141fe..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_state_audit_record.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobStateAuditRecord(Model): - """The Data Lake Analytics job state audit records for tracking the lifecycle - of a job. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar new_state: the new state the job is in. - :vartype new_state: str - :ivar time_stamp: the time stamp that the state change took place. - :vartype time_stamp: datetime - :ivar requested_by_user: the user who requests the change. - :vartype requested_by_user: str - :ivar details: the details of the audit log. - :vartype details: str - """ - - _validation = { - 'new_state': {'readonly': True}, - 'time_stamp': {'readonly': True}, - 'requested_by_user': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'new_state': {'key': 'newState', 'type': 'str'}, - 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, - 'requested_by_user': {'key': 'requestedByUser', 'type': 'str'}, - 'details': {'key': 'details', 'type': 'str'}, - } - - def __init__(self): - self.new_state = None - self.time_stamp = None - self.requested_by_user = None - self.details = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_statistics.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_statistics.py deleted file mode 100644 index ff8bd6e0317..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_statistics.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobStatistics(Model): - """The Data Lake Analytics job execution statistics. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar last_update_time_utc: the last update time for the statistics. - :vartype last_update_time_utc: datetime - :ivar finalizing_time_utc: the job finalizing start time. - :vartype finalizing_time_utc: datetime - :ivar stages: the list of stages for the job. - :vartype stages: list of :class:`JobStatisticsVertexStage - ` - """ - - _validation = { - 'last_update_time_utc': {'readonly': True}, - 'finalizing_time_utc': {'readonly': True}, - 'stages': {'readonly': True}, - } - - _attribute_map = { - 'last_update_time_utc': {'key': 'lastUpdateTimeUtc', 'type': 'iso-8601'}, - 'finalizing_time_utc': {'key': 'finalizingTimeUtc', 'type': 'iso-8601'}, - 'stages': {'key': 'stages', 'type': '[JobStatisticsVertexStage]'}, - } - - def __init__(self): - self.last_update_time_utc = None - self.finalizing_time_utc = None - self.stages = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_statistics_vertex_stage.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_statistics_vertex_stage.py deleted file mode 100644 index 1cb065a4dcf..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/job_statistics_vertex_stage.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobStatisticsVertexStage(Model): - """The Data Lake Analytics job statistics vertex stage information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar data_read: the amount of data read, in bytes. - :vartype data_read: long - :ivar data_read_cross_pod: the amount of data read across multiple pods, - in bytes. - :vartype data_read_cross_pod: long - :ivar data_read_intra_pod: the amount of data read in one pod, in bytes. - :vartype data_read_intra_pod: long - :ivar data_to_read: the amount of data remaining to be read, in bytes. - :vartype data_to_read: long - :ivar data_written: the amount of data written, in bytes. - :vartype data_written: long - :ivar duplicate_discard_count: the number of duplicates that were - discarded. - :vartype duplicate_discard_count: int - :ivar failed_count: the number of failures that occured in this stage. - :vartype failed_count: int - :ivar max_vertex_data_read: the maximum amount of data read in a single - vertex, in bytes. - :vartype max_vertex_data_read: long - :ivar min_vertex_data_read: the minimum amount of data read in a single - vertex, in bytes. - :vartype min_vertex_data_read: long - :ivar read_failure_count: the number of read failures in this stage. - :vartype read_failure_count: int - :ivar revocation_count: the number of vertices that were revoked during - this stage. - :vartype revocation_count: int - :ivar running_count: the number of currently running vertices in this - stage. - :vartype running_count: int - :ivar scheduled_count: the number of currently scheduled vertices in this - stage - :vartype scheduled_count: int - :ivar stage_name: the name of this stage in job execution. - :vartype stage_name: str - :ivar succeeded_count: the number of vertices that succeeded in this - stage. - :vartype succeeded_count: int - :ivar temp_data_written: the amount of temporary data written, in bytes. - :vartype temp_data_written: long - :ivar total_count: the total vertex count for this stage. - :vartype total_count: int - :ivar total_failed_time: the amount of time that failed vertices took up - in this stage. - :vartype total_failed_time: timedelta - :ivar total_progress: the current progress of this stage, as a percentage. - :vartype total_progress: int - :ivar total_succeeded_time: the amount of time all successful vertices - took in this stage. - :vartype total_succeeded_time: timedelta - """ - - _validation = { - 'data_read': {'readonly': True}, - 'data_read_cross_pod': {'readonly': True}, - 'data_read_intra_pod': {'readonly': True}, - 'data_to_read': {'readonly': True}, - 'data_written': {'readonly': True}, - 'duplicate_discard_count': {'readonly': True}, - 'failed_count': {'readonly': True}, - 'max_vertex_data_read': {'readonly': True}, - 'min_vertex_data_read': {'readonly': True}, - 'read_failure_count': {'readonly': True}, - 'revocation_count': {'readonly': True}, - 'running_count': {'readonly': True}, - 'scheduled_count': {'readonly': True}, - 'stage_name': {'readonly': True}, - 'succeeded_count': {'readonly': True}, - 'temp_data_written': {'readonly': True}, - 'total_count': {'readonly': True}, - 'total_failed_time': {'readonly': True}, - 'total_progress': {'readonly': True}, - 'total_succeeded_time': {'readonly': True}, - } - - _attribute_map = { - 'data_read': {'key': 'dataRead', 'type': 'long'}, - 'data_read_cross_pod': {'key': 'dataReadCrossPod', 'type': 'long'}, - 'data_read_intra_pod': {'key': 'dataReadIntraPod', 'type': 'long'}, - 'data_to_read': {'key': 'dataToRead', 'type': 'long'}, - 'data_written': {'key': 'dataWritten', 'type': 'long'}, - 'duplicate_discard_count': {'key': 'duplicateDiscardCount', 'type': 'int'}, - 'failed_count': {'key': 'failedCount', 'type': 'int'}, - 'max_vertex_data_read': {'key': 'maxVertexDataRead', 'type': 'long'}, - 'min_vertex_data_read': {'key': 'minVertexDataRead', 'type': 'long'}, - 'read_failure_count': {'key': 'readFailureCount', 'type': 'int'}, - 'revocation_count': {'key': 'revocationCount', 'type': 'int'}, - 'running_count': {'key': 'runningCount', 'type': 'int'}, - 'scheduled_count': {'key': 'scheduledCount', 'type': 'int'}, - 'stage_name': {'key': 'stageName', 'type': 'str'}, - 'succeeded_count': {'key': 'succeededCount', 'type': 'int'}, - 'temp_data_written': {'key': 'tempDataWritten', 'type': 'long'}, - 'total_count': {'key': 'totalCount', 'type': 'int'}, - 'total_failed_time': {'key': 'totalFailedTime', 'type': 'duration'}, - 'total_progress': {'key': 'totalProgress', 'type': 'int'}, - 'total_succeeded_time': {'key': 'totalSucceededTime', 'type': 'duration'}, - } - - def __init__(self): - self.data_read = None - self.data_read_cross_pod = None - self.data_read_intra_pod = None - self.data_to_read = None - self.data_written = None - self.duplicate_discard_count = None - self.failed_count = None - self.max_vertex_data_read = None - self.min_vertex_data_read = None - self.read_failure_count = None - self.revocation_count = None - self.running_count = None - self.scheduled_count = None - self.stage_name = None - self.succeeded_count = None - self.temp_data_written = None - self.total_count = None - self.total_failed_time = None - self.total_progress = None - self.total_succeeded_time = None diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/usql_job_properties.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/usql_job_properties.py deleted file mode 100644 index 0fc94bebc07..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/models/usql_job_properties.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job_properties import JobProperties - - -class USqlJobProperties(JobProperties): - """U-SQL job properties used when retrieving U-SQL jobs. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param runtime_version: the runtime version of the Data Lake Analytics - engine to use for the specific type of job being run. - :type runtime_version: str - :param script: the script to run - :type script: str - :param type: Polymorphic Discriminator - :type type: str - :ivar resources: the list of resources that are required by the job - :vartype resources: list of :class:`JobResource - ` - :ivar statistics: the job specific statistics. - :vartype statistics: :class:`JobStatistics - ` - :ivar debug_data: the job specific debug data locations. - :vartype debug_data: :class:`JobDataPath - ` - :ivar diagnostics: the diagnostics for the job. - :vartype diagnostics: list of :class:`Diagnostics - ` - :ivar algebra_file_path: the algebra file path after the job has completed - :vartype algebra_file_path: str - :ivar total_compilation_time: the total time this job spent compiling. - This value should not be set by the user and will be ignored if it is. - :vartype total_compilation_time: timedelta - :ivar total_pause_time: the total time this job spent paused. This value - should not be set by the user and will be ignored if it is. - :vartype total_pause_time: timedelta - :ivar total_queued_time: the total time this job spent queued. This value - should not be set by the user and will be ignored if it is. - :vartype total_queued_time: timedelta - :ivar total_running_time: the total time this job spent executing. This - value should not be set by the user and will be ignored if it is. - :vartype total_running_time: timedelta - :ivar root_process_node_id: the ID used to identify the job manager - coordinating job execution. This value should not be set by the user and - will be ignored if it is. - :vartype root_process_node_id: str - :ivar yarn_application_id: the ID used to identify the yarn application - executing the job. This value should not be set by the user and will be - ignored if it is. - :vartype yarn_application_id: str - :ivar yarn_application_time_stamp: the timestamp (in ticks) for the yarn - application executing the job. This value should not be set by the user - and will be ignored if it is. - :vartype yarn_application_time_stamp: long - :ivar compile_mode: the specific compilation mode for the job used during - execution. If this is not specified during submission, the server will - determine the optimal compilation mode. Possible values include: - 'Semantic', 'Full', 'SingleBox' - :vartype compile_mode: str or :class:`CompileMode - ` - """ - - _validation = { - 'script': {'required': True}, - 'type': {'required': True}, - 'resources': {'readonly': True}, - 'statistics': {'readonly': True}, - 'debug_data': {'readonly': True}, - 'diagnostics': {'readonly': True}, - 'algebra_file_path': {'readonly': True}, - 'total_compilation_time': {'readonly': True}, - 'total_pause_time': {'readonly': True}, - 'total_queued_time': {'readonly': True}, - 'total_running_time': {'readonly': True}, - 'root_process_node_id': {'readonly': True}, - 'yarn_application_id': {'readonly': True}, - 'yarn_application_time_stamp': {'readonly': True}, - 'compile_mode': {'readonly': True}, - } - - _attribute_map = { - 'runtime_version': {'key': 'runtimeVersion', 'type': 'str'}, - 'script': {'key': 'script', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'resources': {'key': 'resources', 'type': '[JobResource]'}, - 'statistics': {'key': 'statistics', 'type': 'JobStatistics'}, - 'debug_data': {'key': 'debugData', 'type': 'JobDataPath'}, - 'diagnostics': {'key': 'diagnostics', 'type': '[Diagnostics]'}, - 'algebra_file_path': {'key': 'algebraFilePath', 'type': 'str'}, - 'total_compilation_time': {'key': 'totalCompilationTime', 'type': 'duration'}, - 'total_pause_time': {'key': 'totalPauseTime', 'type': 'duration'}, - 'total_queued_time': {'key': 'totalQueuedTime', 'type': 'duration'}, - 'total_running_time': {'key': 'totalRunningTime', 'type': 'duration'}, - 'root_process_node_id': {'key': 'rootProcessNodeId', 'type': 'str'}, - 'yarn_application_id': {'key': 'yarnApplicationId', 'type': 'str'}, - 'yarn_application_time_stamp': {'key': 'yarnApplicationTimeStamp', 'type': 'long'}, - 'compile_mode': {'key': 'compileMode', 'type': 'CompileMode'}, - } - - def __init__(self, script, runtime_version=None): - super(USqlJobProperties, self).__init__(runtime_version=runtime_version, script=script) - self.resources = None - self.statistics = None - self.debug_data = None - self.diagnostics = None - self.algebra_file_path = None - self.total_compilation_time = None - self.total_pause_time = None - self.total_queued_time = None - self.total_running_time = None - self.root_process_node_id = None - self.yarn_application_id = None - self.yarn_application_time_stamp = None - self.compile_mode = None - self.type = 'USql' diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/__init__.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/__init__.py deleted file mode 100644 index 828bb030573..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .pipeline_operations import PipelineOperations -from .recurrence_operations import RecurrenceOperations -from .job_operations import JobOperations - -__all__ = [ - 'PipelineOperations', - 'RecurrenceOperations', - 'JobOperations', -] diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/job_operations.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/job_operations.py deleted file mode 100644 index 784575a75aa..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/job_operations.py +++ /dev/null @@ -1,538 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class JobOperations(object): - """JobOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-11-01". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-11-01" - - self.config = config - - def get_statistics( - self, account_name, job_identity, custom_headers=None, raw=False, **operation_config): - """Gets statistics of the specified job. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param job_identity: Job Information ID. - :type job_identity: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`JobStatistics - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`JobStatistics - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/Jobs/{jobIdentity}/GetStatistics' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True), - 'jobIdentity': self._serialize.url("job_identity", job_identity, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('JobStatistics', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_debug_data_path( - self, account_name, job_identity, custom_headers=None, raw=False, **operation_config): - """Gets the job debug data information specified by the job ID. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param job_identity: JobInfo ID. - :type job_identity: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`JobDataPath - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`JobDataPath - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/Jobs/{jobIdentity}/GetDebugDataPath' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True), - 'jobIdentity': self._serialize.url("job_identity", job_identity, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('JobDataPath', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def build( - self, account_name, parameters, custom_headers=None, raw=False, **operation_config): - """Builds (compiles) the specified job in the specified Data Lake - Analytics account for job correctness and validation. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param parameters: The parameters to build a job. - :type parameters: :class:`BuildJobParameters - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`JobInformation - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`JobInformation - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/BuildJob' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'BuildJobParameters') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('JobInformation', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def cancel( - self, account_name, job_identity, custom_headers=None, raw=False, **operation_config): - """Cancels the running job specified by the job ID. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param job_identity: JobInfo ID to cancel. - :type job_identity: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or - :class:`ClientRawResponse` if - raw=true - :rtype: None or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/Jobs/{jobIdentity}/CancelJob' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True), - 'jobIdentity': self._serialize.url("job_identity", job_identity, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def create( - self, account_name, job_identity, parameters, custom_headers=None, raw=False, **operation_config): - """Submits a job to the specified Data Lake Analytics account. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param job_identity: The job ID (a GUID) for the job being submitted. - :type job_identity: str - :param parameters: The parameters to submit a job. - :type parameters: :class:`CreateJobParameters - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`JobInformation - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`JobInformation - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/Jobs/{jobIdentity}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True), - 'jobIdentity': self._serialize.url("job_identity", job_identity, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'CreateJobParameters') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('JobInformation', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get( - self, account_name, job_identity, custom_headers=None, raw=False, **operation_config): - """Gets the job information for the specified job ID. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param job_identity: JobInfo ID. - :type job_identity: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`JobInformation - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`JobInformation - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/Jobs/{jobIdentity}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True), - 'jobIdentity': self._serialize.url("job_identity", job_identity, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('JobInformation', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list( - self, account_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config): - """Lists the jobs, if any, associated with the specified Data Lake - Analytics account. The response includes a link to the next page of - results, if any. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param filter: OData filter. Optional. - :type filter: str - :param top: The number of items to return. Optional. - :type top: int - :param skip: The number of items to skip over before returning - elements. Optional. - :type skip: int - :param select: OData Select statement. Limits the properties on each - entry to just those requested, e.g. - Categories?$select=CategoryName,Description. Optional. - :type select: str - :param orderby: OrderBy clause. One or more comma-separated - expressions with an optional "asc" (the default) or "desc" depending - on the order you'd like the values sorted, e.g. - Categories?$orderby=CategoryName desc. Optional. - :type orderby: str - :param count: The Boolean value of true or false to request a count of - the matching resources included with the resources in the response, - e.g. Categories?$count=true. Optional. - :type count: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`JobInformationBasic - ` - :rtype: :class:`JobInformationBasicPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/Jobs' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=1) - if select is not None: - query_parameters['$select'] = self._serialize.query("select", select, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - if count is not None: - query_parameters['$count'] = self._serialize.query("count", count, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.JobInformationBasicPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.JobInformationBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/pipeline_operations.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/pipeline_operations.py deleted file mode 100644 index 2d483b9d84c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/pipeline_operations.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class PipelineOperations(object): - """PipelineOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-11-01". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-11-01" - - self.config = config - - def list( - self, account_name, start_date_time=None, end_date_time=None, custom_headers=None, raw=False, **operation_config): - """Lists all pipelines. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param start_date_time: The start date for when to get the list of - pipelines. The startDateTime and endDateTime can be no more than 30 - days apart. - :type start_date_time: datetime - :param end_date_time: The end date for when to get the list of - pipelines. The startDateTime and endDateTime can be no more than 30 - days apart. - :type end_date_time: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`JobPipelineInformation - ` - :rtype: :class:`JobPipelineInformationPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/pipelines' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if start_date_time is not None: - query_parameters['startDateTime'] = self._serialize.query("start_date_time", start_date_time, 'iso-8601') - if end_date_time is not None: - query_parameters['endDateTime'] = self._serialize.query("end_date_time", end_date_time, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.JobPipelineInformationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.JobPipelineInformationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get( - self, account_name, pipeline_identity, start_date_time=None, end_date_time=None, custom_headers=None, raw=False, **operation_config): - """Gets the Pipeline information for the specified pipeline ID. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param pipeline_identity: Pipeline ID. - :type pipeline_identity: str - :param start_date_time: The start date for when to get the pipeline - and aggregate its data. The startDateTime and endDateTime can be no - more than 30 days apart. - :type start_date_time: datetime - :param end_date_time: The end date for when to get the pipeline and - aggregate its data. The startDateTime and endDateTime can be no more - than 30 days apart. - :type end_date_time: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`JobPipelineInformation - ` or - :class:`ClientRawResponse` if - raw=true - :rtype: :class:`JobPipelineInformation - ` or - :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/pipelines/{pipelineIdentity}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True), - 'pipelineIdentity': self._serialize.url("pipeline_identity", pipeline_identity, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if start_date_time is not None: - query_parameters['startDateTime'] = self._serialize.query("start_date_time", start_date_time, 'iso-8601') - if end_date_time is not None: - query_parameters['endDateTime'] = self._serialize.query("end_date_time", end_date_time, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('JobPipelineInformation', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/recurrence_operations.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/recurrence_operations.py deleted file mode 100644 index c9d3641f372..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/operations/recurrence_operations.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class RecurrenceOperations(object): - """RecurrenceOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-11-01". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-11-01" - - self.config = config - - def list( - self, account_name, start_date_time=None, end_date_time=None, custom_headers=None, raw=False, **operation_config): - """Lists all recurrences. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param start_date_time: The start date for when to get the list of - recurrences. The startDateTime and endDateTime can be no more than 30 - days apart. - :type start_date_time: datetime - :param end_date_time: The end date for when to get the list of - recurrences. The startDateTime and endDateTime can be no more than 30 - days apart. - :type end_date_time: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of :class:`JobRecurrenceInformation - ` - :rtype: :class:`JobRecurrenceInformationPaged - ` - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/recurrences' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if start_date_time is not None: - query_parameters['startDateTime'] = self._serialize.query("start_date_time", start_date_time, 'iso-8601') - if end_date_time is not None: - query_parameters['endDateTime'] = self._serialize.query("end_date_time", end_date_time, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.JobRecurrenceInformationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.JobRecurrenceInformationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get( - self, account_name, recurrence_identity, start_date_time=None, end_date_time=None, custom_headers=None, raw=False, **operation_config): - """Gets the recurrence information for the specified recurrence ID. - - :param account_name: The Azure Data Lake Analytics account to execute - job operations on. - :type account_name: str - :param recurrence_identity: Recurrence ID. - :type recurrence_identity: str - :param start_date_time: The start date for when to get the recurrence - and aggregate its data. The startDateTime and endDateTime can be no - more than 30 days apart. - :type start_date_time: datetime - :param end_date_time: The end date for when to get recurrence and - aggregate its data. The startDateTime and endDateTime can be no more - than 30 days apart. - :type end_date_time: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: :class:`JobRecurrenceInformation - ` - or :class:`ClientRawResponse` if - raw=true - :rtype: :class:`JobRecurrenceInformation - ` - or :class:`ClientRawResponse` - :raises: :class:`CloudError` - """ - # Construct URL - url = '/recurrences/{recurrenceIdentity}' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'adlaJobDnsSuffix': self._serialize.url("self.config.adla_job_dns_suffix", self.config.adla_job_dns_suffix, 'str', skip_quote=True), - 'recurrenceIdentity': self._serialize.url("recurrence_identity", recurrence_identity, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if start_date_time is not None: - query_parameters['startDateTime'] = self._serialize.query("start_date_time", start_date_time, 'iso-8601') - if end_date_time is not None: - query_parameters['endDateTime'] = self._serialize.query("end_date_time", end_date_time, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('JobRecurrenceInformation', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/version.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/version.py deleted file mode 100644 index 9a6b4374370..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/job/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "0.1.6" - diff --git a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/version.py b/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/version.py deleted file mode 100644 index b4bdc86e2d5..00000000000 --- a/src/azure-cli/azure/cli/command_modules/dla/vendored_sdks/azure_mgmt_datalake_analytics/version.py +++ /dev/null @@ -1,8 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - -VERSION = "0.2.1" diff --git a/src/azure-cli/service_name.json b/src/azure-cli/service_name.json index a063416ed4a..d05ef4c361f 100644 --- a/src/azure-cli/service_name.json +++ b/src/azure-cli/service_name.json @@ -214,11 +214,6 @@ "AzureServiceName": "Disks", "URL": "https://learn.microsoft.com/azure/virtual-machines/linux/disk-encryption" }, - { - "Command": "az dla", - "AzureServiceName": "Data Lake", - "URL": "https://learn.microsoft.com/azure/data-lake-analytics" - }, { "Command": "az dls", "AzureServiceName": "Data Lake", From caeb9ff7379c42dc1c540435f708293a9dd22467 Mon Sep 17 00:00:00 2001 From: Yishi Wang Date: Mon, 4 Nov 2024 14:43:19 +0800 Subject: [PATCH 2/2] remove doc map --- doc/sphinx/azhelpgen/doc_source_map.json | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/sphinx/azhelpgen/doc_source_map.json b/doc/sphinx/azhelpgen/doc_source_map.json index 3cc0d8029fd..feaf7e84fe6 100644 --- a/doc/sphinx/azhelpgen/doc_source_map.json +++ b/doc/sphinx/azhelpgen/doc_source_map.json @@ -28,7 +28,6 @@ "cosmosdb": "src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py", "databoxedge": "src/azure-cli/azure/cli/command_modules/databoxedge/_help.py", "deployment": "src/azure-cli/azure/cli/command_modules/resource/_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",