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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25b4bf5723bba2706db45a4c12db8479e73da35bd34adb0740b21f4ffbd845c2
4
- data.tar.gz: e3cc5b9a30ebfbe22db86cef9dec226191a331ec9ea1b0209e58b555ba1455dc
3
+ metadata.gz: 49773ca87604753beeba481bb492056259454f16f9a984ef165c9a1d4d87556f
4
+ data.tar.gz: 5802046f01305f5d0c4580cc832b2fa31f3b5e5c01a0429dc45e1583b28220b5
5
5
  SHA512:
6
- metadata.gz: be0d0d0d879aa2afc63cf4c69ecaee624eaa8745dfb4b297738e991dfd99761d9b3e8829f120b348e0f76ecc1f3e0bd46153634f2a77cd520b392b33aa40baa7
7
- data.tar.gz: f2cd1e7907f47a26113422645e240342c51df1095f6ad70e7f2e28c1a4bf3510a7199817ac1d06d93c684d901df3119c0b409ea9b66a2b8129a721f127fc7cf2
6
+ metadata.gz: fd1127831b253716776f3c88a7a5a0e48984ab4f13f266f51a568612e6c3cd154818f80d0b0c023e91cf0612266fed19467b1337509a0cd1424ceb1d1be79115
7
+ data.tar.gz: 0eb281a32a8746602b7e3c905b4672bcd8708e35aef144f23fcb04deda01657d42429f00c73635565d5db06a80c28d2ccf57446a9928a699d207b481a59efd81
data/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [11.2.0] - 2022-05-12
9
+
10
+ - added discovery classes
11
+
12
+ ## [11.1.1] - 2021-11-10
13
+
14
+ - fixed type for the file collection response
15
+
16
+ ## [11.1.0] - 2021-09-10
17
+
18
+ - added GDPR api modules
19
+ - updated generated code
20
+
21
+ ## [11.0.0] - 2021-08-20
22
+
23
+ - new generated code with updated class names
24
+
8
25
  ## [10.1.0] - 2021-06-08
9
26
 
10
27
  - added CommunicationPreferences api module
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubspot-api-client (10.1.1)
4
+ hubspot-api-client (11.2.0)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  require_all (~> 3.0.0)
7
7
  typhoeus (~> 1.4.0)
@@ -16,13 +16,18 @@ GEM
16
16
  ZenTest (>= 4.4.1)
17
17
  autotest-growl (0.2.16)
18
18
  autotest-rails-pure (4.1.2)
19
+ coderay (1.1.3)
19
20
  crack (0.4.4)
20
21
  diff-lcs (1.4.4)
21
- ethon (0.14.0)
22
+ ethon (0.15.0)
22
23
  ffi (>= 1.15.0)
23
- ffi (1.15.3)
24
+ ffi (1.15.5)
24
25
  hashdiff (1.0.1)
25
- json (2.5.1)
26
+ json (2.6.1)
27
+ method_source (1.0.0)
28
+ pry (0.14.1)
29
+ coderay (~> 1.1)
30
+ method_source (~> 1.0)
26
31
  public_suffix (4.0.6)
27
32
  rake (12.3.3)
28
33
  rake-release (1.2.1)
@@ -57,6 +62,7 @@ DEPENDENCIES
57
62
  autotest-growl (~> 0.2, >= 0.2.16)
58
63
  autotest-rails-pure (~> 4.1, >= 4.1.2)
59
64
  hubspot-api-client!
65
+ pry
60
66
  rake (~> 12.3.3)
61
67
  rake-release
62
68
  rspec (~> 3.6, >= 3.6.0)
data/README.md CHANGED
@@ -36,6 +36,20 @@ basic_api.get_page(auth_names: 'hapikey')
36
36
 
37
37
  ```
38
38
 
39
+ for new discovery classes since version 11.2
40
+ ```ruby
41
+ # Load the gem
42
+ require 'hubspot-api-client'
43
+
44
+ # Setup client with hapikey authorization
45
+ client = Hubspot::Client.new(api_key: 'demo')
46
+
47
+ # Get contacts
48
+ basic_api = client.crm.contacts.basic_api
49
+ basic_api.get_page
50
+
51
+ ```
52
+
39
53
  ### Usage
40
54
 
41
55
  ### Get all:
@@ -45,6 +59,13 @@ get_all method is available for all major objects (Companies, Contacts, Deals, L
45
59
  basic_api = Hubspot::Crm::Contacts::BasicApi.new
46
60
  all_contacts = basic_api.get_all(auth_names: 'oauth2')
47
61
  ```
62
+
63
+ for new discovery classes since version 11.2
64
+ ```ruby
65
+ client = Hubspot::Client(access_token: 'your_oauth2_access_token')
66
+ all_contacts = client.crm.contacts.basic_api.get_all
67
+ ```
68
+
48
69
  Please note that pagination is used under the hood to get all results.
49
70
 
50
71
 
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
25
25
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
26
26
  s.add_development_dependency 'rake-release'
27
+ s.add_development_dependency 'pry'
27
28
 
28
29
  s.files = `git ls-files -z`.split("\x0").reject do |f|
29
30
  f.match(%r{^(sample-apps)/})
@@ -0,0 +1,51 @@
1
+ require_rel 'discovery'
2
+
3
+ module Hubspot
4
+ class Client
5
+ attr_reader :api_key, :access_token
6
+
7
+ def self.api_modules
8
+ %i[
9
+ automation
10
+ cms
11
+ communication_preferences
12
+ conversations
13
+ crm
14
+ events
15
+ files
16
+ marketing
17
+ o_auth
18
+ webhooks
19
+ ].freeze
20
+ end
21
+
22
+ include Hubspot::Discovery::BaseModuleClient
23
+
24
+ private
25
+
26
+ def self.base_module
27
+ 'Hubspot::Discovery'
28
+ end
29
+
30
+ def configure_api_key
31
+ Hubspot.configure do |config|
32
+ config.api_key['hapikey'] = api_key
33
+ end
34
+ end
35
+
36
+ def configure_access_token
37
+ Hubspot.configure do |config|
38
+ config.access_token = access_token
39
+ end
40
+ end
41
+
42
+ def initialize(params)
43
+ raise 'Please, pass :api_key or :access_token' if params[:api_key].nil? && params[:developer_api_key].nil? && params[:access_token].nil?
44
+ @api_key = params[:api_key] || params[:developer_api_key]
45
+ @access_token = params[:access_token]
46
+ @params = params
47
+ configure_api_key if @api_key
48
+ configure_access_token if @access_token
49
+ end
50
+ end
51
+ end
@@ -15,7 +15,7 @@ require 'cgi'
15
15
  module Hubspot
16
16
  module Cms
17
17
  module AuditLogs
18
- class DefaultApi
18
+ class AuditLogsApi
19
19
  attr_accessor :api_client
20
20
 
21
21
  def initialize(api_client = ApiClient.default)
@@ -52,7 +52,7 @@ module Hubspot
52
52
  # @return [Array<(CollectionResponsePublicAuditLog, Integer, Hash)>] CollectionResponsePublicAuditLog data, response status code and response headers
53
53
  def get_page_with_http_info(opts = {})
54
54
  if @api_client.config.debugging
55
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_page ...'
55
+ @api_client.config.logger.debug 'Calling API: AuditLogsApi.get_page ...'
56
56
  end
57
57
  # resource path
58
58
  local_var_path = '/cms/v3/audit-logs/'
@@ -96,7 +96,7 @@ module Hubspot
96
96
 
97
97
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
98
98
  if @api_client.config.debugging
99
- @api_client.config.logger.debug "API called: DefaultApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ @api_client.config.logger.debug "API called: AuditLogsApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
100
100
  end
101
101
  return data, status_code, headers
102
102
  end
@@ -16,7 +16,7 @@ module Hubspot
16
16
  module Cms
17
17
  module Blogs
18
18
  module Authors
19
- class DefaultApi
19
+ class AuthorApi
20
20
  attr_accessor :api_client
21
21
 
22
22
  def initialize(api_client = ApiClient.default)
@@ -41,11 +41,11 @@ module Hubspot
41
41
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
42
42
  def archive_with_http_info(object_id, opts = {})
43
43
  if @api_client.config.debugging
44
- @api_client.config.logger.debug 'Calling API: DefaultApi.archive ...'
44
+ @api_client.config.logger.debug 'Calling API: AuthorApi.archive ...'
45
45
  end
46
46
  # verify the required parameter 'object_id' is set
47
47
  if @api_client.config.client_side_validation && object_id.nil?
48
- fail ArgumentError, "Missing the required parameter 'object_id' when calling DefaultApi.archive"
48
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling AuthorApi.archive"
49
49
  end
50
50
  # resource path
51
51
  local_var_path = '/cms/v3/blogs/authors/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
@@ -82,7 +82,7 @@ module Hubspot
82
82
 
83
83
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
84
84
  if @api_client.config.debugging
85
- @api_client.config.logger.debug "API called: DefaultApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ @api_client.config.logger.debug "API called: AuthorApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
86
  end
87
87
  return data, status_code, headers
88
88
  end
@@ -104,11 +104,11 @@ module Hubspot
104
104
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
105
105
  def archive_batch_with_http_info(batch_input_string, opts = {})
106
106
  if @api_client.config.debugging
107
- @api_client.config.logger.debug 'Calling API: DefaultApi.archive_batch ...'
107
+ @api_client.config.logger.debug 'Calling API: AuthorApi.archive_batch ...'
108
108
  end
109
109
  # verify the required parameter 'batch_input_string' is set
110
110
  if @api_client.config.client_side_validation && batch_input_string.nil?
111
- fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling DefaultApi.archive_batch"
111
+ fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling AuthorApi.archive_batch"
112
112
  end
113
113
  # resource path
114
114
  local_var_path = '/cms/v3/blogs/authors/batch/archive'
@@ -146,7 +146,7 @@ module Hubspot
146
146
 
147
147
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
148
148
  if @api_client.config.debugging
149
- @api_client.config.logger.debug "API called: DefaultApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ @api_client.config.logger.debug "API called: AuthorApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
150
  end
151
151
  return data, status_code, headers
152
152
  end
@@ -168,11 +168,11 @@ module Hubspot
168
168
  # @return [Array<(BlogAuthor, Integer, Hash)>] BlogAuthor data, response status code and response headers
169
169
  def create_with_http_info(blog_author, opts = {})
170
170
  if @api_client.config.debugging
171
- @api_client.config.logger.debug 'Calling API: DefaultApi.create ...'
171
+ @api_client.config.logger.debug 'Calling API: AuthorApi.create ...'
172
172
  end
173
173
  # verify the required parameter 'blog_author' is set
174
174
  if @api_client.config.client_side_validation && blog_author.nil?
175
- fail ArgumentError, "Missing the required parameter 'blog_author' when calling DefaultApi.create"
175
+ fail ArgumentError, "Missing the required parameter 'blog_author' when calling AuthorApi.create"
176
176
  end
177
177
  # resource path
178
178
  local_var_path = '/cms/v3/blogs/authors'
@@ -210,7 +210,7 @@ module Hubspot
210
210
 
211
211
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
212
212
  if @api_client.config.debugging
213
- @api_client.config.logger.debug "API called: DefaultApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
+ @api_client.config.logger.debug "API called: AuthorApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
214
214
  end
215
215
  return data, status_code, headers
216
216
  end
@@ -232,11 +232,11 @@ module Hubspot
232
232
  # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
233
233
  def create_batch_with_http_info(batch_input_blog_author, opts = {})
234
234
  if @api_client.config.debugging
235
- @api_client.config.logger.debug 'Calling API: DefaultApi.create_batch ...'
235
+ @api_client.config.logger.debug 'Calling API: AuthorApi.create_batch ...'
236
236
  end
237
237
  # verify the required parameter 'batch_input_blog_author' is set
238
238
  if @api_client.config.client_side_validation && batch_input_blog_author.nil?
239
- fail ArgumentError, "Missing the required parameter 'batch_input_blog_author' when calling DefaultApi.create_batch"
239
+ fail ArgumentError, "Missing the required parameter 'batch_input_blog_author' when calling AuthorApi.create_batch"
240
240
  end
241
241
  # resource path
242
242
  local_var_path = '/cms/v3/blogs/authors/batch/create'
@@ -274,7 +274,7 @@ module Hubspot
274
274
 
275
275
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
276
276
  if @api_client.config.debugging
277
- @api_client.config.logger.debug "API called: DefaultApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
277
+ @api_client.config.logger.debug "API called: AuthorApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
278
  end
279
279
  return data, status_code, headers
280
280
  end
@@ -298,11 +298,11 @@ module Hubspot
298
298
  # @return [Array<(BlogAuthor, Integer, Hash)>] BlogAuthor data, response status code and response headers
299
299
  def get_by_id_with_http_info(object_id, opts = {})
300
300
  if @api_client.config.debugging
301
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_by_id ...'
301
+ @api_client.config.logger.debug 'Calling API: AuthorApi.get_by_id ...'
302
302
  end
303
303
  # verify the required parameter 'object_id' is set
304
304
  if @api_client.config.client_side_validation && object_id.nil?
305
- fail ArgumentError, "Missing the required parameter 'object_id' when calling DefaultApi.get_by_id"
305
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling AuthorApi.get_by_id"
306
306
  end
307
307
  # resource path
308
308
  local_var_path = '/cms/v3/blogs/authors/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
@@ -339,7 +339,7 @@ module Hubspot
339
339
 
340
340
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
341
341
  if @api_client.config.debugging
342
- @api_client.config.logger.debug "API called: DefaultApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
342
+ @api_client.config.logger.debug "API called: AuthorApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
343
343
  end
344
344
  return data, status_code, headers
345
345
  end
@@ -379,7 +379,7 @@ module Hubspot
379
379
  # @return [Array<(CollectionResponseWithTotalBlogAuthorForwardPaging, Integer, Hash)>] CollectionResponseWithTotalBlogAuthorForwardPaging data, response status code and response headers
380
380
  def get_page_with_http_info(opts = {})
381
381
  if @api_client.config.debugging
382
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_page ...'
382
+ @api_client.config.logger.debug 'Calling API: AuthorApi.get_page ...'
383
383
  end
384
384
  # resource path
385
385
  local_var_path = '/cms/v3/blogs/authors'
@@ -425,7 +425,7 @@ module Hubspot
425
425
 
426
426
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
427
427
  if @api_client.config.debugging
428
- @api_client.config.logger.debug "API called: DefaultApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
428
+ @api_client.config.logger.debug "API called: AuthorApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
429
429
  end
430
430
  return data, status_code, headers
431
431
  end
@@ -449,11 +449,11 @@ module Hubspot
449
449
  # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
450
450
  def read_batch_with_http_info(batch_input_string, opts = {})
451
451
  if @api_client.config.debugging
452
- @api_client.config.logger.debug 'Calling API: DefaultApi.read_batch ...'
452
+ @api_client.config.logger.debug 'Calling API: AuthorApi.read_batch ...'
453
453
  end
454
454
  # verify the required parameter 'batch_input_string' is set
455
455
  if @api_client.config.client_side_validation && batch_input_string.nil?
456
- fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling DefaultApi.read_batch"
456
+ fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling AuthorApi.read_batch"
457
457
  end
458
458
  # resource path
459
459
  local_var_path = '/cms/v3/blogs/authors/batch/read'
@@ -492,7 +492,7 @@ module Hubspot
492
492
 
493
493
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
494
494
  if @api_client.config.debugging
495
- @api_client.config.logger.debug "API called: DefaultApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
495
+ @api_client.config.logger.debug "API called: AuthorApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
496
496
  end
497
497
  return data, status_code, headers
498
498
  end
@@ -518,15 +518,15 @@ module Hubspot
518
518
  # @return [Array<(BlogAuthor, Integer, Hash)>] BlogAuthor data, response status code and response headers
519
519
  def update_with_http_info(object_id, blog_author, opts = {})
520
520
  if @api_client.config.debugging
521
- @api_client.config.logger.debug 'Calling API: DefaultApi.update ...'
521
+ @api_client.config.logger.debug 'Calling API: AuthorApi.update ...'
522
522
  end
523
523
  # verify the required parameter 'object_id' is set
524
524
  if @api_client.config.client_side_validation && object_id.nil?
525
- fail ArgumentError, "Missing the required parameter 'object_id' when calling DefaultApi.update"
525
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling AuthorApi.update"
526
526
  end
527
527
  # verify the required parameter 'blog_author' is set
528
528
  if @api_client.config.client_side_validation && blog_author.nil?
529
- fail ArgumentError, "Missing the required parameter 'blog_author' when calling DefaultApi.update"
529
+ fail ArgumentError, "Missing the required parameter 'blog_author' when calling AuthorApi.update"
530
530
  end
531
531
  # resource path
532
532
  local_var_path = '/cms/v3/blogs/authors/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
@@ -565,7 +565,7 @@ module Hubspot
565
565
 
566
566
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
567
567
  if @api_client.config.debugging
568
- @api_client.config.logger.debug "API called: DefaultApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
568
+ @api_client.config.logger.debug "API called: AuthorApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
569
569
  end
570
570
  return data, status_code, headers
571
571
  end
@@ -589,11 +589,11 @@ module Hubspot
589
589
  # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
590
590
  def update_batch_with_http_info(batch_input_json_node, opts = {})
591
591
  if @api_client.config.debugging
592
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_batch ...'
592
+ @api_client.config.logger.debug 'Calling API: AuthorApi.update_batch ...'
593
593
  end
594
594
  # verify the required parameter 'batch_input_json_node' is set
595
595
  if @api_client.config.client_side_validation && batch_input_json_node.nil?
596
- fail ArgumentError, "Missing the required parameter 'batch_input_json_node' when calling DefaultApi.update_batch"
596
+ fail ArgumentError, "Missing the required parameter 'batch_input_json_node' when calling AuthorApi.update_batch"
597
597
  end
598
598
  # resource path
599
599
  local_var_path = '/cms/v3/blogs/authors/batch/update'
@@ -632,7 +632,7 @@ module Hubspot
632
632
 
633
633
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
634
634
  if @api_client.config.debugging
635
- @api_client.config.logger.debug "API called: DefaultApi#update_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
635
+ @api_client.config.logger.debug "API called: AuthorApi#update_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
636
636
  end
637
637
  return data, status_code, headers
638
638
  end