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,1074 @@
|
|
|
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
|
+
# MetadataController
|
|
8
|
+
class MetadataController < BaseController
|
|
9
|
+
# Convert worksheets to models <br/> <span class="since-beta-tag">Version:
|
|
10
|
+
# 10.6.0.cl or later</span>
|
|
11
|
+
# ## Prerequisites
|
|
12
|
+
# - **Privileges Required:**
|
|
13
|
+
# - `DATAMANAGEMENT` (Can manage data) or `ADMINISTRATION` (Can administer
|
|
14
|
+
# ThoughtSpot).
|
|
15
|
+
# - **Additional Privileges (if RBAC is enabled):**
|
|
16
|
+
# - `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (Can manage data models).
|
|
17
|
+
# ---
|
|
18
|
+
# ## Usage Guidelines
|
|
19
|
+
# ### Parameters
|
|
20
|
+
# 1. **worksheet_ids**
|
|
21
|
+
# - **Description:** A comma-separated list of GUIDs (Globally Unique
|
|
22
|
+
# Identifiers) specifying the Worksheets to be converted.
|
|
23
|
+
# - **Usage:**
|
|
24
|
+
# - Used only when `convert_all` is set to `false`.
|
|
25
|
+
# - Leave empty or omit when `convert_all` is set to `true`.
|
|
26
|
+
# 2. **exclude_worksheet_ids**
|
|
27
|
+
# - **Description:** A comma-separated list of GUIDs specifying
|
|
28
|
+
# Worksheets to be excluded from conversion.
|
|
29
|
+
# - **Usage:**
|
|
30
|
+
# - Useful when `convert_all` is set to `true` and specific Worksheets
|
|
31
|
+
# should not be converted.
|
|
32
|
+
# 3. **convert_all**
|
|
33
|
+
# - **Description:** Sets the scope of conversion.
|
|
34
|
+
# - **Options:**
|
|
35
|
+
# - `true`: Converts all Worksheets in the system, except those
|
|
36
|
+
# specified in `exclude_worksheet_ids`.
|
|
37
|
+
# - `false`: Converts only the Worksheets listed in `worksheet_ids`.
|
|
38
|
+
# 4. **apply_changes**
|
|
39
|
+
# - **Description:** Specifies whether to apply changes directly to
|
|
40
|
+
# ThoughtSpot or to generate a preview before applying any changes.Used for
|
|
41
|
+
# validation of conversion.
|
|
42
|
+
# - **Options:**
|
|
43
|
+
# - `true`: Applies conversion changes directly to ThoughtSpot.
|
|
44
|
+
# - `false`: Generates only a preview of the changes and does not apply
|
|
45
|
+
# any changes to ThoughtSpot
|
|
46
|
+
# ---
|
|
47
|
+
# ## Best Practices
|
|
48
|
+
# 1. **Backup Before Conversion:**
|
|
49
|
+
# Always export metadata as a backup before initiating the conversion
|
|
50
|
+
# process
|
|
51
|
+
# 2. **Partial Conversion for Testing:**
|
|
52
|
+
# Test the conversion process by setting `convert_all` to `false` and
|
|
53
|
+
# specifying a small number of `worksheet_ids`.
|
|
54
|
+
# 3. **Verify Dependencies:**
|
|
55
|
+
# Check for dependent objects, such as Tables and Connections, to avoid
|
|
56
|
+
# invalid references.
|
|
57
|
+
# 4. **Review Changes:**
|
|
58
|
+
# Use `apply_changes: false` to preview the impact of the conversion
|
|
59
|
+
# before applying changes.
|
|
60
|
+
# ---
|
|
61
|
+
# ## Examples
|
|
62
|
+
# ### Convert Specific Worksheets
|
|
63
|
+
# ```json
|
|
64
|
+
# {
|
|
65
|
+
# "worksheet_ids": ["guid1", "guid2", "guid3"],
|
|
66
|
+
# "exclude_worksheet_ids": [],
|
|
67
|
+
# "convert_all": false,
|
|
68
|
+
# "apply_changes": true
|
|
69
|
+
# }
|
|
70
|
+
# ```
|
|
71
|
+
# ### Convert All Accessible Worksheets
|
|
72
|
+
# ```json
|
|
73
|
+
# {
|
|
74
|
+
# "worksheet_ids": [],
|
|
75
|
+
# "exclude_worksheet_ids": [],
|
|
76
|
+
# "convert_all": true,
|
|
77
|
+
# "apply_changes": true
|
|
78
|
+
# }
|
|
79
|
+
# ```
|
|
80
|
+
# ### Exclude Specific Worksheets While Converting All Accessible Worksheets
|
|
81
|
+
# ```json
|
|
82
|
+
# {
|
|
83
|
+
# "worksheet_ids": [],
|
|
84
|
+
# "exclude_worksheet_ids": ["abc"],
|
|
85
|
+
# "convert_all": true,
|
|
86
|
+
# "apply_changes": true
|
|
87
|
+
# }
|
|
88
|
+
# ```
|
|
89
|
+
# #### Endpoint URL
|
|
90
|
+
# @param [ConvertWorksheetToModelRequest] body Required parameter: TODO:
|
|
91
|
+
# type description here
|
|
92
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
93
|
+
def convert_worksheet_to_model(body)
|
|
94
|
+
@api_call
|
|
95
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
96
|
+
'/api/rest/2.0/metadata/worksheets/convert',
|
|
97
|
+
Server::DEFAULT)
|
|
98
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
99
|
+
.body_param(new_parameter(body)
|
|
100
|
+
.is_required(true))
|
|
101
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
102
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
103
|
+
.auth(Single.new('bearerAuth')))
|
|
104
|
+
.response(new_response_handler
|
|
105
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
106
|
+
.deserialize_into(ResponseWorksheetToModelConversion.method(:from_hash))
|
|
107
|
+
.is_api_response(true)
|
|
108
|
+
.local_error('400',
|
|
109
|
+
'Invalid request.',
|
|
110
|
+
ErrorResponseException)
|
|
111
|
+
.local_error('401',
|
|
112
|
+
'Unauthorized access.',
|
|
113
|
+
ErrorResponseException)
|
|
114
|
+
.local_error('403',
|
|
115
|
+
'Forbidden access.',
|
|
116
|
+
ErrorResponseException)
|
|
117
|
+
.local_error('500',
|
|
118
|
+
'Unexpected error',
|
|
119
|
+
ErrorResponseException))
|
|
120
|
+
.execute
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Makes a copy of an Answer or Liveboard <br/> <span
|
|
124
|
+
# class="since-beta-tag">Version: 10.3.0.cl or later</span>
|
|
125
|
+
# Creates a copy of a metadata object.
|
|
126
|
+
# Requires at least view access to the metadata object being copied.
|
|
127
|
+
# Upon successful execution, the API creates a copy of the metadata object
|
|
128
|
+
# specified in the API request and returns the ID of the new object.
|
|
129
|
+
# #### Endpoint URL
|
|
130
|
+
# @param [CopyObjectRequest] body Required parameter: TODO: type description
|
|
131
|
+
# here
|
|
132
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
133
|
+
def copy_object(body)
|
|
134
|
+
@api_call
|
|
135
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
136
|
+
'/api/rest/2.0/metadata/copyobject',
|
|
137
|
+
Server::DEFAULT)
|
|
138
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
139
|
+
.body_param(new_parameter(body)
|
|
140
|
+
.is_required(true))
|
|
141
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
142
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
143
|
+
.auth(Single.new('bearerAuth')))
|
|
144
|
+
.response(new_response_handler
|
|
145
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
146
|
+
.deserialize_into(ResponseCopyObject.method(:from_hash))
|
|
147
|
+
.is_api_response(true)
|
|
148
|
+
.local_error('400',
|
|
149
|
+
'Invalid request.',
|
|
150
|
+
ErrorResponseException)
|
|
151
|
+
.local_error('401',
|
|
152
|
+
'Unauthorized access.',
|
|
153
|
+
ErrorResponseException)
|
|
154
|
+
.local_error('403',
|
|
155
|
+
'Forbidden access.',
|
|
156
|
+
ErrorResponseException)
|
|
157
|
+
.local_error('404',
|
|
158
|
+
'Object not found',
|
|
159
|
+
ErrorResponseException)
|
|
160
|
+
.local_error('500',
|
|
161
|
+
'Unexpected error',
|
|
162
|
+
ErrorResponseException))
|
|
163
|
+
.execute
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# <span class="since-beta-tag">Version: 9.0.0.cl or later</span>
|
|
167
|
+
# Removes the specified metadata object from the ThoughtSpot system.
|
|
168
|
+
# Requires edit access to the metadata object.
|
|
169
|
+
# #### Endpoint URL
|
|
170
|
+
# @param [DeleteMetadataRequest] body Required parameter: TODO: type
|
|
171
|
+
# description here
|
|
172
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
173
|
+
def delete_metadata(body)
|
|
174
|
+
@api_call
|
|
175
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
176
|
+
'/api/rest/2.0/metadata/delete',
|
|
177
|
+
Server::DEFAULT)
|
|
178
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
179
|
+
.body_param(new_parameter(body)
|
|
180
|
+
.is_required(true))
|
|
181
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
182
|
+
.auth(Single.new('bearerAuth')))
|
|
183
|
+
.response(new_response_handler
|
|
184
|
+
.is_response_void(true)
|
|
185
|
+
.is_api_response(true)
|
|
186
|
+
.local_error('400',
|
|
187
|
+
'Invalid request.',
|
|
188
|
+
ErrorResponseException)
|
|
189
|
+
.local_error('401',
|
|
190
|
+
'Unauthorized access.',
|
|
191
|
+
ErrorResponseException)
|
|
192
|
+
.local_error('403',
|
|
193
|
+
'Forbidden access.',
|
|
194
|
+
ErrorResponseException)
|
|
195
|
+
.local_error('500',
|
|
196
|
+
'Unexpected error',
|
|
197
|
+
ErrorResponseException))
|
|
198
|
+
.execute
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# <span class="since-beta-tag">Version: 9.0.0.cl or later</span>
|
|
202
|
+
# Exports the [TML](https://docs.thoughtspot.com/cloud/latest/tml)
|
|
203
|
+
# representation of metadata objects in JSON or YAML format.
|
|
204
|
+
# Requires `DATADOWNLOADING` (**Can download Data**) and at least view
|
|
205
|
+
# access to the metadata object.
|
|
206
|
+
# #### Usage guidelines
|
|
207
|
+
# * You can export one or several objects by passing metadata object GUIDs
|
|
208
|
+
# in the `metadata` array.
|
|
209
|
+
# * When exporting TML content for a Liveboard or Answer object, you can set
|
|
210
|
+
# `export_associated` to `true` to retrieve TML content for underlying
|
|
211
|
+
# Worksheets, Tables, or Views, including the GUID of each object within the
|
|
212
|
+
# headers. When `export_associated` is set to `true`, consider retrieving
|
|
213
|
+
# one metadata object at a time.
|
|
214
|
+
# * Set `export_fqns` to `true` to add FQNs of the referenced objects in the
|
|
215
|
+
# TML content. For example, if you send an API request to retrieve TML for a
|
|
216
|
+
# Liveboard and its associated objects, the API returns the TML content with
|
|
217
|
+
# FQNs of the referenced Worksheet. Exporting TML with FQNs is useful if
|
|
218
|
+
# ThoughtSpot has multiple objects with the same name and you want to
|
|
219
|
+
# eliminate ambiguity when importing TML files into ThoughtSpot. It
|
|
220
|
+
# eliminates the need for adding FQNs of the referenced objects manually
|
|
221
|
+
# during the import operation.
|
|
222
|
+
# * To export only the TML of feedbacks associated with an object, set the
|
|
223
|
+
# GUID of the object as `identifier`, and set the `type` as `FEEDBACK` in
|
|
224
|
+
# the `metadata` array.
|
|
225
|
+
# * To export the TML of an object along with the feedbacks associated with
|
|
226
|
+
# it, set the GUID of the object as `identifier`, set the `type` as
|
|
227
|
+
# `LOGIAL_TABLE` in the `metadata` array, and set
|
|
228
|
+
# `export_with_associated_feedbacks` in `export_options` to true.
|
|
229
|
+
# For more information, see [TML
|
|
230
|
+
# Documentation](https://developers.thoughtspot.com/docs/tml#_export_a_tml).
|
|
231
|
+
# For more information on feedbacks, see [Feedback
|
|
232
|
+
# Documentation](https://docs.thoughtspot.com/cloud/latest/sage-feedback).
|
|
233
|
+
# #### Endpoint URL
|
|
234
|
+
# @param [ExportMetadataTmlRequest] body Required parameter: TODO: type
|
|
235
|
+
# description here
|
|
236
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
237
|
+
def export_metadata_tml(body)
|
|
238
|
+
@api_call
|
|
239
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
240
|
+
'/api/rest/2.0/metadata/tml/export',
|
|
241
|
+
Server::DEFAULT)
|
|
242
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
243
|
+
.body_param(new_parameter(body)
|
|
244
|
+
.is_required(true))
|
|
245
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
246
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
247
|
+
.auth(Single.new('bearerAuth')))
|
|
248
|
+
.response(new_response_handler
|
|
249
|
+
.deserializer(APIHelper.method(:json_deserialize))
|
|
250
|
+
.is_api_response(true)
|
|
251
|
+
.is_response_array(true)
|
|
252
|
+
.local_error('400',
|
|
253
|
+
'Invalid request.',
|
|
254
|
+
ErrorResponseException)
|
|
255
|
+
.local_error('401',
|
|
256
|
+
'Unauthorized access.',
|
|
257
|
+
ErrorResponseException)
|
|
258
|
+
.local_error('403',
|
|
259
|
+
'Forbidden access.',
|
|
260
|
+
ErrorResponseException)
|
|
261
|
+
.local_error('500',
|
|
262
|
+
'Unexpected error',
|
|
263
|
+
ErrorResponseException))
|
|
264
|
+
.execute
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
# <span class="since-beta-tag">Version: 10.1.0.cl or later</span>
|
|
268
|
+
# Exports the [TML](https://docs.thoughtspot.com/cloud/latest/tml)
|
|
269
|
+
# representation of metadata objects in JSON or YAML format.
|
|
270
|
+
# ### **Permissions Required**
|
|
271
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) and `USERMANAGEMENT`
|
|
272
|
+
# (**Can manage users**) privileges.
|
|
273
|
+
# #### **Usage Guidelines**
|
|
274
|
+
# This API is only applicable for `USER`, `GROUP`, and `ROLES` metadata
|
|
275
|
+
# types.
|
|
276
|
+
# - `batch_offset` Indicates the starting position within the complete
|
|
277
|
+
# dataset from which the API should begin returning objects. Useful for
|
|
278
|
+
# paginating results efficiently.
|
|
279
|
+
# - `batch_size` Specifies the number of objects or items to retrieve in a
|
|
280
|
+
# single request. Helps control response size for better performance.
|
|
281
|
+
# - `edoc_format` Defines the format of the TML content. The exported
|
|
282
|
+
# metadata can be in JSON or YAML format.
|
|
283
|
+
# - `export_dependent` Specifies whether to include dependent metadata
|
|
284
|
+
# objects in the export. Ensures related objects are also retrieved if
|
|
285
|
+
# needed.
|
|
286
|
+
# - `all_orgs_override` Indicates whether the export operation applies
|
|
287
|
+
# across all organizations. Useful for multi-tenant environments where
|
|
288
|
+
# cross-org exports are required.
|
|
289
|
+
# #### Endpoint URL
|
|
290
|
+
# @param [ExportMetadataTmlBatchedRequest] body Required parameter: TODO:
|
|
291
|
+
# type description here
|
|
292
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
293
|
+
def export_metadata_tml_batched(body)
|
|
294
|
+
@api_call
|
|
295
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
296
|
+
'/api/rest/2.0/metadata/tml/export/batch',
|
|
297
|
+
Server::DEFAULT)
|
|
298
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
299
|
+
.body_param(new_parameter(body)
|
|
300
|
+
.is_required(true))
|
|
301
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
302
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
303
|
+
.auth(Single.new('bearerAuth')))
|
|
304
|
+
.response(new_response_handler
|
|
305
|
+
.deserializer(APIHelper.method(:json_deserialize))
|
|
306
|
+
.is_api_response(true)
|
|
307
|
+
.local_error('400',
|
|
308
|
+
'Invalid request.',
|
|
309
|
+
ErrorResponseException)
|
|
310
|
+
.local_error('401',
|
|
311
|
+
'Unauthorized access.',
|
|
312
|
+
ErrorResponseException)
|
|
313
|
+
.local_error('403',
|
|
314
|
+
'Forbidden access.',
|
|
315
|
+
ErrorResponseException)
|
|
316
|
+
.local_error('500',
|
|
317
|
+
'Unexpected error',
|
|
318
|
+
ErrorResponseException))
|
|
319
|
+
.execute
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# <span class="since-beta-tag">Version: 9.0.0.cl or later</span>
|
|
323
|
+
# Fetches the underlying SQL query data for an Answer object.
|
|
324
|
+
# Requires at least view access to the Answer object.
|
|
325
|
+
# Upon successful execution, the API returns the SQL queries for the
|
|
326
|
+
# specified object as shown in this example:
|
|
327
|
+
# ```
|
|
328
|
+
# {
|
|
329
|
+
# "metadata_id":"8fbe44a8-46ad-4b16-8d39-184b2fada490",
|
|
330
|
+
# "metadata_name":"Total sales",
|
|
331
|
+
# "metadata_type":"ANSWER",
|
|
332
|
+
# "sql_queries":[
|
|
333
|
+
# {
|
|
334
|
+
# "metadata_id":"8fbe44a8-46ad-4b16-8d39-184b2fada490",
|
|
335
|
+
# "metadata_name":"Total sales -test",
|
|
336
|
+
# "sql_query":"SELECT \n \"ta_1\".\"REGION\" \"ca_1\", \n
|
|
337
|
+
# \"ta_2\".\"PRODUCTNAME\" \"ca_2\", \n \"ta_1\".\"STORENAME\" \"ca_3\", \n
|
|
338
|
+
# CASE\n WHEN sum(\"ta_3\".\"SALES\") IS NOT NULL THEN
|
|
339
|
+
# sum(\"ta_3\".\"SALES\")\n ELSE 0\n END \"ca_4\", \n CASE\n WHEN
|
|
340
|
+
# sum(\"ta_3\".\"QUANTITYPURCHASED\") IS NOT NULL THEN
|
|
341
|
+
# sum(\"ta_3\".\"QUANTITYPURCHASED\")\n ELSE 0\n END \"ca_5\"\nFROM
|
|
342
|
+
# \"RETAILAPPAREL\".\"PUBLIC\".\"FACT_RETAPP_SALES\" \"ta_3\"\n JOIN
|
|
343
|
+
# \"RETAILAPPAREL\".\"PUBLIC\".\"DIM_RETAPP_STORES\" \"ta_1\"\n ON
|
|
344
|
+
# \"ta_3\".\"STOREID\" = \"ta_1\".\"STOREID\"\n JOIN
|
|
345
|
+
# \"RETAILAPPAREL\".\"PUBLIC\".\"DIM_RETAPP_PRODUCTS\" \"ta_2\"\n ON
|
|
346
|
+
# \"ta_3\".\"PRODUCTID\" = \"ta_2\".\"PRODUCTID\"\nGROUP BY \n \"ca_1\", \n
|
|
347
|
+
# \"ca_2\", \n \"ca_3\"\n"
|
|
348
|
+
# }
|
|
349
|
+
# ]
|
|
350
|
+
# }
|
|
351
|
+
# ```
|
|
352
|
+
# #### Endpoint URL
|
|
353
|
+
# @param [FetchAnswerSqlQueryRequest] body Required parameter: TODO: type
|
|
354
|
+
# description here
|
|
355
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
356
|
+
def fetch_answer_sql_query(body)
|
|
357
|
+
@api_call
|
|
358
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
359
|
+
'/api/rest/2.0/metadata/answer/sql',
|
|
360
|
+
Server::DEFAULT)
|
|
361
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
362
|
+
.body_param(new_parameter(body)
|
|
363
|
+
.is_required(true))
|
|
364
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
365
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
366
|
+
.auth(Single.new('bearerAuth')))
|
|
367
|
+
.response(new_response_handler
|
|
368
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
369
|
+
.deserialize_into(SqlQueryResponse.method(:from_hash))
|
|
370
|
+
.is_api_response(true)
|
|
371
|
+
.local_error('400',
|
|
372
|
+
'Invalid request.',
|
|
373
|
+
ErrorResponseException)
|
|
374
|
+
.local_error('401',
|
|
375
|
+
'Unauthorized access.',
|
|
376
|
+
ErrorResponseException)
|
|
377
|
+
.local_error('403',
|
|
378
|
+
'Forbidden access.',
|
|
379
|
+
ErrorResponseException)
|
|
380
|
+
.local_error('500',
|
|
381
|
+
'Unexpected error',
|
|
382
|
+
ErrorResponseException))
|
|
383
|
+
.execute
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# <span class="since-beta-tag">Version: 10.4.0.cl or later</span>
|
|
387
|
+
# Gets information about the status of the TML async import task scheduled
|
|
388
|
+
# using the `/api/rest/2.0/metadata/tml/async/import` API call.
|
|
389
|
+
# To fetch the task details, specify the ID of the TML async import task.
|
|
390
|
+
# Requires access to the task ID. The API allows users who initiated the
|
|
391
|
+
# asynchronous TML import via `/api/rest/2.0/metadata/tml/async/import` to
|
|
392
|
+
# view the status of their tasks. Users with administration privilege can
|
|
393
|
+
# view the status of all import tasks initiated by the users in their Org.
|
|
394
|
+
# #### Usage guidelines
|
|
395
|
+
# See [TML API
|
|
396
|
+
# Documentation](https://developers.thoughtspot.com/docs/tml#_fetch_status_o
|
|
397
|
+
# f_the_tml_import_task) for usage guidelines.
|
|
398
|
+
# #### Endpoint URL
|
|
399
|
+
# @param [FetchAsyncImportTaskStatusRequest] body Required parameter: TODO:
|
|
400
|
+
# type description here
|
|
401
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
402
|
+
def fetch_async_import_task_status(body)
|
|
403
|
+
@api_call
|
|
404
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
405
|
+
'/api/rest/2.0/metadata/tml/async/status',
|
|
406
|
+
Server::DEFAULT)
|
|
407
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
408
|
+
.body_param(new_parameter(body)
|
|
409
|
+
.is_required(true))
|
|
410
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
411
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
412
|
+
.auth(Single.new('bearerAuth')))
|
|
413
|
+
.response(new_response_handler
|
|
414
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
415
|
+
.deserialize_into(GetAsyncImportStatusResponse.method(:from_hash))
|
|
416
|
+
.is_api_response(true)
|
|
417
|
+
.local_error('400',
|
|
418
|
+
'Invalid request.',
|
|
419
|
+
ErrorResponseException)
|
|
420
|
+
.local_error('401',
|
|
421
|
+
'Unauthorized access.',
|
|
422
|
+
ErrorResponseException)
|
|
423
|
+
.local_error('403',
|
|
424
|
+
'Forbidden access.',
|
|
425
|
+
ErrorResponseException)
|
|
426
|
+
.local_error('500',
|
|
427
|
+
'Unexpected error',
|
|
428
|
+
ErrorResponseException))
|
|
429
|
+
.execute
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# <span class="since-beta-tag">Version: 9.0.0.cl or later</span>
|
|
433
|
+
# Fetches the underlying SQL query data for a Liveboard object and its
|
|
434
|
+
# visualizations.
|
|
435
|
+
# Requires at least view access to the Liveboard object.
|
|
436
|
+
# To get SQL query data for a Liveboard, specify the GUID of the Liveboard.
|
|
437
|
+
# Optionally, you can add an array of visualization GUIDs to retrieve the
|
|
438
|
+
# SQL query data for visualizations in the Liveboard.
|
|
439
|
+
# Upon successful execution, the API returns the SQL queries for the
|
|
440
|
+
# specified object as shown in this example:
|
|
441
|
+
# ```
|
|
442
|
+
# {
|
|
443
|
+
# "metadata_id": "fa68ae91-7588-4136-bacd-d71fb12dda69",
|
|
444
|
+
# "metadata_name": "Total Sales",
|
|
445
|
+
# "metadata_type": "LIVEBOARD",
|
|
446
|
+
# "sql_queries": [
|
|
447
|
+
# {
|
|
448
|
+
# "metadata_id": "b3b6d2b9-089a-490c-8e16-b144650b7843",
|
|
449
|
+
# "metadata_name": "Total quantity purchased, Total sales by region",
|
|
450
|
+
# "sql_query": "SELECT \n \"ta_1\".\"REGION\" \"ca_1\", \n CASE\n
|
|
451
|
+
# WHEN sum(\"ta_2\".\"QUANTITYPURCHASED\") IS NOT NULL THEN
|
|
452
|
+
# sum(\"ta_2\".\"QUANTITYPURCHASED\")\n ELSE 0\n END \"ca_2\", \n
|
|
453
|
+
# CASE\n WHEN sum(\"ta_2\".\"SALES\") IS NOT NULL THEN
|
|
454
|
+
# sum(\"ta_2\".\"SALES\")\n ELSE 0\n END \"ca_3\"\nFROM
|
|
455
|
+
# \"RETAILAPPAREL\".\"PUBLIC\".\"FACT_RETAPP_SALES\" \"ta_2\"\n JOIN
|
|
456
|
+
# \"RETAILAPPAREL\".\"PUBLIC\".\"DIM_RETAPP_STORES\" \"ta_1\"\n ON
|
|
457
|
+
# \"ta_2\".\"STOREID\" = \"ta_1\".\"STOREID\"\nGROUP BY \"ca_1\""
|
|
458
|
+
# }
|
|
459
|
+
# ]
|
|
460
|
+
# }
|
|
461
|
+
# ```
|
|
462
|
+
# #### Endpoint URL
|
|
463
|
+
# @param [FetchLiveboardSqlQueryRequest] body Required parameter: TODO: type
|
|
464
|
+
# description here
|
|
465
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
466
|
+
def fetch_liveboard_sql_query(body)
|
|
467
|
+
@api_call
|
|
468
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
469
|
+
'/api/rest/2.0/metadata/liveboard/sql',
|
|
470
|
+
Server::DEFAULT)
|
|
471
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
472
|
+
.body_param(new_parameter(body)
|
|
473
|
+
.is_required(true))
|
|
474
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
475
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
476
|
+
.auth(Single.new('bearerAuth')))
|
|
477
|
+
.response(new_response_handler
|
|
478
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
479
|
+
.deserialize_into(SqlQueryResponse.method(:from_hash))
|
|
480
|
+
.is_api_response(true)
|
|
481
|
+
.local_error('400',
|
|
482
|
+
'Invalid request.',
|
|
483
|
+
ErrorResponseException)
|
|
484
|
+
.local_error('401',
|
|
485
|
+
'Unauthorized access.',
|
|
486
|
+
ErrorResponseException)
|
|
487
|
+
.local_error('403',
|
|
488
|
+
'Forbidden access.',
|
|
489
|
+
ErrorResponseException)
|
|
490
|
+
.local_error('500',
|
|
491
|
+
'Unexpected error',
|
|
492
|
+
ErrorResponseException))
|
|
493
|
+
.execute
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
# <span class="since-beta-tag">Version: 9.0.0.cl or later</span>
|
|
497
|
+
# Imports [TML](https://docs.thoughtspot.com/cloud/latest/tml) files into
|
|
498
|
+
# ThoughtSpot.
|
|
499
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can
|
|
500
|
+
# administer ThoughtsSpot**) privilege.
|
|
501
|
+
# If [Role-Based Access Control
|
|
502
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
503
|
+
# instance, the following Data control privileges may be required:
|
|
504
|
+
# - `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**)
|
|
505
|
+
# - `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**)
|
|
506
|
+
# #### Usage guidelines
|
|
507
|
+
# * Import all related objects in a single TML Import API call. For
|
|
508
|
+
# example, Tables that use the same Connection object and Worksheets
|
|
509
|
+
# connected to these Tables.
|
|
510
|
+
# * Include the `fqn` property to distinguish objects that have the same
|
|
511
|
+
# name.
|
|
512
|
+
# For example, if you have multiple Connections or Worksheets with the
|
|
513
|
+
# same name on ThoughtSpot and the Connection or Worksheet referenced in
|
|
514
|
+
# your TML file does not have a unique name to distinguish, it may result in
|
|
515
|
+
# invalid object references.
|
|
516
|
+
# Adding `fqn` helps ThoughtSpot differentiate a Table from another with
|
|
517
|
+
# the same name.
|
|
518
|
+
# We recommend [exporting TML with
|
|
519
|
+
# FQNs](#/http/api-endpoints/metadata/export-metadata-tml) and using these
|
|
520
|
+
# during the import operation.
|
|
521
|
+
# * You can upload multiple TML files at a time.
|
|
522
|
+
# If you import a Worksheet along with Liveboards, Answers, and other
|
|
523
|
+
# dependent objects in a single API call, the imported objects will be
|
|
524
|
+
# immediately available for use.
|
|
525
|
+
# When you import only a Worksheet object, it may take some time for the
|
|
526
|
+
# Worksheet to become available in the ThoughtSpot system. Please wait for a
|
|
527
|
+
# few minutes, and then proceed to create an Answer and Liveboard from the
|
|
528
|
+
# newly imported Worksheet.
|
|
529
|
+
# For more information, see [TML
|
|
530
|
+
# Documentation](https://developers.thoughtspot.com/docs/tml#_import_a_tml).
|
|
531
|
+
# #### Endpoint URL
|
|
532
|
+
# @param [ImportMetadataTmlRequest] body Required parameter: TODO: type
|
|
533
|
+
# description here
|
|
534
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
535
|
+
def import_metadata_tml(body)
|
|
536
|
+
@api_call
|
|
537
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
538
|
+
'/api/rest/2.0/metadata/tml/import',
|
|
539
|
+
Server::DEFAULT)
|
|
540
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
541
|
+
.body_param(new_parameter(body)
|
|
542
|
+
.is_required(true))
|
|
543
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
544
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
545
|
+
.auth(Single.new('bearerAuth')))
|
|
546
|
+
.response(new_response_handler
|
|
547
|
+
.deserializer(APIHelper.method(:json_deserialize))
|
|
548
|
+
.is_api_response(true)
|
|
549
|
+
.is_response_array(true)
|
|
550
|
+
.local_error('400',
|
|
551
|
+
'Invalid request.',
|
|
552
|
+
ErrorResponseException)
|
|
553
|
+
.local_error('401',
|
|
554
|
+
'Unauthorized access.',
|
|
555
|
+
ErrorResponseException)
|
|
556
|
+
.local_error('403',
|
|
557
|
+
'Forbidden access.',
|
|
558
|
+
ErrorResponseException)
|
|
559
|
+
.local_error('500',
|
|
560
|
+
'Unexpected error',
|
|
561
|
+
ErrorResponseException))
|
|
562
|
+
.execute
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
# <span class="since-beta-tag">Version: 10.4.0.cl or later</span>
|
|
566
|
+
# Schedules a task to import
|
|
567
|
+
# [TML](https://docs.thoughtspot.com/cloud/latest/tml) files into
|
|
568
|
+
# ThoughtSpot. You can use this API endpoint to process TML objects
|
|
569
|
+
# asynchronously when importing TMLs of large and complex metadata objects
|
|
570
|
+
# into ThoughtSpot. Unlike the synchronous import TML operation, the API
|
|
571
|
+
# processes TML data in the background and returns a task ID, which can be
|
|
572
|
+
# used to check the status of the import task via
|
|
573
|
+
# `/api/rest/2.0/metadata/tml/async/status` API endpoint.
|
|
574
|
+
# Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can
|
|
575
|
+
# administer ThoughtsSpot**) privilege, and edit access to the TML objects.
|
|
576
|
+
# If [Role-Based Access Control
|
|
577
|
+
# (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
|
|
578
|
+
# instance, the following Data control privileges may be required:
|
|
579
|
+
# - `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**)
|
|
580
|
+
# - `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**)
|
|
581
|
+
# #### Usage guidelines
|
|
582
|
+
# See [Async TML API
|
|
583
|
+
# Documentation](https://developers.thoughtspot.com/docs/tml#_import_tml_obj
|
|
584
|
+
# ects_asynchronously) for usage guidelines.
|
|
585
|
+
# #### Endpoint URL
|
|
586
|
+
# @param [ImportMetadataTmlAsyncRequest] body Required parameter: TODO: type
|
|
587
|
+
# description here
|
|
588
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
589
|
+
def import_metadata_tml_async(body)
|
|
590
|
+
@api_call
|
|
591
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
592
|
+
'/api/rest/2.0/metadata/tml/async/import',
|
|
593
|
+
Server::DEFAULT)
|
|
594
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
595
|
+
.body_param(new_parameter(body)
|
|
596
|
+
.is_required(true))
|
|
597
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
598
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
599
|
+
.auth(Single.new('bearerAuth')))
|
|
600
|
+
.response(new_response_handler
|
|
601
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
602
|
+
.deserialize_into(ImportEPackAsyncTaskStatus.method(:from_hash))
|
|
603
|
+
.is_api_response(true)
|
|
604
|
+
.local_error('400',
|
|
605
|
+
'Invalid request.',
|
|
606
|
+
ErrorResponseException)
|
|
607
|
+
.local_error('401',
|
|
608
|
+
'Unauthorized access.',
|
|
609
|
+
ErrorResponseException)
|
|
610
|
+
.local_error('403',
|
|
611
|
+
'Forbidden access.',
|
|
612
|
+
ErrorResponseException)
|
|
613
|
+
.local_error('500',
|
|
614
|
+
'Unexpected error',
|
|
615
|
+
ErrorResponseException))
|
|
616
|
+
.execute
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# Parameterize fields in metadata objects. <br/> <span
|
|
620
|
+
# class="since-beta-tag">Beta</span> <span class="since-beta-tag">Version:
|
|
621
|
+
# 10.9.0.cl or later</span>
|
|
622
|
+
# Allows parameterizing fields in metadata objects in ThoughtSpot.
|
|
623
|
+
# Requires appropriate permissions to modify the metadata object.
|
|
624
|
+
# The API endpoint allows parameterizing the following types of metadata
|
|
625
|
+
# objects:
|
|
626
|
+
# * Logical Tables
|
|
627
|
+
# * Connections
|
|
628
|
+
# * Connection Configs
|
|
629
|
+
# For a Logical Table the field type must be `ATTRIBUTE` and field name can
|
|
630
|
+
# be one of:
|
|
631
|
+
# * databaseName
|
|
632
|
+
# * schemaName
|
|
633
|
+
# * tableName
|
|
634
|
+
# For a Connection or Connection Config, the field type is always
|
|
635
|
+
# `CONNECTION_PROPERTY`. In this case, field_name specifies the exact
|
|
636
|
+
# property of the Connection or Connection Config that needs to be
|
|
637
|
+
# parameterized.
|
|
638
|
+
# For Connection Config, the only supported field name is:
|
|
639
|
+
# * impersonate_user
|
|
640
|
+
# #### Endpoint URL
|
|
641
|
+
# @param [ParameterizeMetadataRequest] body Required parameter: TODO: type
|
|
642
|
+
# description here
|
|
643
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
644
|
+
def parameterize_metadata(body)
|
|
645
|
+
@api_call
|
|
646
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
647
|
+
'/api/rest/2.0/metadata/parameterize',
|
|
648
|
+
Server::DEFAULT)
|
|
649
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
650
|
+
.body_param(new_parameter(body)
|
|
651
|
+
.is_required(true))
|
|
652
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
653
|
+
.auth(Single.new('bearerAuth')))
|
|
654
|
+
.response(new_response_handler
|
|
655
|
+
.is_response_void(true)
|
|
656
|
+
.is_api_response(true)
|
|
657
|
+
.local_error('400',
|
|
658
|
+
'Invalid request.',
|
|
659
|
+
ErrorResponseException)
|
|
660
|
+
.local_error('401',
|
|
661
|
+
'Unauthorized access.',
|
|
662
|
+
ErrorResponseException)
|
|
663
|
+
.local_error('403',
|
|
664
|
+
'Forbidden access.',
|
|
665
|
+
ErrorResponseException)
|
|
666
|
+
.local_error('500',
|
|
667
|
+
'Unexpected error',
|
|
668
|
+
ErrorResponseException))
|
|
669
|
+
.execute
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
# <span class="since-beta-tag">Version: 9.0.0.cl or later</span>
|
|
673
|
+
# Gets a list of metadata objects available on the ThoughtSpot system.
|
|
674
|
+
# This API endpoint is available to all users who have view access to the
|
|
675
|
+
# object. Users with `ADMINISTRATION` (**Can administer ThoughtSpot**)
|
|
676
|
+
# privileges can view data for all metadata objects, including users and
|
|
677
|
+
# groups.
|
|
678
|
+
# #### Usage guidelines
|
|
679
|
+
# - To get all metadata objects, send the API request without any
|
|
680
|
+
# attributes.
|
|
681
|
+
# - To get metadata objects of a specific type, set the `type` attribute.
|
|
682
|
+
# For example, to fetch a Worksheet, set the type as `LOGICAL_TABLE`.
|
|
683
|
+
# - To filter metadata objects within type `LOGICAL_TABLE`, set the
|
|
684
|
+
# `subtypes` attribute. For example, to fetch a Worksheet, set the type as
|
|
685
|
+
# `LOGICAL_TABLE` & subtypes as `[WORKSHEET]`.
|
|
686
|
+
# - To get a specific metadata object, specify the GUID.
|
|
687
|
+
# - To customize your search and filter the API response, you can use
|
|
688
|
+
# several parameters.
|
|
689
|
+
# You can search for objects created or modified by specific users, by
|
|
690
|
+
# tags applied to the objects, or by using the include parameters like
|
|
691
|
+
# `include_auto_created_objects`, `include_dependent_objects`,
|
|
692
|
+
# `include_headers`, `include_incomplete_objects`, and so on.
|
|
693
|
+
# You can also define sorting options to sort the data retrieved in the
|
|
694
|
+
# API response.
|
|
695
|
+
# - To get discoverable objects when linientmodel is enabled you can use
|
|
696
|
+
# `include_discoverable_objects` as true else false. Default value is true.
|
|
697
|
+
# - For liveboard metadata type, to get the newer format, set the
|
|
698
|
+
# `liveboard_response_format` as V2. Default value is V1.
|
|
699
|
+
# - To retrieve only objects that are published, set the
|
|
700
|
+
# `include_only_published_objects` as true. Default value is false.
|
|
701
|
+
# **NOTE**: The following parameters support pagination of metadata records:
|
|
702
|
+
# - `tag_identifiers`
|
|
703
|
+
# - `type`
|
|
704
|
+
# - `subtypes`
|
|
705
|
+
# - `created_by_user_identifiers`
|
|
706
|
+
# - `modified_by_user_identifiers`
|
|
707
|
+
# - `owned_by_user_identifiers`
|
|
708
|
+
# - `exclude_objects`
|
|
709
|
+
# - `include_auto_created_objects`
|
|
710
|
+
# - `favorite_object_options`
|
|
711
|
+
# - `include_only_published_objects`
|
|
712
|
+
# If you are using other parameters to search metadata, set `record_size` to
|
|
713
|
+
# `-1` and `record_offset` to `0`.
|
|
714
|
+
# #### Endpoint URL
|
|
715
|
+
# @param [SearchMetadataRequest] body Required parameter: TODO: type
|
|
716
|
+
# description here
|
|
717
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
718
|
+
def search_metadata(body)
|
|
719
|
+
@api_call
|
|
720
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
721
|
+
'/api/rest/2.0/metadata/search',
|
|
722
|
+
Server::DEFAULT)
|
|
723
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
724
|
+
.body_param(new_parameter(body)
|
|
725
|
+
.is_required(true))
|
|
726
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
727
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
728
|
+
.auth(Single.new('bearerAuth')))
|
|
729
|
+
.response(new_response_handler
|
|
730
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
731
|
+
.deserialize_into(MetadataSearchResponse.method(:from_hash))
|
|
732
|
+
.is_api_response(true)
|
|
733
|
+
.is_response_array(true)
|
|
734
|
+
.local_error('400',
|
|
735
|
+
'Invalid request.',
|
|
736
|
+
ErrorResponseException)
|
|
737
|
+
.local_error('401',
|
|
738
|
+
'Unauthorized access.',
|
|
739
|
+
ErrorResponseException)
|
|
740
|
+
.local_error('403',
|
|
741
|
+
'Forbidden access.',
|
|
742
|
+
ErrorResponseException)
|
|
743
|
+
.local_error('500',
|
|
744
|
+
'Unexpected error',
|
|
745
|
+
ErrorResponseException))
|
|
746
|
+
.execute
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
# Remove parameterization from fields in metadata objects. <br/> <span
|
|
750
|
+
# class="since-beta-tag">Beta</span> <span class="since-beta-tag">Version:
|
|
751
|
+
# 10.9.0.cl or later</span>
|
|
752
|
+
# Allows removing parameterization from fields in metadata objects in
|
|
753
|
+
# ThoughtSpot.
|
|
754
|
+
# Requires appropriate permissions to modify the metadata object.
|
|
755
|
+
# The API endpoint allows unparameterizing the following types of metadata
|
|
756
|
+
# objects:
|
|
757
|
+
# * Logical Tables
|
|
758
|
+
# * Connections
|
|
759
|
+
# * Connection Configs
|
|
760
|
+
# For a Logical Table the field type must be `ATTRIBUTE` and field name can
|
|
761
|
+
# be one of:
|
|
762
|
+
# * databaseName
|
|
763
|
+
# * schemaName
|
|
764
|
+
# * tableName
|
|
765
|
+
# For a Connection or Connection Config, the field type is always
|
|
766
|
+
# `CONNECTION_PROPERTY`. In this case, field_name specifies the exact
|
|
767
|
+
# property of the Connection or Connection Config that needs to be
|
|
768
|
+
# unparameterized.
|
|
769
|
+
# For Connection Config, the only supported field name is:
|
|
770
|
+
# * impersonate_user
|
|
771
|
+
# #### Endpoint URL
|
|
772
|
+
# @param [UnparameterizeMetadataRequest] body Required parameter: TODO: type
|
|
773
|
+
# description here
|
|
774
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
775
|
+
def unparameterize_metadata(body)
|
|
776
|
+
@api_call
|
|
777
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
778
|
+
'/api/rest/2.0/metadata/unparameterize',
|
|
779
|
+
Server::DEFAULT)
|
|
780
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
781
|
+
.body_param(new_parameter(body)
|
|
782
|
+
.is_required(true))
|
|
783
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
784
|
+
.auth(Single.new('bearerAuth')))
|
|
785
|
+
.response(new_response_handler
|
|
786
|
+
.is_response_void(true)
|
|
787
|
+
.is_api_response(true)
|
|
788
|
+
.local_error('400',
|
|
789
|
+
'Invalid request.',
|
|
790
|
+
ErrorResponseException)
|
|
791
|
+
.local_error('401',
|
|
792
|
+
'Unauthorized access.',
|
|
793
|
+
ErrorResponseException)
|
|
794
|
+
.local_error('403',
|
|
795
|
+
'Forbidden access.',
|
|
796
|
+
ErrorResponseException)
|
|
797
|
+
.local_error('500',
|
|
798
|
+
'Unexpected error',
|
|
799
|
+
ErrorResponseException))
|
|
800
|
+
.execute
|
|
801
|
+
end
|
|
802
|
+
|
|
803
|
+
# Update header attributes for a given list of header objects. <br/> <span
|
|
804
|
+
# class="since-beta-tag">Beta</span> <span class="since-beta-tag">Version:
|
|
805
|
+
# 10.6.0.cl or later</span>
|
|
806
|
+
# ## Prerequisites
|
|
807
|
+
# - **Privileges Required:**
|
|
808
|
+
# - `DATAMANAGEMENT` (Can manage data) or `ADMINISTRATION` (Can administer
|
|
809
|
+
# ThoughtSpot).
|
|
810
|
+
# - **Additional Privileges (if RBAC is enabled):**
|
|
811
|
+
# - `ORG_ADMINISTRATION` (Can manage orgs).
|
|
812
|
+
# ---
|
|
813
|
+
# ## Usage Guidelines
|
|
814
|
+
# ### Parameters
|
|
815
|
+
# 1. **headers_update**
|
|
816
|
+
# - **Description:** List of header objects with their attributes to be
|
|
817
|
+
# updated. Each object contains a list of attributes to be updated in the
|
|
818
|
+
# header.
|
|
819
|
+
# - **Usage:**
|
|
820
|
+
# - You must provide either `identifier` or `obj_identifier`, but not
|
|
821
|
+
# both. Both fields cannot be empty.
|
|
822
|
+
# - When `org_identifier` is set to `-1`, only the `identifier` value
|
|
823
|
+
# is accepted; `obj_identifier` is not allowed.
|
|
824
|
+
# 2. **org_identifier**
|
|
825
|
+
# - **Description:** GUID (Globally Unique Identifier) or name of the
|
|
826
|
+
# organization.
|
|
827
|
+
# - **Usage:**
|
|
828
|
+
# - Leaving this field empty assumes that the changes should be applied
|
|
829
|
+
# to the current organization
|
|
830
|
+
# - Provide `org_guid` or `org_name` to uniquely identify the
|
|
831
|
+
# organization where changes need to be applied. .
|
|
832
|
+
# - Provide `-1` if changes have to be applied across all the org.
|
|
833
|
+
# ---
|
|
834
|
+
# ## Note
|
|
835
|
+
# Currently, this API is enabled only for updating the `obj_identifier`
|
|
836
|
+
# attribute. Only `text` will be allowed in attribute's value.
|
|
837
|
+
# ## Best Practices
|
|
838
|
+
# 1. **Backup Before Conversion:**
|
|
839
|
+
# Always export metadata as a backup before initiating the update process
|
|
840
|
+
# ---
|
|
841
|
+
# ## Examples
|
|
842
|
+
# ### Only `identifier` is given
|
|
843
|
+
# ```json
|
|
844
|
+
# {
|
|
845
|
+
# "headers_update":
|
|
846
|
+
# [
|
|
847
|
+
# {
|
|
848
|
+
# "identifier": "guid_1",
|
|
849
|
+
# "obj_identifier": "",
|
|
850
|
+
# "type": "LOGICAL_COLUMN",
|
|
851
|
+
# "attributes":
|
|
852
|
+
# [
|
|
853
|
+
# {
|
|
854
|
+
# "name": "obj_id",
|
|
855
|
+
# "value": "custom_object_id"
|
|
856
|
+
# }
|
|
857
|
+
# ]
|
|
858
|
+
# }
|
|
859
|
+
# ],
|
|
860
|
+
# "org_identifier": "orgGuid"
|
|
861
|
+
# }
|
|
862
|
+
# ```
|
|
863
|
+
# ### Only `obj_identifier` is given
|
|
864
|
+
# ```json
|
|
865
|
+
# {
|
|
866
|
+
# "headers_update":
|
|
867
|
+
# [
|
|
868
|
+
# {
|
|
869
|
+
# "obj_identifier": "custom_object_id",
|
|
870
|
+
# "type": "ANSWER",
|
|
871
|
+
# "attributes":
|
|
872
|
+
# [
|
|
873
|
+
# {
|
|
874
|
+
# "name": "obj_id",
|
|
875
|
+
# "value": "custom_object_id"
|
|
876
|
+
# }
|
|
877
|
+
# ]
|
|
878
|
+
# }
|
|
879
|
+
# ],
|
|
880
|
+
# "org_identifier": "orgName"
|
|
881
|
+
# }
|
|
882
|
+
# ```
|
|
883
|
+
# ### Executing update for all org `-1`
|
|
884
|
+
# ```json
|
|
885
|
+
# {
|
|
886
|
+
# "headers_update":
|
|
887
|
+
# [
|
|
888
|
+
# {
|
|
889
|
+
# "identifier": "guid_1",
|
|
890
|
+
# "type": "ANSWER",
|
|
891
|
+
# "attributes":
|
|
892
|
+
# [
|
|
893
|
+
# {
|
|
894
|
+
# "name": "obj_id",
|
|
895
|
+
# "value": "custom_object_id"
|
|
896
|
+
# }
|
|
897
|
+
# ]
|
|
898
|
+
# }
|
|
899
|
+
# ],
|
|
900
|
+
# "org_identifier": -1
|
|
901
|
+
# }
|
|
902
|
+
# ```
|
|
903
|
+
# ### Optional `type` is not provided
|
|
904
|
+
# ```json
|
|
905
|
+
# {
|
|
906
|
+
# "headers_update":
|
|
907
|
+
# [
|
|
908
|
+
# {
|
|
909
|
+
# "identifier": "guid_1",
|
|
910
|
+
# "attributes":
|
|
911
|
+
# [
|
|
912
|
+
# {
|
|
913
|
+
# "name": "obj_id",
|
|
914
|
+
# "value": "custom_object_id"
|
|
915
|
+
# }
|
|
916
|
+
# ]
|
|
917
|
+
# }
|
|
918
|
+
# ],
|
|
919
|
+
# "org_identifier": -1
|
|
920
|
+
# }
|
|
921
|
+
# ```
|
|
922
|
+
# #### Endpoint URL
|
|
923
|
+
# @param [UpdateMetadataHeaderRequest] body Required parameter: TODO: type
|
|
924
|
+
# description here
|
|
925
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
926
|
+
def update_metadata_header(body)
|
|
927
|
+
@api_call
|
|
928
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
929
|
+
'/api/rest/2.0/metadata/headers/update',
|
|
930
|
+
Server::DEFAULT)
|
|
931
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
932
|
+
.body_param(new_parameter(body)
|
|
933
|
+
.is_required(true))
|
|
934
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
935
|
+
.auth(Single.new('bearerAuth')))
|
|
936
|
+
.response(new_response_handler
|
|
937
|
+
.is_response_void(true)
|
|
938
|
+
.is_api_response(true)
|
|
939
|
+
.local_error('400',
|
|
940
|
+
'Invalid request.',
|
|
941
|
+
ErrorResponseException)
|
|
942
|
+
.local_error('401',
|
|
943
|
+
'Unauthorized access.',
|
|
944
|
+
ErrorResponseException)
|
|
945
|
+
.local_error('403',
|
|
946
|
+
'Forbidden access.',
|
|
947
|
+
ErrorResponseException)
|
|
948
|
+
.local_error('500',
|
|
949
|
+
'Unexpected error',
|
|
950
|
+
ErrorResponseException))
|
|
951
|
+
.execute
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
# Update object IDs for given metadata objects. <br/> <span
|
|
955
|
+
# class="since-beta-tag">Beta</span> <span class="since-beta-tag">Version:
|
|
956
|
+
# 10.8.0.cl or later</span>
|
|
957
|
+
# ## Prerequisites
|
|
958
|
+
# - **Privileges Required:**
|
|
959
|
+
# - `DATAMANAGEMENT` (Can manage data) or `ADMINISTRATION` (Can administer
|
|
960
|
+
# ThoughtSpot).
|
|
961
|
+
# - **Additional Privileges (if RBAC is enabled):**
|
|
962
|
+
# - `ORG_ADMINISTRATION` (Can manage orgs).
|
|
963
|
+
# ---
|
|
964
|
+
# ## Usage Guidelines
|
|
965
|
+
# ### Parameters
|
|
966
|
+
# 1. **metadata**
|
|
967
|
+
# - **Description:** List of metadata objects to update their object IDs.
|
|
968
|
+
# - **Usage:**
|
|
969
|
+
# - Use either `current_obj_id` alone OR use `metadata_identifier`
|
|
970
|
+
# with `type` (when needed).
|
|
971
|
+
# - When using `metadata_identifier`, the `type` field is required if
|
|
972
|
+
# using a name instead of a GUID.
|
|
973
|
+
# - The `new_obj_id` field is always required.
|
|
974
|
+
# ---
|
|
975
|
+
# ## Note
|
|
976
|
+
# This API is specifically designed for updating object IDs of metadata
|
|
977
|
+
# objects. It internally uses the header update mechanism to perform the
|
|
978
|
+
# changes.
|
|
979
|
+
# ## Best Practices
|
|
980
|
+
# 1. **Backup Before Update:**
|
|
981
|
+
# Always export metadata as a backup before initiating the update
|
|
982
|
+
# process.
|
|
983
|
+
# 2. **Validation:**
|
|
984
|
+
# - When using `current_obj_id`, ensure it matches the existing object ID
|
|
985
|
+
# exactly.
|
|
986
|
+
# - When using `metadata_identifier` with a name, ensure the `type` is
|
|
987
|
+
# specified correctly.
|
|
988
|
+
# - Verify that the `new_obj_id` follows your naming conventions and is
|
|
989
|
+
# unique within your system.
|
|
990
|
+
# ---
|
|
991
|
+
# ## Examples
|
|
992
|
+
# ### Using current_obj_id
|
|
993
|
+
# ```json
|
|
994
|
+
# {
|
|
995
|
+
# "metadata": [
|
|
996
|
+
# {
|
|
997
|
+
# "current_obj_id": "existing_object_id",
|
|
998
|
+
# "new_obj_id": "new_object_id"
|
|
999
|
+
# }
|
|
1000
|
+
# ]
|
|
1001
|
+
# }
|
|
1002
|
+
# ```
|
|
1003
|
+
# ### Using metadata_identifier with GUID
|
|
1004
|
+
# ```json
|
|
1005
|
+
# {
|
|
1006
|
+
# "metadata": [
|
|
1007
|
+
# {
|
|
1008
|
+
# "metadata_identifier": "01234567-89ab-cdef-0123-456789abcdef",
|
|
1009
|
+
# "new_obj_id": "new_object_id"
|
|
1010
|
+
# }
|
|
1011
|
+
# ]
|
|
1012
|
+
# }
|
|
1013
|
+
# ```
|
|
1014
|
+
# ### Using metadata_identifier with name and type
|
|
1015
|
+
# ```json
|
|
1016
|
+
# {
|
|
1017
|
+
# "metadata": [
|
|
1018
|
+
# {
|
|
1019
|
+
# "metadata_identifier": "My Answer",
|
|
1020
|
+
# "type": "ANSWER",
|
|
1021
|
+
# "new_obj_id": "new_object_id"
|
|
1022
|
+
# }
|
|
1023
|
+
# ]
|
|
1024
|
+
# }
|
|
1025
|
+
# ```
|
|
1026
|
+
# ### Multiple objects update
|
|
1027
|
+
# ```json
|
|
1028
|
+
# {
|
|
1029
|
+
# "metadata": [
|
|
1030
|
+
# {
|
|
1031
|
+
# "current_obj_id": "existing_object_id_1",
|
|
1032
|
+
# "new_obj_id": "new_object_id_1"
|
|
1033
|
+
# },
|
|
1034
|
+
# {
|
|
1035
|
+
# "metadata_identifier": "My Worksheet",
|
|
1036
|
+
# "type": "LOGICAL_TABLE",
|
|
1037
|
+
# "new_obj_id": "new_object_id_2"
|
|
1038
|
+
# }
|
|
1039
|
+
# ]
|
|
1040
|
+
# }
|
|
1041
|
+
# ```
|
|
1042
|
+
# #### Endpoint URL
|
|
1043
|
+
# @param [UpdateMetadataObjIdRequest] body Required parameter: TODO: type
|
|
1044
|
+
# description here
|
|
1045
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
1046
|
+
def update_metadata_obj_id(body)
|
|
1047
|
+
@api_call
|
|
1048
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
1049
|
+
'/api/rest/2.0/metadata/update-obj-id',
|
|
1050
|
+
Server::DEFAULT)
|
|
1051
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
1052
|
+
.body_param(new_parameter(body)
|
|
1053
|
+
.is_required(true))
|
|
1054
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
1055
|
+
.auth(Single.new('bearerAuth')))
|
|
1056
|
+
.response(new_response_handler
|
|
1057
|
+
.is_response_void(true)
|
|
1058
|
+
.is_api_response(true)
|
|
1059
|
+
.local_error('400',
|
|
1060
|
+
'Invalid request.',
|
|
1061
|
+
ErrorResponseException)
|
|
1062
|
+
.local_error('401',
|
|
1063
|
+
'Unauthorized access.',
|
|
1064
|
+
ErrorResponseException)
|
|
1065
|
+
.local_error('403',
|
|
1066
|
+
'Forbidden access.',
|
|
1067
|
+
ErrorResponseException)
|
|
1068
|
+
.local_error('500',
|
|
1069
|
+
'Unexpected error',
|
|
1070
|
+
ErrorResponseException))
|
|
1071
|
+
.execute
|
|
1072
|
+
end
|
|
1073
|
+
end
|
|
1074
|
+
end
|