hubspot-api-client 10.0.0 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile.lock +3 -3
  4. data/README.md +4 -0
  5. data/lib/hubspot/codegen/automation/actions/api_client.rb +12 -12
  6. data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
  7. data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +12 -12
  8. data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
  9. data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +12 -12
  10. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
  11. data/lib/hubspot/codegen/cms/blogs/blog-posts/api_client.rb +12 -12
  12. data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
  13. data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +12 -12
  14. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  15. data/lib/hubspot/codegen/cms/domains/api_client.rb +12 -12
  16. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  17. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
  18. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
  19. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
  20. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +13 -13
  21. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  23. 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
  24. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  30. data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
  31. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  32. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  33. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  34. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
  36. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
  37. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
  38. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  39. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
  40. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  41. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  42. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  43. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  44. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  45. data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
  46. data/lib/hubspot/codegen/cms/performance/api_client.rb +12 -12
  47. data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
  48. data/lib/hubspot/codegen/cms/site-search/api_client.rb +12 -12
  49. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
  50. data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +12 -12
  51. data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +80 -0
  52. data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +214 -0
  53. data/lib/hubspot/codegen/communication_preferences/api_client.rb +404 -0
  54. data/lib/hubspot/codegen/communication_preferences/api_error.rb +59 -0
  55. data/lib/hubspot/codegen/communication_preferences/configuration.rb +254 -0
  56. data/lib/hubspot/codegen/communication_preferences/models/error.rb +290 -0
  57. data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +256 -0
  58. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +372 -0
  59. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +231 -0
  60. data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +283 -0
  61. data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +339 -0
  62. data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +216 -0
  63. data/lib/hubspot/codegen/conversations/visitor-identification/api_client.rb +12 -12
  64. data/lib/hubspot/codegen/crm/associations/api_client.rb +12 -12
  65. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
  66. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  67. data/lib/hubspot/codegen/crm/companies/api_client.rb +12 -12
  68. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  69. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  70. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  71. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  72. data/lib/hubspot/codegen/crm/contacts/api_client.rb +12 -12
  73. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  74. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  75. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  76. data/lib/hubspot/codegen/crm/deals/api_client.rb +12 -12
  77. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  78. data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +12 -12
  79. data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +24 -16
  80. data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +12 -12
  81. data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +1 -1
  82. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +14 -4
  83. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +14 -4
  84. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +16 -1
  85. data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +25 -17
  86. data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +12 -12
  87. data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
  88. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +12 -12
  89. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  90. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  91. data/lib/hubspot/codegen/crm/imports/api_client.rb +12 -12
  92. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  93. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  94. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  95. data/lib/hubspot/codegen/crm/line_items/api_client.rb +12 -12
  96. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  97. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  98. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  99. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  100. data/lib/hubspot/codegen/crm/objects/api_client.rb +12 -12
  101. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  102. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  103. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +12 -12
  104. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  105. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  106. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  107. data/lib/hubspot/codegen/crm/owners/api_client.rb +12 -12
  108. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +12 -12
  109. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  110. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  111. data/lib/hubspot/codegen/crm/products/api_client.rb +12 -12
  112. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  113. data/lib/hubspot/codegen/crm/properties/api_client.rb +12 -12
  114. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  115. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  116. data/lib/hubspot/codegen/crm/quotes/api_client.rb +12 -12
  117. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  118. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  119. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  120. data/lib/hubspot/codegen/crm/schemas/api_client.rb +12 -12
  121. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  122. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  123. data/lib/hubspot/codegen/crm/tickets/api_client.rb +12 -12
  124. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  125. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  126. data/lib/hubspot/codegen/crm/timeline/api_client.rb +12 -12
  127. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  128. data/lib/hubspot/codegen/events/api_client.rb +12 -12
  129. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  130. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  131. data/lib/hubspot/codegen/files/files/api_client.rb +12 -12
  132. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  133. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  134. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  135. data/lib/hubspot/codegen/marketing/transactional/api_client.rb +12 -12
  136. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  137. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  138. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  139. data/lib/hubspot/codegen/oauth/api_client.rb +12 -12
  140. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  141. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  142. data/lib/hubspot/codegen/webhooks/api_client.rb +12 -12
  143. data/lib/hubspot/version.rb +1 -1
  144. data/lib/hubspot-api-client.rb +16 -3
  145. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  146. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  147. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  148. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  149. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  150. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  151. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  152. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  153. 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
  154. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  155. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  156. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  157. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  158. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  159. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  160. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  161. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  162. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  163. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  164. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  165. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  166. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  167. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  168. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  169. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  170. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  171. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  172. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  173. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  174. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  175. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  176. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  177. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  178. data/spec/codegen/communication_preferences/api/definition_api_spec.rb +46 -0
  179. data/spec/codegen/communication_preferences/api/status_api_spec.rb +71 -0
  180. data/spec/codegen/communication_preferences/models/error_detail_spec.rb +65 -0
  181. data/spec/codegen/communication_preferences/models/error_spec.rb +77 -0
  182. data/spec/codegen/communication_preferences/models/public_subscription_status_spec.rb +101 -0
  183. data/spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb +47 -0
  184. data/spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb +63 -0
  185. data/spec/codegen/communication_preferences/models/subscription_definition_spec.rb +95 -0
  186. data/spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb +41 -0
  187. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  188. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  189. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  190. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  191. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  192. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  193. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  194. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  195. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  196. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  197. data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +2 -2
  198. data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +6 -0
  199. data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +6 -0
  200. data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +6 -0
  201. data/spec/codegen/crm/extensions/cards/api/cards_api_spec.rb +2 -2
  202. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  203. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  204. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  205. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  206. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  207. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  208. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  209. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  210. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  211. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  212. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  213. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  214. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  215. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  216. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  217. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  218. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  219. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  220. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  221. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  222. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  223. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  224. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  225. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  226. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  227. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  228. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  229. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  230. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  231. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  232. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  233. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  234. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  235. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  236. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  237. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  238. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  239. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  240. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  241. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  242. data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
  243. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  244. data/spec/features/communication_preferences/definition_api_spec.rb +7 -0
  245. data/spec/features/communication_preferences/status_api_spec.rb +9 -0
  246. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  247. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  248. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  249. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  250. data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
  251. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  252. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  253. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  254. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  255. metadata +130 -82
  256. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  257. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  258. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  259. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  260. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  261. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  262. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  263. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  264. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  265. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  266. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  267. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -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 `204 No Content` 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
@@ -55,21 +55,21 @@ module Hubspot
55
55
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
56
56
  end
57
57
 
58
- unless response.success?
59
- if config.error_handler.any?
60
- config.error_handler.each do |statuses, opts|
61
- statuses = statuses.is_a?(Integer) ? [statuses] : statuses
62
-
63
- retries = opts[:max_retries] || 5
64
- while retries > 0 && statuses.include?(response.code)
65
- sleep opts[:seconds_delay] if opts[:seconds_delay]
66
- response = request.run
67
- opts[:retry_block].call if opts[:retry_block]
68
- retries -= 1
69
- end
58
+ if !response.success? && config.error_handler.any?
59
+ config.error_handler.each do |statuses, opts|
60
+ statuses = statuses.is_a?(Integer) ? [statuses] : statuses
61
+
62
+ retries = opts[:max_retries] || 5
63
+ while retries > 0 && statuses.include?(response.code)
64
+ sleep opts[:seconds_delay] if opts[:seconds_delay]
65
+ response = request.run
66
+ opts[:retry_block].call if opts[:retry_block]
67
+ retries -= 1
70
68
  end
71
69
  end
70
+ end
72
71
 
72
+ unless response.success?
73
73
  if response.timed_out?
74
74
  fail ApiError.new('Connection timed out')
75
75
  elsif response.code == 0
@@ -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
@@ -56,21 +56,21 @@ module Hubspot
56
56
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
57
57
  end
58
58
 
59
- unless response.success?
60
- if config.error_handler.any?
61
- config.error_handler.each do |statuses, opts|
62
- statuses = statuses.is_a?(Integer) ? [statuses] : statuses
63
-
64
- retries = opts[:max_retries] || 5
65
- while retries > 0 && statuses.include?(response.code)
66
- sleep opts[:seconds_delay] if opts[:seconds_delay]
67
- response = request.run
68
- opts[:retry_block].call if opts[:retry_block]
69
- retries -= 1
70
- end
59
+ if !response.success? && config.error_handler.any?
60
+ config.error_handler.each do |statuses, opts|
61
+ statuses = statuses.is_a?(Integer) ? [statuses] : statuses
62
+
63
+ retries = opts[:max_retries] || 5
64
+ while retries > 0 && statuses.include?(response.code)
65
+ sleep opts[:seconds_delay] if opts[:seconds_delay]
66
+ response = request.run
67
+ opts[:retry_block].call if opts[:retry_block]
68
+ retries -= 1
71
69
  end
72
70
  end
71
+ end
73
72
 
73
+ unless response.success?
74
74
  if response.timed_out?
75
75
  fail ApiError.new('Connection timed out')
76
76
  elsif response.code == 0
@@ -66,7 +66,7 @@ module Hubspot
66
66
  return_type = opts[:return_type]
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:auth_names] || ['hapikey']
69
+ auth_names = opts[:auth_names] || ['developer_hapikey']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :header_params => header_params,
@@ -87,21 +87,21 @@ module Hubspot
87
87
  # Configure a calling extension
88
88
  # Used to set the menu label, target iframe URL, and dimensions for your calling extension.
89
89
  # @param app_id [Integer] The ID of the target app.
90
+ # @param settings_request [SettingsRequest] Settings state to create with.
90
91
  # @param [Hash] opts the optional parameters
91
- # @option opts [SettingsRequest] :settings_request Settings state to create with.
92
92
  # @return [SettingsResponse]
93
- def create(app_id, opts = {})
94
- data, _status_code, _headers = create_with_http_info(app_id, opts)
93
+ def create(app_id, settings_request, opts = {})
94
+ data, _status_code, _headers = create_with_http_info(app_id, settings_request, opts)
95
95
  data
96
96
  end
97
97
 
98
98
  # Configure a calling extension
99
99
  # Used to set the menu label, target iframe URL, and dimensions for your calling extension.
100
100
  # @param app_id [Integer] The ID of the target app.
101
+ # @param settings_request [SettingsRequest] Settings state to create with.
101
102
  # @param [Hash] opts the optional parameters
102
- # @option opts [SettingsRequest] :settings_request Settings state to create with.
103
103
  # @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
104
- def create_with_http_info(app_id, opts = {})
104
+ def create_with_http_info(app_id, settings_request, opts = {})
105
105
  if @api_client.config.debugging
106
106
  @api_client.config.logger.debug 'Calling API: SettingsApi.create ...'
107
107
  end
@@ -109,6 +109,10 @@ module Hubspot
109
109
  if @api_client.config.client_side_validation && app_id.nil?
110
110
  fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.create"
111
111
  end
112
+ # verify the required parameter 'settings_request' is set
113
+ if @api_client.config.client_side_validation && settings_request.nil?
114
+ fail ArgumentError, "Missing the required parameter 'settings_request' when calling SettingsApi.create"
115
+ end
112
116
  # resource path
113
117
  local_var_path = '/crm/v3/extensions/calling/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
114
118
 
@@ -126,13 +130,13 @@ module Hubspot
126
130
  form_params = opts[:form_params] || {}
127
131
 
128
132
  # http body (model)
129
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'settings_request'])
133
+ post_body = opts[:body] || @api_client.object_to_http_body(settings_request)
130
134
 
131
135
  # return_type
132
136
  return_type = opts[:return_type] || 'SettingsResponse'
133
137
 
134
138
  # auth_names
135
- auth_names = opts[:auth_names] || ['hapikey']
139
+ auth_names = opts[:auth_names] || ['developer_hapikey']
136
140
 
137
141
  new_options = opts.merge(
138
142
  :header_params => header_params,
@@ -194,7 +198,7 @@ module Hubspot
194
198
  return_type = opts[:return_type] || 'SettingsResponse'
195
199
 
196
200
  # auth_names
197
- auth_names = opts[:auth_names] || ['hapikey']
201
+ auth_names = opts[:auth_names] || ['developer_hapikey']
198
202
 
199
203
  new_options = opts.merge(
200
204
  :header_params => header_params,
@@ -215,21 +219,21 @@ module Hubspot
215
219
  # Update settings
216
220
  # Updates existing calling extension settings.
217
221
  # @param app_id [Integer] The ID of the target app.
222
+ # @param settings_patch_request [SettingsPatchRequest] Updated details for the settings.
218
223
  # @param [Hash] opts the optional parameters
219
- # @option opts [SettingsPatchRequest] :settings_patch_request Updated details for the settings.
220
224
  # @return [SettingsResponse]
221
- def update(app_id, opts = {})
222
- data, _status_code, _headers = update_with_http_info(app_id, opts)
225
+ def update(app_id, settings_patch_request, opts = {})
226
+ data, _status_code, _headers = update_with_http_info(app_id, settings_patch_request, opts)
223
227
  data
224
228
  end
225
229
 
226
230
  # Update settings
227
231
  # Updates existing calling extension settings.
228
232
  # @param app_id [Integer] The ID of the target app.
233
+ # @param settings_patch_request [SettingsPatchRequest] Updated details for the settings.
229
234
  # @param [Hash] opts the optional parameters
230
- # @option opts [SettingsPatchRequest] :settings_patch_request Updated details for the settings.
231
235
  # @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
232
- def update_with_http_info(app_id, opts = {})
236
+ def update_with_http_info(app_id, settings_patch_request, opts = {})
233
237
  if @api_client.config.debugging
234
238
  @api_client.config.logger.debug 'Calling API: SettingsApi.update ...'
235
239
  end
@@ -237,6 +241,10 @@ module Hubspot
237
241
  if @api_client.config.client_side_validation && app_id.nil?
238
242
  fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.update"
239
243
  end
244
+ # verify the required parameter 'settings_patch_request' is set
245
+ if @api_client.config.client_side_validation && settings_patch_request.nil?
246
+ fail ArgumentError, "Missing the required parameter 'settings_patch_request' when calling SettingsApi.update"
247
+ end
240
248
  # resource path
241
249
  local_var_path = '/crm/v3/extensions/calling/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
242
250
 
@@ -254,13 +262,13 @@ module Hubspot
254
262
  form_params = opts[:form_params] || {}
255
263
 
256
264
  # http body (model)
257
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'settings_patch_request'])
265
+ post_body = opts[:body] || @api_client.object_to_http_body(settings_patch_request)
258
266
 
259
267
  # return_type
260
268
  return_type = opts[:return_type] || 'SettingsResponse'
261
269
 
262
270
  # auth_names
263
- auth_names = opts[:auth_names] || ['hapikey']
271
+ auth_names = opts[:auth_names] || ['developer_hapikey']
264
272
 
265
273
  new_options = opts.merge(
266
274
  :header_params => header_params,
@@ -56,21 +56,21 @@ module Hubspot
56
56
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
57
57
  end
58
58
 
59
- unless response.success?
60
- if config.error_handler.any?
61
- config.error_handler.each do |statuses, opts|
62
- statuses = statuses.is_a?(Integer) ? [statuses] : statuses
63
-
64
- retries = opts[:max_retries] || 5
65
- while retries > 0 && statuses.include?(response.code)
66
- sleep opts[:seconds_delay] if opts[:seconds_delay]
67
- response = request.run
68
- opts[:retry_block].call if opts[:retry_block]
69
- retries -= 1
70
- end
59
+ if !response.success? && config.error_handler.any?
60
+ config.error_handler.each do |statuses, opts|
61
+ statuses = statuses.is_a?(Integer) ? [statuses] : statuses
62
+
63
+ retries = opts[:max_retries] || 5
64
+ while retries > 0 && statuses.include?(response.code)
65
+ sleep opts[:seconds_delay] if opts[:seconds_delay]
66
+ response = request.run
67
+ opts[:retry_block].call if opts[:retry_block]
68
+ retries -= 1
71
69
  end
72
70
  end
71
+ end
73
72
 
73
+ unless response.success?
74
74
  if response.timed_out?
75
75
  fail ApiError.new('Connection timed out')
76
76
  elsif response.code == 0
@@ -200,7 +200,7 @@ module Hubspot
200
200
  # Returns Auth Settings hash for api client.
201
201
  def auth_settings
202
202
  {
203
- 'hapikey' =>
203
+ 'developer_hapikey' =>
204
204
  {
205
205
  type: 'api_key',
206
206
  in: 'query',
@@ -32,6 +32,9 @@ module Hubspot
32
32
  # When true, your service will appear as an option under the *Call* action in contact records of connected accounts.
33
33
  attr_accessor :is_ready
34
34
 
35
+ # When true, you are indicating that your service is compatible with engagement v2 service and can be used with custom objects.
36
+ attr_accessor :supports_custom_objects
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -39,7 +42,8 @@ module Hubspot
39
42
  :'url' => :'url',
40
43
  :'height' => :'height',
41
44
  :'width' => :'width',
42
- :'is_ready' => :'isReady'
45
+ :'is_ready' => :'isReady',
46
+ :'supports_custom_objects' => :'supportsCustomObjects'
43
47
  }
44
48
  end
45
49
 
@@ -50,7 +54,8 @@ module Hubspot
50
54
  :'url' => :'String',
51
55
  :'height' => :'Integer',
52
56
  :'width' => :'Integer',
53
- :'is_ready' => :'Boolean'
57
+ :'is_ready' => :'Boolean',
58
+ :'supports_custom_objects' => :'Boolean'
54
59
  }
55
60
  end
56
61
 
@@ -94,6 +99,10 @@ module Hubspot
94
99
  if attributes.key?(:'is_ready')
95
100
  self.is_ready = attributes[:'is_ready']
96
101
  end
102
+
103
+ if attributes.key?(:'supports_custom_objects')
104
+ self.supports_custom_objects = attributes[:'supports_custom_objects']
105
+ end
97
106
  end
98
107
 
99
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -118,7 +127,8 @@ module Hubspot
118
127
  url == o.url &&
119
128
  height == o.height &&
120
129
  width == o.width &&
121
- is_ready == o.is_ready
130
+ is_ready == o.is_ready &&
131
+ supports_custom_objects == o.supports_custom_objects
122
132
  end
123
133
 
124
134
  # @see the `==` method
@@ -130,7 +140,7 @@ module Hubspot
130
140
  # Calculates hash code according to all attributes.
131
141
  # @return [Integer] Hash code
132
142
  def hash
133
- [name, url, height, width, is_ready].hash
143
+ [name, url, height, width, is_ready, supports_custom_objects].hash
134
144
  end
135
145
 
136
146
  # Builds the object from hash
@@ -32,6 +32,9 @@ module Hubspot
32
32
  # When true, your service will appear as an option under the *Call* action in contact records of connected accounts.
33
33
  attr_accessor :is_ready
34
34
 
35
+ # When true, you are indicating that your service is compatible with engagement v2 service and can be used with custom objects.
36
+ attr_accessor :supports_custom_objects
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -39,7 +42,8 @@ module Hubspot
39
42
  :'url' => :'url',
40
43
  :'height' => :'height',
41
44
  :'width' => :'width',
42
- :'is_ready' => :'isReady'
45
+ :'is_ready' => :'isReady',
46
+ :'supports_custom_objects' => :'supportsCustomObjects'
43
47
  }
44
48
  end
45
49
 
@@ -50,7 +54,8 @@ module Hubspot
50
54
  :'url' => :'String',
51
55
  :'height' => :'Integer',
52
56
  :'width' => :'Integer',
53
- :'is_ready' => :'Boolean'
57
+ :'is_ready' => :'Boolean',
58
+ :'supports_custom_objects' => :'Boolean'
54
59
  }
55
60
  end
56
61
 
@@ -94,6 +99,10 @@ module Hubspot
94
99
  if attributes.key?(:'is_ready')
95
100
  self.is_ready = attributes[:'is_ready']
96
101
  end
102
+
103
+ if attributes.key?(:'supports_custom_objects')
104
+ self.supports_custom_objects = attributes[:'supports_custom_objects']
105
+ end
97
106
  end
98
107
 
99
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,7 +137,8 @@ module Hubspot
128
137
  url == o.url &&
129
138
  height == o.height &&
130
139
  width == o.width &&
131
- is_ready == o.is_ready
140
+ is_ready == o.is_ready &&
141
+ supports_custom_objects == o.supports_custom_objects
132
142
  end
133
143
 
134
144
  # @see the `==` method
@@ -140,7 +150,7 @@ module Hubspot
140
150
  # Calculates hash code according to all attributes.
141
151
  # @return [Integer] Hash code
142
152
  def hash
143
- [name, url, height, width, is_ready].hash
153
+ [name, url, height, width, is_ready, supports_custom_objects].hash
144
154
  end
145
155
 
146
156
  # Builds the object from hash