hubspot-api-client 9.2.0 → 9.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (517) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +20 -22
  4. data/lib/hubspot-api-client.rb +38 -14
  5. data/lib/hubspot/version.rb +1 -1
  6. data/spec/cms/audit-logs/api/default_api_spec.rb +54 -0
  7. data/spec/cms/audit-logs/models/collection_response_public_audit_log_spec.rb +47 -0
  8. data/spec/cms/audit-logs/models/error_detail_spec.rb +65 -0
  9. data/spec/cms/audit-logs/models/error_spec.rb +77 -0
  10. data/spec/cms/audit-logs/models/next_page_spec.rb +47 -0
  11. data/spec/cms/audit-logs/models/paging_spec.rb +41 -0
  12. data/spec/cms/audit-logs/models/public_audit_log_spec.rb +85 -0
  13. data/spec/cms/blogs/authors/api/default_api_spec.rb +1 -1
  14. data/spec/cms/blogs/authors/models/batch_input_blog_author_spec.rb +41 -0
  15. data/spec/cms/blogs/authors/models/batch_input_json_node_spec.rb +41 -0
  16. data/spec/cms/blogs/authors/models/batch_input_string_spec.rb +41 -0
  17. data/spec/cms/blogs/authors/models/batch_response_blog_author_with_errors_spec.rb +87 -0
  18. data/spec/cms/blogs/authors/models/blog_author_spec.rb +107 -0
  19. data/spec/cms/blogs/authors/models/collection_response_with_total_blog_author_forward_paging_spec.rb +53 -0
  20. data/spec/cms/blogs/authors/models/error_detail_spec.rb +65 -0
  21. data/spec/cms/blogs/authors/models/error_spec.rb +77 -0
  22. data/spec/cms/blogs/authors/models/forward_paging_spec.rb +41 -0
  23. data/spec/cms/blogs/authors/models/next_page_spec.rb +47 -0
  24. data/spec/cms/blogs/authors/models/standard_error_spec.rb +83 -0
  25. data/spec/cms/blogs/blog-posts/api/default_api_spec.rb +171 -44
  26. data/spec/cms/blogs/blog-posts/models/angle_spec.rb +51 -0
  27. data/spec/cms/blogs/blog-posts/models/background_image_spec.rb +57 -0
  28. data/spec/cms/blogs/blog-posts/models/batch_input_blog_post_spec.rb +41 -0
  29. data/spec/cms/blogs/blog-posts/models/batch_input_json_node_spec.rb +41 -0
  30. data/spec/cms/blogs/blog-posts/models/batch_input_string_spec.rb +41 -0
  31. data/spec/cms/blogs/blog-posts/models/batch_response_blog_post_with_errors_spec.rb +87 -0
  32. data/spec/cms/blogs/blog-posts/models/blog_post_spec.rb +417 -0
  33. data/spec/cms/blogs/blog-posts/models/collection_response_with_total_blog_post_forward_paging_spec.rb +53 -0
  34. data/spec/cms/blogs/blog-posts/models/collection_response_with_total_version_blog_post_spec.rb +53 -0
  35. data/spec/cms/blogs/blog-posts/models/color_stop_spec.rb +41 -0
  36. data/spec/cms/blogs/blog-posts/models/content_clone_request_v_next_spec.rb +47 -0
  37. data/spec/cms/blogs/blog-posts/models/content_schedule_request_v_next_spec.rb +47 -0
  38. data/spec/cms/blogs/blog-posts/models/error_detail_spec.rb +65 -0
  39. data/spec/cms/blogs/blog-posts/models/error_spec.rb +77 -0
  40. data/spec/cms/blogs/blog-posts/models/forward_paging_spec.rb +41 -0
  41. data/spec/cms/blogs/blog-posts/models/gradient_spec.rb +53 -0
  42. data/spec/cms/blogs/blog-posts/models/layout_section_spec.rb +113 -0
  43. data/spec/cms/blogs/blog-posts/models/next_page_spec.rb +47 -0
  44. data/spec/cms/blogs/blog-posts/models/paging_spec.rb +47 -0
  45. data/spec/cms/blogs/blog-posts/models/previous_page_spec.rb +47 -0
  46. data/spec/cms/blogs/blog-posts/models/rgba_color_spec.rb +59 -0
  47. data/spec/cms/blogs/blog-posts/models/row_meta_data_spec.rb +47 -0
  48. data/spec/cms/blogs/blog-posts/models/side_or_corner_spec.rb +55 -0
  49. data/spec/cms/blogs/blog-posts/models/standard_error_spec.rb +83 -0
  50. data/spec/cms/blogs/blog-posts/models/styles_spec.rb +85 -0
  51. data/spec/cms/blogs/blog-posts/models/version_blog_post_spec.rb +59 -0
  52. data/spec/cms/blogs/blog-posts/models/version_user_spec.rb +53 -0
  53. data/spec/cms/blogs/tags/api/default_api_spec.rb +43 -43
  54. data/spec/cms/blogs/tags/models/batch_input_json_node_spec.rb +41 -0
  55. data/spec/cms/blogs/tags/models/batch_input_string_spec.rb +41 -0
  56. data/spec/cms/blogs/tags/models/batch_input_tag_spec.rb +41 -0
  57. data/spec/cms/blogs/tags/models/batch_response_tag_with_errors_spec.rb +87 -0
  58. data/spec/cms/blogs/tags/models/collection_response_with_total_tag_forward_paging_spec.rb +53 -0
  59. data/spec/cms/blogs/tags/models/error_detail_spec.rb +65 -0
  60. data/spec/cms/blogs/tags/models/error_spec.rb +77 -0
  61. data/spec/cms/blogs/tags/models/forward_paging_spec.rb +41 -0
  62. data/spec/cms/blogs/tags/models/next_page_spec.rb +47 -0
  63. data/spec/cms/blogs/tags/models/standard_error_spec.rb +83 -0
  64. data/spec/cms/blogs/tags/models/tag_spec.rb +65 -0
  65. data/spec/cms/domains/api/domains_api_spec.rb +71 -0
  66. data/spec/cms/domains/models/collection_response_with_total_domain_spec.rb +53 -0
  67. data/spec/cms/domains/models/domain_cdn_config_spec.rb +149 -0
  68. data/spec/cms/domains/models/domain_setup_info_spec.rb +47 -0
  69. data/spec/cms/domains/models/domain_spec.rb +403 -0
  70. data/spec/cms/domains/models/error_detail_spec.rb +65 -0
  71. data/spec/cms/domains/models/error_spec.rb +77 -0
  72. data/spec/cms/domains/models/next_page_spec.rb +47 -0
  73. data/spec/cms/domains/models/paging_spec.rb +41 -0
  74. data/spec/cms/hubdb/api/rows_api_spec.rb +160 -0
  75. data/spec/cms/hubdb/api/rows_batch_api_spec.rb +126 -0
  76. data/spec/cms/hubdb/api/tables_api_spec.rb +237 -0
  77. data/spec/cms/hubdb/models/batch_input_hub_db_table_row_v3_spec.rb +41 -0
  78. data/spec/cms/hubdb/models/batch_input_json_node_spec.rb +41 -0
  79. data/spec/cms/hubdb/models/batch_input_string_spec.rb +41 -0
  80. data/spec/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +87 -0
  81. data/spec/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +53 -0
  82. data/spec/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +53 -0
  83. data/spec/cms/hubdb/models/column_input_spec.rb +77 -0
  84. data/spec/cms/hubdb/models/column_spec.rb +117 -0
  85. data/spec/cms/hubdb/models/error_detail_spec.rb +65 -0
  86. data/spec/cms/hubdb/models/error_spec.rb +77 -0
  87. data/spec/cms/hubdb/models/foreign_id_spec.rb +53 -0
  88. data/spec/cms/hubdb/models/forward_paging_spec.rb +41 -0
  89. data/spec/cms/hubdb/models/hub_db_table_clone_request_spec.rb +53 -0
  90. data/spec/cms/hubdb/models/hub_db_table_row_v3_input_spec.rb +59 -0
  91. data/spec/cms/hubdb/models/hub_db_table_row_v3_spec.rb +71 -0
  92. data/spec/cms/hubdb/models/hub_db_table_v3_input_spec.rb +83 -0
  93. data/spec/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +59 -0
  94. data/spec/cms/hubdb/models/hub_db_table_v3_spec.rb +143 -0
  95. data/spec/cms/hubdb/models/import_result_spec.rb +59 -0
  96. data/spec/cms/hubdb/models/next_page_spec.rb +47 -0
  97. data/spec/cms/hubdb/models/option_spec.rb +59 -0
  98. data/spec/cms/hubdb/models/simple_user_spec.rb +59 -0
  99. data/spec/cms/hubdb/models/standard_error_spec.rb +83 -0
  100. data/spec/cms/performance/api/default_api_spec.rb +73 -0
  101. data/spec/cms/performance/models/error_detail_spec.rb +65 -0
  102. data/spec/cms/performance/models/error_spec.rb +77 -0
  103. data/spec/cms/performance/models/performance_view_spec.rb +167 -0
  104. data/spec/cms/performance/models/public_performance_response_spec.rb +85 -0
  105. data/spec/cms/site-search/api/default_api_spec.rb +78 -0
  106. data/spec/cms/site-search/models/content_search_result_spec.rb +145 -0
  107. data/spec/cms/site-search/models/error_detail_spec.rb +65 -0
  108. data/spec/cms/site-search/models/error_spec.rb +77 -0
  109. data/spec/cms/site-search/models/indexed_data_spec.rb +57 -0
  110. data/spec/cms/site-search/models/public_search_results_spec.rb +71 -0
  111. data/spec/cms/site-search/models/search_hit_field_spec.rb +59 -0
  112. data/spec/cms/url-redirects/api/redirects_api_spec.rb +107 -0
  113. data/spec/cms/url-redirects/models/collection_response_with_total_url_mapping_spec.rb +53 -0
  114. data/spec/cms/url-redirects/models/error_detail_spec.rb +65 -0
  115. data/spec/cms/url-redirects/models/error_spec.rb +77 -0
  116. data/spec/cms/url-redirects/models/next_page_spec.rb +47 -0
  117. data/spec/cms/url-redirects/models/paging_spec.rb +41 -0
  118. data/spec/cms/url-redirects/models/url_mapping_create_request_body_spec.rb +95 -0
  119. data/spec/cms/url-redirects/models/url_mapping_spec.rb +189 -0
  120. data/spec/crm/associations/api/batch_api_spec.rb +77 -0
  121. data/spec/crm/associations/api/types_api_spec.rb +48 -0
  122. data/spec/crm/associations/models/associated_id_spec.rb +47 -0
  123. data/spec/crm/associations/models/batch_input_public_association_spec.rb +41 -0
  124. data/spec/crm/associations/models/batch_input_public_object_id_spec.rb +41 -0
  125. data/spec/crm/associations/models/batch_response_public_association_multi_spec.rb +81 -0
  126. data/spec/crm/associations/models/batch_response_public_association_spec.rb +81 -0
  127. data/spec/crm/associations/models/collection_response_public_association_definiton_spec.rb +47 -0
  128. data/spec/crm/associations/models/error_category_spec.rb +51 -0
  129. data/spec/crm/associations/models/error_detail_spec.rb +65 -0
  130. data/spec/crm/associations/models/error_spec.rb +77 -0
  131. data/spec/crm/associations/models/next_page_spec.rb +47 -0
  132. data/spec/crm/associations/models/paging_spec.rb +41 -0
  133. data/spec/crm/associations/models/public_association_definiton_spec.rb +47 -0
  134. data/spec/crm/associations/models/public_association_multi_spec.rb +47 -0
  135. data/spec/crm/associations/models/public_association_spec.rb +53 -0
  136. data/spec/crm/associations/models/public_object_id_spec.rb +41 -0
  137. data/spec/crm/associations/models/standard_error_spec.rb +83 -0
  138. data/spec/crm/companies/api/associations_api_spec.rb +79 -0
  139. data/spec/crm/companies/api/basic_api_spec.rb +106 -0
  140. data/spec/crm/companies/api/batch_api_spec.rb +84 -0
  141. data/spec/crm/companies/api/search_api_spec.rb +47 -0
  142. data/spec/crm/companies/models/associated_id_spec.rb +47 -0
  143. data/spec/crm/companies/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  144. data/spec/crm/companies/models/batch_input_simple_public_object_id_spec.rb +41 -0
  145. data/spec/crm/companies/models/batch_input_simple_public_object_input_spec.rb +41 -0
  146. data/spec/crm/companies/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  147. data/spec/crm/companies/models/batch_response_simple_public_object_spec.rb +75 -0
  148. data/spec/crm/companies/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  149. data/spec/crm/companies/models/collection_response_associated_id_spec.rb +47 -0
  150. data/spec/crm/companies/models/collection_response_simple_public_object_spec.rb +47 -0
  151. data/spec/crm/companies/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  152. data/spec/crm/companies/models/error_category_spec.rb +51 -0
  153. data/spec/crm/companies/models/error_detail_spec.rb +65 -0
  154. data/spec/crm/companies/models/error_spec.rb +77 -0
  155. data/spec/crm/companies/models/filter_group_spec.rb +41 -0
  156. data/spec/crm/companies/models/filter_spec.rb +57 -0
  157. data/spec/crm/companies/models/next_page_spec.rb +47 -0
  158. data/spec/crm/companies/models/paging_spec.rb +47 -0
  159. data/spec/crm/companies/models/previous_page_spec.rb +47 -0
  160. data/spec/crm/companies/models/public_object_search_request_spec.rb +71 -0
  161. data/spec/crm/companies/models/simple_public_object_batch_input_spec.rb +47 -0
  162. data/spec/crm/companies/models/simple_public_object_id_spec.rb +41 -0
  163. data/spec/crm/companies/models/simple_public_object_input_spec.rb +41 -0
  164. data/spec/crm/companies/models/simple_public_object_spec.rb +77 -0
  165. data/spec/crm/companies/models/standard_error_spec.rb +83 -0
  166. data/spec/crm/contacts/api/associations_api_spec.rb +79 -0
  167. data/spec/crm/contacts/api/basic_api_spec.rb +106 -0
  168. data/spec/crm/contacts/api/batch_api_spec.rb +84 -0
  169. data/spec/crm/contacts/api/search_api_spec.rb +47 -0
  170. data/spec/crm/contacts/models/associated_id_spec.rb +47 -0
  171. data/spec/crm/contacts/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  172. data/spec/crm/contacts/models/batch_input_simple_public_object_id_spec.rb +41 -0
  173. data/spec/crm/contacts/models/batch_input_simple_public_object_input_spec.rb +41 -0
  174. data/spec/crm/contacts/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  175. data/spec/crm/contacts/models/batch_response_simple_public_object_spec.rb +75 -0
  176. data/spec/crm/contacts/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  177. data/spec/crm/contacts/models/collection_response_associated_id_spec.rb +47 -0
  178. data/spec/crm/contacts/models/collection_response_simple_public_object_spec.rb +47 -0
  179. data/spec/crm/contacts/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  180. data/spec/crm/contacts/models/error_category_spec.rb +51 -0
  181. data/spec/crm/contacts/models/error_detail_spec.rb +65 -0
  182. data/spec/crm/contacts/models/error_spec.rb +77 -0
  183. data/spec/crm/contacts/models/filter_group_spec.rb +41 -0
  184. data/spec/crm/contacts/models/filter_spec.rb +57 -0
  185. data/spec/crm/contacts/models/next_page_spec.rb +47 -0
  186. data/spec/crm/contacts/models/paging_spec.rb +47 -0
  187. data/spec/crm/contacts/models/previous_page_spec.rb +47 -0
  188. data/spec/crm/contacts/models/public_object_search_request_spec.rb +71 -0
  189. data/spec/crm/contacts/models/simple_public_object_batch_input_spec.rb +47 -0
  190. data/spec/crm/contacts/models/simple_public_object_id_spec.rb +41 -0
  191. data/spec/crm/contacts/models/simple_public_object_input_spec.rb +41 -0
  192. data/spec/crm/contacts/models/simple_public_object_spec.rb +77 -0
  193. data/spec/crm/contacts/models/standard_error_spec.rb +83 -0
  194. data/spec/crm/deals/api/associations_api_spec.rb +79 -0
  195. data/spec/crm/deals/api/basic_api_spec.rb +106 -0
  196. data/spec/crm/deals/api/batch_api_spec.rb +84 -0
  197. data/spec/crm/deals/api/search_api_spec.rb +47 -0
  198. data/spec/crm/deals/models/associated_id_spec.rb +47 -0
  199. data/spec/crm/deals/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  200. data/spec/crm/deals/models/batch_input_simple_public_object_id_spec.rb +41 -0
  201. data/spec/crm/deals/models/batch_input_simple_public_object_input_spec.rb +41 -0
  202. data/spec/crm/deals/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  203. data/spec/crm/deals/models/batch_response_simple_public_object_spec.rb +75 -0
  204. data/spec/crm/deals/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  205. data/spec/crm/deals/models/collection_response_associated_id_spec.rb +47 -0
  206. data/spec/crm/deals/models/collection_response_simple_public_object_spec.rb +47 -0
  207. data/spec/crm/deals/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  208. data/spec/crm/deals/models/error_category_spec.rb +51 -0
  209. data/spec/crm/deals/models/error_detail_spec.rb +65 -0
  210. data/spec/crm/deals/models/error_spec.rb +77 -0
  211. data/spec/crm/deals/models/filter_group_spec.rb +41 -0
  212. data/spec/crm/deals/models/filter_spec.rb +57 -0
  213. data/spec/crm/deals/models/next_page_spec.rb +47 -0
  214. data/spec/crm/deals/models/paging_spec.rb +47 -0
  215. data/spec/crm/deals/models/previous_page_spec.rb +47 -0
  216. data/spec/crm/deals/models/public_object_search_request_spec.rb +71 -0
  217. data/spec/crm/deals/models/simple_public_object_batch_input_spec.rb +47 -0
  218. data/spec/crm/deals/models/simple_public_object_id_spec.rb +41 -0
  219. data/spec/crm/deals/models/simple_public_object_input_spec.rb +41 -0
  220. data/spec/crm/deals/models/simple_public_object_spec.rb +77 -0
  221. data/spec/crm/deals/models/standard_error_spec.rb +83 -0
  222. data/spec/crm/extensions/cards/api/cards_api_spec.rb +100 -0
  223. data/spec/crm/extensions/cards/api/sample_response_api_spec.rb +46 -0
  224. data/spec/crm/extensions/cards/models/action_confirmation_body_spec.rb +53 -0
  225. data/spec/crm/extensions/cards/models/action_hook_action_body_spec.rb +79 -0
  226. data/spec/crm/extensions/cards/models/card_actions_spec.rb +41 -0
  227. data/spec/crm/extensions/cards/models/card_create_request_spec.rb +59 -0
  228. data/spec/crm/extensions/cards/models/card_display_body_spec.rb +41 -0
  229. data/spec/crm/extensions/cards/models/card_display_property_spec.rb +63 -0
  230. data/spec/crm/extensions/cards/models/card_fetch_body_patch_spec.rb +47 -0
  231. data/spec/crm/extensions/cards/models/card_fetch_body_spec.rb +47 -0
  232. data/spec/crm/extensions/cards/models/card_list_response_spec.rb +41 -0
  233. data/spec/crm/extensions/cards/models/card_object_type_body_spec.rb +51 -0
  234. data/spec/crm/extensions/cards/models/card_patch_request_spec.rb +59 -0
  235. data/spec/crm/extensions/cards/models/card_response_spec.rb +77 -0
  236. data/spec/crm/extensions/cards/models/display_option_spec.rb +57 -0
  237. data/spec/crm/extensions/cards/models/error_detail_spec.rb +65 -0
  238. data/spec/crm/extensions/cards/models/error_spec.rb +77 -0
  239. data/spec/crm/extensions/cards/models/i_frame_action_body_spec.rb +75 -0
  240. data/spec/crm/extensions/cards/models/integrator_card_payload_response_spec.rb +75 -0
  241. data/spec/crm/extensions/cards/models/integrator_object_result_spec.rb +65 -0
  242. data/spec/crm/extensions/cards/models/object_token_spec.rb +63 -0
  243. data/spec/crm/extensions/cards/models/top_level_actions_spec.rb +53 -0
  244. data/spec/crm/imports/api/core_api_spec.rb +86 -0
  245. data/spec/crm/imports/models/action_response_spec.rb +69 -0
  246. data/spec/crm/imports/models/collection_response_public_import_response_spec.rb +47 -0
  247. data/spec/crm/imports/models/error_detail_spec.rb +65 -0
  248. data/spec/crm/imports/models/error_spec.rb +77 -0
  249. data/spec/crm/imports/models/next_page_spec.rb +47 -0
  250. data/spec/crm/imports/models/paging_spec.rb +47 -0
  251. data/spec/crm/imports/models/previous_page_spec.rb +47 -0
  252. data/spec/crm/imports/models/public_import_metadata_spec.rb +53 -0
  253. data/spec/crm/imports/models/public_import_response_spec.rb +87 -0
  254. data/spec/crm/imports/models/public_object_list_record_spec.rb +47 -0
  255. data/spec/crm/line_items/api/associations_api_spec.rb +79 -0
  256. data/spec/crm/line_items/api/basic_api_spec.rb +106 -0
  257. data/spec/crm/line_items/api/batch_api_spec.rb +84 -0
  258. data/spec/crm/line_items/api/search_api_spec.rb +47 -0
  259. data/spec/crm/line_items/models/associated_id_spec.rb +47 -0
  260. data/spec/crm/line_items/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  261. data/spec/crm/line_items/models/batch_input_simple_public_object_id_spec.rb +41 -0
  262. data/spec/crm/line_items/models/batch_input_simple_public_object_input_spec.rb +41 -0
  263. data/spec/crm/line_items/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  264. data/spec/crm/line_items/models/batch_response_simple_public_object_spec.rb +75 -0
  265. data/spec/crm/line_items/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  266. data/spec/crm/line_items/models/collection_response_associated_id_spec.rb +47 -0
  267. data/spec/crm/line_items/models/collection_response_simple_public_object_spec.rb +47 -0
  268. data/spec/crm/line_items/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  269. data/spec/crm/line_items/models/error_category_spec.rb +51 -0
  270. data/spec/crm/line_items/models/error_detail_spec.rb +65 -0
  271. data/spec/crm/line_items/models/error_spec.rb +77 -0
  272. data/spec/crm/line_items/models/filter_group_spec.rb +41 -0
  273. data/spec/crm/line_items/models/filter_spec.rb +57 -0
  274. data/spec/crm/line_items/models/next_page_spec.rb +47 -0
  275. data/spec/crm/line_items/models/paging_spec.rb +47 -0
  276. data/spec/crm/line_items/models/previous_page_spec.rb +47 -0
  277. data/spec/crm/line_items/models/public_object_search_request_spec.rb +71 -0
  278. data/spec/crm/line_items/models/simple_public_object_batch_input_spec.rb +47 -0
  279. data/spec/crm/line_items/models/simple_public_object_id_spec.rb +41 -0
  280. data/spec/crm/line_items/models/simple_public_object_input_spec.rb +41 -0
  281. data/spec/crm/line_items/models/simple_public_object_spec.rb +77 -0
  282. data/spec/crm/line_items/models/standard_error_spec.rb +83 -0
  283. data/spec/crm/objects/api/associations_api_spec.rb +82 -0
  284. data/spec/crm/objects/api/basic_api_spec.rb +111 -0
  285. data/spec/crm/objects/api/batch_api_spec.rb +88 -0
  286. data/spec/crm/objects/api/search_api_spec.rb +48 -0
  287. data/spec/crm/objects/models/associated_id_spec.rb +47 -0
  288. data/spec/crm/objects/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  289. data/spec/crm/objects/models/batch_input_simple_public_object_id_spec.rb +41 -0
  290. data/spec/crm/objects/models/batch_input_simple_public_object_input_spec.rb +41 -0
  291. data/spec/crm/objects/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  292. data/spec/crm/objects/models/batch_response_simple_public_object_spec.rb +75 -0
  293. data/spec/crm/objects/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  294. data/spec/crm/objects/models/collection_response_associated_id_spec.rb +47 -0
  295. data/spec/crm/objects/models/collection_response_simple_public_object_spec.rb +47 -0
  296. data/spec/crm/objects/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  297. data/spec/crm/objects/models/error_category_spec.rb +51 -0
  298. data/spec/crm/objects/models/error_detail_spec.rb +65 -0
  299. data/spec/crm/objects/models/error_spec.rb +77 -0
  300. data/spec/crm/objects/models/filter_group_spec.rb +41 -0
  301. data/spec/crm/objects/models/filter_spec.rb +57 -0
  302. data/spec/crm/objects/models/next_page_spec.rb +47 -0
  303. data/spec/crm/objects/models/paging_spec.rb +47 -0
  304. data/spec/crm/objects/models/previous_page_spec.rb +47 -0
  305. data/spec/crm/objects/models/public_object_search_request_spec.rb +71 -0
  306. data/spec/crm/objects/models/simple_public_object_batch_input_spec.rb +47 -0
  307. data/spec/crm/objects/models/simple_public_object_id_spec.rb +41 -0
  308. data/spec/crm/objects/models/simple_public_object_input_spec.rb +41 -0
  309. data/spec/crm/objects/models/simple_public_object_spec.rb +77 -0
  310. data/spec/crm/objects/models/standard_error_spec.rb +83 -0
  311. data/spec/{owners → crm/owners}/api/default_api_spec.rb +1 -1
  312. data/spec/{owners → crm/owners}/models/collection_response_public_owner_spec.rb +1 -1
  313. data/spec/{owners → crm/owners}/models/error_detail_spec.rb +13 -1
  314. data/spec/{owners → crm/owners}/models/error_spec.rb +7 -1
  315. data/spec/{owners → crm/owners}/models/next_page_spec.rb +1 -1
  316. data/spec/{owners → crm/owners}/models/paging_spec.rb +1 -1
  317. data/spec/{owners → crm/owners}/models/public_owner_spec.rb +1 -1
  318. data/spec/{owners → crm/owners}/models/public_team_spec.rb +1 -1
  319. data/spec/{pipelines → crm/pipelines}/api/pipeline_stages_api_spec.rb +15 -15
  320. data/spec/{pipelines → crm/pipelines}/api/pipelines_api_spec.rb +15 -15
  321. data/spec/{pipelines → crm/pipelines}/models/collection_response_pipeline_spec.rb +1 -1
  322. data/spec/{pipelines → crm/pipelines}/models/collection_response_pipeline_stage_spec.rb +1 -1
  323. data/spec/{pipelines → crm/pipelines}/models/error_detail_spec.rb +13 -1
  324. data/spec/{pipelines → crm/pipelines}/models/error_spec.rb +7 -1
  325. data/spec/{pipelines → crm/pipelines}/models/next_page_spec.rb +1 -1
  326. data/spec/{pipelines → crm/pipelines}/models/paging_spec.rb +1 -1
  327. data/spec/{pipelines → crm/pipelines}/models/pipeline_input_spec.rb +1 -1
  328. data/spec/{pipelines → crm/pipelines}/models/pipeline_patch_input_spec.rb +1 -1
  329. data/spec/{pipelines → crm/pipelines}/models/pipeline_spec.rb +1 -1
  330. data/spec/{pipelines → crm/pipelines}/models/pipeline_stage_input_spec.rb +1 -1
  331. data/spec/{pipelines → crm/pipelines}/models/pipeline_stage_patch_input_spec.rb +1 -1
  332. data/spec/{pipelines → crm/pipelines}/models/pipeline_stage_spec.rb +1 -1
  333. data/spec/crm/products/api/associations_api_spec.rb +79 -0
  334. data/spec/crm/products/api/basic_api_spec.rb +106 -0
  335. data/spec/crm/products/api/batch_api_spec.rb +84 -0
  336. data/spec/crm/products/api/search_api_spec.rb +47 -0
  337. data/spec/crm/products/models/associated_id_spec.rb +47 -0
  338. data/spec/crm/products/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  339. data/spec/crm/products/models/batch_input_simple_public_object_id_spec.rb +41 -0
  340. data/spec/crm/products/models/batch_input_simple_public_object_input_spec.rb +41 -0
  341. data/spec/crm/products/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  342. data/spec/crm/products/models/batch_response_simple_public_object_spec.rb +75 -0
  343. data/spec/crm/products/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  344. data/spec/crm/products/models/collection_response_associated_id_spec.rb +47 -0
  345. data/spec/crm/products/models/collection_response_simple_public_object_spec.rb +47 -0
  346. data/spec/crm/products/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  347. data/spec/crm/products/models/error_category_spec.rb +51 -0
  348. data/spec/crm/products/models/error_detail_spec.rb +65 -0
  349. data/spec/crm/products/models/error_spec.rb +77 -0
  350. data/spec/crm/products/models/filter_group_spec.rb +41 -0
  351. data/spec/crm/products/models/filter_spec.rb +57 -0
  352. data/spec/crm/products/models/next_page_spec.rb +47 -0
  353. data/spec/crm/products/models/paging_spec.rb +47 -0
  354. data/spec/crm/products/models/previous_page_spec.rb +47 -0
  355. data/spec/crm/products/models/public_object_search_request_spec.rb +71 -0
  356. data/spec/crm/products/models/simple_public_object_batch_input_spec.rb +47 -0
  357. data/spec/crm/products/models/simple_public_object_id_spec.rb +41 -0
  358. data/spec/crm/products/models/simple_public_object_input_spec.rb +41 -0
  359. data/spec/crm/products/models/simple_public_object_spec.rb +77 -0
  360. data/spec/crm/products/models/standard_error_spec.rb +83 -0
  361. data/spec/{properties → crm/properties}/api/batch_api_spec.rb +10 -10
  362. data/spec/{properties → crm/properties}/api/core_api_spec.rb +23 -23
  363. data/spec/{properties → crm/properties}/api/groups_api_spec.rb +23 -23
  364. data/spec/{properties → crm/properties}/models/batch_input_property_create_spec.rb +1 -1
  365. data/spec/{properties → crm/properties}/models/batch_input_property_name_spec.rb +1 -1
  366. data/spec/{properties → crm/properties}/models/batch_read_input_property_name_spec.rb +3 -3
  367. data/spec/{properties → crm/properties}/models/batch_response_property_spec.rb +15 -9
  368. data/spec/{properties → crm/properties}/models/collection_response_property_group_spec.rb +1 -1
  369. data/spec/{properties → crm/properties}/models/collection_response_property_spec.rb +1 -1
  370. data/spec/crm/properties/models/error_category_spec.rb +51 -0
  371. data/spec/{properties → crm/properties}/models/error_detail_spec.rb +4 -4
  372. data/spec/{properties → crm/properties}/models/error_spec.rb +7 -1
  373. data/spec/{properties → crm/properties}/models/next_page_spec.rb +1 -1
  374. data/spec/{properties → crm/properties}/models/option_input_spec.rb +1 -1
  375. data/spec/{properties → crm/properties}/models/option_spec.rb +1 -1
  376. data/spec/{properties → crm/properties}/models/paging_spec.rb +1 -1
  377. data/spec/{properties → crm/properties}/models/property_create_spec.rb +7 -1
  378. data/spec/{properties → crm/properties}/models/property_group_create_spec.rb +1 -1
  379. data/spec/{properties → crm/properties}/models/property_group_spec.rb +1 -1
  380. data/spec/{properties → crm/properties}/models/property_group_update_spec.rb +1 -1
  381. data/spec/{properties → crm/properties}/models/property_modification_metadata_spec.rb +1 -1
  382. data/spec/{properties → crm/properties}/models/property_name_spec.rb +1 -1
  383. data/spec/{properties → crm/properties}/models/property_spec.rb +1 -5
  384. data/spec/{properties → crm/properties}/models/property_update_spec.rb +7 -1
  385. data/spec/crm/properties/models/standard_error_spec.rb +83 -0
  386. data/spec/crm/quotes/api/associations_api_spec.rb +50 -0
  387. data/spec/crm/quotes/api/basic_api_spec.rb +69 -0
  388. data/spec/crm/quotes/api/batch_api_spec.rb +48 -0
  389. data/spec/crm/quotes/api/search_api_spec.rb +47 -0
  390. data/spec/crm/quotes/models/associated_id_spec.rb +47 -0
  391. data/spec/crm/quotes/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  392. data/spec/crm/quotes/models/batch_input_simple_public_object_id_spec.rb +41 -0
  393. data/spec/crm/quotes/models/batch_input_simple_public_object_input_spec.rb +41 -0
  394. data/spec/crm/quotes/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  395. data/spec/crm/quotes/models/batch_response_simple_public_object_spec.rb +75 -0
  396. data/spec/crm/quotes/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  397. data/spec/crm/quotes/models/collection_response_associated_id_spec.rb +47 -0
  398. data/spec/crm/quotes/models/collection_response_simple_public_object_spec.rb +47 -0
  399. data/spec/crm/quotes/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  400. data/spec/crm/quotes/models/error_category_spec.rb +51 -0
  401. data/spec/crm/quotes/models/error_detail_spec.rb +65 -0
  402. data/spec/crm/quotes/models/error_spec.rb +77 -0
  403. data/spec/crm/quotes/models/filter_group_spec.rb +41 -0
  404. data/spec/crm/quotes/models/filter_spec.rb +57 -0
  405. data/spec/crm/quotes/models/next_page_spec.rb +47 -0
  406. data/spec/crm/quotes/models/paging_spec.rb +47 -0
  407. data/spec/crm/quotes/models/previous_page_spec.rb +47 -0
  408. data/spec/crm/quotes/models/public_object_search_request_spec.rb +71 -0
  409. data/spec/crm/quotes/models/simple_public_object_batch_input_spec.rb +47 -0
  410. data/spec/crm/quotes/models/simple_public_object_id_spec.rb +41 -0
  411. data/spec/crm/quotes/models/simple_public_object_input_spec.rb +41 -0
  412. data/spec/crm/quotes/models/simple_public_object_spec.rb +77 -0
  413. data/spec/crm/quotes/models/standard_error_spec.rb +83 -0
  414. data/spec/crm/schemas/api/core_api_spec.rb +121 -0
  415. data/spec/crm/schemas/api/default_api_spec.rb +45 -0
  416. data/spec/crm/schemas/models/association_definition_egg_spec.rb +73 -0
  417. data/spec/crm/schemas/models/association_definition_spec.rb +91 -0
  418. data/spec/crm/schemas/models/collection_response_object_schema_spec.rb +47 -0
  419. data/spec/crm/schemas/models/error_detail_spec.rb +65 -0
  420. data/spec/crm/schemas/models/error_spec.rb +77 -0
  421. data/spec/crm/schemas/models/next_page_spec.rb +47 -0
  422. data/spec/crm/schemas/models/object_schema_egg_spec.rb +83 -0
  423. data/spec/crm/schemas/models/object_schema_spec.rb +113 -0
  424. data/spec/crm/schemas/models/object_type_definition_labels_spec.rb +47 -0
  425. data/spec/crm/schemas/models/object_type_definition_patch_spec.rb +71 -0
  426. data/spec/crm/schemas/models/object_type_definition_spec.rb +107 -0
  427. data/spec/crm/schemas/models/object_type_property_create_spec.rb +99 -0
  428. data/spec/crm/schemas/models/option_input_spec.rb +65 -0
  429. data/spec/crm/schemas/models/option_spec.rb +65 -0
  430. data/spec/crm/schemas/models/paging_spec.rb +47 -0
  431. data/spec/crm/schemas/models/previous_page_spec.rb +47 -0
  432. data/spec/crm/schemas/models/property_modification_metadata_spec.rb +59 -0
  433. data/spec/crm/schemas/models/property_spec.rb +173 -0
  434. data/spec/crm/tickets/api/associations_api_spec.rb +79 -0
  435. data/spec/crm/tickets/api/basic_api_spec.rb +106 -0
  436. data/spec/crm/tickets/api/batch_api_spec.rb +84 -0
  437. data/spec/crm/tickets/api/search_api_spec.rb +47 -0
  438. data/spec/crm/tickets/models/associated_id_spec.rb +47 -0
  439. data/spec/crm/tickets/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  440. data/spec/crm/tickets/models/batch_input_simple_public_object_id_spec.rb +41 -0
  441. data/spec/crm/tickets/models/batch_input_simple_public_object_input_spec.rb +41 -0
  442. data/spec/crm/tickets/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  443. data/spec/crm/tickets/models/batch_response_simple_public_object_spec.rb +75 -0
  444. data/spec/crm/tickets/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  445. data/spec/crm/tickets/models/collection_response_associated_id_spec.rb +47 -0
  446. data/spec/crm/tickets/models/collection_response_simple_public_object_spec.rb +47 -0
  447. data/spec/crm/tickets/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  448. data/spec/crm/tickets/models/error_category_spec.rb +51 -0
  449. data/spec/crm/tickets/models/error_detail_spec.rb +65 -0
  450. data/spec/crm/tickets/models/error_spec.rb +77 -0
  451. data/spec/crm/tickets/models/filter_group_spec.rb +41 -0
  452. data/spec/crm/tickets/models/filter_spec.rb +57 -0
  453. data/spec/crm/tickets/models/next_page_spec.rb +47 -0
  454. data/spec/crm/tickets/models/paging_spec.rb +47 -0
  455. data/spec/crm/tickets/models/previous_page_spec.rb +47 -0
  456. data/spec/crm/tickets/models/public_object_search_request_spec.rb +71 -0
  457. data/spec/crm/tickets/models/simple_public_object_batch_input_spec.rb +47 -0
  458. data/spec/crm/tickets/models/simple_public_object_id_spec.rb +41 -0
  459. data/spec/crm/tickets/models/simple_public_object_input_spec.rb +41 -0
  460. data/spec/crm/tickets/models/simple_public_object_spec.rb +77 -0
  461. data/spec/crm/tickets/models/standard_error_spec.rb +83 -0
  462. data/spec/crm/timeline/api/events_api_spec.rb +99 -0
  463. data/spec/crm/timeline/api/templates_api_spec.rb +100 -0
  464. data/spec/crm/timeline/api/tokens_api_spec.rb +78 -0
  465. data/spec/crm/timeline/models/batch_input_timeline_event_spec.rb +41 -0
  466. data/spec/crm/timeline/models/batch_response_timeline_event_response_spec.rb +75 -0
  467. data/spec/crm/timeline/models/batch_response_timeline_event_response_with_errors_spec.rb +87 -0
  468. data/spec/crm/timeline/models/collection_response_timeline_event_template_spec.rb +47 -0
  469. data/spec/crm/timeline/models/error_category_spec.rb +51 -0
  470. data/spec/crm/timeline/models/error_detail_spec.rb +65 -0
  471. data/spec/crm/timeline/models/error_spec.rb +77 -0
  472. data/spec/crm/timeline/models/event_detail_spec.rb +41 -0
  473. data/spec/crm/timeline/models/next_page_spec.rb +47 -0
  474. data/spec/crm/timeline/models/paging_spec.rb +47 -0
  475. data/spec/crm/timeline/models/previous_page_spec.rb +47 -0
  476. data/spec/crm/timeline/models/standard_error_spec.rb +83 -0
  477. data/spec/crm/timeline/models/timeline_event_i_frame_spec.rb +65 -0
  478. data/spec/crm/timeline/models/timeline_event_response_spec.rb +107 -0
  479. data/spec/crm/timeline/models/timeline_event_spec.rb +95 -0
  480. data/spec/crm/timeline/models/timeline_event_template_create_request_spec.rb +65 -0
  481. data/spec/crm/timeline/models/timeline_event_template_spec.rb +83 -0
  482. data/spec/crm/timeline/models/timeline_event_template_token_option_spec.rb +47 -0
  483. data/spec/crm/timeline/models/timeline_event_template_token_spec.rb +81 -0
  484. data/spec/crm/timeline/models/timeline_event_template_token_update_request_spec.rb +53 -0
  485. data/spec/crm/timeline/models/timeline_event_template_update_request_spec.rb +65 -0
  486. data/spec/oauth/api/default_api_spec.rb +37 -8
  487. data/spec/oauth/models/access_token_info_response_spec.rb +8 -2
  488. data/spec/oauth/models/error_detail_spec.rb +14 -2
  489. data/spec/oauth/models/error_spec.rb +8 -2
  490. data/spec/oauth/models/refresh_token_info_response_spec.rb +2 -2
  491. data/spec/oauth/models/token_response_if_spec.rb +53 -0
  492. data/spec/webhooks/api/settings_api_spec.rb +72 -0
  493. data/spec/webhooks/api/subscriptions_api_spec.rb +113 -0
  494. data/spec/webhooks/models/batch_input_subscription_batch_update_request_spec.rb +41 -0
  495. data/spec/webhooks/models/batch_response_subscription_response_spec.rb +75 -0
  496. data/spec/webhooks/models/batch_response_subscription_response_with_errors_spec.rb +87 -0
  497. data/spec/webhooks/models/error_category_spec.rb +51 -0
  498. data/spec/webhooks/models/error_detail_spec.rb +65 -0
  499. data/spec/webhooks/models/error_spec.rb +77 -0
  500. data/spec/webhooks/models/settings_change_request_spec.rb +47 -0
  501. data/spec/webhooks/models/settings_response_spec.rb +59 -0
  502. data/spec/webhooks/models/standard_error_spec.rb +83 -0
  503. data/spec/webhooks/models/subscription_batch_update_request_spec.rb +47 -0
  504. data/spec/webhooks/models/subscription_create_request_spec.rb +57 -0
  505. data/spec/webhooks/models/subscription_list_response_spec.rb +41 -0
  506. data/spec/webhooks/models/subscription_patch_request_spec.rb +41 -0
  507. data/spec/webhooks/models/subscription_response_spec.rb +75 -0
  508. data/spec/webhooks/models/throttling_settings_spec.rb +51 -0
  509. metadata +992 -108
  510. data/spec/oauth/api_client_spec.rb +0 -226
  511. data/spec/oauth/configuration_spec.rb +0 -42
  512. data/spec/owners/api_client_spec.rb +0 -226
  513. data/spec/owners/configuration_spec.rb +0 -42
  514. data/spec/pipelines/api_client_spec.rb +0 -226
  515. data/spec/pipelines/configuration_spec.rb +0 -42
  516. data/spec/properties/api_client_spec.rb +0 -226
  517. data/spec/properties/configuration_spec.rb +0 -42
@@ -0,0 +1,237 @@
1
+ =begin
2
+ #HubDB endpoints
3
+
4
+ #HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `live` versions and you can publish and unpublish the live version. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, pushed to live version, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the live version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Hubspot::Cms::Hubdb::TablesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'TablesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Hubspot::Cms::Hubdb::TablesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of TablesApi' do
30
+ it 'should create an instance of TablesApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::Cms::Hubdb::TablesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for archive_table
36
+ # Archive a table
37
+ # Archive (soft delete) an existing HubDB table. This archives both the live and draft versions.
38
+ # @param table_id_or_name The ID or name of the table to archive.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [nil]
41
+ describe 'archive_table test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for clone_draft_table
48
+ # Clone a table
49
+ # Clone an existing HubDB table. The `newName` and `newLabel` of the new table can be sent as JSON in the `body` parameter. This will create the cloned table as a `draft`.
50
+ # @param table_id_or_name The ID or name of the table to clone.
51
+ # @param hub_db_table_clone_request JSON object with the properties newName and newLabel. You can set copyRows to false to clone the table with copying rows and default is true.
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [HubDbTableV3]
54
+ describe 'clone_draft_table test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
+ end
58
+ end
59
+
60
+ # unit tests for create_table
61
+ # Create a new table
62
+ # Creates a new draft HubDB table given a JSON schema. The table name and label should be unique for each account.
63
+ # @param hub_db_table_v3_input The JSON schema for the table being created.
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [HubDbTableV3]
66
+ describe 'create_table test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ # unit tests for export_draft_table
73
+ # Export a draft table
74
+ # Exports the `draft` version of a table to CSV / EXCEL format.
75
+ # @param table_id_or_name The ID or name of the table to export.
76
+ # @param [Hash] opts the optional parameters
77
+ # @option opts [String] :format The file format to export. Possible values include `CSV`, `XLSX`, and `XLS`.
78
+ # @return [File]
79
+ describe 'export_draft_table test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ # unit tests for export_table
86
+ # Export a published version of a table
87
+ # Exports the `live` version of a table to CSV / EXCEL format.
88
+ # @param table_id_or_name The ID or name of the table to export.
89
+ # @param [Hash] opts the optional parameters
90
+ # @option opts [String] :format The file format to export. Possible values include `CSV`, `XLSX`, and `XLS`.
91
+ # @return [File]
92
+ describe 'export_table test' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
+ # unit tests for get_all_draft_tables
99
+ # Return all draft tables
100
+ # Returns the details for each draft table defined in the specified account, including column definitions.
101
+ # @param [Hash] opts the optional parameters
102
+ # @option opts [DateTime] :updated_after Only return tables last updated after the specified time.
103
+ # @option opts [DateTime] :updated_before Only return tables last updated before the specified time.
104
+ # @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are &#x60;name&#x60;, &#x60;createdAt&#x60;, &#x60;updatedAt&#x60;, &#x60;createdBy&#x60;, &#x60;updatedBy&#x60;. &#x60;createdAt&#x60; will be used by default.
105
+ # @option opts [DateTime] :created_at Only return tables created at exactly the specified time.
106
+ # @option opts [DateTime] :created_after Only return tables created after the specified time.
107
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
108
+ # @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to &#x60;false&#x60;.
109
+ # @option opts [DateTime] :created_before Only return tables created before the specified time.
110
+ # @option opts [DateTime] :updated_at Only return tables last updated at exactly the specified time.
111
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 1000.
112
+ # @return [CollectionResponseWithTotalHubDbTableV3ForwardPaging]
113
+ describe 'get_all_draft_tables test' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
119
+ # unit tests for get_all_tables
120
+ # Get all live tables
121
+ # Returns the details for the &#x60;live&#x60; version of each table defined in an account, including column definitions.
122
+ # @param [Hash] opts the optional parameters
123
+ # @option opts [DateTime] :updated_after Only return tables last updated after the specified time.
124
+ # @option opts [DateTime] :updated_before Only return tables last updated before the specified time.
125
+ # @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are &#x60;name&#x60;, &#x60;createdAt&#x60;, &#x60;updatedAt&#x60;, &#x60;createdBy&#x60;, &#x60;updatedBy&#x60;. &#x60;createdAt&#x60; will be used by default.
126
+ # @option opts [DateTime] :created_at Only return tables created at exactly the specified time.
127
+ # @option opts [DateTime] :created_after Only return tables created after the specified time.
128
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
129
+ # @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to &#x60;false&#x60;.
130
+ # @option opts [DateTime] :created_before Only return tables created before the specified time.
131
+ # @option opts [DateTime] :updated_at Only return tables last updated at exactly the specified time.
132
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 1000.
133
+ # @return [CollectionResponseWithTotalHubDbTableV3ForwardPaging]
134
+ describe 'get_all_tables test' do
135
+ it 'should work' do
136
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
137
+ end
138
+ end
139
+
140
+ # unit tests for get_draft_table_details_by_id
141
+ # Get details for a draft table
142
+ # Get the details for the &#x60;draft&#x60; version of a specific HubDB table. This will include the definitions for the columns in the table and the number of rows in the table.
143
+ # @param table_id_or_name The ID or name of the table to return.
144
+ # @param [Hash] opts the optional parameters
145
+ # @option opts [Boolean] :archived Set this to &#x60;true&#x60; to return an archived table. Defaults to &#x60;false&#x60;.
146
+ # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the result.
147
+ # @return [HubDbTableV3]
148
+ describe 'get_draft_table_details_by_id test' do
149
+ it 'should work' do
150
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
151
+ end
152
+ end
153
+
154
+ # unit tests for get_table_details
155
+ # Get details for a live table
156
+ # Returns the details for the &#x60;live&#x60; version of the specified table. This will include the definitions for the columns in the table and the number of rows in the table. **Note:** This endpoint can be accessed without any authentication if the table is set to be allowed for public access.
157
+ # @param table_id_or_name The ID or name of the table to return.
158
+ # @param [Hash] opts the optional parameters
159
+ # @option opts [Boolean] :archived Set this to &#x60;true&#x60; to return details for an archived table. Defaults to &#x60;false&#x60;.
160
+ # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the result.
161
+ # @return [HubDbTableV3]
162
+ describe 'get_table_details test' do
163
+ it 'should work' do
164
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
165
+ end
166
+ end
167
+
168
+ # unit tests for import_draft_table
169
+ # Import data into draft table
170
+ # Import the contents of a CSV file into an existing HubDB table. The data will always be imported into the &#x60;draft&#x60; version of the table. Use &#x60;/push-live&#x60; endpoint to push these changes to &#x60;live&#x60; version. This endpoint takes a multi-part POST request. The first part will be a set of JSON-formatted options for the import and you can specify this with the name as &#x60;config&#x60;. The second part will be the CSV file you want to import and you can specify this with the name as &#x60;file&#x60;. Refer the overview section to check the details and format of the JSON-formatted options for the import.
171
+ # @param table_id_or_name The ID of the destination table where data will be imported.
172
+ # @param [Hash] opts the optional parameters
173
+ # @option opts [File] :file The source CSV file to be imported.
174
+ # @option opts [String] :config Configuration for the import in JSON format as described above.
175
+ # @return [ImportResult]
176
+ describe 'import_draft_table test' do
177
+ it 'should work' do
178
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
179
+ end
180
+ end
181
+
182
+ # unit tests for publish_draft_table
183
+ # Publish a table from draft
184
+ # Copies the data from draft to live version of the table and also publishes the live version. This will immediately push the data to the &#x60;live&#x60; version of the table and publishes the live version, meaning any website pages using data from the table will be updated.
185
+ # @param table_id_or_name The ID or name of the table to publish.
186
+ # @param [Hash] opts the optional parameters
187
+ # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the response.
188
+ # @return [HubDbTableV3]
189
+ describe 'publish_draft_table test' do
190
+ it 'should work' do
191
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
192
+ end
193
+ end
194
+
195
+ # unit tests for reset_draft_table
196
+ # Reset a draft table
197
+ # Replaces the data in the &#x60;draft&#x60; version of the table with values from the &#x60;live&#x60; version. Any unpublished changes in the &#x60;draft&#x60; will be lost after this call is made.
198
+ # @param table_id_or_name The ID or name of the table to reset.
199
+ # @param [Hash] opts the optional parameters
200
+ # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the response.
201
+ # @return [HubDbTableV3]
202
+ describe 'reset_draft_table test' do
203
+ it 'should work' do
204
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
205
+ end
206
+ end
207
+
208
+ # unit tests for update_draft_table
209
+ # Update an existing table
210
+ # Update an existing HubDB table. You can use this endpoint to add or remove columns to the table. Tables updated using the endpoint will only modify the &#x60;draft&#x60; verion of the table. Use &#x60;push-live&#x60; endpoint to push all the changes to the &#x60;live&#x60; version. **Note:** You need to include all the columns in the input when you are adding/removing/updating a column. If you do not include an already existing column in the request, it will be deleted.
211
+ # @param table_id_or_name The ID or name of the table to update.
212
+ # @param hub_db_table_v3_input The JSON schema for the table being updated.
213
+ # @param [Hash] opts the optional parameters
214
+ # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the result.
215
+ # @return [HubDbTableV3]
216
+ describe 'update_draft_table test' do
217
+ it 'should work' do
218
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
219
+ end
220
+ end
221
+
222
+ # unit tests for update_table
223
+ # Publish or unpublish a live version of a table or restore an archived table
224
+ # Use this endpoint to perform one of the following &lt;ul&gt;&lt;li&gt; Publish a live version of a table (without copying table data from draft) &lt;/li&gt;&lt;li&gt;Un-publish a live version of a table (Leaving the data in the live version)&lt;/li&gt;&lt;li&gt;Restore an archived table&lt;/li&gt;&lt;/ul&gt; To publish a table, send &#x60;published&#x60; property in the JSON object with the value &#x60;true&#x60;. To unpublish a table, send &#x60;published&#x60; property in the JSON object with the value &#x60;false&#x60;. To restore an archived table, send &#x60;archived&#x60; property in the JSON object with the value &#x60;false&#x60; along with the query parameter &#x60;archived&#x3D;true&#x60;. When restoring an archived table, if an active table already exists with the same &#x60;name&#x60; or &#x60;label&#x60;, you will need to change the name of the archived table when restoring it using the &#x60;name&#x60; and &#x60;label&#x60; parameters with a new name and new label. When you restore a table, the table will be restored only in the &#x60;draft&#x60; version. Examples: Publish live version of a table: &#x60;&#x60;&#x60; { \&quot;published\&quot;: true } &#x60;&#x60;&#x60; Unpublish live version of a table: &#x60;&#x60;&#x60; { \&quot;published\&quot;: false } &#x60;&#x60;&#x60; Restore a table: (send &#x60;archived&#x3D;true&#x60; in query parameters) &#x60;&#x60;&#x60; { \&quot;archived\&quot;: false } &#x60;&#x60;&#x60; Restore a table with a new name: (send &#x60;archived&#x3D;true&#x60; in query parameters) &#x60;&#x60;&#x60; { \&quot;label\&quot;: \&quot;New Table Name\&quot;, \&quot;name\&quot;: \&quot;new_table_name\&quot;, \&quot;archived\&quot;: false } &#x60;&#x60;&#x60;
225
+ # @param table_id_or_name The ID or name of the table to return.
226
+ # @param hub_db_table_v3_live_input The JSON object as described.
227
+ # @param [Hash] opts the optional parameters
228
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
229
+ # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the result.
230
+ # @return [HubDbTableV3]
231
+ describe 'update_table test' do
232
+ it 'should work' do
233
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
234
+ end
235
+ end
236
+
237
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #HubDB endpoints
3
+
4
+ #HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `live` versions and you can publish and unpublish the live version. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, pushed to live version, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the live version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::Cms::Hubdb::BatchInputHubDbTableRowV3
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'BatchInputHubDbTableRowV3' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::Cms::Hubdb::BatchInputHubDbTableRowV3.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of BatchInputHubDbTableRowV3' do
31
+ it 'should create an instance of BatchInputHubDbTableRowV3' do
32
+ expect(@instance).to be_instance_of(Hubspot::Cms::Hubdb::BatchInputHubDbTableRowV3)
33
+ end
34
+ end
35
+ describe 'test attribute "inputs"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #HubDB endpoints
3
+
4
+ #HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `live` versions and you can publish and unpublish the live version. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, pushed to live version, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the live version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::Cms::Hubdb::BatchInputJsonNode
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'BatchInputJsonNode' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::Cms::Hubdb::BatchInputJsonNode.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of BatchInputJsonNode' do
31
+ it 'should create an instance of BatchInputJsonNode' do
32
+ expect(@instance).to be_instance_of(Hubspot::Cms::Hubdb::BatchInputJsonNode)
33
+ end
34
+ end
35
+ describe 'test attribute "inputs"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #HubDB endpoints
3
+
4
+ #HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `live` versions and you can publish and unpublish the live version. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, pushed to live version, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the live version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::Cms::Hubdb::BatchInputString
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'BatchInputString' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::Cms::Hubdb::BatchInputString.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of BatchInputString' do
31
+ it 'should create an instance of BatchInputString' do
32
+ expect(@instance).to be_instance_of(Hubspot::Cms::Hubdb::BatchInputString)
33
+ end
34
+ end
35
+ describe 'test attribute "inputs"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,87 @@
1
+ =begin
2
+ #HubDB endpoints
3
+
4
+ #HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `live` versions and you can publish and unpublish the live version. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, pushed to live version, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the live version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::Cms::Hubdb::BatchResponseHubDbTableRowV3WithErrors
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'BatchResponseHubDbTableRowV3WithErrors' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::Cms::Hubdb::BatchResponseHubDbTableRowV3WithErrors.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of BatchResponseHubDbTableRowV3WithErrors' do
31
+ it 'should create an instance of BatchResponseHubDbTableRowV3WithErrors' do
32
+ expect(@instance).to be_instance_of(Hubspot::Cms::Hubdb::BatchResponseHubDbTableRowV3WithErrors)
33
+ end
34
+ end
35
+ describe 'test attribute "status"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
39
+ # validator.allowable_values.each do |value|
40
+ # expect { @instance.status = value }.not_to raise_error
41
+ # end
42
+ end
43
+ end
44
+
45
+ describe 'test attribute "results"' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ describe 'test attribute "num_errors"' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ describe 'test attribute "errors"' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
+ end
61
+ end
62
+
63
+ describe 'test attribute "requested_at"' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ end
67
+ end
68
+
69
+ describe 'test attribute "started_at"' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
75
+ describe 'test attribute "completed_at"' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ describe 'test attribute "links"' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ end