hubspot-api-client 10.0.1 → 11.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +4 -4
  4. data/README.md +4 -0
  5. data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
  6. data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
  7. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
  8. data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
  9. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  10. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  11. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
  12. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
  13. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
  14. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
  15. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  16. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  17. data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3.rb → batch_input_hub_db_table_row_v3_request.rb} +5 -5
  18. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  19. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  24. data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
  25. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
  30. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
  31. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
  32. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  33. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
  34. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  38. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  39. data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
  40. data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
  41. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
  42. data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +80 -0
  43. data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +214 -0
  44. data/lib/hubspot/codegen/communication_preferences/api_client.rb +404 -0
  45. data/lib/hubspot/codegen/communication_preferences/api_error.rb +59 -0
  46. data/lib/hubspot/codegen/communication_preferences/configuration.rb +254 -0
  47. data/lib/hubspot/codegen/communication_preferences/models/error.rb +290 -0
  48. data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +256 -0
  49. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +372 -0
  50. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +231 -0
  51. data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +283 -0
  52. data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +339 -0
  53. data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +216 -0
  54. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
  55. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  56. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  57. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  58. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  59. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  60. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  61. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  62. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  63. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  64. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  65. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  66. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  67. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  68. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  69. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  70. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  71. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  72. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  73. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  74. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  75. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  76. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  77. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  78. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  79. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  80. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  81. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  82. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  83. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  84. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  85. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  86. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  87. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  88. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  89. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  90. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  91. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  92. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  93. data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -1
  94. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  95. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  96. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  97. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  98. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  99. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  100. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  101. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  102. data/lib/hubspot/version.rb +1 -1
  103. data/lib/hubspot-api-client.rb +16 -3
  104. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  105. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  106. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  107. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  108. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  109. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  110. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  111. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  112. data/spec/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3_spec.rb → batch_input_hub_db_table_row_v3_request_spec.rb} +7 -7
  113. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  114. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  115. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  116. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  117. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  118. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  119. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  120. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  121. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  122. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  123. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  124. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  125. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  126. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  127. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  128. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  129. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  130. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  131. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  132. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  133. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  134. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  135. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  136. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  137. data/spec/codegen/communication_preferences/api/definition_api_spec.rb +46 -0
  138. data/spec/codegen/communication_preferences/api/status_api_spec.rb +71 -0
  139. data/spec/codegen/communication_preferences/models/error_detail_spec.rb +65 -0
  140. data/spec/codegen/communication_preferences/models/error_spec.rb +77 -0
  141. data/spec/codegen/communication_preferences/models/public_subscription_status_spec.rb +101 -0
  142. data/spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb +47 -0
  143. data/spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb +63 -0
  144. data/spec/codegen/communication_preferences/models/subscription_definition_spec.rb +95 -0
  145. data/spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb +41 -0
  146. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  147. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  148. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  149. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  150. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  151. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  152. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  153. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  154. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  155. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  156. data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +2 -2
  157. data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +6 -0
  158. data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +6 -0
  159. data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +6 -0
  160. data/spec/codegen/crm/extensions/cards/api/cards_api_spec.rb +2 -2
  161. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  162. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  163. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  164. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  165. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  166. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  167. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  168. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  169. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  170. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  171. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  172. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  173. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  174. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  175. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  176. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  177. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  178. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  179. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  180. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  181. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  182. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  183. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  184. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  185. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  186. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  187. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  188. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  189. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  190. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  191. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  192. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  193. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  194. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  195. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  196. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  197. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  198. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  199. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  200. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  201. data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
  202. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  203. data/spec/features/communication_preferences/definition_api_spec.rb +7 -0
  204. data/spec/features/communication_preferences/status_api_spec.rb +9 -0
  205. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  206. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  207. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  208. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  209. data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
  210. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  211. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  212. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  213. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  214. metadata +130 -82
  215. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  216. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  217. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  218. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  219. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  220. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  221. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  222. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  223. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  224. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  225. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  226. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for Hubspot::Cms::Blogs::Authors::DefaultApi
16
+ # Unit tests for Hubspot::Cms::Blogs::Authors::AuthorApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'DefaultApi' do
19
+ describe 'AuthorApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Cms::Blogs::Authors::DefaultApi.new
22
+ @api_instance = Hubspot::Cms::Blogs::Authors::AuthorApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::Authors::DefaultApi)
29
+ describe 'test an instance of AuthorApi' do
30
+ it 'should create an instance of AuthorApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::Authors::AuthorApi)
32
32
  end
33
33
  end
34
34
 
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for Hubspot::Cms::Blogs::BlogPosts::DefaultApi
16
+ # Unit tests for Hubspot::Cms::Blogs::BlogPosts::BlogPostApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'DefaultApi' do
19
+ describe 'BlogPostApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Cms::Blogs::BlogPosts::DefaultApi.new
22
+ @api_instance = Hubspot::Cms::Blogs::BlogPosts::BlogPostApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::BlogPosts::DefaultApi)
29
+ describe 'test an instance of BlogPostApi' do
30
+ it 'should create an instance of BlogPostApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::BlogPosts::BlogPostApi)
32
32
  end
33
33
  end
34
34
 
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for Hubspot::Cms::Blogs::Tags::DefaultApi
16
+ # Unit tests for Hubspot::Cms::Blogs::Tags::TagApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'DefaultApi' do
19
+ describe 'TagApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Cms::Blogs::Tags::DefaultApi.new
22
+ @api_instance = Hubspot::Cms::Blogs::Tags::TagApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::Tags::DefaultApi)
29
+ describe 'test an instance of TagApi' do
30
+ it 'should create an instance of TagApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::Tags::TagApi)
32
32
  end
33
33
  end
34
34
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #HubDB endpoints
3
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 by specifying the portal id via the query parameter `portalId`.
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 `published` versions. 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, 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 published 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 by specifying the portal id via the query parameter `portalId`.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -35,8 +35,8 @@ describe 'RowsApi' do
35
35
  # unit tests for clone_draft_table_row
36
36
  # Clone a row
37
37
  # Clones a single row in the `draft` version of the table.
38
- # @param row_id The ID of the row
39
38
  # @param table_id_or_name The ID or name of the table
39
+ # @param row_id The ID of the row
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @return [HubDbTableRowV3]
42
42
  describe 'clone_draft_table_row test' do
@@ -47,9 +47,9 @@ describe 'RowsApi' do
47
47
 
48
48
  # unit tests for create_table_row
49
49
  # Add a new row to a table
50
- # Add a new row to a HubDB table. New rows will be added to the `draft` version of the table. Use `push-live` endpoint to push these changes to live version and publish them.
50
+ # Add a new row to a HubDB table. New rows will be added to the `draft` version of the table. Use `publish` endpoint to push these changes to published version.
51
51
  # @param table_id_or_name The ID or name of the target table.
52
- # @param hub_db_table_row_v3_input The row definition JSON, formatted as described above.
52
+ # @param hub_db_table_row_v3_request The row definition JSON, formatted as described above.
53
53
  # @param [Hash] opts the optional parameters
54
54
  # @return [HubDbTableRowV3]
55
55
  describe 'create_table_row test' do
@@ -61,8 +61,8 @@ describe 'RowsApi' do
61
61
  # unit tests for get_draft_table_row_by_id
62
62
  # Get a row from the draft table
63
63
  # Get a single row by ID from a table's `draft` version.
64
- # @param row_id The ID of the row
65
64
  # @param table_id_or_name The ID or name of the table
65
+ # @param row_id The ID of the row
66
66
  # @param [Hash] opts the optional parameters
67
67
  # @return [HubDbTableRowV3]
68
68
  describe 'get_draft_table_row_by_id test' do
@@ -73,9 +73,9 @@ describe 'RowsApi' do
73
73
 
74
74
  # unit tests for get_table_row
75
75
  # Get a table row
76
- # Get a single row by ID from a table's `live` version. **Note:** This endpoint can be accessed without any authentication, if the table is set to be allowed for public access.
77
- # @param row_id The ID of the row
76
+ # Get a single row by ID from a table's `published` version. **Note:** This endpoint can be accessed without any authentication, if the table is set to be allowed for public access.
78
77
  # @param table_id_or_name The ID or name of the table
78
+ # @param row_id The ID of the row
79
79
  # @param [Hash] opts the optional parameters
80
80
  # @return [HubDbTableRowV3]
81
81
  describe 'get_table_row test' do
@@ -86,13 +86,13 @@ describe 'RowsApi' do
86
86
 
87
87
  # unit tests for get_table_rows
88
88
  # Get rows for a table
89
- # Returns a set of rows in the `live` version of the specified table. Row results can be filtered and sorted. Refer to the overview section for detailed filtering and sorting options. **Note:** This endpoint can be accessed without any authentication, if the table is set to be allowed for public access.
89
+ # Returns a set of rows in the `published` version of the specified table. Row results can be filtered and sorted. Filtering and sorting options will be sent as query parameters to the API request. For example, by adding the query parameters `column1__gt=5&sort=-column1`, API returns the rows with values for column `column1` greater than 5 and in the descending order of `column1` values. Refer to the [overview section](https://developers.hubspot.com/docs/api/cms/hubdb#filtering-and-sorting-table-rows) for detailed filtering and sorting options. **Note:** This endpoint can be accessed without any authentication, if the table is set to be allowed for public access.
90
90
  # @param table_id_or_name The ID or name of the table to query.
91
91
  # @param [Hash] opts the optional parameters
92
- # @option opts [Array<String>] :properties Specify the column names to get results containing only the required columns instead of all column details.
92
+ # @option opts [Array<String>] :sort Specifies the column names to sort the results by. See the above description for more details.
93
93
  # @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.
94
94
  # @option opts [Integer] :limit The maximum number of results to return. Default is &#x60;1000&#x60;.
95
- # @option opts [Array<String>] :sort Specifies the column names to sort the results by. See the above description for more details.
95
+ # @option opts [Array<String>] :properties Specify the column names to get results containing only the required columns instead of all column details.
96
96
  # @return [CollectionResponseWithTotalHubDbTableRowV3ForwardPaging]
97
97
  describe 'get_table_rows test' do
98
98
  it 'should work' do
@@ -103,8 +103,8 @@ describe 'RowsApi' do
103
103
  # unit tests for purge_draft_table_row
104
104
  # Permanently deletes a row
105
105
  # Permanently deletes a row from a table&#39;s &#x60;draft&#x60; version.
106
- # @param row_id The ID of the row
107
106
  # @param table_id_or_name The ID or name of the table
107
+ # @param row_id The ID of the row
108
108
  # @param [Hash] opts the optional parameters
109
109
  # @return [nil]
110
110
  describe 'purge_draft_table_row test' do
@@ -115,13 +115,13 @@ describe 'RowsApi' do
115
115
 
116
116
  # unit tests for read_draft_table_rows
117
117
  # Get rows from draft table
118
- # Returns rows in the &#x60;draft&#x60; version of the specified table. Row results can be filtered and sorted using the options mentioned in the overview section.
118
+ # Returns rows in the &#x60;draft&#x60; version of the specified table. Row results can be filtered and sorted. Filtering and sorting options will be sent as query parameters to the API request. For example, by adding the query parameters &#x60;column1__gt&#x3D;5&amp;sort&#x3D;-column1&#x60;, API returns the rows with values for column &#x60;column1&#x60; greater than 5 and in the descending order of &#x60;column1&#x60; values. Refer to the [overview section](https://developers.hubspot.com/docs/api/cms/hubdb#filtering-and-sorting-table-rows) for detailed filtering and sorting options.
119
119
  # @param table_id_or_name The ID or name of the table to query.
120
120
  # @param [Hash] opts the optional parameters
121
+ # @option opts [Array<String>] :sort Specifies the column names to sort the results by.
121
122
  # @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.
122
- # @option opts [Array<String>] :properties Specify the column names to get results containing only the required columns instead of all column details. If you want to include multiple columns in the result, use this query param as many times.
123
123
  # @option opts [Integer] :limit The maximum number of results to return. Default is &#x60;1000&#x60;.
124
- # @option opts [Array<String>] :sort Specifies the column names to sort the results by.
124
+ # @option opts [Array<String>] :properties Specify the column names to get results containing only the required columns instead of all column details. If you want to include multiple columns in the result, use this query param as many times.
125
125
  # @return [CollectionResponseWithTotalHubDbTableRowV3ForwardPaging]
126
126
  describe 'read_draft_table_rows test' do
127
127
  it 'should work' do
@@ -132,9 +132,9 @@ describe 'RowsApi' do
132
132
  # unit tests for replace_draft_table_row
133
133
  # Replaces an existing row
134
134
  # Replace a single row in the table&#39;s &#x60;draft&#x60; version. All the column values must be specified. If a column has a value in the target table and this request doesn&#39;t define that value, it will be deleted. See the &#x60;Create a row&#x60; endpoint for instructions on how to format the JSON row definitions.
135
- # @param row_id The ID of the row
136
135
  # @param table_id_or_name The ID or name of the table
137
- # @param hub_db_table_row_v3_input The JSON object of the row
136
+ # @param row_id The ID of the row
137
+ # @param hub_db_table_row_v3_request The JSON object of the row
138
138
  # @param [Hash] opts the optional parameters
139
139
  # @return [HubDbTableRowV3]
140
140
  describe 'replace_draft_table_row test' do
@@ -146,9 +146,9 @@ describe 'RowsApi' do
146
146
  # unit tests for update_draft_table_row
147
147
  # Updates an existing row
148
148
  # Sparse updates a single row in the table&#39;s &#x60;draft&#x60; version. All the column values need not be specified. Only the columns or fields that needs to be modified can be specified. See the &#x60;Create a row&#x60; endpoint for instructions on how to format the JSON row definitions.
149
- # @param row_id The ID of the row
150
149
  # @param table_id_or_name The ID or name of the table
151
- # @param hub_db_table_row_v3_input The JSON object of the row with necessary fields that needs to be updated.
150
+ # @param row_id The ID of the row
151
+ # @param hub_db_table_row_v3_request The JSON object of the row with necessary fields that needs to be updated.
152
152
  # @param [Hash] opts the optional parameters
153
153
  # @return [HubDbTableRowV3]
154
154
  describe 'update_draft_table_row test' do
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #HubDB endpoints
3
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 by specifying the portal id via the query parameter `portalId`.
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 `published` versions. 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, 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 published 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 by specifying the portal id via the query parameter `portalId`.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -49,7 +49,7 @@ describe 'RowsBatchApi' do
49
49
  # Create rows in batch
50
50
  # Creates rows in the &#x60;draft&#x60; version of the specified table, given an array of row objects. See the overview section for more details with an example.
51
51
  # @param table_id_or_name The ID or name of the table
52
- # @param batch_input_hub_db_table_row_v3 JSON array of row objects
52
+ # @param batch_input_hub_db_table_row_v3_request JSON array of row objects
53
53
  # @param [Hash] opts the optional parameters
54
54
  # @return [Object]
55
55
  describe 'batch_create_draft_table_rows test' do
@@ -86,7 +86,7 @@ describe 'RowsBatchApi' do
86
86
 
87
87
  # unit tests for batch_read_table_rows
88
88
  # Get a set of rows
89
- # Returns rows in the &#x60;live&#x60; version of the specified table, given a set of row ids. **Note:** This endpoint can be accessed without any authentication if the table is set to be allowed for public access.
89
+ # Returns rows in the &#x60;published&#x60; version of the specified table, given a set of row ids. **Note:** This endpoint can be accessed without any authentication if the table is set to be allowed for public access.
90
90
  # @param table_id_or_name The ID or name of the table to query.
91
91
  # @param batch_input_string The JSON array of row ids
92
92
  # @param [Hash] opts the optional parameters
@@ -101,7 +101,7 @@ describe 'RowsBatchApi' do
101
101
  # Replace rows in batch in draft table
102
102
  # Replaces multiple rows as a batch in the &#x60;draft&#x60; version of the table. See the endpoint &#x60;PUT /tables/{tableIdOrName}/rows/{rowId}/draft&#x60; for details on updating a single row.
103
103
  # @param table_id_or_name The ID or name of the table
104
- # @param batch_input_hub_db_table_row_v3 JSON array of row objects.
104
+ # @param batch_input_hub_db_table_row_v3_request JSON array of row objects.
105
105
  # @param [Hash] opts the optional parameters
106
106
  # @return [Object]
107
107
  describe 'batch_replace_draft_table_rows test' do
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #HubDB endpoints
3
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 by specifying the portal id via the query parameter `portalId`.
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 `published` versions. 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, 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 published 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 by specifying the portal id via the query parameter `portalId`.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -34,7 +34,7 @@ describe 'TablesApi' do
34
34
 
35
35
  # unit tests for archive_table
36
36
  # Archive a table
37
- # Archive (soft delete) an existing HubDB table. This archives both the live and draft versions.
37
+ # Archive (soft delete) an existing HubDB table. This archives both the published and draft versions.
38
38
  # @param table_id_or_name The ID or name of the table to archive.
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [nil]
@@ -60,7 +60,7 @@ describe 'TablesApi' do
60
60
  # unit tests for create_table
61
61
  # Create a new table
62
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.
63
+ # @param hub_db_table_v3_request The JSON schema for the table being created.
64
64
  # @param [Hash] opts the optional parameters
65
65
  # @return [HubDbTableV3]
66
66
  describe 'create_table test' do
@@ -84,7 +84,7 @@ describe 'TablesApi' do
84
84
 
85
85
  # unit tests for export_table
86
86
  # Export a published version of a table
87
- # Exports the &#x60;live&#x60; version of a table to CSV / EXCEL format.
87
+ # Exports the &#x60;published&#x60; version of a table to CSV / EXCEL format.
88
88
  # @param table_id_or_name The ID or name of the table to export.
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @option opts [String] :format The file format to export. Possible values include &#x60;CSV&#x60;, &#x60;XLSX&#x60;, and &#x60;XLS&#x60;.
@@ -99,16 +99,16 @@ describe 'TablesApi' do
99
99
  # Return all draft tables
100
100
  # Returns the details for each draft table defined in the specified account, including column definitions.
101
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
102
  # @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.
103
+ # @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.
104
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 1000.
105
105
  # @option opts [DateTime] :created_at Only return tables created at exactly the specified time.
106
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
107
  # @option opts [DateTime] :created_before Only return tables created before the specified time.
110
108
  # @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.
109
+ # @option opts [DateTime] :updated_after Only return tables last updated after the specified time.
110
+ # @option opts [DateTime] :updated_before Only return tables last updated before the specified time.
111
+ # @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to &#x60;false&#x60;.
112
112
  # @return [CollectionResponseWithTotalHubDbTableV3ForwardPaging]
113
113
  describe 'get_all_draft_tables test' do
114
114
  it 'should work' do
@@ -117,19 +117,19 @@ describe 'TablesApi' do
117
117
  end
118
118
 
119
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.
120
+ # Get all published tables
121
+ # Returns the details for the &#x60;published&#x60; version of each table defined in an account, including column definitions.
122
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
123
  # @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.
124
+ # @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.
125
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 1000.
126
126
  # @option opts [DateTime] :created_at Only return tables created at exactly the specified time.
127
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
128
  # @option opts [DateTime] :created_before Only return tables created before the specified time.
131
129
  # @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.
130
+ # @option opts [DateTime] :updated_after Only return tables last updated after the specified time.
131
+ # @option opts [DateTime] :updated_before Only return tables last updated before the specified time.
132
+ # @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to &#x60;false&#x60;.
133
133
  # @return [CollectionResponseWithTotalHubDbTableV3ForwardPaging]
134
134
  describe 'get_all_tables test' do
135
135
  it 'should work' do
@@ -152,8 +152,8 @@ describe 'TablesApi' do
152
152
  end
153
153
 
154
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.
155
+ # Get details for a published table
156
+ # Returns the details for the &#x60;published&#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
157
  # @param table_id_or_name The ID or name of the table to return.
158
158
  # @param [Hash] opts the optional parameters
159
159
  # @option opts [Boolean] :archived Set this to &#x60;true&#x60; to return details for an archived table. Defaults to &#x60;false&#x60;.
@@ -167,11 +167,11 @@ describe 'TablesApi' do
167
167
 
168
168
  # unit tests for import_draft_table
169
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.
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;/publish&#x60; endpoint to push these changes to &#x60;published&#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](https://developers.hubspot.com/docs/api/cms/hubdb#importing-tables) to check the details and format of the JSON-formatted options for the import.
171
171
  # @param table_id_or_name The ID of the destination table where data will be imported.
172
172
  # @param [Hash] opts the optional parameters
173
- # @option opts [File] :file The source CSV file to be imported.
174
173
  # @option opts [String] :config Configuration for the import in JSON format as described above.
174
+ # @option opts [File] :file The source CSV file to be imported.
175
175
  # @return [ImportResult]
176
176
  describe 'import_draft_table test' do
177
177
  it 'should work' do
@@ -181,7 +181,7 @@ describe 'TablesApi' do
181
181
 
182
182
  # unit tests for publish_draft_table
183
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.
184
+ # Publishes the table by copying the data and table schema changes from draft version to the published version, meaning any website pages using data from the table will be updated.
185
185
  # @param table_id_or_name The ID or name of the table to publish.
186
186
  # @param [Hash] opts the optional parameters
187
187
  # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the response.
@@ -194,7 +194,7 @@ describe 'TablesApi' do
194
194
 
195
195
  # unit tests for reset_draft_table
196
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.
197
+ # Replaces the data in the &#x60;draft&#x60; version of the table with values from the &#x60;published&#x60; version. Any unpublished changes in the &#x60;draft&#x60; will be lost after this call is made.
198
198
  # @param table_id_or_name The ID or name of the table to reset.
199
199
  # @param [Hash] opts the optional parameters
200
200
  # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the response.
@@ -205,30 +205,29 @@ describe 'TablesApi' do
205
205
  end
206
206
  end
207
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.
208
+ # unit tests for unpublish_table
209
+ # Unpublish a table
210
+ # Unpublishes the table, meaning any website pages using data from the table will not render any data.
211
+ # @param table_id_or_name The ID or name of the table to publish.
213
212
  # @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.
213
+ # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the response.
215
214
  # @return [HubDbTableV3]
216
- describe 'update_draft_table test' do
215
+ describe 'unpublish_table test' do
217
216
  it 'should work' do
218
217
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
219
218
  end
220
219
  end
221
220
 
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.
221
+ # unit tests for update_draft_table
222
+ # Update an existing table
223
+ # Update an existing HubDB table. You can use this endpoint to add or remove columns to the table as well as restore an archived table. Tables updated using the endpoint will only modify the &#x60;draft&#x60; verion of the table. Use &#x60;publish&#x60; endpoint to push all the changes to the &#x60;published&#x60; version. To restore a table, include the query parameter &#x60;archived&#x3D;true&#x60; and &#x60;\&quot;archived\&quot;: false&#x60; in the json body. **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.
224
+ # @param table_id_or_name The ID or name of the table to update.
225
+ # @param hub_db_table_v3_request The JSON schema for the table being updated.
227
226
  # @param [Hash] opts the optional parameters
228
- # @option opts [Boolean] :archived Whether to return only results that have been archived.
227
+ # @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to &#x60;false&#x60;.
229
228
  # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the result.
230
229
  # @return [HubDbTableV3]
231
- describe 'update_table test' do
230
+ describe 'update_draft_table test' do
232
231
  it 'should work' do
233
232
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
234
233
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #HubDB endpoints
3
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 by specifying the portal id via the query parameter `portalId`.
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 `published` versions. 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, 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 published 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 by specifying the portal id via the query parameter `portalId`.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for Hubspot::Cms::Hubdb::BatchInputHubDbTableRowV3
17
+ # Unit tests for Hubspot::Cms::Hubdb::BatchInputHubDbTableRowV3Request
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'BatchInputHubDbTableRowV3' do
20
+ describe 'BatchInputHubDbTableRowV3Request' do
21
21
  before do
22
22
  # run before each test
23
- @instance = Hubspot::Cms::Hubdb::BatchInputHubDbTableRowV3.new
23
+ @instance = Hubspot::Cms::Hubdb::BatchInputHubDbTableRowV3Request.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
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)
30
+ describe 'test an instance of BatchInputHubDbTableRowV3Request' do
31
+ it 'should create an instance of BatchInputHubDbTableRowV3Request' do
32
+ expect(@instance).to be_instance_of(Hubspot::Cms::Hubdb::BatchInputHubDbTableRowV3Request)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "inputs"' do
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #HubDB endpoints
3
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 by specifying the portal id via the query parameter `portalId`.
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 `published` versions. 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, 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 published 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 by specifying the portal id via the query parameter `portalId`.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #HubDB endpoints
3
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 by specifying the portal id via the query parameter `portalId`.
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 `published` versions. 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, 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 published 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 by specifying the portal id via the query parameter `portalId`.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #HubDB endpoints
3
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 by specifying the portal id via the query parameter `portalId`.
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 `published` versions. 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, 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 published 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 by specifying the portal id via the query parameter `portalId`.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #HubDB endpoints
3
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 by specifying the portal id via the query parameter `portalId`.
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 `published` versions. 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, 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 published 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 by specifying the portal id via the query parameter `portalId`.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #HubDB endpoints
3
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 by specifying the portal id via the query parameter `portalId`.
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 `published` versions. 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, 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 published 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 by specifying the portal id via the query parameter `portalId`.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7