ths-apimatic-sdk-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +181 -0
- data/bin/console +15 -0
- data/lib/thought_spot_public_rest_api/api_helper.rb +10 -0
- data/lib/thought_spot_public_rest_api/client.rb +218 -0
- data/lib/thought_spot_public_rest_api/configuration.rb +177 -0
- data/lib/thought_spot_public_rest_api/controllers/ai_controller.rb +550 -0
- data/lib/thought_spot_public_rest_api/controllers/authentication_controller.rb +498 -0
- data/lib/thought_spot_public_rest_api/controllers/base_controller.rb +65 -0
- data/lib/thought_spot_public_rest_api/controllers/collections_controller.rb +214 -0
- data/lib/thought_spot_public_rest_api/controllers/connection_configurations_controller.rb +227 -0
- data/lib/thought_spot_public_rest_api/controllers/connections_controller.rb +845 -0
- data/lib/thought_spot_public_rest_api/controllers/custom_action_controller.rb +205 -0
- data/lib/thought_spot_public_rest_api/controllers/custom_calendars_controller.rb +373 -0
- data/lib/thought_spot_public_rest_api/controllers/data_controller.rb +161 -0
- data/lib/thought_spot_public_rest_api/controllers/dbt_controller.rb +381 -0
- data/lib/thought_spot_public_rest_api/controllers/email_customization_controller.rb +354 -0
- data/lib/thought_spot_public_rest_api/controllers/groups_controller.rb +257 -0
- data/lib/thought_spot_public_rest_api/controllers/jobs_controller.rb +62 -0
- data/lib/thought_spot_public_rest_api/controllers/log_controller.rb +67 -0
- data/lib/thought_spot_public_rest_api/controllers/metadata_controller.rb +1074 -0
- data/lib/thought_spot_public_rest_api/controllers/orgs_controller.rb +183 -0
- data/lib/thought_spot_public_rest_api/controllers/reports_controller.rb +126 -0
- data/lib/thought_spot_public_rest_api/controllers/roles_controller.rb +176 -0
- data/lib/thought_spot_public_rest_api/controllers/schedules_controller.rb +213 -0
- data/lib/thought_spot_public_rest_api/controllers/security_controller.rb +749 -0
- data/lib/thought_spot_public_rest_api/controllers/system_controller.rb +401 -0
- data/lib/thought_spot_public_rest_api/controllers/tags_controller.rb +246 -0
- data/lib/thought_spot_public_rest_api/controllers/users_controller.rb +467 -0
- data/lib/thought_spot_public_rest_api/controllers/variable_controller.rb +338 -0
- data/lib/thought_spot_public_rest_api/controllers/version_control_controller.rb +418 -0
- data/lib/thought_spot_public_rest_api/controllers/webhooks_controller.rb +238 -0
- data/lib/thought_spot_public_rest_api/exceptions/api_exception.rb +21 -0
- data/lib/thought_spot_public_rest_api/exceptions/error_response_exception.rb +46 -0
- data/lib/thought_spot_public_rest_api/http/api_response.rb +19 -0
- data/lib/thought_spot_public_rest_api/http/auth/oauth_2.rb +53 -0
- data/lib/thought_spot_public_rest_api/http/http_call_back.rb +10 -0
- data/lib/thought_spot_public_rest_api/http/http_method_enum.rb +10 -0
- data/lib/thought_spot_public_rest_api/http/http_request.rb +10 -0
- data/lib/thought_spot_public_rest_api/http/http_response.rb +10 -0
- data/lib/thought_spot_public_rest_api/http/proxy_settings.rb +22 -0
- data/lib/thought_spot_public_rest_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/thought_spot_public_rest_api/logging/sdk_logger.rb +17 -0
- data/lib/thought_spot_public_rest_api/models/access_token.rb +125 -0
- data/lib/thought_spot_public_rest_api/models/account_status.rb +52 -0
- data/lib/thought_spot_public_rest_api/models/account_status2.rb +53 -0
- data/lib/thought_spot_public_rest_api/models/account_status3.rb +52 -0
- data/lib/thought_spot_public_rest_api/models/account_type.rb +48 -0
- data/lib/thought_spot_public_rest_api/models/account_type2.rb +48 -0
- data/lib/thought_spot_public_rest_api/models/account_type3.rb +48 -0
- data/lib/thought_spot_public_rest_api/models/action_config.rb +90 -0
- data/lib/thought_spot_public_rest_api/models/action_config_input.rb +90 -0
- data/lib/thought_spot_public_rest_api/models/action_config_input_create.rb +91 -0
- data/lib/thought_spot_public_rest_api/models/action_details.rb +85 -0
- data/lib/thought_spot_public_rest_api/models/action_details_input.rb +86 -0
- data/lib/thought_spot_public_rest_api/models/action_details_input_create.rb +87 -0
- data/lib/thought_spot_public_rest_api/models/activate_user_request.rb +104 -0
- data/lib/thought_spot_public_rest_api/models/agent_conversation.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/ai_context.rb +91 -0
- data/lib/thought_spot_public_rest_api/models/answer_content.rb +135 -0
- data/lib/thought_spot_public_rest_api/models/answer_context_input.rb +85 -0
- data/lib/thought_spot_public_rest_api/models/answer_data_response.rb +101 -0
- data/lib/thought_spot_public_rest_api/models/api_key.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/api_key_input.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/assign_change_author_request.rb +107 -0
- data/lib/thought_spot_public_rest_api/models/assign_tag_request.rb +92 -0
- data/lib/thought_spot_public_rest_api/models/associate_metadata_input.rb +102 -0
- data/lib/thought_spot_public_rest_api/models/associate_metadata_input_create.rb +101 -0
- data/lib/thought_spot_public_rest_api/models/authentication.rb +110 -0
- data/lib/thought_spot_public_rest_api/models/authentication_input.rb +110 -0
- data/lib/thought_spot_public_rest_api/models/authentication_type.rb +48 -0
- data/lib/thought_spot_public_rest_api/models/authentication_type1.rb +64 -0
- data/lib/thought_spot_public_rest_api/models/authentication_type2.rb +74 -0
- data/lib/thought_spot_public_rest_api/models/author.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/author_metadata_type_input.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/author_type.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/aws_assume_role_setup.rb +120 -0
- data/lib/thought_spot_public_rest_api/models/aws_s3_config.rb +115 -0
- data/lib/thought_spot_public_rest_api/models/aws_s3_config_input.rb +120 -0
- data/lib/thought_spot_public_rest_api/models/base_model.rb +110 -0
- data/lib/thought_spot_public_rest_api/models/basic_auth.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/basic_auth_input.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/calendar_response.rb +153 -0
- data/lib/thought_spot_public_rest_api/models/calendar_type.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/callback.rb +79 -0
- data/lib/thought_spot_public_rest_api/models/callback_input.rb +78 -0
- data/lib/thought_spot_public_rest_api/models/callback_input_mandatory.rb +78 -0
- data/lib/thought_spot_public_rest_api/models/change_user_password_request.rb +94 -0
- data/lib/thought_spot_public_rest_api/models/channel.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/channel_history_event_input.rb +84 -0
- data/lib/thought_spot_public_rest_api/models/channel_history_job.rb +116 -0
- data/lib/thought_spot_public_rest_api/models/channel_status.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/channel_validation_aws_s3_info.rb +99 -0
- data/lib/thought_spot_public_rest_api/models/channel_validation_detail.rb +119 -0
- data/lib/thought_spot_public_rest_api/models/cluster_non_embed_access.rb +102 -0
- data/lib/thought_spot_public_rest_api/models/cluster_non_embed_access_input.rb +100 -0
- data/lib/thought_spot_public_rest_api/models/cluster_preference.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/cluster_type.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/collection.rb +169 -0
- data/lib/thought_spot_public_rest_api/models/collection_delete_response.rb +109 -0
- data/lib/thought_spot_public_rest_api/models/collection_delete_type_identifiers.rb +97 -0
- data/lib/thought_spot_public_rest_api/models/collection_entity_identifier.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/collection_metadata_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/collection_metadata_item.rb +97 -0
- data/lib/thought_spot_public_rest_api/models/collection_search_response.rb +129 -0
- data/lib/thought_spot_public_rest_api/models/column.rb +130 -0
- data/lib/thought_spot_public_rest_api/models/column_security_rule.rb +108 -0
- data/lib/thought_spot_public_rest_api/models/column_security_rule_column.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/column_security_rule_group.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/column_security_rule_group_operation.rb +84 -0
- data/lib/thought_spot_public_rest_api/models/column_security_rule_response.rb +109 -0
- data/lib/thought_spot_public_rest_api/models/column_security_rule_source_table.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/column_security_rule_table_input.rb +90 -0
- data/lib/thought_spot_public_rest_api/models/column_security_rule_update.rb +110 -0
- data/lib/thought_spot_public_rest_api/models/commit_branch_request.rb +118 -0
- data/lib/thought_spot_public_rest_api/models/commit_file_type.rb +97 -0
- data/lib/thought_spot_public_rest_api/models/commit_history_response.rb +118 -0
- data/lib/thought_spot_public_rest_api/models/commit_response.rb +150 -0
- data/lib/thought_spot_public_rest_api/models/commiter_type.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/communication_channel_preferences_response.rb +107 -0
- data/lib/thought_spot_public_rest_api/models/communication_channel_validate_response.rb +138 -0
- data/lib/thought_spot_public_rest_api/models/configure_communication_channel_preferences_request.rb +104 -0
- data/lib/thought_spot_public_rest_api/models/configure_security_settings_request.rb +97 -0
- data/lib/thought_spot_public_rest_api/models/connection_configuration_response.rb +206 -0
- data/lib/thought_spot_public_rest_api/models/connection_configuration_search_request.rb +98 -0
- data/lib/thought_spot_public_rest_api/models/connection_input.rb +111 -0
- data/lib/thought_spot_public_rest_api/models/context_payload_v2_input.rb +111 -0
- data/lib/thought_spot_public_rest_api/models/conversation.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/conversation_settings_input.rb +113 -0
- data/lib/thought_spot_public_rest_api/models/convert_worksheet_to_model_request.rb +111 -0
- data/lib/thought_spot_public_rest_api/models/copy_object_request.rb +104 -0
- data/lib/thought_spot_public_rest_api/models/create_agent_conversation_request.rb +85 -0
- data/lib/thought_spot_public_rest_api/models/create_calendar_request.rb +180 -0
- data/lib/thought_spot_public_rest_api/models/create_collection_request.rb +103 -0
- data/lib/thought_spot_public_rest_api/models/create_config_request.rb +171 -0
- data/lib/thought_spot_public_rest_api/models/create_connection_configuration_request.rb +187 -0
- data/lib/thought_spot_public_rest_api/models/create_connection_request.rb +121 -0
- data/lib/thought_spot_public_rest_api/models/create_connection_response.rb +105 -0
- data/lib/thought_spot_public_rest_api/models/create_conversation_request.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/create_custom_action_request.rb +133 -0
- data/lib/thought_spot_public_rest_api/models/create_email_customization_request.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/create_email_customization_response.rb +102 -0
- data/lib/thought_spot_public_rest_api/models/create_org_request.rb +84 -0
- data/lib/thought_spot_public_rest_api/models/create_role_request.rb +110 -0
- data/lib/thought_spot_public_rest_api/models/create_schedule_request.rb +178 -0
- data/lib/thought_spot_public_rest_api/models/create_tag_request.rb +84 -0
- data/lib/thought_spot_public_rest_api/models/create_user_group_request.rb +179 -0
- data/lib/thought_spot_public_rest_api/models/create_user_request.rb +330 -0
- data/lib/thought_spot_public_rest_api/models/create_variable_request.rb +106 -0
- data/lib/thought_spot_public_rest_api/models/create_webhook_configuration_request.rb +175 -0
- data/lib/thought_spot_public_rest_api/models/creation_method.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/cron_expression.rb +118 -0
- data/lib/thought_spot_public_rest_api/models/cron_expression_input.rb +118 -0
- data/lib/thought_spot_public_rest_api/models/csp_settings.rb +150 -0
- data/lib/thought_spot_public_rest_api/models/csp_settings_input.rb +150 -0
- data/lib/thought_spot_public_rest_api/models/currency_format.rb +964 -0
- data/lib/thought_spot_public_rest_api/models/custom_action_metadata_type_input.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/data_format.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/data_source.rb +98 -0
- data/lib/thought_spot_public_rest_api/models/data_source_context_input.rb +72 -0
- data/lib/thought_spot_public_rest_api/models/data_type.rb +53 -0
- data/lib/thought_spot_public_rest_api/models/data_warehouse_object_input.rb +110 -0
- data/lib/thought_spot_public_rest_api/models/data_warehouse_object_type.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/data_warehouse_objects.rb +83 -0
- data/lib/thought_spot_public_rest_api/models/data_warehouse_type.rb +160 -0
- data/lib/thought_spot_public_rest_api/models/data_warehouse_type1.rb +160 -0
- data/lib/thought_spot_public_rest_api/models/data_warehouse_type3.rb +160 -0
- data/lib/thought_spot_public_rest_api/models/database.rb +106 -0
- data/lib/thought_spot_public_rest_api/models/date_format_locale.rb +136 -0
- data/lib/thought_spot_public_rest_api/models/dbt_search_response.rb +151 -0
- data/lib/thought_spot_public_rest_api/models/deactivate_user_request.rb +83 -0
- data/lib/thought_spot_public_rest_api/models/default_action_config.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/default_action_config_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/default_action_config_input_create.rb +83 -0
- data/lib/thought_spot_public_rest_api/models/default_action_config_search_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/default_metadata_type.rb +53 -0
- data/lib/thought_spot_public_rest_api/models/delete_collection_request.rb +103 -0
- data/lib/thought_spot_public_rest_api/models/delete_config_request.rb +84 -0
- data/lib/thought_spot_public_rest_api/models/delete_connection_configuration_request.rb +87 -0
- data/lib/thought_spot_public_rest_api/models/delete_connection_request.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/delete_metadata_request.rb +96 -0
- data/lib/thought_spot_public_rest_api/models/delete_metadata_type_input.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/delete_org_email_customization_request.rb +77 -0
- data/lib/thought_spot_public_rest_api/models/delete_variables_request.rb +74 -0
- data/lib/thought_spot_public_rest_api/models/delete_webhook_configurations_request.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/dependent_object_version.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/deploy_commit_request.rb +115 -0
- data/lib/thought_spot_public_rest_api/models/deploy_policy.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/deploy_response.rb +124 -0
- data/lib/thought_spot_public_rest_api/models/deploy_type.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/edoc_format.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/edoc_format1.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/entity_header.rb +103 -0
- data/lib/thought_spot_public_rest_api/models/eureka_data_source_suggestion_response.rb +87 -0
- data/lib/thought_spot_public_rest_api/models/eureka_decompose_query_response.rb +81 -0
- data/lib/thought_spot_public_rest_api/models/eureka_get_nl_instructions_response.rb +83 -0
- data/lib/thought_spot_public_rest_api/models/eureka_get_relevant_questions_response.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/eureka_llm_decompose_query_response.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/eureka_llm_suggested_query.rb +101 -0
- data/lib/thought_spot_public_rest_api/models/eureka_relevant_question.rb +103 -0
- data/lib/thought_spot_public_rest_api/models/eureka_set_nl_instructions_response.rb +73 -0
- data/lib/thought_spot_public_rest_api/models/event.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/event_channel_config.rb +81 -0
- data/lib/thought_spot_public_rest_api/models/event_channel_config_input.rb +81 -0
- data/lib/thought_spot_public_rest_api/models/event_type.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/event_type1.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/exclude_metadata_list_item_input.rb +96 -0
- data/lib/thought_spot_public_rest_api/models/export_answer_report_request.rb +159 -0
- data/lib/thought_spot_public_rest_api/models/export_liveboard_report_request.rb +273 -0
- data/lib/thought_spot_public_rest_api/models/export_metadata_tml_batched_request.rb +133 -0
- data/lib/thought_spot_public_rest_api/models/export_metadata_tml_request.rb +196 -0
- data/lib/thought_spot_public_rest_api/models/export_metadata_type_input.rb +119 -0
- data/lib/thought_spot_public_rest_api/models/export_options.rb +168 -0
- data/lib/thought_spot_public_rest_api/models/export_schema_version.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/external_table_input.rb +109 -0
- data/lib/thought_spot_public_rest_api/models/favorite_metadata_input.rb +91 -0
- data/lib/thought_spot_public_rest_api/models/favorite_metadata_item.rb +93 -0
- data/lib/thought_spot_public_rest_api/models/favorite_object_options_input.rb +91 -0
- data/lib/thought_spot_public_rest_api/models/fetch_answer_data_request.rb +157 -0
- data/lib/thought_spot_public_rest_api/models/fetch_answer_sql_query_request.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/fetch_async_import_task_status_request.rb +134 -0
- data/lib/thought_spot_public_rest_api/models/fetch_column_security_rules_request.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/fetch_connection_diff_status_response.rb +77 -0
- data/lib/thought_spot_public_rest_api/models/fetch_liveboard_data_request.rb +185 -0
- data/lib/thought_spot_public_rest_api/models/fetch_liveboard_sql_query_request.rb +91 -0
- data/lib/thought_spot_public_rest_api/models/fetch_logs_request.rb +112 -0
- data/lib/thought_spot_public_rest_api/models/fetch_object_privileges_request.rb +128 -0
- data/lib/thought_spot_public_rest_api/models/fetch_permissions_of_principals_request.rb +139 -0
- data/lib/thought_spot_public_rest_api/models/fetch_permissions_on_metadata_request.rb +159 -0
- data/lib/thought_spot_public_rest_api/models/field_name.rb +48 -0
- data/lib/thought_spot_public_rest_api/models/field_name1.rb +60 -0
- data/lib/thought_spot_public_rest_api/models/field_name2.rb +68 -0
- data/lib/thought_spot_public_rest_api/models/field_name3.rb +52 -0
- data/lib/thought_spot_public_rest_api/models/field_name4.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/field_type.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/field_type1.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/file_format.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/file_format2.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/filter_rules.rb +120 -0
- data/lib/thought_spot_public_rest_api/models/force_logout_users_request.rb +77 -0
- data/lib/thought_spot_public_rest_api/models/frequency.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/frequency_input.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/gcp_web_identity_setup.rb +144 -0
- data/lib/thought_spot_public_rest_api/models/generate_csv_request.rb +140 -0
- data/lib/thought_spot_public_rest_api/models/generic_info.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/get_async_import_status_response.rb +98 -0
- data/lib/thought_spot_public_rest_api/models/get_custom_access_token_request.rb +280 -0
- data/lib/thought_spot_public_rest_api/models/get_data_source_suggestions_request.rb +73 -0
- data/lib/thought_spot_public_rest_api/models/get_full_access_token_request.rb +170 -0
- data/lib/thought_spot_public_rest_api/models/get_nl_instructions_request.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/get_object_access_token_request.rb +183 -0
- data/lib/thought_spot_public_rest_api/models/get_relevant_questions_request.rb +122 -0
- data/lib/thought_spot_public_rest_api/models/get_token_response.rb +117 -0
- data/lib/thought_spot_public_rest_api/models/group_info.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/group_object.rb +78 -0
- data/lib/thought_spot_public_rest_api/models/groups_import_list_input.rb +176 -0
- data/lib/thought_spot_public_rest_api/models/header_attribute_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/header_update_input.rb +118 -0
- data/lib/thought_spot_public_rest_api/models/import_e_pack_async_task_status.rb +241 -0
- data/lib/thought_spot_public_rest_api/models/import_metadata_tml_async_request.rb +143 -0
- data/lib/thought_spot_public_rest_api/models/import_metadata_tml_request.rb +146 -0
- data/lib/thought_spot_public_rest_api/models/import_policy.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/import_policy1.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/import_policy2.rb +46 -0
- data/lib/thought_spot_public_rest_api/models/import_type.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/import_user.rb +282 -0
- data/lib/thought_spot_public_rest_api/models/import_user_groups_request.rb +113 -0
- data/lib/thought_spot_public_rest_api/models/import_user_groups_response.rb +119 -0
- data/lib/thought_spot_public_rest_api/models/import_user_type.rb +86 -0
- data/lib/thought_spot_public_rest_api/models/import_users_request.rb +121 -0
- data/lib/thought_spot_public_rest_api/models/import_users_response.rb +127 -0
- data/lib/thought_spot_public_rest_api/models/import_worksheets.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/input_eureka_nls_request.rb +113 -0
- data/lib/thought_spot_public_rest_api/models/jwt_metadata_object.rb +98 -0
- data/lib/thought_spot_public_rest_api/models/jwt_parameter.rb +103 -0
- data/lib/thought_spot_public_rest_api/models/jwt_user_options.rb +109 -0
- data/lib/thought_spot_public_rest_api/models/jwt_user_options_full.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/lb_context_input.rb +86 -0
- data/lib/thought_spot_public_rest_api/models/liveboard_content.rb +162 -0
- data/lib/thought_spot_public_rest_api/models/liveboard_data_response.rb +101 -0
- data/lib/thought_spot_public_rest_api/models/liveboard_options.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/liveboard_options_input.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/liveboard_response_version.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/log_response.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/login_request.rb +111 -0
- data/lib/thought_spot_public_rest_api/models/manage_object_privilege_request.rb +125 -0
- data/lib/thought_spot_public_rest_api/models/metadata_association_item.rb +95 -0
- data/lib/thought_spot_public_rest_api/models/metadata_context.rb +121 -0
- data/lib/thought_spot_public_rest_api/models/metadata_input.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/metadata_list_item_input.rb +146 -0
- data/lib/thought_spot_public_rest_api/models/metadata_object.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/metadata_response.rb +92 -0
- data/lib/thought_spot_public_rest_api/models/metadata_search_response.rb +186 -0
- data/lib/thought_spot_public_rest_api/models/metadata_search_sort_options.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/metadata_type.rb +68 -0
- data/lib/thought_spot_public_rest_api/models/metadata_type1.rb +64 -0
- data/lib/thought_spot_public_rest_api/models/metadata_type2.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/metadata_type3.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/metadata_type4.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/metadata_type5.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/metadata_type6.rb +50 -0
- data/lib/thought_spot_public_rest_api/models/metadata_type7.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/model_table_list.rb +96 -0
- data/lib/thought_spot_public_rest_api/models/month_offset.rb +81 -0
- data/lib/thought_spot_public_rest_api/models/month_offset1.rb +76 -0
- data/lib/thought_spot_public_rest_api/models/nl_instructions_info.rb +80 -0
- data/lib/thought_spot_public_rest_api/models/nl_instructions_info_input.rb +80 -0
- data/lib/thought_spot_public_rest_api/models/number_format_locale.rb +136 -0
- data/lib/thought_spot_public_rest_api/models/object_id_and_name.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/object_privilege_type.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/object_privileges_metadata_input.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/object_privileges_of_metadata_response.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/operation.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/operation1.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/operation2.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/operation3.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/operation4.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/operation5.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/operation6.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/operation7.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/operator.rb +92 -0
- data/lib/thought_spot_public_rest_api/models/operator1.rb +93 -0
- data/lib/thought_spot_public_rest_api/models/order.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/order4.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/order5.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/org.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/org_channel_config_input.rb +124 -0
- data/lib/thought_spot_public_rest_api/models/org_channel_config_response.rb +91 -0
- data/lib/thought_spot_public_rest_api/models/org_details.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/org_info.rb +86 -0
- data/lib/thought_spot_public_rest_api/models/org_non_embed_access.rb +100 -0
- data/lib/thought_spot_public_rest_api/models/org_non_embed_access_input.rb +99 -0
- data/lib/thought_spot_public_rest_api/models/org_preference_search_criteria_input.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/org_response.rb +121 -0
- data/lib/thought_spot_public_rest_api/models/org_type.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/page_orientation.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/page_size.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/parameter_values.rb +106 -0
- data/lib/thought_spot_public_rest_api/models/parameterize_metadata_request.rb +116 -0
- data/lib/thought_spot_public_rest_api/models/parameters_list_item.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/parameters_list_item_input.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/parent_type.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/parent_type1.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/pdf_options.rb +179 -0
- data/lib/thought_spot_public_rest_api/models/pdf_options_input.rb +151 -0
- data/lib/thought_spot_public_rest_api/models/permission.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/permission2.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/permission_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/permission_of_metadata_response.rb +83 -0
- data/lib/thought_spot_public_rest_api/models/permission_of_principals_response.rb +83 -0
- data/lib/thought_spot_public_rest_api/models/permissions_metadata_type_input.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/persist_option.rb +45 -0
- data/lib/thought_spot_public_rest_api/models/png_options_input.rb +144 -0
- data/lib/thought_spot_public_rest_api/models/policy_process.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/policy_process_options.rb +79 -0
- data/lib/thought_spot_public_rest_api/models/policy_process_options_input.rb +79 -0
- data/lib/thought_spot_public_rest_api/models/policy_type.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/policy_type1.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/position.rb +41 -0
- data/lib/thought_spot_public_rest_api/models/preferred_locale.rb +138 -0
- data/lib/thought_spot_public_rest_api/models/preferred_locale1.rb +138 -0
- data/lib/thought_spot_public_rest_api/models/principal_type.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/principal_type1.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/principal_type2.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/principal_type3.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/principals_input.rb +86 -0
- data/lib/thought_spot_public_rest_api/models/principals_list_item.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/principals_list_item_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/privilege.rb +236 -0
- data/lib/thought_spot_public_rest_api/models/privilege1.rb +160 -0
- data/lib/thought_spot_public_rest_api/models/privilege2.rb +188 -0
- data/lib/thought_spot_public_rest_api/models/privilege4.rb +200 -0
- data/lib/thought_spot_public_rest_api/models/privilege8.rb +180 -0
- data/lib/thought_spot_public_rest_api/models/publish_metadata_list_item.rb +86 -0
- data/lib/thought_spot_public_rest_api/models/publish_metadata_request.rb +107 -0
- data/lib/thought_spot_public_rest_api/models/put_variable_values_request.rb +94 -0
- data/lib/thought_spot_public_rest_api/models/query_get_decomposed_query_request.rb +145 -0
- data/lib/thought_spot_public_rest_api/models/recipient_details.rb +99 -0
- data/lib/thought_spot_public_rest_api/models/recipient_details_input.rb +97 -0
- data/lib/thought_spot_public_rest_api/models/regional_settings_input.rb +116 -0
- data/lib/thought_spot_public_rest_api/models/repo_config_object.rb +154 -0
- data/lib/thought_spot_public_rest_api/models/reset_event.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/reset_user_password_request.rb +83 -0
- data/lib/thought_spot_public_rest_api/models/response_activation_url.rb +79 -0
- data/lib/thought_spot_public_rest_api/models/response_content.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/response_copy_object.rb +78 -0
- data/lib/thought_spot_public_rest_api/models/response_custom_action.rb +148 -0
- data/lib/thought_spot_public_rest_api/models/response_failed_entities.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/response_failed_entity.rb +90 -0
- data/lib/thought_spot_public_rest_api/models/response_incomplete_entities.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/response_incomplete_entity.rb +90 -0
- data/lib/thought_spot_public_rest_api/models/response_message.rb +134 -0
- data/lib/thought_spot_public_rest_api/models/response_post_upgrade_failed_entities.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/response_post_upgrade_failed_entity.rb +90 -0
- data/lib/thought_spot_public_rest_api/models/response_schedule.rb +227 -0
- data/lib/thought_spot_public_rest_api/models/response_schedule_run.rb +115 -0
- data/lib/thought_spot_public_rest_api/models/response_successful_entities.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/response_successful_entity.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/response_worksheet_to_model_conversion.rb +174 -0
- data/lib/thought_spot_public_rest_api/models/result_code.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/revert_commit_request.rb +110 -0
- data/lib/thought_spot_public_rest_api/models/revert_policy.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/revert_response.rb +172 -0
- data/lib/thought_spot_public_rest_api/models/reverted_metadata.rb +111 -0
- data/lib/thought_spot_public_rest_api/models/revoke_refresh_tokens_request.rb +109 -0
- data/lib/thought_spot_public_rest_api/models/revoke_refresh_tokens_response.rb +73 -0
- data/lib/thought_spot_public_rest_api/models/revoke_token_request.rb +87 -0
- data/lib/thought_spot_public_rest_api/models/rise_gql_arg_wrapper.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/rise_setter.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/role.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/role_response.rb +274 -0
- data/lib/thought_spot_public_rest_api/models/runtime_filter.rb +87 -0
- data/lib/thought_spot_public_rest_api/models/runtime_filters.rb +125 -0
- data/lib/thought_spot_public_rest_api/models/runtime_param_override.rb +87 -0
- data/lib/thought_spot_public_rest_api/models/runtime_parameters.rb +116 -0
- data/lib/thought_spot_public_rest_api/models/runtime_sort.rb +86 -0
- data/lib/thought_spot_public_rest_api/models/runtime_sorts.rb +120 -0
- data/lib/thought_spot_public_rest_api/models/schedule_history_runs_options_input.rb +103 -0
- data/lib/thought_spot_public_rest_api/models/schedules_pdf_options_input.rb +179 -0
- data/lib/thought_spot_public_rest_api/models/schema_object.rb +95 -0
- data/lib/thought_spot_public_rest_api/models/scope.rb +97 -0
- data/lib/thought_spot_public_rest_api/models/scope1.rb +38 -0
- data/lib/thought_spot_public_rest_api/models/script_src_urls.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/script_src_urls_input.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/search_calendars_request.rb +118 -0
- data/lib/thought_spot_public_rest_api/models/search_channel_history_request.rb +139 -0
- data/lib/thought_spot_public_rest_api/models/search_channel_history_response.rb +81 -0
- data/lib/thought_spot_public_rest_api/models/search_collections_request.rb +150 -0
- data/lib/thought_spot_public_rest_api/models/search_commits_request.rb +127 -0
- data/lib/thought_spot_public_rest_api/models/search_communication_channel_preferences_request.rb +96 -0
- data/lib/thought_spot_public_rest_api/models/search_config_request.rb +84 -0
- data/lib/thought_spot_public_rest_api/models/search_connection_request.rb +209 -0
- data/lib/thought_spot_public_rest_api/models/search_connection_response.rb +129 -0
- data/lib/thought_spot_public_rest_api/models/search_custom_actions_request.rb +166 -0
- data/lib/thought_spot_public_rest_api/models/search_data_request.rb +173 -0
- data/lib/thought_spot_public_rest_api/models/search_data_response.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/search_email_customization_request.rb +78 -0
- data/lib/thought_spot_public_rest_api/models/search_metadata_request.rb +446 -0
- data/lib/thought_spot_public_rest_api/models/search_orgs_request.rb +119 -0
- data/lib/thought_spot_public_rest_api/models/search_role_response.rb +274 -0
- data/lib/thought_spot_public_rest_api/models/search_roles_request.rb +158 -0
- data/lib/thought_spot_public_rest_api/models/search_schedules_request.rb +139 -0
- data/lib/thought_spot_public_rest_api/models/search_security_settings_request.rb +79 -0
- data/lib/thought_spot_public_rest_api/models/search_tags_request.rb +97 -0
- data/lib/thought_spot_public_rest_api/models/search_user_groups_request.rb +265 -0
- data/lib/thought_spot_public_rest_api/models/search_users_request.rb +327 -0
- data/lib/thought_spot_public_rest_api/models/search_variables_request.rb +135 -0
- data/lib/thought_spot_public_rest_api/models/search_webhook_configurations_request.rb +132 -0
- data/lib/thought_spot_public_rest_api/models/security_settings_cluster_preferences.rb +131 -0
- data/lib/thought_spot_public_rest_api/models/security_settings_cluster_preferences_input.rb +131 -0
- data/lib/thought_spot_public_rest_api/models/security_settings_org_details.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/security_settings_org_preferences.rb +100 -0
- data/lib/thought_spot_public_rest_api/models/security_settings_org_preferences_input.rb +102 -0
- data/lib/thought_spot_public_rest_api/models/security_settings_response.rb +99 -0
- data/lib/thought_spot_public_rest_api/models/send_agent_message_request.rb +73 -0
- data/lib/thought_spot_public_rest_api/models/send_agent_message_response.rb +86 -0
- data/lib/thought_spot_public_rest_api/models/send_agent_message_streaming_request.rb +84 -0
- data/lib/thought_spot_public_rest_api/models/send_message_request.rb +84 -0
- data/lib/thought_spot_public_rest_api/models/set_nl_instructions_request.rb +94 -0
- data/lib/thought_spot_public_rest_api/models/share_metadata_request.rb +207 -0
- data/lib/thought_spot_public_rest_api/models/share_metadata_type_input.rb +90 -0
- data/lib/thought_spot_public_rest_api/models/share_mode.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/share_mode1.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/share_permissions_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/single_answer_request.rb +84 -0
- data/lib/thought_spot_public_rest_api/models/sort_option.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/sort_option_input.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/sort_options.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/sorting_options.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/sql_query.rb +92 -0
- data/lib/thought_spot_public_rest_api/models/sql_query_response.rb +110 -0
- data/lib/thought_spot_public_rest_api/models/start_day_of_week.rb +56 -0
- data/lib/thought_spot_public_rest_api/models/start_day_of_week2.rb +56 -0
- data/lib/thought_spot_public_rest_api/models/status.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/status1.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/status2.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/status3.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/status4.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/storage_config.rb +76 -0
- data/lib/thought_spot_public_rest_api/models/storage_config_input.rb +76 -0
- data/lib/thought_spot_public_rest_api/models/storage_destination.rb +80 -0
- data/lib/thought_spot_public_rest_api/models/storage_destination_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/storage_setup_info.rb +175 -0
- data/lib/thought_spot_public_rest_api/models/subtype.rb +52 -0
- data/lib/thought_spot_public_rest_api/models/system_config.rb +102 -0
- data/lib/thought_spot_public_rest_api/models/system_info.rb +344 -0
- data/lib/thought_spot_public_rest_api/models/system_override_info.rb +79 -0
- data/lib/thought_spot_public_rest_api/models/table.rb +150 -0
- data/lib/thought_spot_public_rest_api/models/tag.rb +202 -0
- data/lib/thought_spot_public_rest_api/models/tag_metadata_type_input.rb +94 -0
- data/lib/thought_spot_public_rest_api/models/task_status.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/task_status1.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/template_properties_input_create.rb +440 -0
- data/lib/thought_spot_public_rest_api/models/time_zone.rb +2548 -0
- data/lib/thought_spot_public_rest_api/models/token.rb +125 -0
- data/lib/thought_spot_public_rest_api/models/token_access_scope_object.rb +91 -0
- data/lib/thought_spot_public_rest_api/models/token_validation_response.rb +114 -0
- data/lib/thought_spot_public_rest_api/models/type.rb +66 -0
- data/lib/thought_spot_public_rest_api/models/type1.rb +38 -0
- data/lib/thought_spot_public_rest_api/models/type10.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/type11.rb +28 -0
- data/lib/thought_spot_public_rest_api/models/type13.rb +52 -0
- data/lib/thought_spot_public_rest_api/models/type15.rb +60 -0
- data/lib/thought_spot_public_rest_api/models/type16.rb +60 -0
- data/lib/thought_spot_public_rest_api/models/type17.rb +66 -0
- data/lib/thought_spot_public_rest_api/models/type18.rb +50 -0
- data/lib/thought_spot_public_rest_api/models/type19.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/type2.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/type20.rb +46 -0
- data/lib/thought_spot_public_rest_api/models/type21.rb +50 -0
- data/lib/thought_spot_public_rest_api/models/type22.rb +46 -0
- data/lib/thought_spot_public_rest_api/models/type23.rb +26 -0
- data/lib/thought_spot_public_rest_api/models/type24.rb +42 -0
- data/lib/thought_spot_public_rest_api/models/type26.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/type27.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/type28.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/type29.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/type3.rb +76 -0
- data/lib/thought_spot_public_rest_api/models/type31.rb +44 -0
- data/lib/thought_spot_public_rest_api/models/type32.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/type4.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/type5.rb +76 -0
- data/lib/thought_spot_public_rest_api/models/type6.rb +28 -0
- data/lib/thought_spot_public_rest_api/models/type7.rb +50 -0
- data/lib/thought_spot_public_rest_api/models/type8.rb +42 -0
- data/lib/thought_spot_public_rest_api/models/type9.rb +48 -0
- data/lib/thought_spot_public_rest_api/models/unassign_tag_request.rb +92 -0
- data/lib/thought_spot_public_rest_api/models/unparameterize_metadata_request.rb +113 -0
- data/lib/thought_spot_public_rest_api/models/unpublish_metadata_request.rb +119 -0
- data/lib/thought_spot_public_rest_api/models/update_calendar_request.rb +173 -0
- data/lib/thought_spot_public_rest_api/models/update_collection_request.rb +114 -0
- data/lib/thought_spot_public_rest_api/models/update_column_security_rules_request.rb +120 -0
- data/lib/thought_spot_public_rest_api/models/update_config_request.rb +161 -0
- data/lib/thought_spot_public_rest_api/models/update_connection_configuration_request.rb +200 -0
- data/lib/thought_spot_public_rest_api/models/update_connection_request.rb +120 -0
- data/lib/thought_spot_public_rest_api/models/update_connection_v2_request.rb +109 -0
- data/lib/thought_spot_public_rest_api/models/update_custom_action_request.rb +144 -0
- data/lib/thought_spot_public_rest_api/models/update_email_customization_request.rb +87 -0
- data/lib/thought_spot_public_rest_api/models/update_metadata_header_request.rb +95 -0
- data/lib/thought_spot_public_rest_api/models/update_metadata_obj_id_request.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/update_method.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/update_obj_id_input.rb +111 -0
- data/lib/thought_spot_public_rest_api/models/update_org_request.rb +119 -0
- data/lib/thought_spot_public_rest_api/models/update_role_request.rb +96 -0
- data/lib/thought_spot_public_rest_api/models/update_schedule_request.rb +194 -0
- data/lib/thought_spot_public_rest_api/models/update_system_config_request.rb +75 -0
- data/lib/thought_spot_public_rest_api/models/update_tag_request.rb +85 -0
- data/lib/thought_spot_public_rest_api/models/update_user_group_request.rb +191 -0
- data/lib/thought_spot_public_rest_api/models/update_user_request.rb +305 -0
- data/lib/thought_spot_public_rest_api/models/update_variable_request.rb +72 -0
- data/lib/thought_spot_public_rest_api/models/update_variable_values_request.rb +106 -0
- data/lib/thought_spot_public_rest_api/models/update_webhook_configuration_request.rb +178 -0
- data/lib/thought_spot_public_rest_api/models/url.rb +117 -0
- data/lib/thought_spot_public_rest_api/models/url_input.rb +119 -0
- data/lib/thought_spot_public_rest_api/models/url_input_mandatory.rb +117 -0
- data/lib/thought_spot_public_rest_api/models/user.rb +684 -0
- data/lib/thought_spot_public_rest_api/models/user_group.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/user_group_response.rb +455 -0
- data/lib/thought_spot_public_rest_api/models/user_info.rb +86 -0
- data/lib/thought_spot_public_rest_api/models/user_locale.rb +136 -0
- data/lib/thought_spot_public_rest_api/models/user_object.rb +91 -0
- data/lib/thought_spot_public_rest_api/models/user_parameter_options.rb +163 -0
- data/lib/thought_spot_public_rest_api/models/user_principal.rb +98 -0
- data/lib/thought_spot_public_rest_api/models/validate_communication_channel_request.rb +88 -0
- data/lib/thought_spot_public_rest_api/models/validate_merge_request.rb +85 -0
- data/lib/thought_spot_public_rest_api/models/validate_token_request.rb +73 -0
- data/lib/thought_spot_public_rest_api/models/validation_step.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/value_scope_input.rb +119 -0
- data/lib/thought_spot_public_rest_api/models/variable.rb +125 -0
- data/lib/thought_spot_public_rest_api/models/variable_detail_input.rb +100 -0
- data/lib/thought_spot_public_rest_api/models/variable_put_assignment_input.rb +138 -0
- data/lib/thought_spot_public_rest_api/models/variable_type.rb +48 -0
- data/lib/thought_spot_public_rest_api/models/variable_update_assignment_input.rb +95 -0
- data/lib/thought_spot_public_rest_api/models/variable_update_scope_input.rb +130 -0
- data/lib/thought_spot_public_rest_api/models/variable_value.rb +151 -0
- data/lib/thought_spot_public_rest_api/models/variable_values.rb +106 -0
- data/lib/thought_spot_public_rest_api/models/visibility.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/visibility1.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/visibility10.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/visibility2.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/visibility3.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/visibility5.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/visibility7.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/visibility8.rb +36 -0
- data/lib/thought_spot_public_rest_api/models/visibility9.rb +37 -0
- data/lib/thought_spot_public_rest_api/models/visualization_type.rb +40 -0
- data/lib/thought_spot_public_rest_api/models/webhook_auth_api_key.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/webhook_auth_api_key_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/webhook_auth_basic_auth.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/webhook_auth_basic_auth_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/webhook_auth_oauth_2.rb +93 -0
- data/lib/thought_spot_public_rest_api/models/webhook_auth_oauth_2_input.rb +93 -0
- data/lib/thought_spot_public_rest_api/models/webhook_authentication.rb +107 -0
- data/lib/thought_spot_public_rest_api/models/webhook_authentication_input.rb +107 -0
- data/lib/thought_spot_public_rest_api/models/webhook_delete_failure.rb +90 -0
- data/lib/thought_spot_public_rest_api/models/webhook_delete_response.rb +119 -0
- data/lib/thought_spot_public_rest_api/models/webhook_key_value_pair.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/webhook_key_value_pair_input.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/webhook_org.rb +82 -0
- data/lib/thought_spot_public_rest_api/models/webhook_pagination.rb +101 -0
- data/lib/thought_spot_public_rest_api/models/webhook_response.rb +234 -0
- data/lib/thought_spot_public_rest_api/models/webhook_search_response.rb +91 -0
- data/lib/thought_spot_public_rest_api/models/webhook_signature_verification.rb +95 -0
- data/lib/thought_spot_public_rest_api/models/webhook_signature_verification_input.rb +95 -0
- data/lib/thought_spot_public_rest_api/models/webhook_sort_options_input.rb +89 -0
- data/lib/thought_spot_public_rest_api/models/webhook_user.rb +82 -0
- data/lib/thought_spot_public_rest_api/utilities/date_time_helper.rb +11 -0
- data/lib/thought_spot_public_rest_api/utilities/file_wrapper.rb +28 -0
- data/lib/thought_spot_public_rest_api/utilities/union_type_lookup.rb +67 -0
- data/lib/thought_spot_public_rest_api.rb +801 -0
- metadata +695 -0
|
@@ -0,0 +1,845 @@
|
|
|
1
|
+
# thought_spot_public_rest_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ThoughtSpotPublicRestApi
|
|
7
|
+
# ConnectionsController
|
|
8
|
+
class ConnectionsController < BaseController
|
|
9
|
+
# <span class="since-beta-tag">Version: 9.2.0.cl or later</span>
|
|
10
|
+
# Creates a connection to a data warehouse for live query services.
|
|
11
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can
|
|
12
|
+
# administer ThoughtSpot**) privilege.
|
|
13
|
+
# If [Role-Based Access Control
|
|
14
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
15
|
+
# instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit
|
|
16
|
+
# Connections**) privilege is required.
|
|
17
|
+
# #### Create a connection without tables
|
|
18
|
+
# To create a connection without tables:
|
|
19
|
+
# 1. Pass these parameters in your API request.
|
|
20
|
+
# * Name of the connection.
|
|
21
|
+
# * Type of the data warehouse to connect to.
|
|
22
|
+
# * A JSON map of configuration attributes in `data_warehouse_config`. The
|
|
23
|
+
# following example shows the configuration attributes for a SnowFlake
|
|
24
|
+
# connection:
|
|
25
|
+
# ```
|
|
26
|
+
# {
|
|
27
|
+
# "configuration":{
|
|
28
|
+
# "accountName":"thoughtspot_partner",
|
|
29
|
+
# "user":"tsadmin",
|
|
30
|
+
# "password":"TestConn123",
|
|
31
|
+
# "role":"sysadmin",
|
|
32
|
+
# "warehouse":"MEDIUM_WH"
|
|
33
|
+
# },
|
|
34
|
+
# "externalDatabases":[
|
|
35
|
+
# ]
|
|
36
|
+
# }
|
|
37
|
+
# ```
|
|
38
|
+
# 2. Set `validate` to `false`.
|
|
39
|
+
# #### Create a connection with tables
|
|
40
|
+
# To create a connection with tables:
|
|
41
|
+
# 1. Pass these parameters in your API request.
|
|
42
|
+
# * Name of the connection.
|
|
43
|
+
# * Type of the data warehouse to connect to.
|
|
44
|
+
# * A JSON map of configuration attributes, database details, and table
|
|
45
|
+
# properties in `data_warehouse_config` as shown in the following example:
|
|
46
|
+
# ```
|
|
47
|
+
# {
|
|
48
|
+
# "configuration":{
|
|
49
|
+
# "accountName":"thoughtspot_partner",
|
|
50
|
+
# "user":"tsadmin",
|
|
51
|
+
# "password":"TestConn123",
|
|
52
|
+
# "role":"sysadmin",
|
|
53
|
+
# "warehouse":"MEDIUM_WH"
|
|
54
|
+
# },
|
|
55
|
+
# "externalDatabases":[
|
|
56
|
+
# {
|
|
57
|
+
# "name":"AllDatatypes",
|
|
58
|
+
# "isAutoCreated":false,
|
|
59
|
+
# "schemas":[
|
|
60
|
+
# {
|
|
61
|
+
# "name":"alldatatypes",
|
|
62
|
+
# "tables":[
|
|
63
|
+
# {
|
|
64
|
+
# "name":"allDatatypes",
|
|
65
|
+
# "type":"TABLE",
|
|
66
|
+
# "description":"",
|
|
67
|
+
# "selected":true,
|
|
68
|
+
# "linked":true,
|
|
69
|
+
# "columns":[
|
|
70
|
+
# {
|
|
71
|
+
# "name":"CNUMBER",
|
|
72
|
+
# "type":"INT64",
|
|
73
|
+
# "canImport":true,
|
|
74
|
+
# "selected":true,
|
|
75
|
+
# "isLinkedActive":true,
|
|
76
|
+
# "isImported":false,
|
|
77
|
+
# "tableName":"allDatatypes",
|
|
78
|
+
# "schemaName":"alldatatypes",
|
|
79
|
+
# "dbName":"AllDatatypes"
|
|
80
|
+
# },
|
|
81
|
+
# {
|
|
82
|
+
# "name":"CDECIMAL",
|
|
83
|
+
# "type":"INT64",
|
|
84
|
+
# "canImport":true,
|
|
85
|
+
# "selected":true,
|
|
86
|
+
# "isLinkedActive":true,
|
|
87
|
+
# "isImported":false,
|
|
88
|
+
# "tableName":"allDatatypes",
|
|
89
|
+
# "schemaName":"alldatatypes",
|
|
90
|
+
# "dbName":"AllDatatypes"
|
|
91
|
+
# }
|
|
92
|
+
# ]
|
|
93
|
+
# }
|
|
94
|
+
# ]
|
|
95
|
+
# }
|
|
96
|
+
# ]
|
|
97
|
+
# }
|
|
98
|
+
# ]
|
|
99
|
+
# }
|
|
100
|
+
# ```
|
|
101
|
+
# 2. Set `validate` to `true`.
|
|
102
|
+
# #### Endpoint URL
|
|
103
|
+
# @param [CreateConnectionRequest] body Required parameter: TODO: type
|
|
104
|
+
# description here
|
|
105
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
106
|
+
def create_connection(body)
|
|
107
|
+
@api_call
|
|
108
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
109
|
+
'/api/rest/2.0/connection/create',
|
|
110
|
+
Server::DEFAULT)
|
|
111
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
112
|
+
.body_param(new_parameter(body)
|
|
113
|
+
.is_required(true))
|
|
114
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
115
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
116
|
+
.auth(Single.new('bearerAuth')))
|
|
117
|
+
.response(new_response_handler
|
|
118
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
119
|
+
.deserialize_into(CreateConnectionResponse.method(:from_hash))
|
|
120
|
+
.is_api_response(true)
|
|
121
|
+
.local_error('400',
|
|
122
|
+
'Invalid request.',
|
|
123
|
+
ErrorResponseException)
|
|
124
|
+
.local_error('401',
|
|
125
|
+
'Unauthorized access.',
|
|
126
|
+
ErrorResponseException)
|
|
127
|
+
.local_error('403',
|
|
128
|
+
'Forbidden access.',
|
|
129
|
+
ErrorResponseException)
|
|
130
|
+
.local_error('500',
|
|
131
|
+
'Unexpected error',
|
|
132
|
+
ErrorResponseException))
|
|
133
|
+
.execute
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# <span class="since-beta-tag">Version: 9.2.0.cl or later</span>
|
|
137
|
+
# **Important**: This endpoint is deprecated and will be removed from
|
|
138
|
+
# ThoughtSpot in September 2025. ThoughtSpot strongly recommends using the
|
|
139
|
+
# [Delete Connection
|
|
140
|
+
# V2](#/http/api-endpoints/connections/delete-connection-v2) endpoint to
|
|
141
|
+
# delete your connection objects.
|
|
142
|
+
# #### Usage guidelines
|
|
143
|
+
# Deletes a connection object.
|
|
144
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to
|
|
145
|
+
# the connection object, or `ADMINISTRATION` (**Can administer
|
|
146
|
+
# ThoughtSpot**) privilege.
|
|
147
|
+
# If [Role-Based Access Control
|
|
148
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
149
|
+
# instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit
|
|
150
|
+
# Connections**) privilege is required.
|
|
151
|
+
# **Note**: If a connection has dependent objects, make sure you remove its
|
|
152
|
+
# associations before the delete operation.
|
|
153
|
+
# #### Endpoint URL
|
|
154
|
+
# @param [DeleteConnectionRequest] body Required parameter: TODO: type
|
|
155
|
+
# description here
|
|
156
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
157
|
+
def delete_connection(body)
|
|
158
|
+
warn 'Endpoint delete_connection in ConnectionsController is deprecated'
|
|
159
|
+
@api_call
|
|
160
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
161
|
+
'/api/rest/2.0/connection/delete',
|
|
162
|
+
Server::DEFAULT)
|
|
163
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
164
|
+
.body_param(new_parameter(body)
|
|
165
|
+
.is_required(true))
|
|
166
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
167
|
+
.auth(Single.new('bearerAuth')))
|
|
168
|
+
.response(new_response_handler
|
|
169
|
+
.is_response_void(true)
|
|
170
|
+
.is_api_response(true)
|
|
171
|
+
.local_error('400',
|
|
172
|
+
'Invalid request.',
|
|
173
|
+
ErrorResponseException)
|
|
174
|
+
.local_error('401',
|
|
175
|
+
'Unauthorized access.',
|
|
176
|
+
ErrorResponseException)
|
|
177
|
+
.local_error('403',
|
|
178
|
+
'Forbidden access.',
|
|
179
|
+
ErrorResponseException)
|
|
180
|
+
.local_error('500',
|
|
181
|
+
'Unexpected error',
|
|
182
|
+
ErrorResponseException))
|
|
183
|
+
.execute
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# <span class="since-beta-tag">Version: 10.4.0.cl or later</span>
|
|
187
|
+
# Deletes a connection object.
|
|
188
|
+
# **Note**: If a connection has dependent objects, make sure you remove its
|
|
189
|
+
# associations before the delete operation.
|
|
190
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to
|
|
191
|
+
# the connection object, or `ADMINISTRATION` (**Can administer
|
|
192
|
+
# ThoughtSpot**) privilege.
|
|
193
|
+
# If [Role-Based Access Control
|
|
194
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
195
|
+
# instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit
|
|
196
|
+
# Connections**) privilege is required.
|
|
197
|
+
# #### Endpoint URL
|
|
198
|
+
# @param [String] connection_identifier Required parameter: Unique ID or
|
|
199
|
+
# name of the connection.
|
|
200
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
201
|
+
def delete_connection_v2(connection_identifier)
|
|
202
|
+
@api_call
|
|
203
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
204
|
+
'/api/rest/2.0/connections/{connection_identifier}/delete',
|
|
205
|
+
Server::DEFAULT)
|
|
206
|
+
.template_param(new_parameter(connection_identifier, key: 'connection_identifier')
|
|
207
|
+
.is_required(true)
|
|
208
|
+
.should_encode(true))
|
|
209
|
+
.auth(Single.new('bearerAuth')))
|
|
210
|
+
.response(new_response_handler
|
|
211
|
+
.is_response_void(true)
|
|
212
|
+
.is_api_response(true)
|
|
213
|
+
.local_error('400',
|
|
214
|
+
'Invalid request.',
|
|
215
|
+
ErrorResponseException)
|
|
216
|
+
.local_error('401',
|
|
217
|
+
'Unauthorized access.',
|
|
218
|
+
ErrorResponseException)
|
|
219
|
+
.local_error('403',
|
|
220
|
+
'Forbidden access.',
|
|
221
|
+
ErrorResponseException)
|
|
222
|
+
.local_error('500',
|
|
223
|
+
'Unexpected error',
|
|
224
|
+
ErrorResponseException))
|
|
225
|
+
.execute
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# <span class="since-beta-tag">Version: 9.9.0.cl or later</span>
|
|
229
|
+
# Exports the difference in connection metadata between CDW and ThoughtSpot
|
|
230
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) privilege.
|
|
231
|
+
# If [Role-Based Access Control
|
|
232
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
233
|
+
# instance, the following Data control privileges may be required:
|
|
234
|
+
# - `CAN_MANAGE_CUSTOM_CALENDAR`(**Can manage custom calendars**)
|
|
235
|
+
# - `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**)
|
|
236
|
+
# - `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**)
|
|
237
|
+
# To download the connection metadata difference between ThoughtSpot and
|
|
238
|
+
# CDW, pass the connection GUID as `connection_identifier` in the API
|
|
239
|
+
# request.
|
|
240
|
+
# #### Endpoint URL
|
|
241
|
+
# @param [String] connection_identifier Required parameter: GUID of the
|
|
242
|
+
# connection
|
|
243
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
244
|
+
def download_connection_metadata_changes(connection_identifier)
|
|
245
|
+
@api_call
|
|
246
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
247
|
+
'/api/rest/2.0/connections/download-connection-metadata-changes/{connection_identifier}',
|
|
248
|
+
Server::DEFAULT)
|
|
249
|
+
.template_param(new_parameter(connection_identifier, key: 'connection_identifier')
|
|
250
|
+
.is_required(true)
|
|
251
|
+
.should_encode(true))
|
|
252
|
+
.auth(Single.new('bearerAuth')))
|
|
253
|
+
.response(new_response_handler
|
|
254
|
+
.is_api_response(true)
|
|
255
|
+
.local_error('400',
|
|
256
|
+
'Invalid request.',
|
|
257
|
+
ErrorResponseException)
|
|
258
|
+
.local_error('401',
|
|
259
|
+
'Unauthorized access.',
|
|
260
|
+
ErrorResponseException)
|
|
261
|
+
.local_error('403',
|
|
262
|
+
'Forbidden access.',
|
|
263
|
+
ErrorResponseException)
|
|
264
|
+
.local_error('500',
|
|
265
|
+
'Unexpected error',
|
|
266
|
+
ErrorResponseException))
|
|
267
|
+
.execute
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# <span class="since-beta-tag">Version: 9.9.0.cl or later</span>
|
|
271
|
+
# Validates the difference in connection metadata between CDW and
|
|
272
|
+
# ThoughtSpot.
|
|
273
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) privilege.
|
|
274
|
+
# If [Role-Based Access Control
|
|
275
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
276
|
+
# instance, the following Data control privileges may be required:
|
|
277
|
+
# - `CAN_MANAGE_CUSTOM_CALENDAR`(**Can manage custom calendars**)
|
|
278
|
+
# - `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**)
|
|
279
|
+
# - `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**)
|
|
280
|
+
# Returns a boolean indicating whether there is any difference between the
|
|
281
|
+
# connection metadata at ThoughtSpot and CDW.
|
|
282
|
+
# To get the connection metadata difference status, pass the connection GUID
|
|
283
|
+
# as `connection_identifier` in the API request.
|
|
284
|
+
# #### Endpoint URL
|
|
285
|
+
# @param [String] connection_identifier Required parameter: GUID of the
|
|
286
|
+
# connection
|
|
287
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
288
|
+
def fetch_connection_diff_status(connection_identifier)
|
|
289
|
+
@api_call
|
|
290
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
291
|
+
'/api/rest/2.0/connections/fetch-connection-diff-status/{connection_identifier}',
|
|
292
|
+
Server::DEFAULT)
|
|
293
|
+
.template_param(new_parameter(connection_identifier, key: 'connection_identifier')
|
|
294
|
+
.is_required(true)
|
|
295
|
+
.should_encode(true))
|
|
296
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
297
|
+
.auth(Single.new('bearerAuth')))
|
|
298
|
+
.response(new_response_handler
|
|
299
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
300
|
+
.deserialize_into(FetchConnectionDiffStatusResponse.method(:from_hash))
|
|
301
|
+
.is_api_response(true)
|
|
302
|
+
.local_error('400',
|
|
303
|
+
'Invalid request.',
|
|
304
|
+
ErrorResponseException)
|
|
305
|
+
.local_error('401',
|
|
306
|
+
'Unauthorized access.',
|
|
307
|
+
ErrorResponseException)
|
|
308
|
+
.local_error('403',
|
|
309
|
+
'Forbidden access.',
|
|
310
|
+
ErrorResponseException)
|
|
311
|
+
.local_error('500',
|
|
312
|
+
'Unexpected error',
|
|
313
|
+
ErrorResponseException))
|
|
314
|
+
.execute
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# <span class="since-beta-tag">Version: 26.2.0.cl or later</span>
|
|
318
|
+
# Revokes OAuth refresh tokens for users who no longer require access to a
|
|
319
|
+
# data warehouse connection.
|
|
320
|
+
# When a token is revoked, the affected user's session for that connection
|
|
321
|
+
# is terminated, and they must re-authenticate to regain access.
|
|
322
|
+
# Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or
|
|
323
|
+
# `DATAMANAGEMENT` (**Can manage data**) privileges.
|
|
324
|
+
# If [Role-Based Access Control
|
|
325
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on the
|
|
326
|
+
# ThoughtSpot instance, users with `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can
|
|
327
|
+
# create/edit Connections**) privilege can also make API requests to revoke
|
|
328
|
+
# tokens for connection users.
|
|
329
|
+
# #### Usage guidelines
|
|
330
|
+
# You can specify different combinations of identifiers to control which
|
|
331
|
+
# refresh tokens are revoked.
|
|
332
|
+
# - **connection_identifier**: Revokes refresh tokens for all users of the
|
|
333
|
+
# connection, except the connection author.
|
|
334
|
+
# - **connection_identifier** and **user_identifiers**: Revokes refresh
|
|
335
|
+
# tokens only for the users specified in the request. If the name or ID of
|
|
336
|
+
# the connection author is included in the request, their token will also be
|
|
337
|
+
# revoked.
|
|
338
|
+
# - **connection_identifier** and **configuration_identifiers**: Revokes
|
|
339
|
+
# refresh tokens for all users on the specified configurations, except the
|
|
340
|
+
# configuration author.
|
|
341
|
+
# - **connection_identifier**, **configuration_identifiers**, and
|
|
342
|
+
# **user_identifiers**: Revokes refresh tokens for the specified users on
|
|
343
|
+
# the specified configurations.
|
|
344
|
+
# - **connection_identifier** and **org_identifiers**: Revokes refresh
|
|
345
|
+
# tokens for the specified Orgs. Applicable only for published connections.
|
|
346
|
+
# - **connection_identifier**, **org_identifiers**, and
|
|
347
|
+
# **user_identifiers**: Revokes refresh tokens for the specified users in
|
|
348
|
+
# the specified Orgs. Applicable only for published connections.
|
|
349
|
+
# **NOTE**: The `org_identifiers` parameter is only applicable for published
|
|
350
|
+
# connections. Using this parameter for unpublished connections will result
|
|
351
|
+
# in an error. Ensure that the connections are published before making the
|
|
352
|
+
# API request.
|
|
353
|
+
# #### Endpoint URL
|
|
354
|
+
# @param [String] connection_identifier Required parameter: Unique ID or
|
|
355
|
+
# name of the connection whose refresh tokens need to be revoked. All the
|
|
356
|
+
# users associated with the connection will have their refresh tokens
|
|
357
|
+
# revoked except the author.
|
|
358
|
+
# @param [RevokeRefreshTokensRequest] body Required parameter: TODO: type
|
|
359
|
+
# description here
|
|
360
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
361
|
+
def revoke_refresh_tokens(connection_identifier,
|
|
362
|
+
body)
|
|
363
|
+
@api_call
|
|
364
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
365
|
+
'/api/rest/2.0/connections/{connection_identifier}/revoke-refresh-tokens',
|
|
366
|
+
Server::DEFAULT)
|
|
367
|
+
.template_param(new_parameter(connection_identifier, key: 'connection_identifier')
|
|
368
|
+
.is_required(true)
|
|
369
|
+
.should_encode(true))
|
|
370
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
371
|
+
.body_param(new_parameter(body)
|
|
372
|
+
.is_required(true))
|
|
373
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
374
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
375
|
+
.auth(Single.new('bearerAuth')))
|
|
376
|
+
.response(new_response_handler
|
|
377
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
378
|
+
.deserialize_into(RevokeRefreshTokensResponse.method(:from_hash))
|
|
379
|
+
.is_api_response(true)
|
|
380
|
+
.local_error('400',
|
|
381
|
+
'Invalid request.',
|
|
382
|
+
ErrorResponseException)
|
|
383
|
+
.local_error('401',
|
|
384
|
+
'Unauthorized access.',
|
|
385
|
+
ErrorResponseException)
|
|
386
|
+
.local_error('403',
|
|
387
|
+
'Forbidden access.',
|
|
388
|
+
ErrorResponseException)
|
|
389
|
+
.local_error('404',
|
|
390
|
+
'Object not found',
|
|
391
|
+
ErrorResponseException)
|
|
392
|
+
.local_error('409',
|
|
393
|
+
'Conflict',
|
|
394
|
+
ErrorResponseException)
|
|
395
|
+
.local_error('500',
|
|
396
|
+
'Unexpected error',
|
|
397
|
+
ErrorResponseException))
|
|
398
|
+
.execute
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# <span class="since-beta-tag">Version: 9.2.0.cl or later</span>
|
|
402
|
+
# Gets connection objects.
|
|
403
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can
|
|
404
|
+
# administer ThoughtSpot**) privilege.
|
|
405
|
+
# If [Role-Based Access Control
|
|
406
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
407
|
+
# instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit
|
|
408
|
+
# Connections**) privilege is required.
|
|
409
|
+
# - To get a list of all connections available in the ThoughtSpot system,
|
|
410
|
+
# send the API request without any attributes in the request body.
|
|
411
|
+
# - To get the connection objects for a specific type of data warehouse,
|
|
412
|
+
# specify the type in `data_warehouse_types`.
|
|
413
|
+
# - To fetch details of a connection object, specify the connection object
|
|
414
|
+
# GUID or name. The `name_pattern` attribute allows passing partial text
|
|
415
|
+
# with `%` for a wildcard match.
|
|
416
|
+
# - To get details of the database, schemas, tables, or columns from a data
|
|
417
|
+
# connection object, specify `data_warehouse_object_type`.
|
|
418
|
+
# - To get a specific database, schema, table, or column from a connection
|
|
419
|
+
# object, define the object type in `data_warehouse_object_type` and object
|
|
420
|
+
# properties in the `data_warehouse_objects` array. For example, to search
|
|
421
|
+
# for a column, you must pass the database, schema, and table names in the
|
|
422
|
+
# API request.
|
|
423
|
+
# Note that in the following example, object properties are set in a
|
|
424
|
+
# hierarchical order (`database` > `schema` > `table` > `column`).
|
|
425
|
+
# ```
|
|
426
|
+
# {
|
|
427
|
+
# "connections": [
|
|
428
|
+
# {
|
|
429
|
+
# "identifier": "b9d1f2ef-fa65-4a4b-994e-30fa2d57b0c2",
|
|
430
|
+
# "data_warehouse_objects": [
|
|
431
|
+
# {
|
|
432
|
+
# "database": "NEBULADEV",
|
|
433
|
+
# "schema": "INFORMATION_SCHEMA",
|
|
434
|
+
# "table": "APPLICABLE_ROLES",
|
|
435
|
+
# "column": "ROLE_NAME"
|
|
436
|
+
# }
|
|
437
|
+
# ]
|
|
438
|
+
# }
|
|
439
|
+
# ],
|
|
440
|
+
# "data_warehouse_object_type": "COLUMN"
|
|
441
|
+
# }
|
|
442
|
+
# ```
|
|
443
|
+
# - To fetch data by `configuration`, specify `data_warehouse_object_type`.
|
|
444
|
+
# For example, to fetch columns from the `DEVELOPMENT` database, specify the
|
|
445
|
+
# `data_warehouse_object_type` as `DATABASE` and define the `configuration`
|
|
446
|
+
# string as `{"database":"DEVELOPMENT"}`. To get column data for a specific
|
|
447
|
+
# table, specify the table, for
|
|
448
|
+
# example,`{"database":"RETAILAPPAREL","table":"PIPES"}`.
|
|
449
|
+
# - To query connections by `authentication_type`, specify
|
|
450
|
+
# `data_warehouse_object_type`. Supported values for `authentication_type`
|
|
451
|
+
# are:
|
|
452
|
+
# - `SERVICE_ACCOUNT`: For connections that require service account
|
|
453
|
+
# credentials to authenticate to the Cloud Data Warehouse and fetch data.
|
|
454
|
+
# - `OAUTH`: For connections that require OAuth credentials to
|
|
455
|
+
# authenticate to the Cloud Data Warehouse and fetch data. Teradata, Oracle,
|
|
456
|
+
# and Presto Cloud Data Warehouses do not support the OAuth authentication
|
|
457
|
+
# type.
|
|
458
|
+
# - `IAM`: For connections that have the IAM OAuth set up. This
|
|
459
|
+
# authentication type is supported on Amazon Redshift connections only.
|
|
460
|
+
# - `EXTOAUTH`: For connections that have External OAuth set up.
|
|
461
|
+
# ThoughtSpot supports external [OAuth with Microsoft Azure Active Directory
|
|
462
|
+
# (AD)](https://docs.thoughtspot.com/cloud/latest/
|
|
463
|
+
# connections-snowflake-azure-ad-oauth) and [Okta for Snowflake data
|
|
464
|
+
# connections](https://docs.thoughtspot.com/cloud/latest/connections-snowfla
|
|
465
|
+
# ke-okta-oauth).
|
|
466
|
+
# - `KEY_PAIR`: For connections that require Key Pair account credentials
|
|
467
|
+
# to authenticate to the Cloud Data Warehouse and fetch data. This
|
|
468
|
+
# authentication type is supported on Snowflake connections only.
|
|
469
|
+
# - `OAUTH_WITH_PKCE`: For connections that require OAuth with PKCE
|
|
470
|
+
# account credentials to authenticate to the Cloud Data Warehouse and fetch
|
|
471
|
+
# data. This authentication type is supported on Snowflake, Starburst,
|
|
472
|
+
# Databricks, Denodo connections only.
|
|
473
|
+
# - `EXTOAUTH_WITH_PKCE`: For connections that require External OAuth With
|
|
474
|
+
# PKCE account credentials to authenticate to the Cloud Data Warehouse and
|
|
475
|
+
# fetch data. This authentication type is supported on Snowflake connections
|
|
476
|
+
# only.
|
|
477
|
+
# - `OAUTH_WITH_PEZ`: For connections that require OAuth With PEZ account
|
|
478
|
+
# credentials to authenticate to the Cloud Data Warehouse and fetch data.
|
|
479
|
+
# This authentication type is supported on Amazon Redshift connections only.
|
|
480
|
+
# - `OAUTH_WITH_SERVICE_PRINCIPAL`: For connections that require OAuth
|
|
481
|
+
# With Service Principal account credentials to authenticate to the Cloud
|
|
482
|
+
# Data Warehouse and fetch data. This authentication type is supported on
|
|
483
|
+
# Databricks connections only.
|
|
484
|
+
# - `PERSONAL_ACCESS_TOKEN`: For connections that require Personal Access
|
|
485
|
+
# Token account credentials to authenticate to the Cloud Data Warehouse and
|
|
486
|
+
# fetch data. This authentication type is supported on Databricks
|
|
487
|
+
# connections only.
|
|
488
|
+
# - `OAUTH_CLIENT_CREDENTIALS`: For connections that require OAuth Client
|
|
489
|
+
# Credentials to authenticate to the Cloud Data Warehouse and fetch data.
|
|
490
|
+
# This authentication type is supported on Snowflake connections only.
|
|
491
|
+
# - To include more details about connection objects in the API response,
|
|
492
|
+
# set `include_details` to `true`.
|
|
493
|
+
# - You can also sort the output by field names and filter connections by
|
|
494
|
+
# tags.
|
|
495
|
+
# **NOTE**: When filtering connection records by parameters other than
|
|
496
|
+
# `data_warehouse_types` or `tag_identifiers`, ensure that you set
|
|
497
|
+
# `record_size` to `-1` and `record_offset` to `0` for precise results.
|
|
498
|
+
# #### Endpoint URL
|
|
499
|
+
# @param [SearchConnectionRequest] body Required parameter: TODO: type
|
|
500
|
+
# description here
|
|
501
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
502
|
+
def search_connection(body)
|
|
503
|
+
@api_call
|
|
504
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
505
|
+
'/api/rest/2.0/connection/search',
|
|
506
|
+
Server::DEFAULT)
|
|
507
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
508
|
+
.body_param(new_parameter(body)
|
|
509
|
+
.is_required(true))
|
|
510
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
511
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
512
|
+
.auth(Single.new('bearerAuth')))
|
|
513
|
+
.response(new_response_handler
|
|
514
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
515
|
+
.deserialize_into(SearchConnectionResponse.method(:from_hash))
|
|
516
|
+
.is_api_response(true)
|
|
517
|
+
.is_response_array(true)
|
|
518
|
+
.local_error('400',
|
|
519
|
+
'Invalid request.',
|
|
520
|
+
ErrorResponseException)
|
|
521
|
+
.local_error('401',
|
|
522
|
+
'Unauthorized access.',
|
|
523
|
+
ErrorResponseException)
|
|
524
|
+
.local_error('403',
|
|
525
|
+
'Forbidden access.',
|
|
526
|
+
ErrorResponseException)
|
|
527
|
+
.local_error('500',
|
|
528
|
+
'Unexpected error',
|
|
529
|
+
ErrorResponseException))
|
|
530
|
+
.execute
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# <span class="since-beta-tag">Version: 9.2.0.cl or later</span>
|
|
534
|
+
# **Important**: This endpoint is deprecated and will be removed from
|
|
535
|
+
# ThoughtSpot in September 2025. ThoughtSpot strongly recommends using the
|
|
536
|
+
# [Update connection
|
|
537
|
+
# V2](#/http/api-endpoints/connections/update-connection-v2) endpoint to
|
|
538
|
+
# update your connection objects.
|
|
539
|
+
# #### Usage guidelines
|
|
540
|
+
# Updates a connection object.
|
|
541
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to
|
|
542
|
+
# the connection object, or `ADMINISTRATION` (**Can administer
|
|
543
|
+
# ThoughtSpot**) privilege.
|
|
544
|
+
# If [Role-Based Access Control
|
|
545
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
546
|
+
# instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit
|
|
547
|
+
# Connections**) privilege is required.
|
|
548
|
+
# To update a connection object, pass these parameters in your API request:
|
|
549
|
+
# 1. GUID of the connection object.
|
|
550
|
+
# 2. If you are updating tables or database schema of a connection object:
|
|
551
|
+
# a. Add the updated JSON map of metadata with database, schema, and
|
|
552
|
+
# tables in `data_warehouse_config`.
|
|
553
|
+
# b. Set `validate` to `true`.
|
|
554
|
+
# 3. If you are updating a configuration attribute, connection name, or
|
|
555
|
+
# description, you can set `validate` to `false`.
|
|
556
|
+
# #### Endpoint URL
|
|
557
|
+
# @param [UpdateConnectionRequest] body Required parameter: TODO: type
|
|
558
|
+
# description here
|
|
559
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
560
|
+
def update_connection(body)
|
|
561
|
+
warn 'Endpoint update_connection in ConnectionsController is deprecated'
|
|
562
|
+
@api_call
|
|
563
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
564
|
+
'/api/rest/2.0/connection/update',
|
|
565
|
+
Server::DEFAULT)
|
|
566
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
567
|
+
.body_param(new_parameter(body)
|
|
568
|
+
.is_required(true))
|
|
569
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
570
|
+
.auth(Single.new('bearerAuth')))
|
|
571
|
+
.response(new_response_handler
|
|
572
|
+
.is_response_void(true)
|
|
573
|
+
.is_api_response(true)
|
|
574
|
+
.local_error('400',
|
|
575
|
+
'Invalid request.',
|
|
576
|
+
ErrorResponseException)
|
|
577
|
+
.local_error('401',
|
|
578
|
+
'Unauthorized access.',
|
|
579
|
+
ErrorResponseException)
|
|
580
|
+
.local_error('403',
|
|
581
|
+
'Forbidden access.',
|
|
582
|
+
ErrorResponseException)
|
|
583
|
+
.local_error('500',
|
|
584
|
+
'Unexpected error',
|
|
585
|
+
ErrorResponseException))
|
|
586
|
+
.execute
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
# <span class="since-beta-tag">Version: 10.4.0.cl or later</span>
|
|
590
|
+
# Updates a connection object.
|
|
591
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to
|
|
592
|
+
# the connection object, or `ADMINISTRATION` (**Can administer
|
|
593
|
+
# ThoughtSpot**) privilege.
|
|
594
|
+
# If [Role-Based Access Control
|
|
595
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
596
|
+
# instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit
|
|
597
|
+
# Connections**) privilege is required.
|
|
598
|
+
# To update a connection object, pass these parameters in your API request:
|
|
599
|
+
# 1. GUID of the connection object.
|
|
600
|
+
# 2. If you are updating tables or database schema of a connection object:
|
|
601
|
+
# a. Add the updated JSON map of metadata with database, schema, and
|
|
602
|
+
# tables in `data_warehouse_config`.
|
|
603
|
+
# b. Set `validate` to `true`.
|
|
604
|
+
#
|
|
605
|
+
# **NOTE:** If the `authentication_type` is anything other than
|
|
606
|
+
# SERVICE_ACCOUNT, you must explicitly provide the authenticationType
|
|
607
|
+
# property in the payload. If you do not specify authenticationType, the API
|
|
608
|
+
# will default to SERVICE_ACCOUNT as the authentication type.
|
|
609
|
+
# * A JSON map of configuration attributes, database details, and table
|
|
610
|
+
# properties in `data_warehouse_config` as shown in the following example:
|
|
611
|
+
# * This is an example of updating a single table in a empty connection:
|
|
612
|
+
#
|
|
613
|
+
# ```
|
|
614
|
+
# {
|
|
615
|
+
# "authenticationType": "SERVICE_ACCOUNT",
|
|
616
|
+
# "externalDatabases": [
|
|
617
|
+
# {
|
|
618
|
+
# "name": "DEVELOPMENT",
|
|
619
|
+
# "isAutoCreated": false,
|
|
620
|
+
# "schemas": [
|
|
621
|
+
# {
|
|
622
|
+
# "name": "TS_dataset",
|
|
623
|
+
# "tables": [
|
|
624
|
+
# {
|
|
625
|
+
# "name": "DEMORENAME",
|
|
626
|
+
# "type": "TABLE",
|
|
627
|
+
# "description": "",
|
|
628
|
+
# "selected": true,
|
|
629
|
+
# "linked": true,
|
|
630
|
+
# "gid": 0,
|
|
631
|
+
# "datasetId": "-1",
|
|
632
|
+
# "subType": "",
|
|
633
|
+
# "reportId": "",
|
|
634
|
+
# "viewId": "",
|
|
635
|
+
# "columns": [
|
|
636
|
+
# {
|
|
637
|
+
# "name": "Col1",
|
|
638
|
+
# "type": "VARCHAR",
|
|
639
|
+
# "canImport": true,
|
|
640
|
+
# "selected": true,
|
|
641
|
+
# "description": "",
|
|
642
|
+
# "isLinkedActive": true,
|
|
643
|
+
# "isAggregate": false
|
|
644
|
+
# },
|
|
645
|
+
# {
|
|
646
|
+
# "name": "Col2",
|
|
647
|
+
# "type": "VARCHAR",
|
|
648
|
+
# "canImport": true,
|
|
649
|
+
# "selected": true,
|
|
650
|
+
# "description": "",
|
|
651
|
+
# "isLinkedActive": true,
|
|
652
|
+
# "isAggregate": false
|
|
653
|
+
# },
|
|
654
|
+
# {
|
|
655
|
+
# "name": "Col3",
|
|
656
|
+
# "type": "VARCHAR",
|
|
657
|
+
# "canImport": true,
|
|
658
|
+
# "selected": true,
|
|
659
|
+
# "description": "",
|
|
660
|
+
# "isLinkedActive": true,
|
|
661
|
+
# "isAggregate": false
|
|
662
|
+
# },
|
|
663
|
+
# {
|
|
664
|
+
# "name": "Col312",
|
|
665
|
+
# "type": "VARCHAR",
|
|
666
|
+
# "canImport": true,
|
|
667
|
+
# "selected": true,
|
|
668
|
+
# "description": "",
|
|
669
|
+
# "isLinkedActive": true,
|
|
670
|
+
# "isAggregate": false
|
|
671
|
+
# },
|
|
672
|
+
# {
|
|
673
|
+
# "name": "Col4",
|
|
674
|
+
# "type": "VARCHAR",
|
|
675
|
+
# "canImport": true,
|
|
676
|
+
# "selected": true,
|
|
677
|
+
# "description": "",
|
|
678
|
+
# "isLinkedActive": true,
|
|
679
|
+
# "isAggregate": false
|
|
680
|
+
# }
|
|
681
|
+
# ],
|
|
682
|
+
# "relationships": []
|
|
683
|
+
# }
|
|
684
|
+
# ]
|
|
685
|
+
# }
|
|
686
|
+
# ]
|
|
687
|
+
# }
|
|
688
|
+
# ],
|
|
689
|
+
# "configuration": {
|
|
690
|
+
# "password": "",
|
|
691
|
+
# "database": "DEVELOPMENT",
|
|
692
|
+
# "role": "DEV",
|
|
693
|
+
# "accountName": "thoughtspot_partner",
|
|
694
|
+
# "warehouse": "DEMO_WH",
|
|
695
|
+
# "user": "DEV_USER"
|
|
696
|
+
# }
|
|
697
|
+
# }
|
|
698
|
+
# ```
|
|
699
|
+
#
|
|
700
|
+
# * This is an example of updating a single table in an existing connection
|
|
701
|
+
# with tables:
|
|
702
|
+
#
|
|
703
|
+
# ```
|
|
704
|
+
# {
|
|
705
|
+
# "authenticationType": "SERVICE_ACCOUNT",
|
|
706
|
+
# "externalDatabases": [
|
|
707
|
+
# {
|
|
708
|
+
# "name": "DEVELOPMENT",
|
|
709
|
+
# "isAutoCreated": false,
|
|
710
|
+
# "schemas": [
|
|
711
|
+
# {
|
|
712
|
+
# "name": "TS_dataset",
|
|
713
|
+
# "tables": [
|
|
714
|
+
# {
|
|
715
|
+
# "name": "CUSTOMER",
|
|
716
|
+
# "type": "TABLE",
|
|
717
|
+
# "description": "",
|
|
718
|
+
# "selected": true,
|
|
719
|
+
# "linked": true,
|
|
720
|
+
# "gid": 0,
|
|
721
|
+
# "datasetId": "-1",
|
|
722
|
+
# "subType": "",
|
|
723
|
+
# "reportId": "",
|
|
724
|
+
# "viewId": "",
|
|
725
|
+
# "columns": [],
|
|
726
|
+
# "relationships": []
|
|
727
|
+
# },
|
|
728
|
+
# {
|
|
729
|
+
# "name": "tpch5k_falcon_default_schema_users",
|
|
730
|
+
# "type": "TABLE",
|
|
731
|
+
# "description": "",
|
|
732
|
+
# "selected": true,
|
|
733
|
+
# "linked": true,
|
|
734
|
+
# "gid": 0,
|
|
735
|
+
# "datasetId": "-1",
|
|
736
|
+
# "subType": "",
|
|
737
|
+
# "reportId": "",
|
|
738
|
+
# "viewId": "",
|
|
739
|
+
# "columns": [
|
|
740
|
+
# {
|
|
741
|
+
# "name": "user_id",
|
|
742
|
+
# "type": "INT64",
|
|
743
|
+
# "canImport": true,
|
|
744
|
+
# "selected": true,
|
|
745
|
+
# "description": "",
|
|
746
|
+
# "isLinkedActive": true,
|
|
747
|
+
# "isAggregate": false
|
|
748
|
+
# },
|
|
749
|
+
# {
|
|
750
|
+
# "name": "product_id",
|
|
751
|
+
# "type": "INT64",
|
|
752
|
+
# "canImport": true,
|
|
753
|
+
# "selected": true,
|
|
754
|
+
# "description": "",
|
|
755
|
+
# "isLinkedActive": true,
|
|
756
|
+
# "isAggregate": false
|
|
757
|
+
# },
|
|
758
|
+
# {
|
|
759
|
+
# "name": "user_cost",
|
|
760
|
+
# "type": "INT64",
|
|
761
|
+
# "canImport": true,
|
|
762
|
+
# "selected": true,
|
|
763
|
+
# "description": "",
|
|
764
|
+
# "isLinkedActive": true,
|
|
765
|
+
# "isAggregate": false
|
|
766
|
+
# }
|
|
767
|
+
# ],
|
|
768
|
+
# "relationships": []
|
|
769
|
+
# }
|
|
770
|
+
# ]
|
|
771
|
+
# }
|
|
772
|
+
# ]
|
|
773
|
+
# }
|
|
774
|
+
# ],
|
|
775
|
+
# "configuration": {
|
|
776
|
+
# "password": "",
|
|
777
|
+
# "database": "DEVELOPMENT",
|
|
778
|
+
# "role": "DEV",
|
|
779
|
+
# "accountName": "thoughtspot_partner",
|
|
780
|
+
# "warehouse": "DEMO_WH",
|
|
781
|
+
# "user": "DEV_USER"
|
|
782
|
+
# }
|
|
783
|
+
# }
|
|
784
|
+
# ```
|
|
785
|
+
# 3. If you are updating a configuration attribute, connection name, or
|
|
786
|
+
# description, you can set `validate` to `false`.
|
|
787
|
+
# **NOTE:** If the `authentication_type` is anything other than
|
|
788
|
+
# SERVICE_ACCOUNT, you must explicitly provide the authenticationType
|
|
789
|
+
# property in the payload. If you do not specify authenticationType, the
|
|
790
|
+
# API will default to SERVICE_ACCOUNT as the authentication type.
|
|
791
|
+
# * A JSON map of configuration attributes in `data_warehouse_config`. The
|
|
792
|
+
# following example shows the configuration attributes for a Snowflake
|
|
793
|
+
# connection:
|
|
794
|
+
# ```
|
|
795
|
+
# {
|
|
796
|
+
# "configuration":{
|
|
797
|
+
# "accountName":"thoughtspot_partner",
|
|
798
|
+
# "user":"tsadmin",
|
|
799
|
+
# "password":"TestConn123",
|
|
800
|
+
# "role":"sysadmin",
|
|
801
|
+
# "warehouse":"MEDIUM_WH"
|
|
802
|
+
# },
|
|
803
|
+
# "externalDatabases":[
|
|
804
|
+
# ]
|
|
805
|
+
# }
|
|
806
|
+
# ```
|
|
807
|
+
# #### Endpoint URL
|
|
808
|
+
# @param [String] connection_identifier Required parameter: Unique ID or
|
|
809
|
+
# name of the connection.
|
|
810
|
+
# @param [UpdateConnectionV2Request] body Required parameter: TODO: type
|
|
811
|
+
# description here
|
|
812
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
813
|
+
def update_connection_v2(connection_identifier,
|
|
814
|
+
body)
|
|
815
|
+
@api_call
|
|
816
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
817
|
+
'/api/rest/2.0/connections/{connection_identifier}/update',
|
|
818
|
+
Server::DEFAULT)
|
|
819
|
+
.template_param(new_parameter(connection_identifier, key: 'connection_identifier')
|
|
820
|
+
.is_required(true)
|
|
821
|
+
.should_encode(true))
|
|
822
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
823
|
+
.body_param(new_parameter(body)
|
|
824
|
+
.is_required(true))
|
|
825
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
826
|
+
.auth(Single.new('bearerAuth')))
|
|
827
|
+
.response(new_response_handler
|
|
828
|
+
.is_response_void(true)
|
|
829
|
+
.is_api_response(true)
|
|
830
|
+
.local_error('400',
|
|
831
|
+
'Invalid request.',
|
|
832
|
+
ErrorResponseException)
|
|
833
|
+
.local_error('401',
|
|
834
|
+
'Unauthorized access.',
|
|
835
|
+
ErrorResponseException)
|
|
836
|
+
.local_error('403',
|
|
837
|
+
'Forbidden access.',
|
|
838
|
+
ErrorResponseException)
|
|
839
|
+
.local_error('500',
|
|
840
|
+
'Unexpected error',
|
|
841
|
+
ErrorResponseException))
|
|
842
|
+
.execute
|
|
843
|
+
end
|
|
844
|
+
end
|
|
845
|
+
end
|