hubspot-api-client 10.1.1 → 11.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (433) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +10 -4
  4. data/README.md +21 -0
  5. data/hubspot-api-client.gemspec +1 -0
  6. data/lib/hubspot/client.rb +51 -0
  7. data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
  8. data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
  9. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
  10. data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
  11. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  12. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  13. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
  14. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
  15. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
  16. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
  17. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  18. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  19. 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
  20. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  24. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
  27. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  30. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  31. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
  32. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
  33. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
  34. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
  36. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  38. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  39. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  40. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  41. data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
  42. data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
  43. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
  44. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
  45. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  46. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  47. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  48. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  49. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  50. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  51. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  52. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  53. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  54. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  55. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  56. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  57. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  58. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  59. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  60. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  61. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  62. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  63. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  64. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  65. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  66. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  67. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  68. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  69. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  70. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  71. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  72. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  73. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  74. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  75. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  76. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  77. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  78. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  79. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  80. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  81. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  82. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  83. data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -1
  84. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  85. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  86. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  87. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  88. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  89. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  90. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  91. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  92. data/lib/hubspot/discovery/automation/actions/api/callbacks_api.rb +13 -0
  93. data/lib/hubspot/discovery/automation/actions/api/definitions_api.rb +13 -0
  94. data/lib/hubspot/discovery/automation/actions/api/functions_api.rb +13 -0
  95. data/lib/hubspot/discovery/automation/actions/api/revisions_api.rb +13 -0
  96. data/lib/hubspot/discovery/automation/actions/client.rb +22 -0
  97. data/lib/hubspot/discovery/automation/client.rb +17 -0
  98. data/lib/hubspot/discovery/base_api_client.rb +70 -0
  99. data/lib/hubspot/discovery/base_module_client.rb +55 -0
  100. data/lib/hubspot/discovery/cms/audit_logs/api/audit_logs_api.rb +13 -0
  101. data/lib/hubspot/discovery/cms/audit_logs/client.rb +19 -0
  102. data/lib/hubspot/discovery/cms/blogs/authors/api/author_api.rb +15 -0
  103. data/lib/hubspot/discovery/cms/blogs/authors/client.rb +21 -0
  104. data/lib/hubspot/discovery/cms/blogs/blog_posts/api/blog_post_api.rb +15 -0
  105. data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +21 -0
  106. data/lib/hubspot/discovery/cms/blogs/client.rb +21 -0
  107. data/lib/hubspot/discovery/cms/blogs/tags/api/tag_api.rb +15 -0
  108. data/lib/hubspot/discovery/cms/blogs/tags/client.rb +21 -0
  109. data/lib/hubspot/discovery/cms/client.rb +23 -0
  110. data/lib/hubspot/discovery/cms/domains/api/domains_api.rb +13 -0
  111. data/lib/hubspot/discovery/cms/domains/client.rb +19 -0
  112. data/lib/hubspot/discovery/cms/hubdb/api/rows_api.rb +13 -0
  113. data/lib/hubspot/discovery/cms/hubdb/api/rows_batch_api.rb +13 -0
  114. data/lib/hubspot/discovery/cms/hubdb/api/tables_api.rb +13 -0
  115. data/lib/hubspot/discovery/cms/hubdb/client.rb +21 -0
  116. data/lib/hubspot/discovery/cms/performance/api/public_performance_api.rb +13 -0
  117. data/lib/hubspot/discovery/cms/performance/client.rb +19 -0
  118. data/lib/hubspot/discovery/cms/site_search/api/public_api.rb +13 -0
  119. data/lib/hubspot/discovery/cms/site_search/client.rb +19 -0
  120. data/lib/hubspot/discovery/cms/url_redirects/api/redirects_api.rb +13 -0
  121. data/lib/hubspot/discovery/cms/url_redirects/client.rb +19 -0
  122. data/lib/hubspot/discovery/communication_preferences/api/definition_api.rb +11 -0
  123. data/lib/hubspot/discovery/communication_preferences/api/status_api.rb +11 -0
  124. data/lib/hubspot/discovery/communication_preferences/client.rb +18 -0
  125. data/lib/hubspot/discovery/conversations/client.rb +17 -0
  126. data/lib/hubspot/discovery/conversations/visitor_identification/api/generate_api.rb +13 -0
  127. data/lib/hubspot/discovery/conversations/visitor_identification/client.rb +19 -0
  128. data/lib/hubspot/discovery/crm/associations/api/batch_api.rb +13 -0
  129. data/lib/hubspot/discovery/crm/associations/api/types_api.rb +13 -0
  130. data/lib/hubspot/discovery/crm/associations/client.rb +20 -0
  131. data/lib/hubspot/discovery/crm/client.rb +32 -0
  132. data/lib/hubspot/discovery/crm/companies/api/associations_api.rb +13 -0
  133. data/lib/hubspot/discovery/crm/companies/api/basic_api.rb +13 -0
  134. data/lib/hubspot/discovery/crm/companies/api/batch_api.rb +13 -0
  135. data/lib/hubspot/discovery/crm/companies/api/search_api.rb +13 -0
  136. data/lib/hubspot/discovery/crm/companies/client.rb +22 -0
  137. data/lib/hubspot/discovery/crm/contacts/api/associations_api.rb +13 -0
  138. data/lib/hubspot/discovery/crm/contacts/api/basic_api.rb +13 -0
  139. data/lib/hubspot/discovery/crm/contacts/api/batch_api.rb +13 -0
  140. data/lib/hubspot/discovery/crm/contacts/api/gdpr_api.rb +13 -0
  141. data/lib/hubspot/discovery/crm/contacts/api/search_api.rb +13 -0
  142. data/lib/hubspot/discovery/crm/contacts/client.rb +23 -0
  143. data/lib/hubspot/discovery/crm/deals/api/associations_api.rb +13 -0
  144. data/lib/hubspot/discovery/crm/deals/api/basic_api.rb +13 -0
  145. data/lib/hubspot/discovery/crm/deals/api/batch_api.rb +13 -0
  146. data/lib/hubspot/discovery/crm/deals/api/search_api.rb +13 -0
  147. data/lib/hubspot/discovery/crm/deals/client.rb +22 -0
  148. data/lib/hubspot/discovery/crm/extensions/accounting/api/callbacks_api.rb +15 -0
  149. data/lib/hubspot/discovery/crm/extensions/accounting/api/invoice_api.rb +15 -0
  150. data/lib/hubspot/discovery/crm/extensions/accounting/api/settings_api.rb +15 -0
  151. data/lib/hubspot/discovery/crm/extensions/accounting/api/sync_api.rb +15 -0
  152. data/lib/hubspot/discovery/crm/extensions/accounting/api/user_accounts_api.rb +15 -0
  153. data/lib/hubspot/discovery/crm/extensions/accounting/client.rb +25 -0
  154. data/lib/hubspot/discovery/crm/extensions/calling/api/settings_api.rb +15 -0
  155. data/lib/hubspot/discovery/crm/extensions/calling/client.rb +21 -0
  156. data/lib/hubspot/discovery/crm/extensions/cards/api/cards_api.rb +15 -0
  157. data/lib/hubspot/discovery/crm/extensions/cards/api/sample_response_api.rb +15 -0
  158. data/lib/hubspot/discovery/crm/extensions/cards/client.rb +22 -0
  159. data/lib/hubspot/discovery/crm/extensions/client.rb +22 -0
  160. data/lib/hubspot/discovery/crm/extensions/videoconferencing/api/settings_api.rb +15 -0
  161. data/lib/hubspot/discovery/crm/extensions/videoconferencing/client.rb +21 -0
  162. data/lib/hubspot/discovery/crm/imports/api/core_api.rb +13 -0
  163. data/lib/hubspot/discovery/crm/imports/api/public_imports_api.rb +13 -0
  164. data/lib/hubspot/discovery/crm/imports/client.rb +20 -0
  165. data/lib/hubspot/discovery/crm/line_items/api/associations_api.rb +13 -0
  166. data/lib/hubspot/discovery/crm/line_items/api/basic_api.rb +13 -0
  167. data/lib/hubspot/discovery/crm/line_items/api/batch_api.rb +13 -0
  168. data/lib/hubspot/discovery/crm/line_items/api/search_api.rb +13 -0
  169. data/lib/hubspot/discovery/crm/line_items/client.rb +22 -0
  170. data/lib/hubspot/discovery/crm/objects/api/associations_api.rb +13 -0
  171. data/lib/hubspot/discovery/crm/objects/api/basic_api.rb +13 -0
  172. data/lib/hubspot/discovery/crm/objects/api/batch_api.rb +13 -0
  173. data/lib/hubspot/discovery/crm/objects/api/gdpr_api.rb +13 -0
  174. data/lib/hubspot/discovery/crm/objects/api/search_api.rb +13 -0
  175. data/lib/hubspot/discovery/crm/objects/client.rb +29 -0
  176. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/associations_api.rb +15 -0
  177. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/basic_api.rb +15 -0
  178. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/batch_api.rb +15 -0
  179. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/search_api.rb +15 -0
  180. data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +24 -0
  181. data/lib/hubspot/discovery/crm/owners/api/owners_api.rb +13 -0
  182. data/lib/hubspot/discovery/crm/owners/client.rb +19 -0
  183. data/lib/hubspot/discovery/crm/pipelines/api/pipeline_stages_api.rb +13 -0
  184. data/lib/hubspot/discovery/crm/pipelines/api/pipelines_api.rb +13 -0
  185. data/lib/hubspot/discovery/crm/pipelines/client.rb +20 -0
  186. data/lib/hubspot/discovery/crm/products/api/associations_api.rb +13 -0
  187. data/lib/hubspot/discovery/crm/products/api/basic_api.rb +13 -0
  188. data/lib/hubspot/discovery/crm/products/api/batch_api.rb +13 -0
  189. data/lib/hubspot/discovery/crm/products/api/search_api.rb +13 -0
  190. data/lib/hubspot/discovery/crm/products/client.rb +22 -0
  191. data/lib/hubspot/discovery/crm/properties/api/batch_api.rb +13 -0
  192. data/lib/hubspot/discovery/crm/properties/api/core_api.rb +13 -0
  193. data/lib/hubspot/discovery/crm/properties/api/groups_api.rb +13 -0
  194. data/lib/hubspot/discovery/crm/properties/client.rb +21 -0
  195. data/lib/hubspot/discovery/crm/quotes/api/associations_api.rb +13 -0
  196. data/lib/hubspot/discovery/crm/quotes/api/basic_api.rb +13 -0
  197. data/lib/hubspot/discovery/crm/quotes/api/batch_api.rb +13 -0
  198. data/lib/hubspot/discovery/crm/quotes/api/search_api.rb +13 -0
  199. data/lib/hubspot/discovery/crm/quotes/client.rb +22 -0
  200. data/lib/hubspot/discovery/crm/schemas/api/core_api.rb +13 -0
  201. data/lib/hubspot/discovery/crm/schemas/api/public_object_schemas_api.rb +13 -0
  202. data/lib/hubspot/discovery/crm/schemas/client.rb +20 -0
  203. data/lib/hubspot/discovery/crm/tickets/api/associations_api.rb +13 -0
  204. data/lib/hubspot/discovery/crm/tickets/api/basic_api.rb +13 -0
  205. data/lib/hubspot/discovery/crm/tickets/api/batch_api.rb +13 -0
  206. data/lib/hubspot/discovery/crm/tickets/api/search_api.rb +13 -0
  207. data/lib/hubspot/discovery/crm/tickets/client.rb +22 -0
  208. data/lib/hubspot/discovery/crm/timeline/api/events_api.rb +13 -0
  209. data/lib/hubspot/discovery/crm/timeline/api/templates_api.rb +13 -0
  210. data/lib/hubspot/discovery/crm/timeline/api/tokens_api.rb +13 -0
  211. data/lib/hubspot/discovery/crm/timeline/client.rb +21 -0
  212. data/lib/hubspot/discovery/events/api/events_api.rb +11 -0
  213. data/lib/hubspot/discovery/events/client.rb +17 -0
  214. data/lib/hubspot/discovery/files/client.rb +17 -0
  215. data/lib/hubspot/discovery/files/files/api/files_api.rb +13 -0
  216. data/lib/hubspot/discovery/files/files/api/folders_api.rb +13 -0
  217. data/lib/hubspot/discovery/files/files/client.rb +20 -0
  218. data/lib/hubspot/discovery/marketing/client.rb +17 -0
  219. data/lib/hubspot/discovery/marketing/transactional/api/public_smtp_tokens_api.rb +13 -0
  220. data/lib/hubspot/discovery/marketing/transactional/api/single_send_api.rb +13 -0
  221. data/lib/hubspot/discovery/marketing/transactional/client.rb +20 -0
  222. data/lib/hubspot/discovery/oauth/api/access_tokens_api.rb +11 -0
  223. data/lib/hubspot/discovery/oauth/api/refresh_tokens_api.rb +11 -0
  224. data/lib/hubspot/discovery/oauth/api/tokens_api.rb +11 -0
  225. data/lib/hubspot/discovery/oauth/client.rb +19 -0
  226. data/lib/hubspot/discovery/webhooks/api/settings_api.rb +11 -0
  227. data/lib/hubspot/discovery/webhooks/api/subscriptions_api.rb +11 -0
  228. data/lib/hubspot/discovery/webhooks/client.rb +18 -0
  229. data/lib/hubspot/helpers/camel_case.rb +9 -0
  230. data/lib/hubspot/helpers/snake_case.rb +13 -0
  231. data/lib/hubspot/version.rb +1 -1
  232. data/lib/hubspot-api-client.rb +1 -0
  233. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  234. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  235. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  236. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  237. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  238. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  239. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  240. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  241. 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
  242. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  243. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  244. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  245. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  246. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  247. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  248. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  249. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  250. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  251. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  252. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  253. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  254. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  255. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  256. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  257. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  258. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  259. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  260. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  261. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  262. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  263. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  264. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  265. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  266. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  267. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  268. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  269. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  270. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  271. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  272. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  273. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  274. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  275. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  276. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  277. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  278. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  279. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  280. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  281. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  282. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  283. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  284. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  285. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  286. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  287. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  288. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  289. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  290. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  291. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  292. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  293. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  294. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  295. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  296. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  297. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  298. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  299. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  300. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  301. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  302. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  303. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  304. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  305. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  306. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  307. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  308. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  309. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  310. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  311. data/spec/discovery/automation/actions/callbacks_api_spec.rb +8 -0
  312. data/spec/discovery/automation/actions/definitions_api_spec.rb +11 -0
  313. data/spec/discovery/automation/actions/functions_api_spec.rb +13 -0
  314. data/spec/discovery/automation/actions/revisions_api_spec.rb +8 -0
  315. data/spec/discovery/base_api_client_spec.rb +69 -0
  316. data/spec/discovery/base_module_client_spec.rb +28 -0
  317. data/spec/discovery/client_spec.rb +16 -0
  318. data/spec/discovery/cms/audit-logs/audit_logs_api_spec.rb +7 -0
  319. data/spec/discovery/cms/blogs/authors/author_api_spec.rb +15 -0
  320. data/spec/discovery/cms/blogs/blog-posts/blog_post_api_spec.rb +25 -0
  321. data/spec/discovery/cms/blogs/tags/tag_api_spec.rb +15 -0
  322. data/spec/discovery/cms/domains/domains_api_spec.rb +8 -0
  323. data/spec/discovery/cms/hubdb/rows_api_spec.rb +15 -0
  324. data/spec/discovery/cms/hubdb/rows_batch_api_spec.rb +13 -0
  325. data/spec/discovery/cms/hubdb/tables_api_spec.rb +20 -0
  326. data/spec/discovery/cms/performance/public_performance_api_spec.rb +8 -0
  327. data/spec/discovery/cms/site-search/public_api_spec.rb +8 -0
  328. data/spec/discovery/cms/url-redirects/redirects_api_spec.rb +11 -0
  329. data/spec/discovery/communication_preferences/definition_api_spec.rb +7 -0
  330. data/spec/discovery/communication_preferences/status_api_spec.rb +9 -0
  331. data/spec/discovery/conversations/visitor-identification/generate_api_spec.rb +7 -0
  332. data/spec/discovery/crm/associations/batch_api_spec.rb +9 -0
  333. data/spec/discovery/crm/associations/types_api_spec.rb +7 -0
  334. data/spec/discovery/crm/companies/associations_api_spec.rb +9 -0
  335. data/spec/discovery/crm/companies/basic_api_spec.rb +11 -0
  336. data/spec/discovery/crm/companies/batch_api_spec.rb +10 -0
  337. data/spec/discovery/crm/companies/search_api_spec.rb +7 -0
  338. data/spec/discovery/crm/contacts/associations_api_spec.rb +9 -0
  339. data/spec/discovery/crm/contacts/basic_api_spec.rb +11 -0
  340. data/spec/discovery/crm/contacts/batch_api_spec.rb +10 -0
  341. data/spec/discovery/crm/contacts/gdpr_api_spec.rb +8 -0
  342. data/spec/discovery/crm/contacts/search_api_spec.rb +7 -0
  343. data/spec/discovery/crm/deals/associations_api_spec.rb +9 -0
  344. data/spec/discovery/crm/deals/basic_api_spec.rb +11 -0
  345. data/spec/discovery/crm/deals/batch_api_spec.rb +10 -0
  346. data/spec/discovery/crm/deals/search_api_spec.rb +7 -0
  347. data/spec/discovery/crm/extensions/accounting/callbacks_api_spec.rb +16 -0
  348. data/spec/discovery/crm/extensions/accounting/invoice_api_spec.rb +9 -0
  349. data/spec/discovery/crm/extensions/accounting/settings_api_spec.rb +8 -0
  350. data/spec/discovery/crm/extensions/accounting/sync_api_spec.rb +8 -0
  351. data/spec/discovery/crm/extensions/accounting/user_accounts_api_spec.rb +8 -0
  352. data/spec/discovery/crm/extensions/calling/settings_api_spec.rb +10 -0
  353. data/spec/discovery/crm/extensions/cards/cards_api_spec.rb +11 -0
  354. data/spec/discovery/crm/extensions/cards/sample_response_api_spec.rb +7 -0
  355. data/spec/discovery/crm/extensions/videoconferencing/settings_api_spec.rb +9 -0
  356. data/spec/discovery/crm/imports/core_api_spec.rb +10 -0
  357. data/spec/discovery/crm/imports/public_imports_api_spec.rb +7 -0
  358. data/spec/discovery/crm/line_items/associations_api_spec.rb +9 -0
  359. data/spec/discovery/crm/line_items/basic_api_spec.rb +11 -0
  360. data/spec/discovery/crm/line_items/batch_api_spec.rb +10 -0
  361. data/spec/discovery/crm/line_items/search_api_spec.rb +7 -0
  362. data/spec/discovery/crm/objects/associations_api_spec.rb +9 -0
  363. data/spec/discovery/crm/objects/basic_api_spec.rb +12 -0
  364. data/spec/discovery/crm/objects/batch_api_spec.rb +10 -0
  365. data/spec/discovery/crm/objects/feedback_submissions/associations_api_spec.rb +7 -0
  366. data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +8 -0
  367. data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +7 -0
  368. data/spec/discovery/crm/objects/feedback_submissions/search_api_spec.rb +7 -0
  369. data/spec/discovery/crm/objects/gdpr_api_spec.rb +8 -0
  370. data/spec/discovery/crm/objects/search_api_spec.rb +7 -0
  371. data/spec/discovery/crm/owners/owners_api_spec.rb +8 -0
  372. data/spec/discovery/crm/pipelines/pipeline_stages_api_spec.rb +12 -0
  373. data/spec/discovery/crm/pipelines/pipelines_api_spec.rb +12 -0
  374. data/spec/discovery/crm/products/associations_api_spec.rb +9 -0
  375. data/spec/discovery/crm/products/basic_api_spec.rb +11 -0
  376. data/spec/discovery/crm/products/batch_api_spec.rb +10 -0
  377. data/spec/discovery/crm/products/search_api_spec.rb +7 -0
  378. data/spec/discovery/crm/properties/batch_api_spec.rb +9 -0
  379. data/spec/discovery/crm/properties/core_api_spec.rb +11 -0
  380. data/spec/discovery/crm/properties/groups_api_spec.rb +11 -0
  381. data/spec/discovery/crm/quotes/associations_api_spec.rb +7 -0
  382. data/spec/discovery/crm/quotes/basic_api_spec.rb +8 -0
  383. data/spec/discovery/crm/quotes/batch_api_spec.rb +7 -0
  384. data/spec/discovery/crm/quotes/search_api_spec.rb +7 -0
  385. data/spec/discovery/crm/schemas/core_api_spec.rb +13 -0
  386. data/spec/discovery/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  387. data/spec/discovery/crm/tickets/associations_api_spec.rb +9 -0
  388. data/spec/discovery/crm/tickets/basic_api_spec.rb +11 -0
  389. data/spec/discovery/crm/tickets/batch_api_spec.rb +10 -0
  390. data/spec/discovery/crm/tickets/search_api_spec.rb +7 -0
  391. data/spec/discovery/crm/timeline/events_api_spec.rb +11 -0
  392. data/spec/discovery/crm/timeline/templates_api_spec.rb +11 -0
  393. data/spec/discovery/crm/timeline/tokens_api_spec.rb +9 -0
  394. data/spec/discovery/events/events_api_spec.rb +7 -0
  395. data/spec/discovery/files/files/files_api_spec.rb +16 -0
  396. data/spec/discovery/files/files/folders_api_spec.rb +14 -0
  397. data/spec/{features/marketing/transactional/default_api_spec.rb → discovery/marketing/transactional/public_smtp_tokens_api_spec.rb} +2 -3
  398. data/spec/discovery/marketing/transactional/single_send_api_spec.rb +7 -0
  399. data/spec/discovery/oauth/access_tokens_api_spec.rb +7 -0
  400. data/spec/discovery/oauth/refresh_tokens_api_spec.rb +8 -0
  401. data/spec/discovery/oauth/tokens_api_spec.rb +7 -0
  402. data/spec/discovery/webhooks/settings_api_spec.rb +9 -0
  403. data/spec/discovery/webhooks/subscriptions_api_spec.rb +12 -0
  404. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  405. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  406. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  407. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  408. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  409. data/spec/features/cms/performance/public_performance_api_spec.rb +8 -0
  410. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  411. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  412. data/spec/features/crm/imports/public_imports_api_spec.rb +7 -0
  413. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  414. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  415. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  416. data/spec/features/marketing/transactional/public_smtp_tokens_api_spec.rb +11 -0
  417. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  418. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  419. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  420. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  421. metadata +438 -82
  422. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  423. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  424. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  425. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  426. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  427. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  428. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  429. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  430. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  431. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  432. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  433. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -16,10 +16,10 @@ module Hubspot
16
16
  module Cms
17
17
  module SiteSearch
18
18
  class SearchHitField
19
- attr_accessor :values
20
-
21
19
  attr_accessor :metadata_field
22
20
 
21
+ attr_accessor :values
22
+
23
23
  attr_accessor :name
24
24
 
25
25
  attr_accessor :value
@@ -27,8 +27,8 @@ module Hubspot
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
- :'values' => :'values',
31
30
  :'metadata_field' => :'metadataField',
31
+ :'values' => :'values',
32
32
  :'name' => :'name',
33
33
  :'value' => :'value'
34
34
  }
@@ -37,8 +37,8 @@ module Hubspot
37
37
  # Attribute type mapping.
38
38
  def self.openapi_types
39
39
  {
40
- :'values' => :'Array<Object>',
41
40
  :'metadata_field' => :'Boolean',
41
+ :'values' => :'Array<Object>',
42
42
  :'name' => :'String',
43
43
  :'value' => :'Object'
44
44
  }
@@ -65,16 +65,16 @@ module Hubspot
65
65
  h[k.to_sym] = v
66
66
  }
67
67
 
68
+ if attributes.key?(:'metadata_field')
69
+ self.metadata_field = attributes[:'metadata_field']
70
+ end
71
+
68
72
  if attributes.key?(:'values')
69
73
  if (value = attributes[:'values']).is_a?(Array)
70
74
  self.values = value
71
75
  end
72
76
  end
73
77
 
74
- if attributes.key?(:'metadata_field')
75
- self.metadata_field = attributes[:'metadata_field']
76
- end
77
-
78
78
  if attributes.key?(:'name')
79
79
  self.name = attributes[:'name']
80
80
  end
@@ -88,14 +88,14 @@ module Hubspot
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @values.nil?
92
- invalid_properties.push('invalid value for "values", values cannot be nil.')
93
- end
94
-
95
91
  if @metadata_field.nil?
96
92
  invalid_properties.push('invalid value for "metadata_field", metadata_field cannot be nil.')
97
93
  end
98
94
 
95
+ if @values.nil?
96
+ invalid_properties.push('invalid value for "values", values cannot be nil.')
97
+ end
98
+
99
99
  if @name.nil?
100
100
  invalid_properties.push('invalid value for "name", name cannot be nil.')
101
101
  end
@@ -110,8 +110,8 @@ module Hubspot
110
110
  # Check to see if the all the properties in the model are valid
111
111
  # @return true if the model is valid
112
112
  def valid?
113
- return false if @values.nil?
114
113
  return false if @metadata_field.nil?
114
+ return false if @values.nil?
115
115
  return false if @name.nil?
116
116
  return false if @value.nil?
117
117
  true
@@ -122,8 +122,8 @@ module Hubspot
122
122
  def ==(o)
123
123
  return true if self.equal?(o)
124
124
  self.class == o.class &&
125
- values == o.values &&
126
125
  metadata_field == o.metadata_field &&
126
+ values == o.values &&
127
127
  name == o.name &&
128
128
  value == o.value
129
129
  end
@@ -137,7 +137,7 @@ module Hubspot
137
137
  # Calculates hash code according to all attributes.
138
138
  # @return [Integer] Hash code
139
139
  def hash
140
- [values, metadata_field, name, value].hash
140
+ [metadata_field, values, name, value].hash
141
141
  end
142
142
 
143
143
  # Builds the object from hash
@@ -22,7 +22,6 @@ module Hubspot
22
22
  @api_client = api_client
23
23
  end
24
24
  # Archive a batch of companies by ID
25
- # Archive a list of companies given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
26
25
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @return [nil]
@@ -32,7 +31,6 @@ module Hubspot
32
31
  end
33
32
 
34
33
  # Archive a batch of companies by ID
35
- # Archive a list of companies given a collection of IDs. This method will return a &#x60;204 No Content&#x60; response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
36
34
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
37
35
  # @param [Hash] opts the optional parameters
38
36
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -86,7 +84,6 @@ module Hubspot
86
84
  end
87
85
 
88
86
  # Create a batch of companies
89
- # Create a batch of companies. This follows the same rules as creating an individual object.
90
87
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
91
88
  # @param [Hash] opts the optional parameters
92
89
  # @return [BatchResponseSimplePublicObject]
@@ -96,7 +93,6 @@ module Hubspot
96
93
  end
97
94
 
98
95
  # Create a batch of companies
99
- # Create a batch of companies. This follows the same rules as creating an individual object.
100
96
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
101
97
  # @param [Hash] opts the optional parameters
102
98
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -150,7 +146,6 @@ module Hubspot
150
146
  end
151
147
 
152
148
  # Read a batch of companies by internal ID, or unique property values
153
- # Read a list of companies given a collection of IDs. Use the `properties` request body property to control which properties are returned.
154
149
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
155
150
  # @param [Hash] opts the optional parameters
156
151
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
@@ -161,7 +156,6 @@ module Hubspot
161
156
  end
162
157
 
163
158
  # Read a batch of companies by internal ID, or unique property values
164
- # Read a list of companies given a collection of IDs. Use the &#x60;properties&#x60; request body property to control which properties are returned.
165
159
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
166
160
  # @param [Hash] opts the optional parameters
167
161
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -217,7 +211,6 @@ module Hubspot
217
211
  end
218
212
 
219
213
  # Update a batch of companies
220
- # Perform a partial upate on a batch of companies. This follows the same rules as performing partial updates on an individual object.
221
214
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
222
215
  # @param [Hash] opts the optional parameters
223
216
  # @return [BatchResponseSimplePublicObject]
@@ -227,7 +220,6 @@ module Hubspot
227
220
  end
228
221
 
229
222
  # Update a batch of companies
230
- # Perform a partial upate on a batch of companies. This follows the same rules as performing partial updates on an individual object.
231
223
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
232
224
  # @param [Hash] opts the optional parameters
233
225
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -21,8 +21,6 @@ module Hubspot
21
21
  def initialize(api_client = ApiClient.default)
22
22
  @api_client = api_client
23
23
  end
24
- # Filter, Sort, and Search CRM Objects
25
- # Filter, Sort, and Search CRM Objects
26
24
  # @param public_object_search_request [PublicObjectSearchRequest]
27
25
  # @param [Hash] opts the optional parameters
28
26
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -31,8 +29,6 @@ module Hubspot
31
29
  data
32
30
  end
33
31
 
34
- # Filter, Sort, and Search CRM Objects
35
- # Filter, Sort, and Search CRM Objects
36
32
  # @param public_object_search_request [PublicObjectSearchRequest]
37
33
  # @param [Hash] opts the optional parameters
38
34
  # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -22,7 +22,6 @@ module Hubspot
22
22
  @api_client = api_client
23
23
  end
24
24
  # Archive a batch of contacts by ID
25
- # Archive a list of contacts given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
26
25
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @return [nil]
@@ -32,7 +31,6 @@ module Hubspot
32
31
  end
33
32
 
34
33
  # Archive a batch of contacts by ID
35
- # Archive a list of contacts given a collection of IDs. This method will return a &#x60;204 No Content&#x60; response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
36
34
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
37
35
  # @param [Hash] opts the optional parameters
38
36
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -86,7 +84,6 @@ module Hubspot
86
84
  end
87
85
 
88
86
  # Create a batch of contacts
89
- # Create a batch of contacts. This follows the same rules as creating an individual object.
90
87
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
91
88
  # @param [Hash] opts the optional parameters
92
89
  # @return [BatchResponseSimplePublicObject]
@@ -96,7 +93,6 @@ module Hubspot
96
93
  end
97
94
 
98
95
  # Create a batch of contacts
99
- # Create a batch of contacts. This follows the same rules as creating an individual object.
100
96
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
101
97
  # @param [Hash] opts the optional parameters
102
98
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -150,7 +146,6 @@ module Hubspot
150
146
  end
151
147
 
152
148
  # Read a batch of contacts by internal ID, or unique property values
153
- # Read a list of contacts given a collection of IDs. Use the `properties` request body property to control which properties are returned.
154
149
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
155
150
  # @param [Hash] opts the optional parameters
156
151
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
@@ -161,7 +156,6 @@ module Hubspot
161
156
  end
162
157
 
163
158
  # Read a batch of contacts by internal ID, or unique property values
164
- # Read a list of contacts given a collection of IDs. Use the &#x60;properties&#x60; request body property to control which properties are returned.
165
159
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
166
160
  # @param [Hash] opts the optional parameters
167
161
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -217,7 +211,6 @@ module Hubspot
217
211
  end
218
212
 
219
213
  # Update a batch of contacts
220
- # Perform a partial upate on a batch of contacts. This follows the same rules as performing partial updates on an individual object.
221
214
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
222
215
  # @param [Hash] opts the optional parameters
223
216
  # @return [BatchResponseSimplePublicObject]
@@ -227,7 +220,6 @@ module Hubspot
227
220
  end
228
221
 
229
222
  # Update a batch of contacts
230
- # Perform a partial upate on a batch of contacts. This follows the same rules as performing partial updates on an individual object.
231
223
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
232
224
  # @param [Hash] opts the optional parameters
233
225
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -0,0 +1,150 @@
1
+ =begin
2
+ #Contacts
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 'cgi'
14
+
15
+ module Hubspot
16
+ module Crm
17
+ module Contacts
18
+ class GDPRApi
19
+ attr_accessor :api_client
20
+
21
+ def initialize(api_client = ApiClient.default)
22
+ @api_client = api_client
23
+ end
24
+ # DELETE
25
+ # Permanently delete a contact by email address and all associated content to follow GDPR. If contact isn't found, blacklists an email address from being used in the future.
26
+ # @param email [String]
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [nil]
29
+ def purge_by_email(email, opts = {})
30
+ purge_by_email_with_http_info(email, opts)
31
+ nil
32
+ end
33
+
34
+ # DELETE
35
+ # Permanently delete a contact by email address and all associated content to follow GDPR. If contact isn&#39;t found, blacklists an email address from being used in the future.
36
+ # @param email [String]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
+ def purge_by_email_with_http_info(email, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: GDPRApi.purge_by_email ...'
42
+ end
43
+ # verify the required parameter 'email' is set
44
+ if @api_client.config.client_side_validation && email.nil?
45
+ fail ArgumentError, "Missing the required parameter 'email' when calling GDPRApi.purge_by_email"
46
+ end
47
+ # resource path
48
+ local_var_path = '/crm/v3/objects/gdpr/contacts/email/{email}'.sub('{' + 'email' + '}', CGI.escape(email.to_s))
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+
53
+ # header parameters
54
+ header_params = opts[:header_params] || {}
55
+ # HTTP header 'Accept' (if needed)
56
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body]
63
+
64
+ # return_type
65
+ return_type = opts[:return_type]
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: GDPRApi#purge_by_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # DELETE
87
+ # Permanently delete a contact by id and all associated content to follow GDPR
88
+ # @param contact_id [Integer]
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [nil]
91
+ def purge_by_id(contact_id, opts = {})
92
+ purge_by_id_with_http_info(contact_id, opts)
93
+ nil
94
+ end
95
+
96
+ # DELETE
97
+ # Permanently delete a contact by id and all associated content to follow GDPR
98
+ # @param contact_id [Integer]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
+ def purge_by_id_with_http_info(contact_id, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: GDPRApi.purge_by_id ...'
104
+ end
105
+ # verify the required parameter 'contact_id' is set
106
+ if @api_client.config.client_side_validation && contact_id.nil?
107
+ fail ArgumentError, "Missing the required parameter 'contact_id' when calling GDPRApi.purge_by_id"
108
+ end
109
+ # resource path
110
+ local_var_path = '/crm/v3/objects/gdpr/contacts/{contactId}'.sub('{' + 'contactId' + '}', CGI.escape(contact_id.to_s))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
119
+
120
+ # form parameters
121
+ form_params = opts[:form_params] || {}
122
+
123
+ # http body (model)
124
+ post_body = opts[:body]
125
+
126
+ # return_type
127
+ return_type = opts[:return_type]
128
+
129
+ # auth_names
130
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
131
+
132
+ new_options = opts.merge(
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names,
138
+ :return_type => return_type
139
+ )
140
+
141
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: GDPRApi#purge_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+ end
148
+ end
149
+ end
150
+ end
@@ -21,8 +21,6 @@ module Hubspot
21
21
  def initialize(api_client = ApiClient.default)
22
22
  @api_client = api_client
23
23
  end
24
- # Filter, Sort, and Search CRM Objects
25
- # Filter, Sort, and Search CRM Objects
26
24
  # @param public_object_search_request [PublicObjectSearchRequest]
27
25
  # @param [Hash] opts the optional parameters
28
26
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -31,8 +29,6 @@ module Hubspot
31
29
  data
32
30
  end
33
31
 
34
- # Filter, Sort, and Search CRM Objects
35
- # Filter, Sort, and Search CRM Objects
36
32
  # @param public_object_search_request [PublicObjectSearchRequest]
37
33
  # @param [Hash] opts the optional parameters
38
34
  # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -22,7 +22,6 @@ module Hubspot
22
22
  @api_client = api_client
23
23
  end
24
24
  # Archive a batch of deals by ID
25
- # Archive a list of deals given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
26
25
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @return [nil]
@@ -32,7 +31,6 @@ module Hubspot
32
31
  end
33
32
 
34
33
  # Archive a batch of deals by ID
35
- # Archive a list of deals given a collection of IDs. This method will return a &#x60;204 No Content&#x60; response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
36
34
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
37
35
  # @param [Hash] opts the optional parameters
38
36
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -86,7 +84,6 @@ module Hubspot
86
84
  end
87
85
 
88
86
  # Create a batch of deals
89
- # Create a batch of deals. This follows the same rules as creating an individual object.
90
87
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
91
88
  # @param [Hash] opts the optional parameters
92
89
  # @return [BatchResponseSimplePublicObject]
@@ -96,7 +93,6 @@ module Hubspot
96
93
  end
97
94
 
98
95
  # Create a batch of deals
99
- # Create a batch of deals. This follows the same rules as creating an individual object.
100
96
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
101
97
  # @param [Hash] opts the optional parameters
102
98
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -150,7 +146,6 @@ module Hubspot
150
146
  end
151
147
 
152
148
  # Read a batch of deals by internal ID, or unique property values
153
- # Read a list of deals given a collection of IDs. Use the `properties` request body property to control which properties are returned.
154
149
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
155
150
  # @param [Hash] opts the optional parameters
156
151
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
@@ -161,7 +156,6 @@ module Hubspot
161
156
  end
162
157
 
163
158
  # Read a batch of deals by internal ID, or unique property values
164
- # Read a list of deals given a collection of IDs. Use the &#x60;properties&#x60; request body property to control which properties are returned.
165
159
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
166
160
  # @param [Hash] opts the optional parameters
167
161
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -217,7 +211,6 @@ module Hubspot
217
211
  end
218
212
 
219
213
  # Update a batch of deals
220
- # Perform a partial upate on a batch of deals. This follows the same rules as performing partial updates on an individual object.
221
214
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
222
215
  # @param [Hash] opts the optional parameters
223
216
  # @return [BatchResponseSimplePublicObject]
@@ -227,7 +220,6 @@ module Hubspot
227
220
  end
228
221
 
229
222
  # Update a batch of deals
230
- # Perform a partial upate on a batch of deals. This follows the same rules as performing partial updates on an individual object.
231
223
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
232
224
  # @param [Hash] opts the optional parameters
233
225
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -21,8 +21,6 @@ module Hubspot
21
21
  def initialize(api_client = ApiClient.default)
22
22
  @api_client = api_client
23
23
  end
24
- # Filter, Sort, and Search CRM Objects
25
- # Filter, Sort, and Search CRM Objects
26
24
  # @param public_object_search_request [PublicObjectSearchRequest]
27
25
  # @param [Hash] opts the optional parameters
28
26
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -31,8 +29,6 @@ module Hubspot
31
29
  data
32
30
  end
33
31
 
34
- # Filter, Sort, and Search CRM Objects
35
- # Filter, Sort, and Search CRM Objects
36
32
  # @param public_object_search_request [PublicObjectSearchRequest]
37
33
  # @param [Hash] opts the optional parameters
38
34
  # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -191,7 +191,7 @@ module Hubspot
191
191
  return_type = opts[:return_type] || 'PublicImportResponse'
192
192
 
193
193
  # auth_names
194
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
194
+ auth_names = opts[:auth_names] || ['hapikey']
195
195
 
196
196
  new_options = opts.merge(
197
197
  :header_params => header_params,
@@ -256,7 +256,7 @@ module Hubspot
256
256
  return_type = opts[:return_type] || 'CollectionResponsePublicImportResponse'
257
257
 
258
258
  # auth_names
259
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
259
+ auth_names = opts[:auth_names] || ['hapikey']
260
260
 
261
261
  new_options = opts.merge(
262
262
  :header_params => header_params,
@@ -15,7 +15,7 @@ require 'cgi'
15
15
  module Hubspot
16
16
  module Crm
17
17
  module Imports
18
- class DefaultApi
18
+ class PublicImportsApi
19
19
  attr_accessor :api_client
20
20
 
21
21
  def initialize(api_client = ApiClient.default)
@@ -26,8 +26,8 @@ module Hubspot
26
26
  # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
27
27
  # @option opts [Integer] :limit The maximum number of results to display per page.
28
28
  # @return [CollectionResponsePublicImportErrorForwardPaging]
29
- def get_crm_v3_imports_import_id_errors(import_id, opts = {})
30
- data, _status_code, _headers = get_crm_v3_imports_import_id_errors_with_http_info(import_id, opts)
29
+ def get_errors(import_id, opts = {})
30
+ data, _status_code, _headers = get_errors_with_http_info(import_id, opts)
31
31
  data
32
32
  end
33
33
 
@@ -36,13 +36,13 @@ module Hubspot
36
36
  # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
37
37
  # @option opts [Integer] :limit The maximum number of results to display per page.
38
38
  # @return [Array<(CollectionResponsePublicImportErrorForwardPaging, Integer, Hash)>] CollectionResponsePublicImportErrorForwardPaging data, response status code and response headers
39
- def get_crm_v3_imports_import_id_errors_with_http_info(import_id, opts = {})
39
+ def get_errors_with_http_info(import_id, opts = {})
40
40
  if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_crm_v3_imports_import_id_errors ...'
41
+ @api_client.config.logger.debug 'Calling API: PublicImportsApi.get_errors ...'
42
42
  end
43
43
  # verify the required parameter 'import_id' is set
44
44
  if @api_client.config.client_side_validation && import_id.nil?
45
- fail ArgumentError, "Missing the required parameter 'import_id' when calling DefaultApi.get_crm_v3_imports_import_id_errors"
45
+ fail ArgumentError, "Missing the required parameter 'import_id' when calling PublicImportsApi.get_errors"
46
46
  end
47
47
  # resource path
48
48
  local_var_path = '/crm/v3/imports/{importId}/errors'.sub('{' + 'importId' + '}', CGI.escape(import_id.to_s))
@@ -67,7 +67,7 @@ module Hubspot
67
67
  return_type = opts[:return_type] || 'CollectionResponsePublicImportErrorForwardPaging'
68
68
 
69
69
  # auth_names
70
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
70
+ auth_names = opts[:auth_names] || ['hapikey']
71
71
 
72
72
  new_options = opts.merge(
73
73
  :header_params => header_params,
@@ -80,7 +80,7 @@ module Hubspot
80
80
 
81
81
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
82
  if @api_client.config.debugging
83
- @api_client.config.logger.debug "API called: DefaultApi#get_crm_v3_imports_import_id_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ @api_client.config.logger.debug "API called: PublicImportsApi#get_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
84
  end
85
85
  return data, status_code, headers
86
86
  end