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.
Files changed (612) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +181 -0
  4. data/bin/console +15 -0
  5. data/lib/thought_spot_public_rest_api/api_helper.rb +10 -0
  6. data/lib/thought_spot_public_rest_api/client.rb +218 -0
  7. data/lib/thought_spot_public_rest_api/configuration.rb +177 -0
  8. data/lib/thought_spot_public_rest_api/controllers/ai_controller.rb +550 -0
  9. data/lib/thought_spot_public_rest_api/controllers/authentication_controller.rb +498 -0
  10. data/lib/thought_spot_public_rest_api/controllers/base_controller.rb +65 -0
  11. data/lib/thought_spot_public_rest_api/controllers/collections_controller.rb +214 -0
  12. data/lib/thought_spot_public_rest_api/controllers/connection_configurations_controller.rb +227 -0
  13. data/lib/thought_spot_public_rest_api/controllers/connections_controller.rb +845 -0
  14. data/lib/thought_spot_public_rest_api/controllers/custom_action_controller.rb +205 -0
  15. data/lib/thought_spot_public_rest_api/controllers/custom_calendars_controller.rb +373 -0
  16. data/lib/thought_spot_public_rest_api/controllers/data_controller.rb +161 -0
  17. data/lib/thought_spot_public_rest_api/controllers/dbt_controller.rb +381 -0
  18. data/lib/thought_spot_public_rest_api/controllers/email_customization_controller.rb +354 -0
  19. data/lib/thought_spot_public_rest_api/controllers/groups_controller.rb +257 -0
  20. data/lib/thought_spot_public_rest_api/controllers/jobs_controller.rb +62 -0
  21. data/lib/thought_spot_public_rest_api/controllers/log_controller.rb +67 -0
  22. data/lib/thought_spot_public_rest_api/controllers/metadata_controller.rb +1074 -0
  23. data/lib/thought_spot_public_rest_api/controllers/orgs_controller.rb +183 -0
  24. data/lib/thought_spot_public_rest_api/controllers/reports_controller.rb +126 -0
  25. data/lib/thought_spot_public_rest_api/controllers/roles_controller.rb +176 -0
  26. data/lib/thought_spot_public_rest_api/controllers/schedules_controller.rb +213 -0
  27. data/lib/thought_spot_public_rest_api/controllers/security_controller.rb +749 -0
  28. data/lib/thought_spot_public_rest_api/controllers/system_controller.rb +401 -0
  29. data/lib/thought_spot_public_rest_api/controllers/tags_controller.rb +246 -0
  30. data/lib/thought_spot_public_rest_api/controllers/users_controller.rb +467 -0
  31. data/lib/thought_spot_public_rest_api/controllers/variable_controller.rb +338 -0
  32. data/lib/thought_spot_public_rest_api/controllers/version_control_controller.rb +418 -0
  33. data/lib/thought_spot_public_rest_api/controllers/webhooks_controller.rb +238 -0
  34. data/lib/thought_spot_public_rest_api/exceptions/api_exception.rb +21 -0
  35. data/lib/thought_spot_public_rest_api/exceptions/error_response_exception.rb +46 -0
  36. data/lib/thought_spot_public_rest_api/http/api_response.rb +19 -0
  37. data/lib/thought_spot_public_rest_api/http/auth/oauth_2.rb +53 -0
  38. data/lib/thought_spot_public_rest_api/http/http_call_back.rb +10 -0
  39. data/lib/thought_spot_public_rest_api/http/http_method_enum.rb +10 -0
  40. data/lib/thought_spot_public_rest_api/http/http_request.rb +10 -0
  41. data/lib/thought_spot_public_rest_api/http/http_response.rb +10 -0
  42. data/lib/thought_spot_public_rest_api/http/proxy_settings.rb +22 -0
  43. data/lib/thought_spot_public_rest_api/logging/configuration/api_logging_configuration.rb +186 -0
  44. data/lib/thought_spot_public_rest_api/logging/sdk_logger.rb +17 -0
  45. data/lib/thought_spot_public_rest_api/models/access_token.rb +125 -0
  46. data/lib/thought_spot_public_rest_api/models/account_status.rb +52 -0
  47. data/lib/thought_spot_public_rest_api/models/account_status2.rb +53 -0
  48. data/lib/thought_spot_public_rest_api/models/account_status3.rb +52 -0
  49. data/lib/thought_spot_public_rest_api/models/account_type.rb +48 -0
  50. data/lib/thought_spot_public_rest_api/models/account_type2.rb +48 -0
  51. data/lib/thought_spot_public_rest_api/models/account_type3.rb +48 -0
  52. data/lib/thought_spot_public_rest_api/models/action_config.rb +90 -0
  53. data/lib/thought_spot_public_rest_api/models/action_config_input.rb +90 -0
  54. data/lib/thought_spot_public_rest_api/models/action_config_input_create.rb +91 -0
  55. data/lib/thought_spot_public_rest_api/models/action_details.rb +85 -0
  56. data/lib/thought_spot_public_rest_api/models/action_details_input.rb +86 -0
  57. data/lib/thought_spot_public_rest_api/models/action_details_input_create.rb +87 -0
  58. data/lib/thought_spot_public_rest_api/models/activate_user_request.rb +104 -0
  59. data/lib/thought_spot_public_rest_api/models/agent_conversation.rb +75 -0
  60. data/lib/thought_spot_public_rest_api/models/ai_context.rb +91 -0
  61. data/lib/thought_spot_public_rest_api/models/answer_content.rb +135 -0
  62. data/lib/thought_spot_public_rest_api/models/answer_context_input.rb +85 -0
  63. data/lib/thought_spot_public_rest_api/models/answer_data_response.rb +101 -0
  64. data/lib/thought_spot_public_rest_api/models/api_key.rb +89 -0
  65. data/lib/thought_spot_public_rest_api/models/api_key_input.rb +89 -0
  66. data/lib/thought_spot_public_rest_api/models/assign_change_author_request.rb +107 -0
  67. data/lib/thought_spot_public_rest_api/models/assign_tag_request.rb +92 -0
  68. data/lib/thought_spot_public_rest_api/models/associate_metadata_input.rb +102 -0
  69. data/lib/thought_spot_public_rest_api/models/associate_metadata_input_create.rb +101 -0
  70. data/lib/thought_spot_public_rest_api/models/authentication.rb +110 -0
  71. data/lib/thought_spot_public_rest_api/models/authentication_input.rb +110 -0
  72. data/lib/thought_spot_public_rest_api/models/authentication_type.rb +48 -0
  73. data/lib/thought_spot_public_rest_api/models/authentication_type1.rb +64 -0
  74. data/lib/thought_spot_public_rest_api/models/authentication_type2.rb +74 -0
  75. data/lib/thought_spot_public_rest_api/models/author.rb +82 -0
  76. data/lib/thought_spot_public_rest_api/models/author_metadata_type_input.rb +89 -0
  77. data/lib/thought_spot_public_rest_api/models/author_type.rb +88 -0
  78. data/lib/thought_spot_public_rest_api/models/aws_assume_role_setup.rb +120 -0
  79. data/lib/thought_spot_public_rest_api/models/aws_s3_config.rb +115 -0
  80. data/lib/thought_spot_public_rest_api/models/aws_s3_config_input.rb +120 -0
  81. data/lib/thought_spot_public_rest_api/models/base_model.rb +110 -0
  82. data/lib/thought_spot_public_rest_api/models/basic_auth.rb +89 -0
  83. data/lib/thought_spot_public_rest_api/models/basic_auth_input.rb +89 -0
  84. data/lib/thought_spot_public_rest_api/models/calendar_response.rb +153 -0
  85. data/lib/thought_spot_public_rest_api/models/calendar_type.rb +44 -0
  86. data/lib/thought_spot_public_rest_api/models/callback.rb +79 -0
  87. data/lib/thought_spot_public_rest_api/models/callback_input.rb +78 -0
  88. data/lib/thought_spot_public_rest_api/models/callback_input_mandatory.rb +78 -0
  89. data/lib/thought_spot_public_rest_api/models/change_user_password_request.rb +94 -0
  90. data/lib/thought_spot_public_rest_api/models/channel.rb +36 -0
  91. data/lib/thought_spot_public_rest_api/models/channel_history_event_input.rb +84 -0
  92. data/lib/thought_spot_public_rest_api/models/channel_history_job.rb +116 -0
  93. data/lib/thought_spot_public_rest_api/models/channel_status.rb +44 -0
  94. data/lib/thought_spot_public_rest_api/models/channel_validation_aws_s3_info.rb +99 -0
  95. data/lib/thought_spot_public_rest_api/models/channel_validation_detail.rb +119 -0
  96. data/lib/thought_spot_public_rest_api/models/cluster_non_embed_access.rb +102 -0
  97. data/lib/thought_spot_public_rest_api/models/cluster_non_embed_access_input.rb +100 -0
  98. data/lib/thought_spot_public_rest_api/models/cluster_preference.rb +26 -0
  99. data/lib/thought_spot_public_rest_api/models/cluster_type.rb +37 -0
  100. data/lib/thought_spot_public_rest_api/models/collection.rb +169 -0
  101. data/lib/thought_spot_public_rest_api/models/collection_delete_response.rb +109 -0
  102. data/lib/thought_spot_public_rest_api/models/collection_delete_type_identifiers.rb +97 -0
  103. data/lib/thought_spot_public_rest_api/models/collection_entity_identifier.rb +88 -0
  104. data/lib/thought_spot_public_rest_api/models/collection_metadata_input.rb +82 -0
  105. data/lib/thought_spot_public_rest_api/models/collection_metadata_item.rb +97 -0
  106. data/lib/thought_spot_public_rest_api/models/collection_search_response.rb +129 -0
  107. data/lib/thought_spot_public_rest_api/models/column.rb +130 -0
  108. data/lib/thought_spot_public_rest_api/models/column_security_rule.rb +108 -0
  109. data/lib/thought_spot_public_rest_api/models/column_security_rule_column.rb +82 -0
  110. data/lib/thought_spot_public_rest_api/models/column_security_rule_group.rb +82 -0
  111. data/lib/thought_spot_public_rest_api/models/column_security_rule_group_operation.rb +84 -0
  112. data/lib/thought_spot_public_rest_api/models/column_security_rule_response.rb +109 -0
  113. data/lib/thought_spot_public_rest_api/models/column_security_rule_source_table.rb +82 -0
  114. data/lib/thought_spot_public_rest_api/models/column_security_rule_table_input.rb +90 -0
  115. data/lib/thought_spot_public_rest_api/models/column_security_rule_update.rb +110 -0
  116. data/lib/thought_spot_public_rest_api/models/commit_branch_request.rb +118 -0
  117. data/lib/thought_spot_public_rest_api/models/commit_file_type.rb +97 -0
  118. data/lib/thought_spot_public_rest_api/models/commit_history_response.rb +118 -0
  119. data/lib/thought_spot_public_rest_api/models/commit_response.rb +150 -0
  120. data/lib/thought_spot_public_rest_api/models/commiter_type.rb +88 -0
  121. data/lib/thought_spot_public_rest_api/models/communication_channel_preferences_response.rb +107 -0
  122. data/lib/thought_spot_public_rest_api/models/communication_channel_validate_response.rb +138 -0
  123. data/lib/thought_spot_public_rest_api/models/configure_communication_channel_preferences_request.rb +104 -0
  124. data/lib/thought_spot_public_rest_api/models/configure_security_settings_request.rb +97 -0
  125. data/lib/thought_spot_public_rest_api/models/connection_configuration_response.rb +206 -0
  126. data/lib/thought_spot_public_rest_api/models/connection_configuration_search_request.rb +98 -0
  127. data/lib/thought_spot_public_rest_api/models/connection_input.rb +111 -0
  128. data/lib/thought_spot_public_rest_api/models/context_payload_v2_input.rb +111 -0
  129. data/lib/thought_spot_public_rest_api/models/conversation.rb +75 -0
  130. data/lib/thought_spot_public_rest_api/models/conversation_settings_input.rb +113 -0
  131. data/lib/thought_spot_public_rest_api/models/convert_worksheet_to_model_request.rb +111 -0
  132. data/lib/thought_spot_public_rest_api/models/copy_object_request.rb +104 -0
  133. data/lib/thought_spot_public_rest_api/models/create_agent_conversation_request.rb +85 -0
  134. data/lib/thought_spot_public_rest_api/models/create_calendar_request.rb +180 -0
  135. data/lib/thought_spot_public_rest_api/models/create_collection_request.rb +103 -0
  136. data/lib/thought_spot_public_rest_api/models/create_config_request.rb +171 -0
  137. data/lib/thought_spot_public_rest_api/models/create_connection_configuration_request.rb +187 -0
  138. data/lib/thought_spot_public_rest_api/models/create_connection_request.rb +121 -0
  139. data/lib/thought_spot_public_rest_api/models/create_connection_response.rb +105 -0
  140. data/lib/thought_spot_public_rest_api/models/create_conversation_request.rb +88 -0
  141. data/lib/thought_spot_public_rest_api/models/create_custom_action_request.rb +133 -0
  142. data/lib/thought_spot_public_rest_api/models/create_email_customization_request.rb +88 -0
  143. data/lib/thought_spot_public_rest_api/models/create_email_customization_response.rb +102 -0
  144. data/lib/thought_spot_public_rest_api/models/create_org_request.rb +84 -0
  145. data/lib/thought_spot_public_rest_api/models/create_role_request.rb +110 -0
  146. data/lib/thought_spot_public_rest_api/models/create_schedule_request.rb +178 -0
  147. data/lib/thought_spot_public_rest_api/models/create_tag_request.rb +84 -0
  148. data/lib/thought_spot_public_rest_api/models/create_user_group_request.rb +179 -0
  149. data/lib/thought_spot_public_rest_api/models/create_user_request.rb +330 -0
  150. data/lib/thought_spot_public_rest_api/models/create_variable_request.rb +106 -0
  151. data/lib/thought_spot_public_rest_api/models/create_webhook_configuration_request.rb +175 -0
  152. data/lib/thought_spot_public_rest_api/models/creation_method.rb +36 -0
  153. data/lib/thought_spot_public_rest_api/models/cron_expression.rb +118 -0
  154. data/lib/thought_spot_public_rest_api/models/cron_expression_input.rb +118 -0
  155. data/lib/thought_spot_public_rest_api/models/csp_settings.rb +150 -0
  156. data/lib/thought_spot_public_rest_api/models/csp_settings_input.rb +150 -0
  157. data/lib/thought_spot_public_rest_api/models/currency_format.rb +964 -0
  158. data/lib/thought_spot_public_rest_api/models/custom_action_metadata_type_input.rb +89 -0
  159. data/lib/thought_spot_public_rest_api/models/data_format.rb +37 -0
  160. data/lib/thought_spot_public_rest_api/models/data_source.rb +98 -0
  161. data/lib/thought_spot_public_rest_api/models/data_source_context_input.rb +72 -0
  162. data/lib/thought_spot_public_rest_api/models/data_type.rb +53 -0
  163. data/lib/thought_spot_public_rest_api/models/data_warehouse_object_input.rb +110 -0
  164. data/lib/thought_spot_public_rest_api/models/data_warehouse_object_type.rb +44 -0
  165. data/lib/thought_spot_public_rest_api/models/data_warehouse_objects.rb +83 -0
  166. data/lib/thought_spot_public_rest_api/models/data_warehouse_type.rb +160 -0
  167. data/lib/thought_spot_public_rest_api/models/data_warehouse_type1.rb +160 -0
  168. data/lib/thought_spot_public_rest_api/models/data_warehouse_type3.rb +160 -0
  169. data/lib/thought_spot_public_rest_api/models/database.rb +106 -0
  170. data/lib/thought_spot_public_rest_api/models/date_format_locale.rb +136 -0
  171. data/lib/thought_spot_public_rest_api/models/dbt_search_response.rb +151 -0
  172. data/lib/thought_spot_public_rest_api/models/deactivate_user_request.rb +83 -0
  173. data/lib/thought_spot_public_rest_api/models/default_action_config.rb +82 -0
  174. data/lib/thought_spot_public_rest_api/models/default_action_config_input.rb +82 -0
  175. data/lib/thought_spot_public_rest_api/models/default_action_config_input_create.rb +83 -0
  176. data/lib/thought_spot_public_rest_api/models/default_action_config_search_input.rb +82 -0
  177. data/lib/thought_spot_public_rest_api/models/default_metadata_type.rb +53 -0
  178. data/lib/thought_spot_public_rest_api/models/delete_collection_request.rb +103 -0
  179. data/lib/thought_spot_public_rest_api/models/delete_config_request.rb +84 -0
  180. data/lib/thought_spot_public_rest_api/models/delete_connection_configuration_request.rb +87 -0
  181. data/lib/thought_spot_public_rest_api/models/delete_connection_request.rb +75 -0
  182. data/lib/thought_spot_public_rest_api/models/delete_metadata_request.rb +96 -0
  183. data/lib/thought_spot_public_rest_api/models/delete_metadata_type_input.rb +89 -0
  184. data/lib/thought_spot_public_rest_api/models/delete_org_email_customization_request.rb +77 -0
  185. data/lib/thought_spot_public_rest_api/models/delete_variables_request.rb +74 -0
  186. data/lib/thought_spot_public_rest_api/models/delete_webhook_configurations_request.rb +75 -0
  187. data/lib/thought_spot_public_rest_api/models/dependent_object_version.rb +36 -0
  188. data/lib/thought_spot_public_rest_api/models/deploy_commit_request.rb +115 -0
  189. data/lib/thought_spot_public_rest_api/models/deploy_policy.rb +44 -0
  190. data/lib/thought_spot_public_rest_api/models/deploy_response.rb +124 -0
  191. data/lib/thought_spot_public_rest_api/models/deploy_type.rb +37 -0
  192. data/lib/thought_spot_public_rest_api/models/edoc_format.rb +40 -0
  193. data/lib/thought_spot_public_rest_api/models/edoc_format1.rb +36 -0
  194. data/lib/thought_spot_public_rest_api/models/entity_header.rb +103 -0
  195. data/lib/thought_spot_public_rest_api/models/eureka_data_source_suggestion_response.rb +87 -0
  196. data/lib/thought_spot_public_rest_api/models/eureka_decompose_query_response.rb +81 -0
  197. data/lib/thought_spot_public_rest_api/models/eureka_get_nl_instructions_response.rb +83 -0
  198. data/lib/thought_spot_public_rest_api/models/eureka_get_relevant_questions_response.rb +88 -0
  199. data/lib/thought_spot_public_rest_api/models/eureka_llm_decompose_query_response.rb +88 -0
  200. data/lib/thought_spot_public_rest_api/models/eureka_llm_suggested_query.rb +101 -0
  201. data/lib/thought_spot_public_rest_api/models/eureka_relevant_question.rb +103 -0
  202. data/lib/thought_spot_public_rest_api/models/eureka_set_nl_instructions_response.rb +73 -0
  203. data/lib/thought_spot_public_rest_api/models/event.rb +26 -0
  204. data/lib/thought_spot_public_rest_api/models/event_channel_config.rb +81 -0
  205. data/lib/thought_spot_public_rest_api/models/event_channel_config_input.rb +81 -0
  206. data/lib/thought_spot_public_rest_api/models/event_type.rb +26 -0
  207. data/lib/thought_spot_public_rest_api/models/event_type1.rb +26 -0
  208. data/lib/thought_spot_public_rest_api/models/exclude_metadata_list_item_input.rb +96 -0
  209. data/lib/thought_spot_public_rest_api/models/export_answer_report_request.rb +159 -0
  210. data/lib/thought_spot_public_rest_api/models/export_liveboard_report_request.rb +273 -0
  211. data/lib/thought_spot_public_rest_api/models/export_metadata_tml_batched_request.rb +133 -0
  212. data/lib/thought_spot_public_rest_api/models/export_metadata_tml_request.rb +196 -0
  213. data/lib/thought_spot_public_rest_api/models/export_metadata_type_input.rb +119 -0
  214. data/lib/thought_spot_public_rest_api/models/export_options.rb +168 -0
  215. data/lib/thought_spot_public_rest_api/models/export_schema_version.rb +40 -0
  216. data/lib/thought_spot_public_rest_api/models/external_table_input.rb +109 -0
  217. data/lib/thought_spot_public_rest_api/models/favorite_metadata_input.rb +91 -0
  218. data/lib/thought_spot_public_rest_api/models/favorite_metadata_item.rb +93 -0
  219. data/lib/thought_spot_public_rest_api/models/favorite_object_options_input.rb +91 -0
  220. data/lib/thought_spot_public_rest_api/models/fetch_answer_data_request.rb +157 -0
  221. data/lib/thought_spot_public_rest_api/models/fetch_answer_sql_query_request.rb +75 -0
  222. data/lib/thought_spot_public_rest_api/models/fetch_async_import_task_status_request.rb +134 -0
  223. data/lib/thought_spot_public_rest_api/models/fetch_column_security_rules_request.rb +82 -0
  224. data/lib/thought_spot_public_rest_api/models/fetch_connection_diff_status_response.rb +77 -0
  225. data/lib/thought_spot_public_rest_api/models/fetch_liveboard_data_request.rb +185 -0
  226. data/lib/thought_spot_public_rest_api/models/fetch_liveboard_sql_query_request.rb +91 -0
  227. data/lib/thought_spot_public_rest_api/models/fetch_logs_request.rb +112 -0
  228. data/lib/thought_spot_public_rest_api/models/fetch_object_privileges_request.rb +128 -0
  229. data/lib/thought_spot_public_rest_api/models/fetch_permissions_of_principals_request.rb +139 -0
  230. data/lib/thought_spot_public_rest_api/models/fetch_permissions_on_metadata_request.rb +159 -0
  231. data/lib/thought_spot_public_rest_api/models/field_name.rb +48 -0
  232. data/lib/thought_spot_public_rest_api/models/field_name1.rb +60 -0
  233. data/lib/thought_spot_public_rest_api/models/field_name2.rb +68 -0
  234. data/lib/thought_spot_public_rest_api/models/field_name3.rb +52 -0
  235. data/lib/thought_spot_public_rest_api/models/field_name4.rb +40 -0
  236. data/lib/thought_spot_public_rest_api/models/field_type.rb +36 -0
  237. data/lib/thought_spot_public_rest_api/models/field_type1.rb +36 -0
  238. data/lib/thought_spot_public_rest_api/models/file_format.rb +44 -0
  239. data/lib/thought_spot_public_rest_api/models/file_format2.rb +40 -0
  240. data/lib/thought_spot_public_rest_api/models/filter_rules.rb +120 -0
  241. data/lib/thought_spot_public_rest_api/models/force_logout_users_request.rb +77 -0
  242. data/lib/thought_spot_public_rest_api/models/frequency.rb +75 -0
  243. data/lib/thought_spot_public_rest_api/models/frequency_input.rb +75 -0
  244. data/lib/thought_spot_public_rest_api/models/gcp_web_identity_setup.rb +144 -0
  245. data/lib/thought_spot_public_rest_api/models/generate_csv_request.rb +140 -0
  246. data/lib/thought_spot_public_rest_api/models/generic_info.rb +88 -0
  247. data/lib/thought_spot_public_rest_api/models/get_async_import_status_response.rb +98 -0
  248. data/lib/thought_spot_public_rest_api/models/get_custom_access_token_request.rb +280 -0
  249. data/lib/thought_spot_public_rest_api/models/get_data_source_suggestions_request.rb +73 -0
  250. data/lib/thought_spot_public_rest_api/models/get_full_access_token_request.rb +170 -0
  251. data/lib/thought_spot_public_rest_api/models/get_nl_instructions_request.rb +75 -0
  252. data/lib/thought_spot_public_rest_api/models/get_object_access_token_request.rb +183 -0
  253. data/lib/thought_spot_public_rest_api/models/get_relevant_questions_request.rb +122 -0
  254. data/lib/thought_spot_public_rest_api/models/get_token_response.rb +117 -0
  255. data/lib/thought_spot_public_rest_api/models/group_info.rb +88 -0
  256. data/lib/thought_spot_public_rest_api/models/group_object.rb +78 -0
  257. data/lib/thought_spot_public_rest_api/models/groups_import_list_input.rb +176 -0
  258. data/lib/thought_spot_public_rest_api/models/header_attribute_input.rb +82 -0
  259. data/lib/thought_spot_public_rest_api/models/header_update_input.rb +118 -0
  260. data/lib/thought_spot_public_rest_api/models/import_e_pack_async_task_status.rb +241 -0
  261. data/lib/thought_spot_public_rest_api/models/import_metadata_tml_async_request.rb +143 -0
  262. data/lib/thought_spot_public_rest_api/models/import_metadata_tml_request.rb +146 -0
  263. data/lib/thought_spot_public_rest_api/models/import_policy.rb +44 -0
  264. data/lib/thought_spot_public_rest_api/models/import_policy1.rb +44 -0
  265. data/lib/thought_spot_public_rest_api/models/import_policy2.rb +46 -0
  266. data/lib/thought_spot_public_rest_api/models/import_type.rb +36 -0
  267. data/lib/thought_spot_public_rest_api/models/import_user.rb +282 -0
  268. data/lib/thought_spot_public_rest_api/models/import_user_groups_request.rb +113 -0
  269. data/lib/thought_spot_public_rest_api/models/import_user_groups_response.rb +119 -0
  270. data/lib/thought_spot_public_rest_api/models/import_user_type.rb +86 -0
  271. data/lib/thought_spot_public_rest_api/models/import_users_request.rb +121 -0
  272. data/lib/thought_spot_public_rest_api/models/import_users_response.rb +127 -0
  273. data/lib/thought_spot_public_rest_api/models/import_worksheets.rb +40 -0
  274. data/lib/thought_spot_public_rest_api/models/input_eureka_nls_request.rb +113 -0
  275. data/lib/thought_spot_public_rest_api/models/jwt_metadata_object.rb +98 -0
  276. data/lib/thought_spot_public_rest_api/models/jwt_parameter.rb +103 -0
  277. data/lib/thought_spot_public_rest_api/models/jwt_user_options.rb +109 -0
  278. data/lib/thought_spot_public_rest_api/models/jwt_user_options_full.rb +88 -0
  279. data/lib/thought_spot_public_rest_api/models/lb_context_input.rb +86 -0
  280. data/lib/thought_spot_public_rest_api/models/liveboard_content.rb +162 -0
  281. data/lib/thought_spot_public_rest_api/models/liveboard_data_response.rb +101 -0
  282. data/lib/thought_spot_public_rest_api/models/liveboard_options.rb +75 -0
  283. data/lib/thought_spot_public_rest_api/models/liveboard_options_input.rb +75 -0
  284. data/lib/thought_spot_public_rest_api/models/liveboard_response_version.rb +36 -0
  285. data/lib/thought_spot_public_rest_api/models/log_response.rb +82 -0
  286. data/lib/thought_spot_public_rest_api/models/login_request.rb +111 -0
  287. data/lib/thought_spot_public_rest_api/models/manage_object_privilege_request.rb +125 -0
  288. data/lib/thought_spot_public_rest_api/models/metadata_association_item.rb +95 -0
  289. data/lib/thought_spot_public_rest_api/models/metadata_context.rb +121 -0
  290. data/lib/thought_spot_public_rest_api/models/metadata_input.rb +88 -0
  291. data/lib/thought_spot_public_rest_api/models/metadata_list_item_input.rb +146 -0
  292. data/lib/thought_spot_public_rest_api/models/metadata_object.rb +89 -0
  293. data/lib/thought_spot_public_rest_api/models/metadata_response.rb +92 -0
  294. data/lib/thought_spot_public_rest_api/models/metadata_search_response.rb +186 -0
  295. data/lib/thought_spot_public_rest_api/models/metadata_search_sort_options.rb +88 -0
  296. data/lib/thought_spot_public_rest_api/models/metadata_type.rb +68 -0
  297. data/lib/thought_spot_public_rest_api/models/metadata_type1.rb +64 -0
  298. data/lib/thought_spot_public_rest_api/models/metadata_type2.rb +40 -0
  299. data/lib/thought_spot_public_rest_api/models/metadata_type3.rb +40 -0
  300. data/lib/thought_spot_public_rest_api/models/metadata_type4.rb +40 -0
  301. data/lib/thought_spot_public_rest_api/models/metadata_type5.rb +26 -0
  302. data/lib/thought_spot_public_rest_api/models/metadata_type6.rb +50 -0
  303. data/lib/thought_spot_public_rest_api/models/metadata_type7.rb +44 -0
  304. data/lib/thought_spot_public_rest_api/models/model_table_list.rb +96 -0
  305. data/lib/thought_spot_public_rest_api/models/month_offset.rb +81 -0
  306. data/lib/thought_spot_public_rest_api/models/month_offset1.rb +76 -0
  307. data/lib/thought_spot_public_rest_api/models/nl_instructions_info.rb +80 -0
  308. data/lib/thought_spot_public_rest_api/models/nl_instructions_info_input.rb +80 -0
  309. data/lib/thought_spot_public_rest_api/models/number_format_locale.rb +136 -0
  310. data/lib/thought_spot_public_rest_api/models/object_id_and_name.rb +88 -0
  311. data/lib/thought_spot_public_rest_api/models/object_privilege_type.rb +26 -0
  312. data/lib/thought_spot_public_rest_api/models/object_privileges_metadata_input.rb +88 -0
  313. data/lib/thought_spot_public_rest_api/models/object_privileges_of_metadata_response.rb +82 -0
  314. data/lib/thought_spot_public_rest_api/models/operation.rb +37 -0
  315. data/lib/thought_spot_public_rest_api/models/operation1.rb +40 -0
  316. data/lib/thought_spot_public_rest_api/models/operation2.rb +44 -0
  317. data/lib/thought_spot_public_rest_api/models/operation3.rb +40 -0
  318. data/lib/thought_spot_public_rest_api/models/operation4.rb +36 -0
  319. data/lib/thought_spot_public_rest_api/models/operation5.rb +40 -0
  320. data/lib/thought_spot_public_rest_api/models/operation6.rb +40 -0
  321. data/lib/thought_spot_public_rest_api/models/operation7.rb +37 -0
  322. data/lib/thought_spot_public_rest_api/models/operator.rb +92 -0
  323. data/lib/thought_spot_public_rest_api/models/operator1.rb +93 -0
  324. data/lib/thought_spot_public_rest_api/models/order.rb +36 -0
  325. data/lib/thought_spot_public_rest_api/models/order4.rb +36 -0
  326. data/lib/thought_spot_public_rest_api/models/order5.rb +36 -0
  327. data/lib/thought_spot_public_rest_api/models/org.rb +82 -0
  328. data/lib/thought_spot_public_rest_api/models/org_channel_config_input.rb +124 -0
  329. data/lib/thought_spot_public_rest_api/models/org_channel_config_response.rb +91 -0
  330. data/lib/thought_spot_public_rest_api/models/org_details.rb +82 -0
  331. data/lib/thought_spot_public_rest_api/models/org_info.rb +86 -0
  332. data/lib/thought_spot_public_rest_api/models/org_non_embed_access.rb +100 -0
  333. data/lib/thought_spot_public_rest_api/models/org_non_embed_access_input.rb +99 -0
  334. data/lib/thought_spot_public_rest_api/models/org_preference_search_criteria_input.rb +89 -0
  335. data/lib/thought_spot_public_rest_api/models/org_response.rb +121 -0
  336. data/lib/thought_spot_public_rest_api/models/org_type.rb +88 -0
  337. data/lib/thought_spot_public_rest_api/models/page_orientation.rb +36 -0
  338. data/lib/thought_spot_public_rest_api/models/page_size.rb +26 -0
  339. data/lib/thought_spot_public_rest_api/models/parameter_values.rb +106 -0
  340. data/lib/thought_spot_public_rest_api/models/parameterize_metadata_request.rb +116 -0
  341. data/lib/thought_spot_public_rest_api/models/parameters_list_item.rb +88 -0
  342. data/lib/thought_spot_public_rest_api/models/parameters_list_item_input.rb +88 -0
  343. data/lib/thought_spot_public_rest_api/models/parent_type.rb +36 -0
  344. data/lib/thought_spot_public_rest_api/models/parent_type1.rb +36 -0
  345. data/lib/thought_spot_public_rest_api/models/pdf_options.rb +179 -0
  346. data/lib/thought_spot_public_rest_api/models/pdf_options_input.rb +151 -0
  347. data/lib/thought_spot_public_rest_api/models/permission.rb +40 -0
  348. data/lib/thought_spot_public_rest_api/models/permission2.rb +40 -0
  349. data/lib/thought_spot_public_rest_api/models/permission_input.rb +82 -0
  350. data/lib/thought_spot_public_rest_api/models/permission_of_metadata_response.rb +83 -0
  351. data/lib/thought_spot_public_rest_api/models/permission_of_principals_response.rb +83 -0
  352. data/lib/thought_spot_public_rest_api/models/permissions_metadata_type_input.rb +89 -0
  353. data/lib/thought_spot_public_rest_api/models/persist_option.rb +45 -0
  354. data/lib/thought_spot_public_rest_api/models/png_options_input.rb +144 -0
  355. data/lib/thought_spot_public_rest_api/models/policy_process.rb +36 -0
  356. data/lib/thought_spot_public_rest_api/models/policy_process_options.rb +79 -0
  357. data/lib/thought_spot_public_rest_api/models/policy_process_options_input.rb +79 -0
  358. data/lib/thought_spot_public_rest_api/models/policy_type.rb +40 -0
  359. data/lib/thought_spot_public_rest_api/models/policy_type1.rb +40 -0
  360. data/lib/thought_spot_public_rest_api/models/position.rb +41 -0
  361. data/lib/thought_spot_public_rest_api/models/preferred_locale.rb +138 -0
  362. data/lib/thought_spot_public_rest_api/models/preferred_locale1.rb +138 -0
  363. data/lib/thought_spot_public_rest_api/models/principal_type.rb +37 -0
  364. data/lib/thought_spot_public_rest_api/models/principal_type1.rb +37 -0
  365. data/lib/thought_spot_public_rest_api/models/principal_type2.rb +37 -0
  366. data/lib/thought_spot_public_rest_api/models/principal_type3.rb +36 -0
  367. data/lib/thought_spot_public_rest_api/models/principals_input.rb +86 -0
  368. data/lib/thought_spot_public_rest_api/models/principals_list_item.rb +82 -0
  369. data/lib/thought_spot_public_rest_api/models/principals_list_item_input.rb +82 -0
  370. data/lib/thought_spot_public_rest_api/models/privilege.rb +236 -0
  371. data/lib/thought_spot_public_rest_api/models/privilege1.rb +160 -0
  372. data/lib/thought_spot_public_rest_api/models/privilege2.rb +188 -0
  373. data/lib/thought_spot_public_rest_api/models/privilege4.rb +200 -0
  374. data/lib/thought_spot_public_rest_api/models/privilege8.rb +180 -0
  375. data/lib/thought_spot_public_rest_api/models/publish_metadata_list_item.rb +86 -0
  376. data/lib/thought_spot_public_rest_api/models/publish_metadata_request.rb +107 -0
  377. data/lib/thought_spot_public_rest_api/models/put_variable_values_request.rb +94 -0
  378. data/lib/thought_spot_public_rest_api/models/query_get_decomposed_query_request.rb +145 -0
  379. data/lib/thought_spot_public_rest_api/models/recipient_details.rb +99 -0
  380. data/lib/thought_spot_public_rest_api/models/recipient_details_input.rb +97 -0
  381. data/lib/thought_spot_public_rest_api/models/regional_settings_input.rb +116 -0
  382. data/lib/thought_spot_public_rest_api/models/repo_config_object.rb +154 -0
  383. data/lib/thought_spot_public_rest_api/models/reset_event.rb +26 -0
  384. data/lib/thought_spot_public_rest_api/models/reset_user_password_request.rb +83 -0
  385. data/lib/thought_spot_public_rest_api/models/response_activation_url.rb +79 -0
  386. data/lib/thought_spot_public_rest_api/models/response_content.rb +36 -0
  387. data/lib/thought_spot_public_rest_api/models/response_copy_object.rb +78 -0
  388. data/lib/thought_spot_public_rest_api/models/response_custom_action.rb +148 -0
  389. data/lib/thought_spot_public_rest_api/models/response_failed_entities.rb +82 -0
  390. data/lib/thought_spot_public_rest_api/models/response_failed_entity.rb +90 -0
  391. data/lib/thought_spot_public_rest_api/models/response_incomplete_entities.rb +82 -0
  392. data/lib/thought_spot_public_rest_api/models/response_incomplete_entity.rb +90 -0
  393. data/lib/thought_spot_public_rest_api/models/response_message.rb +134 -0
  394. data/lib/thought_spot_public_rest_api/models/response_post_upgrade_failed_entities.rb +82 -0
  395. data/lib/thought_spot_public_rest_api/models/response_post_upgrade_failed_entity.rb +90 -0
  396. data/lib/thought_spot_public_rest_api/models/response_schedule.rb +227 -0
  397. data/lib/thought_spot_public_rest_api/models/response_schedule_run.rb +115 -0
  398. data/lib/thought_spot_public_rest_api/models/response_successful_entities.rb +82 -0
  399. data/lib/thought_spot_public_rest_api/models/response_successful_entity.rb +82 -0
  400. data/lib/thought_spot_public_rest_api/models/response_worksheet_to_model_conversion.rb +174 -0
  401. data/lib/thought_spot_public_rest_api/models/result_code.rb +40 -0
  402. data/lib/thought_spot_public_rest_api/models/revert_commit_request.rb +110 -0
  403. data/lib/thought_spot_public_rest_api/models/revert_policy.rb +37 -0
  404. data/lib/thought_spot_public_rest_api/models/revert_response.rb +172 -0
  405. data/lib/thought_spot_public_rest_api/models/reverted_metadata.rb +111 -0
  406. data/lib/thought_spot_public_rest_api/models/revoke_refresh_tokens_request.rb +109 -0
  407. data/lib/thought_spot_public_rest_api/models/revoke_refresh_tokens_response.rb +73 -0
  408. data/lib/thought_spot_public_rest_api/models/revoke_token_request.rb +87 -0
  409. data/lib/thought_spot_public_rest_api/models/rise_gql_arg_wrapper.rb +82 -0
  410. data/lib/thought_spot_public_rest_api/models/rise_setter.rb +82 -0
  411. data/lib/thought_spot_public_rest_api/models/role.rb +88 -0
  412. data/lib/thought_spot_public_rest_api/models/role_response.rb +274 -0
  413. data/lib/thought_spot_public_rest_api/models/runtime_filter.rb +87 -0
  414. data/lib/thought_spot_public_rest_api/models/runtime_filters.rb +125 -0
  415. data/lib/thought_spot_public_rest_api/models/runtime_param_override.rb +87 -0
  416. data/lib/thought_spot_public_rest_api/models/runtime_parameters.rb +116 -0
  417. data/lib/thought_spot_public_rest_api/models/runtime_sort.rb +86 -0
  418. data/lib/thought_spot_public_rest_api/models/runtime_sorts.rb +120 -0
  419. data/lib/thought_spot_public_rest_api/models/schedule_history_runs_options_input.rb +103 -0
  420. data/lib/thought_spot_public_rest_api/models/schedules_pdf_options_input.rb +179 -0
  421. data/lib/thought_spot_public_rest_api/models/schema_object.rb +95 -0
  422. data/lib/thought_spot_public_rest_api/models/scope.rb +97 -0
  423. data/lib/thought_spot_public_rest_api/models/scope1.rb +38 -0
  424. data/lib/thought_spot_public_rest_api/models/script_src_urls.rb +88 -0
  425. data/lib/thought_spot_public_rest_api/models/script_src_urls_input.rb +88 -0
  426. data/lib/thought_spot_public_rest_api/models/search_calendars_request.rb +118 -0
  427. data/lib/thought_spot_public_rest_api/models/search_channel_history_request.rb +139 -0
  428. data/lib/thought_spot_public_rest_api/models/search_channel_history_response.rb +81 -0
  429. data/lib/thought_spot_public_rest_api/models/search_collections_request.rb +150 -0
  430. data/lib/thought_spot_public_rest_api/models/search_commits_request.rb +127 -0
  431. data/lib/thought_spot_public_rest_api/models/search_communication_channel_preferences_request.rb +96 -0
  432. data/lib/thought_spot_public_rest_api/models/search_config_request.rb +84 -0
  433. data/lib/thought_spot_public_rest_api/models/search_connection_request.rb +209 -0
  434. data/lib/thought_spot_public_rest_api/models/search_connection_response.rb +129 -0
  435. data/lib/thought_spot_public_rest_api/models/search_custom_actions_request.rb +166 -0
  436. data/lib/thought_spot_public_rest_api/models/search_data_request.rb +173 -0
  437. data/lib/thought_spot_public_rest_api/models/search_data_response.rb +82 -0
  438. data/lib/thought_spot_public_rest_api/models/search_email_customization_request.rb +78 -0
  439. data/lib/thought_spot_public_rest_api/models/search_metadata_request.rb +446 -0
  440. data/lib/thought_spot_public_rest_api/models/search_orgs_request.rb +119 -0
  441. data/lib/thought_spot_public_rest_api/models/search_role_response.rb +274 -0
  442. data/lib/thought_spot_public_rest_api/models/search_roles_request.rb +158 -0
  443. data/lib/thought_spot_public_rest_api/models/search_schedules_request.rb +139 -0
  444. data/lib/thought_spot_public_rest_api/models/search_security_settings_request.rb +79 -0
  445. data/lib/thought_spot_public_rest_api/models/search_tags_request.rb +97 -0
  446. data/lib/thought_spot_public_rest_api/models/search_user_groups_request.rb +265 -0
  447. data/lib/thought_spot_public_rest_api/models/search_users_request.rb +327 -0
  448. data/lib/thought_spot_public_rest_api/models/search_variables_request.rb +135 -0
  449. data/lib/thought_spot_public_rest_api/models/search_webhook_configurations_request.rb +132 -0
  450. data/lib/thought_spot_public_rest_api/models/security_settings_cluster_preferences.rb +131 -0
  451. data/lib/thought_spot_public_rest_api/models/security_settings_cluster_preferences_input.rb +131 -0
  452. data/lib/thought_spot_public_rest_api/models/security_settings_org_details.rb +88 -0
  453. data/lib/thought_spot_public_rest_api/models/security_settings_org_preferences.rb +100 -0
  454. data/lib/thought_spot_public_rest_api/models/security_settings_org_preferences_input.rb +102 -0
  455. data/lib/thought_spot_public_rest_api/models/security_settings_response.rb +99 -0
  456. data/lib/thought_spot_public_rest_api/models/send_agent_message_request.rb +73 -0
  457. data/lib/thought_spot_public_rest_api/models/send_agent_message_response.rb +86 -0
  458. data/lib/thought_spot_public_rest_api/models/send_agent_message_streaming_request.rb +84 -0
  459. data/lib/thought_spot_public_rest_api/models/send_message_request.rb +84 -0
  460. data/lib/thought_spot_public_rest_api/models/set_nl_instructions_request.rb +94 -0
  461. data/lib/thought_spot_public_rest_api/models/share_metadata_request.rb +207 -0
  462. data/lib/thought_spot_public_rest_api/models/share_metadata_type_input.rb +90 -0
  463. data/lib/thought_spot_public_rest_api/models/share_mode.rb +40 -0
  464. data/lib/thought_spot_public_rest_api/models/share_mode1.rb +40 -0
  465. data/lib/thought_spot_public_rest_api/models/share_permissions_input.rb +82 -0
  466. data/lib/thought_spot_public_rest_api/models/single_answer_request.rb +84 -0
  467. data/lib/thought_spot_public_rest_api/models/sort_option.rb +89 -0
  468. data/lib/thought_spot_public_rest_api/models/sort_option_input.rb +88 -0
  469. data/lib/thought_spot_public_rest_api/models/sort_options.rb +88 -0
  470. data/lib/thought_spot_public_rest_api/models/sorting_options.rb +88 -0
  471. data/lib/thought_spot_public_rest_api/models/sql_query.rb +92 -0
  472. data/lib/thought_spot_public_rest_api/models/sql_query_response.rb +110 -0
  473. data/lib/thought_spot_public_rest_api/models/start_day_of_week.rb +56 -0
  474. data/lib/thought_spot_public_rest_api/models/start_day_of_week2.rb +56 -0
  475. data/lib/thought_spot_public_rest_api/models/status.rb +36 -0
  476. data/lib/thought_spot_public_rest_api/models/status1.rb +44 -0
  477. data/lib/thought_spot_public_rest_api/models/status2.rb +36 -0
  478. data/lib/thought_spot_public_rest_api/models/status3.rb +36 -0
  479. data/lib/thought_spot_public_rest_api/models/status4.rb +36 -0
  480. data/lib/thought_spot_public_rest_api/models/storage_config.rb +76 -0
  481. data/lib/thought_spot_public_rest_api/models/storage_config_input.rb +76 -0
  482. data/lib/thought_spot_public_rest_api/models/storage_destination.rb +80 -0
  483. data/lib/thought_spot_public_rest_api/models/storage_destination_input.rb +82 -0
  484. data/lib/thought_spot_public_rest_api/models/storage_setup_info.rb +175 -0
  485. data/lib/thought_spot_public_rest_api/models/subtype.rb +52 -0
  486. data/lib/thought_spot_public_rest_api/models/system_config.rb +102 -0
  487. data/lib/thought_spot_public_rest_api/models/system_info.rb +344 -0
  488. data/lib/thought_spot_public_rest_api/models/system_override_info.rb +79 -0
  489. data/lib/thought_spot_public_rest_api/models/table.rb +150 -0
  490. data/lib/thought_spot_public_rest_api/models/tag.rb +202 -0
  491. data/lib/thought_spot_public_rest_api/models/tag_metadata_type_input.rb +94 -0
  492. data/lib/thought_spot_public_rest_api/models/task_status.rb +44 -0
  493. data/lib/thought_spot_public_rest_api/models/task_status1.rb +44 -0
  494. data/lib/thought_spot_public_rest_api/models/template_properties_input_create.rb +440 -0
  495. data/lib/thought_spot_public_rest_api/models/time_zone.rb +2548 -0
  496. data/lib/thought_spot_public_rest_api/models/token.rb +125 -0
  497. data/lib/thought_spot_public_rest_api/models/token_access_scope_object.rb +91 -0
  498. data/lib/thought_spot_public_rest_api/models/token_validation_response.rb +114 -0
  499. data/lib/thought_spot_public_rest_api/models/type.rb +66 -0
  500. data/lib/thought_spot_public_rest_api/models/type1.rb +38 -0
  501. data/lib/thought_spot_public_rest_api/models/type10.rb +26 -0
  502. data/lib/thought_spot_public_rest_api/models/type11.rb +28 -0
  503. data/lib/thought_spot_public_rest_api/models/type13.rb +52 -0
  504. data/lib/thought_spot_public_rest_api/models/type15.rb +60 -0
  505. data/lib/thought_spot_public_rest_api/models/type16.rb +60 -0
  506. data/lib/thought_spot_public_rest_api/models/type17.rb +66 -0
  507. data/lib/thought_spot_public_rest_api/models/type18.rb +50 -0
  508. data/lib/thought_spot_public_rest_api/models/type19.rb +40 -0
  509. data/lib/thought_spot_public_rest_api/models/type2.rb +44 -0
  510. data/lib/thought_spot_public_rest_api/models/type20.rb +46 -0
  511. data/lib/thought_spot_public_rest_api/models/type21.rb +50 -0
  512. data/lib/thought_spot_public_rest_api/models/type22.rb +46 -0
  513. data/lib/thought_spot_public_rest_api/models/type23.rb +26 -0
  514. data/lib/thought_spot_public_rest_api/models/type24.rb +42 -0
  515. data/lib/thought_spot_public_rest_api/models/type26.rb +40 -0
  516. data/lib/thought_spot_public_rest_api/models/type27.rb +44 -0
  517. data/lib/thought_spot_public_rest_api/models/type28.rb +36 -0
  518. data/lib/thought_spot_public_rest_api/models/type29.rb +44 -0
  519. data/lib/thought_spot_public_rest_api/models/type3.rb +76 -0
  520. data/lib/thought_spot_public_rest_api/models/type31.rb +44 -0
  521. data/lib/thought_spot_public_rest_api/models/type32.rb +36 -0
  522. data/lib/thought_spot_public_rest_api/models/type4.rb +36 -0
  523. data/lib/thought_spot_public_rest_api/models/type5.rb +76 -0
  524. data/lib/thought_spot_public_rest_api/models/type6.rb +28 -0
  525. data/lib/thought_spot_public_rest_api/models/type7.rb +50 -0
  526. data/lib/thought_spot_public_rest_api/models/type8.rb +42 -0
  527. data/lib/thought_spot_public_rest_api/models/type9.rb +48 -0
  528. data/lib/thought_spot_public_rest_api/models/unassign_tag_request.rb +92 -0
  529. data/lib/thought_spot_public_rest_api/models/unparameterize_metadata_request.rb +113 -0
  530. data/lib/thought_spot_public_rest_api/models/unpublish_metadata_request.rb +119 -0
  531. data/lib/thought_spot_public_rest_api/models/update_calendar_request.rb +173 -0
  532. data/lib/thought_spot_public_rest_api/models/update_collection_request.rb +114 -0
  533. data/lib/thought_spot_public_rest_api/models/update_column_security_rules_request.rb +120 -0
  534. data/lib/thought_spot_public_rest_api/models/update_config_request.rb +161 -0
  535. data/lib/thought_spot_public_rest_api/models/update_connection_configuration_request.rb +200 -0
  536. data/lib/thought_spot_public_rest_api/models/update_connection_request.rb +120 -0
  537. data/lib/thought_spot_public_rest_api/models/update_connection_v2_request.rb +109 -0
  538. data/lib/thought_spot_public_rest_api/models/update_custom_action_request.rb +144 -0
  539. data/lib/thought_spot_public_rest_api/models/update_email_customization_request.rb +87 -0
  540. data/lib/thought_spot_public_rest_api/models/update_metadata_header_request.rb +95 -0
  541. data/lib/thought_spot_public_rest_api/models/update_metadata_obj_id_request.rb +82 -0
  542. data/lib/thought_spot_public_rest_api/models/update_method.rb +36 -0
  543. data/lib/thought_spot_public_rest_api/models/update_obj_id_input.rb +111 -0
  544. data/lib/thought_spot_public_rest_api/models/update_org_request.rb +119 -0
  545. data/lib/thought_spot_public_rest_api/models/update_role_request.rb +96 -0
  546. data/lib/thought_spot_public_rest_api/models/update_schedule_request.rb +194 -0
  547. data/lib/thought_spot_public_rest_api/models/update_system_config_request.rb +75 -0
  548. data/lib/thought_spot_public_rest_api/models/update_tag_request.rb +85 -0
  549. data/lib/thought_spot_public_rest_api/models/update_user_group_request.rb +191 -0
  550. data/lib/thought_spot_public_rest_api/models/update_user_request.rb +305 -0
  551. data/lib/thought_spot_public_rest_api/models/update_variable_request.rb +72 -0
  552. data/lib/thought_spot_public_rest_api/models/update_variable_values_request.rb +106 -0
  553. data/lib/thought_spot_public_rest_api/models/update_webhook_configuration_request.rb +178 -0
  554. data/lib/thought_spot_public_rest_api/models/url.rb +117 -0
  555. data/lib/thought_spot_public_rest_api/models/url_input.rb +119 -0
  556. data/lib/thought_spot_public_rest_api/models/url_input_mandatory.rb +117 -0
  557. data/lib/thought_spot_public_rest_api/models/user.rb +684 -0
  558. data/lib/thought_spot_public_rest_api/models/user_group.rb +88 -0
  559. data/lib/thought_spot_public_rest_api/models/user_group_response.rb +455 -0
  560. data/lib/thought_spot_public_rest_api/models/user_info.rb +86 -0
  561. data/lib/thought_spot_public_rest_api/models/user_locale.rb +136 -0
  562. data/lib/thought_spot_public_rest_api/models/user_object.rb +91 -0
  563. data/lib/thought_spot_public_rest_api/models/user_parameter_options.rb +163 -0
  564. data/lib/thought_spot_public_rest_api/models/user_principal.rb +98 -0
  565. data/lib/thought_spot_public_rest_api/models/validate_communication_channel_request.rb +88 -0
  566. data/lib/thought_spot_public_rest_api/models/validate_merge_request.rb +85 -0
  567. data/lib/thought_spot_public_rest_api/models/validate_token_request.rb +73 -0
  568. data/lib/thought_spot_public_rest_api/models/validation_step.rb +36 -0
  569. data/lib/thought_spot_public_rest_api/models/value_scope_input.rb +119 -0
  570. data/lib/thought_spot_public_rest_api/models/variable.rb +125 -0
  571. data/lib/thought_spot_public_rest_api/models/variable_detail_input.rb +100 -0
  572. data/lib/thought_spot_public_rest_api/models/variable_put_assignment_input.rb +138 -0
  573. data/lib/thought_spot_public_rest_api/models/variable_type.rb +48 -0
  574. data/lib/thought_spot_public_rest_api/models/variable_update_assignment_input.rb +95 -0
  575. data/lib/thought_spot_public_rest_api/models/variable_update_scope_input.rb +130 -0
  576. data/lib/thought_spot_public_rest_api/models/variable_value.rb +151 -0
  577. data/lib/thought_spot_public_rest_api/models/variable_values.rb +106 -0
  578. data/lib/thought_spot_public_rest_api/models/visibility.rb +37 -0
  579. data/lib/thought_spot_public_rest_api/models/visibility1.rb +36 -0
  580. data/lib/thought_spot_public_rest_api/models/visibility10.rb +36 -0
  581. data/lib/thought_spot_public_rest_api/models/visibility2.rb +37 -0
  582. data/lib/thought_spot_public_rest_api/models/visibility3.rb +37 -0
  583. data/lib/thought_spot_public_rest_api/models/visibility5.rb +37 -0
  584. data/lib/thought_spot_public_rest_api/models/visibility7.rb +37 -0
  585. data/lib/thought_spot_public_rest_api/models/visibility8.rb +36 -0
  586. data/lib/thought_spot_public_rest_api/models/visibility9.rb +37 -0
  587. data/lib/thought_spot_public_rest_api/models/visualization_type.rb +40 -0
  588. data/lib/thought_spot_public_rest_api/models/webhook_auth_api_key.rb +82 -0
  589. data/lib/thought_spot_public_rest_api/models/webhook_auth_api_key_input.rb +82 -0
  590. data/lib/thought_spot_public_rest_api/models/webhook_auth_basic_auth.rb +82 -0
  591. data/lib/thought_spot_public_rest_api/models/webhook_auth_basic_auth_input.rb +82 -0
  592. data/lib/thought_spot_public_rest_api/models/webhook_auth_oauth_2.rb +93 -0
  593. data/lib/thought_spot_public_rest_api/models/webhook_auth_oauth_2_input.rb +93 -0
  594. data/lib/thought_spot_public_rest_api/models/webhook_authentication.rb +107 -0
  595. data/lib/thought_spot_public_rest_api/models/webhook_authentication_input.rb +107 -0
  596. data/lib/thought_spot_public_rest_api/models/webhook_delete_failure.rb +90 -0
  597. data/lib/thought_spot_public_rest_api/models/webhook_delete_response.rb +119 -0
  598. data/lib/thought_spot_public_rest_api/models/webhook_key_value_pair.rb +82 -0
  599. data/lib/thought_spot_public_rest_api/models/webhook_key_value_pair_input.rb +82 -0
  600. data/lib/thought_spot_public_rest_api/models/webhook_org.rb +82 -0
  601. data/lib/thought_spot_public_rest_api/models/webhook_pagination.rb +101 -0
  602. data/lib/thought_spot_public_rest_api/models/webhook_response.rb +234 -0
  603. data/lib/thought_spot_public_rest_api/models/webhook_search_response.rb +91 -0
  604. data/lib/thought_spot_public_rest_api/models/webhook_signature_verification.rb +95 -0
  605. data/lib/thought_spot_public_rest_api/models/webhook_signature_verification_input.rb +95 -0
  606. data/lib/thought_spot_public_rest_api/models/webhook_sort_options_input.rb +89 -0
  607. data/lib/thought_spot_public_rest_api/models/webhook_user.rb +82 -0
  608. data/lib/thought_spot_public_rest_api/utilities/date_time_helper.rb +11 -0
  609. data/lib/thought_spot_public_rest_api/utilities/file_wrapper.rb +28 -0
  610. data/lib/thought_spot_public_rest_api/utilities/union_type_lookup.rb +67 -0
  611. data/lib/thought_spot_public_rest_api.rb +801 -0
  612. metadata +695 -0
@@ -0,0 +1,205 @@
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
+ # CustomActionController
8
+ class CustomActionController < BaseController
9
+ # <span class="since-beta-tag">Version: 9.6.0.cl or later</span>
10
+ # Creates a custom action that appears as a menu action on a saved Answer or
11
+ # Liveboard visualization.
12
+ # Requires `DEVELOPER` (**Has Developer privilege**) or `ADMINISTRATION`
13
+ # (**Can administer ThoughtSpot**) privilege.
14
+ # If [Role-Based Access Control
15
+ # (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
16
+ # instance, the `DEVELOPER` (**Has developer privilege**) privilege is
17
+ # required.
18
+ # #### Usage Guidelines
19
+ # The API lets you create the following types of custom actions:
20
+ # * URL-based action
21
+ # Allows pushing data to an external URL.
22
+ # * Callback action
23
+ # Triggers a callback to the host application and initiates a response
24
+ # payload on an embedded ThoughtSpot instance.
25
+ # By default, custom actions are visible to only administrator or developer
26
+ # users. To make a custom action available to other users, and specify the
27
+ # groups in `group_identifiers`.
28
+ # By default, the custom action is set as a _global_ action on all
29
+ # visualizations and saved Answers. To assign a custom action to specific
30
+ # Liveboard visualization, saved Answer, or Worksheet, set `visibility` to
31
+ # `false` in `default_action_config` property and specify the GUID or name
32
+ # of the object in `associate_metadata`.
33
+ # For more information, see [Custom
34
+ # actions](https://developers.thoughtspot.com/docs/custom-action-intro).
35
+ # #### Endpoint URL
36
+ # @param [CreateCustomActionRequest] body Required parameter: TODO: type
37
+ # description here
38
+ # @return [ApiResponse] Complete http response with raw body and status code.
39
+ def create_custom_action(body)
40
+ @api_call
41
+ .request(new_request_builder(HttpMethodEnum::POST,
42
+ '/api/rest/2.0/customization/custom-actions',
43
+ Server::DEFAULT)
44
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
45
+ .body_param(new_parameter(body)
46
+ .is_required(true))
47
+ .header_param(new_parameter('application/json', key: 'accept'))
48
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
49
+ .auth(Single.new('bearerAuth')))
50
+ .response(new_response_handler
51
+ .deserializer(APIHelper.method(:custom_type_deserializer))
52
+ .deserialize_into(ResponseCustomAction.method(:from_hash))
53
+ .is_api_response(true)
54
+ .local_error('400',
55
+ 'Invalid request.',
56
+ ErrorResponseException)
57
+ .local_error('401',
58
+ 'Unauthorized access.',
59
+ ErrorResponseException)
60
+ .local_error('403',
61
+ 'Forbidden access.',
62
+ ErrorResponseException)
63
+ .local_error('500',
64
+ 'Unexpected error',
65
+ ErrorResponseException))
66
+ .execute
67
+ end
68
+
69
+ # <span class="since-beta-tag">Version: 9.6.0.cl or later</span>
70
+ # Removes the custom action specified in the API request.
71
+ # Requires `DEVELOPER` (**Has Developer privilege**) or `ADMINISTRATION`
72
+ # (**Can administer ThoughtSpot**) privilege.
73
+ # If [Role-Based Access Control
74
+ # (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
75
+ # instance, the `DEVELOPER` (**Has developer privilege**) privilege is
76
+ # required.
77
+ # #### Endpoint URL
78
+ # @param [String] custom_action_identifier Required parameter: Unique ID or
79
+ # name of the custom action.
80
+ # @return [ApiResponse] Complete http response with raw body and status code.
81
+ def delete_custom_action(custom_action_identifier)
82
+ @api_call
83
+ .request(new_request_builder(HttpMethodEnum::POST,
84
+ '/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/delete',
85
+ Server::DEFAULT)
86
+ .template_param(new_parameter(custom_action_identifier, key: 'custom_action_identifier')
87
+ .is_required(true)
88
+ .should_encode(true))
89
+ .auth(Single.new('bearerAuth')))
90
+ .response(new_response_handler
91
+ .is_response_void(true)
92
+ .is_api_response(true)
93
+ .local_error('400',
94
+ 'Invalid request.',
95
+ ErrorResponseException)
96
+ .local_error('401',
97
+ 'Unauthorized access.',
98
+ ErrorResponseException)
99
+ .local_error('403',
100
+ 'Forbidden access.',
101
+ ErrorResponseException)
102
+ .local_error('500',
103
+ 'Unexpected error',
104
+ ErrorResponseException))
105
+ .execute
106
+ end
107
+
108
+ # <span class="since-beta-tag">Version: 9.6.0.cl or later</span>
109
+ # Gets custom actions configured on the cluster.
110
+ # Requires `DEVELOPER` (**Has Developer privilege**) or `ADMINISTRATION`
111
+ # (**Can administer ThoughtSpot**) privilege.
112
+ # If [Role-Based Access Control
113
+ # (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
114
+ # instance, the `DEVELOPER` (**Has developer privilege**) privilege is
115
+ # required.
116
+ # #### Endpoint URL
117
+ # @param [SearchCustomActionsRequest] body Required parameter: TODO: type
118
+ # description here
119
+ # @return [ApiResponse] Complete http response with raw body and status code.
120
+ def search_custom_actions(body)
121
+ @api_call
122
+ .request(new_request_builder(HttpMethodEnum::POST,
123
+ '/api/rest/2.0/customization/custom-actions/search',
124
+ Server::DEFAULT)
125
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
126
+ .body_param(new_parameter(body)
127
+ .is_required(true))
128
+ .header_param(new_parameter('application/json', key: 'accept'))
129
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
130
+ .auth(Single.new('bearerAuth')))
131
+ .response(new_response_handler
132
+ .deserializer(APIHelper.method(:custom_type_deserializer))
133
+ .deserialize_into(ResponseCustomAction.method(:from_hash))
134
+ .is_api_response(true)
135
+ .is_response_array(true)
136
+ .local_error('400',
137
+ 'Invalid request.',
138
+ ErrorResponseException)
139
+ .local_error('401',
140
+ 'Unauthorized access.',
141
+ ErrorResponseException)
142
+ .local_error('403',
143
+ 'Forbidden access.',
144
+ ErrorResponseException)
145
+ .local_error('500',
146
+ 'Unexpected error',
147
+ ErrorResponseException))
148
+ .execute
149
+ end
150
+
151
+ # <span class="since-beta-tag">Version: 9.6.0.cl or later</span>
152
+ # Updates a custom action.
153
+ # Requires `DEVELOPER` (**Has Developer privilege**) or `ADMINISTRATION`
154
+ # (**Can administer ThoughtSpot**) privilege.
155
+ # If [Role-Based Access Control
156
+ # (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
157
+ # instance, the `DEVELOPER` (**Has developer privilege**) privilege is
158
+ # required.
159
+ # #### Usage Guidelines
160
+ # The API allows you to modify the following properties:
161
+ # * Name of the custom action
162
+ # * Action availability to groups
163
+ # * Association to metadata objects
164
+ # * Authentication settings for a URL-based action
165
+ # For more information, see [Custom
166
+ # actions](https://developers.thoughtspot.com/docs/custom-action-intro).
167
+ # #### Endpoint URL
168
+ # @param [String] custom_action_identifier Required parameter: Unique ID or
169
+ # name of the custom action.
170
+ # @param [UpdateCustomActionRequest] body Required parameter: TODO: type
171
+ # description here
172
+ # @return [ApiResponse] Complete http response with raw body and status code.
173
+ def update_custom_action(custom_action_identifier,
174
+ body)
175
+ @api_call
176
+ .request(new_request_builder(HttpMethodEnum::POST,
177
+ '/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/update',
178
+ Server::DEFAULT)
179
+ .template_param(new_parameter(custom_action_identifier, key: 'custom_action_identifier')
180
+ .is_required(true)
181
+ .should_encode(true))
182
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
183
+ .body_param(new_parameter(body)
184
+ .is_required(true))
185
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
186
+ .auth(Single.new('bearerAuth')))
187
+ .response(new_response_handler
188
+ .is_response_void(true)
189
+ .is_api_response(true)
190
+ .local_error('400',
191
+ 'Invalid request.',
192
+ ErrorResponseException)
193
+ .local_error('401',
194
+ 'Unauthorized access.',
195
+ ErrorResponseException)
196
+ .local_error('403',
197
+ 'Forbidden access.',
198
+ ErrorResponseException)
199
+ .local_error('500',
200
+ 'Unexpected error',
201
+ ErrorResponseException))
202
+ .execute
203
+ end
204
+ end
205
+ end
@@ -0,0 +1,373 @@
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
+ # CustomCalendarsController
8
+ class CustomCalendarsController < BaseController
9
+ # <span class="since-beta-tag">Version: 10.12.0.cl or later</span>
10
+ # Creates a new [custom
11
+ # calendar](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal).
12
+ # Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can
13
+ # administer ThoughtSpot**) privilege.
14
+ # If [Role-Based Access Control
15
+ # (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
16
+ # ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage
17
+ # custom calendars**) privilege is required.
18
+ # #### Usage guidelines
19
+ # You can create a custom calendar from scratch or an existing Table in
20
+ # ThoughtSpot. For both methods of calendar creation, the following
21
+ # parameters are required:
22
+ # * Name of the custom calendar.
23
+ # * Calendar creation method. To create a calendar from an existing table,
24
+ # specify the method:
25
+ # - `FROM_EXISTING_TABLE` - Creates calendar from the table reference
26
+ # provided in the API request.
27
+ # - `FROM_INPUT_PARAMS` - Creates a calendar from the parameters defined in
28
+ # the API request.
29
+ # * Connection ID and Table name
30
+ # * Database and schema name attributes:
31
+ # For most Cloud Data Warehouse (CDW) connectors, both `database_name` and
32
+ # `schema_name` attributes are required.
33
+ # However, the attribute requirements are conditional and vary based on
34
+ # the connector type and its metadata structure. For example, for connectors
35
+ # such as Teradata, MySQL, SingleSore, Amazon Aurora MySQL, Amazon RDS
36
+ # MySQL, Oracle, and GCP_MYSQL, the `schema_name` is required, whereas the
37
+ # `database_name` attribute is not.
38
+ # Similarly, connectors such as ClickHouse require you to specify the
39
+ # `database_name` and the schema specification in such cases is optional.
40
+ # **NOTE**: If you are creating a calendar from an existing table, ensure
41
+ # that the referenced table matches the required DDL for custom calendars.
42
+ # If the schema does not match, the API returns an error.
43
+ # ##### Calendar type
44
+ # The API allows you to create the following types of calendars:
45
+ # * `MONTH_OFFSET`. The default calendar type. A `MONTH_OFFSET` calendar is
46
+ # offset by a few months from the standard calendar months (January to
47
+ # December) and the year begins with the month defined in the request. For
48
+ # example, if the `month_offset` value is set as `April`, the calendar year
49
+ # begins in April.
50
+ # * `4-4-5`. Each quarter in the calendar will include two 4-week months
51
+ # followed by one 5-week month.
52
+ # * `4-5-4`. Each quarter in the calendar will include two 4-week months
53
+ # with a 5-week month between.
54
+ # * `5-4-4`. Each quarter begins with a 5-week month, followed by two 4-week
55
+ # months.
56
+ # To start and end the calendar on a specific date, specify the dates in the
57
+ # `MM/DD/YYYY` format. For `MONTH_OFFSET` calendars, ensure that the
58
+ # `start_date` matches the month specified in the `month_offset` attribute.
59
+ # You can also set the starting day of the week and customize the prefixes
60
+ # for year and quarter labels.
61
+ # #### Examples
62
+ # To create a calendar from an existing table:
63
+ # ```
64
+ # {
65
+ # "name": "MyCustomCalendar1",
66
+ # "table_reference": {
67
+ # "connection_identifier": "4db8ea22-2ff4-4224-b05a-26674717e468",
68
+ # "table_name": "MyCalendarTable",
69
+ # "database_name": "RETAILAPPAREL",
70
+ # "schema_name": "PUBLIC"
71
+ # },
72
+ # "creation_method": "FROM_EXISTING_TABLE",
73
+ # }
74
+ # ```
75
+ # To create a calendar from scratch:
76
+ # ```
77
+ # {
78
+ # "name": "MyCustomCalendar1",
79
+ # "table_reference": {
80
+ # "connection_identifier": "4db8ea22-2ff4-4224-b05a-26674717e468",
81
+ # "table_name": "MyCalendarTable",
82
+ # "database_name": "RETAILAPPAREL",
83
+ # "schema_name": "PUBLIC"
84
+ # },
85
+ # "creation_method": "FROM_INPUT_PARAMS",
86
+ # "calendar_type": "MONTH_OFFSET",
87
+ # "month_offset": "April",
88
+ # "start_day_of_week": "Monday",
89
+ # "quarter_name_prefix": "Q",
90
+ # "year_name_prefix": "FY",
91
+ # "start_date": "04/01/2025",
92
+ # "end_date": "04/31/2025"
93
+ # }
94
+ # ```
95
+ # #### Endpoint URL
96
+ # @param [CreateCalendarRequest] body Required parameter: TODO: type
97
+ # description here
98
+ # @return [ApiResponse] Complete http response with raw body and status code.
99
+ def create_calendar(body)
100
+ @api_call
101
+ .request(new_request_builder(HttpMethodEnum::POST,
102
+ '/api/rest/2.0/calendars/create',
103
+ Server::DEFAULT)
104
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
105
+ .body_param(new_parameter(body)
106
+ .is_required(true))
107
+ .header_param(new_parameter('application/json', key: 'accept'))
108
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
109
+ .auth(Single.new('bearerAuth')))
110
+ .response(new_response_handler
111
+ .deserializer(APIHelper.method(:custom_type_deserializer))
112
+ .deserialize_into(CalendarResponse.method(:from_hash))
113
+ .is_api_response(true)
114
+ .local_error('400',
115
+ 'Invalid request.',
116
+ ErrorResponseException)
117
+ .local_error('401',
118
+ 'Unauthorized access.',
119
+ ErrorResponseException)
120
+ .local_error('403',
121
+ 'Forbidden access.',
122
+ ErrorResponseException)
123
+ .local_error('500',
124
+ 'Unexpected error',
125
+ ErrorResponseException))
126
+ .execute
127
+ end
128
+
129
+ # <span class="since-beta-tag">Version: 10.12.0.cl or later</span>
130
+ # Deletes a [custom
131
+ # calendar](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal).
132
+ # Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can
133
+ # administer ThoughtSpot**) privilege.
134
+ # If [Role-Based Access Control
135
+ # (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
136
+ # ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage
137
+ # custom calendars**) privilege is required.
138
+ # #### Usage guidelines
139
+ # To delete a custom calendar, specify the calendar ID as a path parameter
140
+ # in the request URL.
141
+ # #### Endpoint URL
142
+ # @param [String] calendar_identifier Required parameter: Unique ID or name
143
+ # of the Calendar.
144
+ # @return [ApiResponse] Complete http response with raw body and status code.
145
+ def delete_calendar(calendar_identifier)
146
+ @api_call
147
+ .request(new_request_builder(HttpMethodEnum::POST,
148
+ '/api/rest/2.0/calendars/{calendar_identifier}/delete',
149
+ Server::DEFAULT)
150
+ .template_param(new_parameter(calendar_identifier, key: 'calendar_identifier')
151
+ .is_required(true)
152
+ .should_encode(true))
153
+ .auth(Single.new('bearerAuth')))
154
+ .response(new_response_handler
155
+ .is_response_void(true)
156
+ .is_api_response(true)
157
+ .local_error('400',
158
+ 'Invalid request.',
159
+ ErrorResponseException)
160
+ .local_error('401',
161
+ 'Unauthorized access.',
162
+ ErrorResponseException)
163
+ .local_error('403',
164
+ 'Forbidden access.',
165
+ ErrorResponseException)
166
+ .local_error('500',
167
+ 'Unexpected error',
168
+ ErrorResponseException))
169
+ .execute
170
+ end
171
+
172
+ # <span class="since-beta-tag">Version: 10.12.0.cl or later</span>
173
+ # Exports a [custom
174
+ # calendar](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal)
175
+ # in the CSV format.
176
+ # Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can
177
+ # administer ThoughtSpot**) privilege.
178
+ # If [Role-Based Access Control
179
+ # (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
180
+ # ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage
181
+ # custom calendars**) privilege is required.
182
+ # #### Usage guidelines
183
+ # Use this API to download a custom calendar in the CSV file format. In your
184
+ # API request, specify the following parameters.
185
+ # * Start and end date of the calendar. For "month offset" calendars, the
186
+ # start date must match the month defined in the `month_offset` attribute.
187
+ # You can also specify optional parameters such as the starting day of the
188
+ # week and prefixes for the quarter and year labels.
189
+ # #### Endpoint URL
190
+ # @param [GenerateCsvRequest] body Required parameter: TODO: type
191
+ # description here
192
+ # @return [ApiResponse] Complete http response with raw body and status code.
193
+ def generate_csv(body)
194
+ @api_call
195
+ .request(new_request_builder(HttpMethodEnum::POST,
196
+ '/api/rest/2.0/calendars/generate-csv',
197
+ Server::DEFAULT)
198
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
199
+ .body_param(new_parameter(body)
200
+ .is_required(true))
201
+ .header_param(new_parameter('application/json', key: 'accept'))
202
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
203
+ .auth(Single.new('bearerAuth')))
204
+ .response(new_response_handler
205
+ .deserializer(APIHelper.method(:json_deserialize))
206
+ .is_api_response(true)
207
+ .local_error('400',
208
+ 'Invalid request.',
209
+ ErrorResponseException)
210
+ .local_error('401',
211
+ 'Unauthorized access.',
212
+ ErrorResponseException)
213
+ .local_error('403',
214
+ 'Forbidden access.',
215
+ ErrorResponseException)
216
+ .local_error('500',
217
+ 'Unexpected error',
218
+ ErrorResponseException))
219
+ .execute
220
+ end
221
+
222
+ # <span class="since-beta-tag">Version: 10.12.0.cl or later</span>
223
+ # Gets a list of [custom
224
+ # calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal)
225
+ # .
226
+ # Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can
227
+ # administer ThoughtSpot**) privilege.
228
+ # If [Role-Based Access Control
229
+ # (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
230
+ # ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage
231
+ # custom calendars**) privilege is required.
232
+ # #### Usage guidelines
233
+ # By default, the API returns a list of custom calendars for all connection
234
+ # objects. To retrieve custom calendar details for a particular connection,
235
+ # specify the connection ID. You can also use other search parameters such
236
+ # as `name_pattern` and `sort_options` as search filters.
237
+ # The `name_pattern` parameter filters and returns only those objects that
238
+ # match the specified pattern. Use `%` as a wildcard for pattern matching.
239
+ # #### Endpoint URL
240
+ # @param [SearchCalendarsRequest] body Required parameter: TODO: type
241
+ # description here
242
+ # @return [ApiResponse] Complete http response with raw body and status code.
243
+ def search_calendars(body)
244
+ @api_call
245
+ .request(new_request_builder(HttpMethodEnum::POST,
246
+ '/api/rest/2.0/calendars/search',
247
+ Server::DEFAULT)
248
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
249
+ .body_param(new_parameter(body)
250
+ .is_required(true))
251
+ .header_param(new_parameter('application/json', key: 'accept'))
252
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
253
+ .auth(Single.new('bearerAuth')))
254
+ .response(new_response_handler
255
+ .deserializer(APIHelper.method(:custom_type_deserializer))
256
+ .deserialize_into(CalendarResponse.method(:from_hash))
257
+ .is_api_response(true)
258
+ .is_response_array(true)
259
+ .local_error('400',
260
+ 'Invalid request.',
261
+ ErrorResponseException)
262
+ .local_error('401',
263
+ 'Unauthorized access.',
264
+ ErrorResponseException)
265
+ .local_error('403',
266
+ 'Forbidden access.',
267
+ ErrorResponseException)
268
+ .local_error('500',
269
+ 'Unexpected error',
270
+ ErrorResponseException))
271
+ .execute
272
+ end
273
+
274
+ # <span class="since-beta-tag">Version: 10.12.0.cl or later</span>
275
+ # Updates the properties of a [custom
276
+ # calendar](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal).
277
+ # Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can
278
+ # administer ThoughtSpot**) privilege.
279
+ # If [Role-Based Access Control
280
+ # (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your
281
+ # ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage
282
+ # custom calendars**) privilege is required.
283
+ # #### Usage guidelines
284
+ # You can update the properties of a calendar using one of the following
285
+ # methods:
286
+ # * `FROM_INPUT_PARAMS` to update the calendar properties with the values
287
+ # defined in the API request.
288
+ # * `FROM_EXISTING_TABLE` Creates a calendar from the parameters defined in
289
+ # the API request.
290
+ # To update a custom calendar, specify the calendar ID as a path parameter
291
+ # in the request URL and the following parameters in the request body:
292
+ # * Connection ID and Table name
293
+ # * Database and schema name attributes:
294
+ # For most Cloud Data Warehouse (CDW) connectors, both `database_name` and
295
+ # `schema_name` attributes are required.
296
+ # However, the attribute requirements are conditional and vary based on
297
+ # the connector type and its metadata structure. For example, for connectors
298
+ # such as Teradata, MySQL, SingleSore, Amazon Aurora MySQL, Amazon RDS
299
+ # MySQL, Oracle, and GCP_MYSQL, the `schema_name` is required, whereas the
300
+ # `database_name` attribute is not.
301
+ # Similarly, connectors such as ClickHouse require you to specify the
302
+ # `database_name` and the schema specification in such cases is optional.
303
+ # The API allows you to modify the calendar type, month offset value, start
304
+ # and end date, starting day of the week, and prefixes assigned to the year
305
+ # and quarter labels.
306
+ # #### Examples
307
+ # Update a custom calendar using an existing Table in ThoughtSpot:
308
+ # ```
309
+ # {
310
+ # "update_method": "FROM_EXISTING_TABLE",
311
+ # "table_reference": {
312
+ # "connection_identifier": "Connection1",
313
+ # "database_name": "db1",
314
+ # "table_name": "custom_calendar_2025",
315
+ # "schame_name": "schemaVar"
316
+ # }
317
+ # }
318
+ # ```
319
+ # Update a custom calendar with the attributes defined in the API request:
320
+ # ```
321
+ # {
322
+ # "update_method": "FROM_INPUT_PARAMS",
323
+ # "table_reference": {
324
+ # "connection_identifier": "Connection1",
325
+ # "database_name": "db1",
326
+ # "table_name": "custom_calendar_2025",
327
+ # "schame_name": "schemaVar"
328
+ # },
329
+ # "month_offset": "August",
330
+ # "start_day_of_week": "Monday",
331
+ # "start_date": "08/01/2025",
332
+ # "end_date": "07/31/2026"
333
+ # }
334
+ # ```
335
+ # #### Endpoint URL
336
+ # @param [String] calendar_identifier Required parameter: Unique Id or name
337
+ # of the calendar.
338
+ # @param [UpdateCalendarRequest] body Required parameter: TODO: type
339
+ # description here
340
+ # @return [ApiResponse] Complete http response with raw body and status code.
341
+ def update_calendar(calendar_identifier,
342
+ body)
343
+ @api_call
344
+ .request(new_request_builder(HttpMethodEnum::POST,
345
+ '/api/rest/2.0/calendars/{calendar_identifier}/update',
346
+ Server::DEFAULT)
347
+ .template_param(new_parameter(calendar_identifier, key: 'calendar_identifier')
348
+ .is_required(true)
349
+ .should_encode(true))
350
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
351
+ .body_param(new_parameter(body)
352
+ .is_required(true))
353
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
354
+ .auth(Single.new('bearerAuth')))
355
+ .response(new_response_handler
356
+ .is_response_void(true)
357
+ .is_api_response(true)
358
+ .local_error('400',
359
+ 'Invalid request.',
360
+ ErrorResponseException)
361
+ .local_error('401',
362
+ 'Unauthorized access.',
363
+ ErrorResponseException)
364
+ .local_error('403',
365
+ 'Forbidden access.',
366
+ ErrorResponseException)
367
+ .local_error('500',
368
+ 'Unexpected error',
369
+ ErrorResponseException))
370
+ .execute
371
+ end
372
+ end
373
+ end