hubspot-api-client 9.5.0 → 10.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +4 -4
  4. data/LICENSE +201 -0
  5. data/README.md +1 -1
  6. data/hubspot-api-client.gemspec +1 -1
  7. data/lib/hubspot/codegen/automation/actions/api_client.rb +14 -0
  8. data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +14 -0
  9. data/lib/hubspot/codegen/cms/blogs/authors/api/default_api.rb +2 -2
  10. data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +14 -0
  11. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/default_api.rb +2 -2
  12. data/lib/hubspot/codegen/cms/blogs/blog-posts/api_client.rb +14 -0
  13. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +108 -102
  14. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/layout_section.rb +4 -2
  15. data/lib/hubspot/codegen/cms/blogs/tags/api/default_api.rb +2 -2
  16. data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +14 -0
  17. data/lib/hubspot/codegen/cms/domains/api_client.rb +14 -0
  18. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +1 -1
  19. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +15 -1
  22. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  24. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  30. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  31. data/lib/hubspot/codegen/cms/hubdb/models/column_input.rb +1 -1
  32. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  33. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  34. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +5 -3
  38. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_input.rb +1 -1
  39. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  40. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_input.rb +1 -1
  41. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +1 -1
  42. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  43. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  44. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  45. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  46. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  47. data/lib/hubspot/codegen/cms/performance/api_client.rb +14 -0
  48. data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +2 -5
  49. data/lib/hubspot/codegen/cms/site-search/api_client.rb +14 -0
  50. data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +19 -2
  51. data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +5 -2
  52. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +17 -15
  53. data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +14 -0
  54. data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +80 -0
  55. data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +214 -0
  56. data/lib/hubspot/codegen/communication_preferences/api_client.rb +404 -0
  57. data/lib/hubspot/codegen/communication_preferences/api_error.rb +59 -0
  58. data/lib/hubspot/codegen/communication_preferences/configuration.rb +254 -0
  59. data/lib/hubspot/codegen/communication_preferences/models/error.rb +290 -0
  60. data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +256 -0
  61. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +372 -0
  62. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +231 -0
  63. data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +283 -0
  64. data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +339 -0
  65. data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +216 -0
  66. data/lib/hubspot/codegen/conversations/visitor-identification/api_client.rb +14 -0
  67. data/lib/hubspot/codegen/crm/associations/api_client.rb +14 -0
  68. data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +6 -12
  69. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +11 -14
  70. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +3 -3
  71. data/lib/hubspot/codegen/crm/companies/api_client.rb +14 -0
  72. data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +20 -20
  73. data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id_forward_paging.rb +226 -0
  74. data/lib/hubspot/codegen/crm/companies/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  75. data/lib/hubspot/codegen/crm/companies/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  76. data/lib/hubspot/codegen/crm/companies/models/forward_paging.rb +210 -0
  77. data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -12
  78. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_with_associations.rb +288 -0
  79. data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +6 -12
  80. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +11 -14
  81. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +3 -3
  82. data/lib/hubspot/codegen/crm/contacts/api_client.rb +14 -0
  83. data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +20 -20
  84. data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id_forward_paging.rb +226 -0
  85. data/lib/hubspot/codegen/crm/contacts/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  86. data/lib/hubspot/codegen/crm/contacts/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  87. data/lib/hubspot/codegen/crm/contacts/models/forward_paging.rb +210 -0
  88. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -12
  89. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_with_associations.rb +288 -0
  90. data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +6 -12
  91. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +11 -14
  92. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +3 -3
  93. data/lib/hubspot/codegen/crm/deals/api_client.rb +14 -0
  94. data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +20 -20
  95. data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id_forward_paging.rb +226 -0
  96. data/lib/hubspot/codegen/crm/deals/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  97. data/lib/hubspot/codegen/crm/deals/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  98. data/lib/hubspot/codegen/crm/deals/models/forward_paging.rb +210 -0
  99. data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -12
  100. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_with_associations.rb +288 -0
  101. data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +14 -0
  102. data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +24 -16
  103. data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +14 -0
  104. data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +1 -1
  105. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +14 -4
  106. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +14 -4
  107. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +16 -1
  108. data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +25 -17
  109. data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +14 -0
  110. data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
  111. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +14 -0
  112. data/lib/hubspot/codegen/crm/imports/api/default_api.rb +90 -0
  113. data/lib/hubspot/codegen/crm/imports/api_client.rb +14 -0
  114. data/lib/hubspot/codegen/crm/imports/models/collection_response_public_import_error_forward_paging.rb +226 -0
  115. data/lib/hubspot/codegen/crm/{schemas/models/paging.rb → imports/models/forward_paging.rb} +11 -20
  116. data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +238 -0
  117. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +353 -0
  118. data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +2 -2
  119. data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +6 -12
  120. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +11 -14
  121. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +3 -3
  122. data/lib/hubspot/codegen/crm/line_items/api_client.rb +14 -0
  123. data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +20 -20
  124. data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id_forward_paging.rb +226 -0
  125. data/lib/hubspot/codegen/crm/line_items/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  126. data/lib/hubspot/codegen/crm/line_items/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  127. data/lib/hubspot/codegen/crm/line_items/models/forward_paging.rb +210 -0
  128. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -12
  129. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +288 -0
  130. data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +6 -12
  131. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +11 -14
  132. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +10 -10
  133. data/lib/hubspot/codegen/crm/objects/api_client.rb +14 -0
  134. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +3 -6
  135. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +6 -12
  136. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +3 -3
  137. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +14 -0
  138. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +20 -20
  139. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_simple_public_object.rb → collection_response_associated_id_forward_paging.rb} +5 -5
  140. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
  141. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  142. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/forward_paging.rb +212 -0
  143. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +1 -12
  144. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations.rb +290 -0
  145. data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +20 -20
  146. data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id_forward_paging.rb +226 -0
  147. data/lib/hubspot/codegen/crm/objects/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  148. data/lib/hubspot/codegen/crm/objects/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  149. data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +210 -0
  150. data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +1 -12
  151. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +288 -0
  152. data/lib/hubspot/codegen/crm/owners/api/default_api.rb +9 -3
  153. data/lib/hubspot/codegen/crm/owners/api_client.rb +14 -0
  154. data/lib/hubspot/codegen/crm/owners/models/{collection_response_public_owner.rb → collection_response_public_owner_forward_paging.rb} +4 -4
  155. data/lib/hubspot/codegen/crm/owners/models/{paging.rb → forward_paging.rb} +3 -3
  156. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +14 -0
  157. data/lib/hubspot/codegen/crm/products/api/associations_api.rb +6 -12
  158. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +11 -14
  159. data/lib/hubspot/codegen/crm/products/api/search_api.rb +3 -3
  160. data/lib/hubspot/codegen/crm/products/api_client.rb +14 -0
  161. data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +20 -20
  162. data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id_forward_paging.rb +226 -0
  163. data/lib/hubspot/codegen/crm/products/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  164. data/lib/hubspot/codegen/crm/products/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  165. data/lib/hubspot/codegen/crm/products/models/forward_paging.rb +210 -0
  166. data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -12
  167. data/lib/hubspot/codegen/crm/products/models/simple_public_object_with_associations.rb +288 -0
  168. data/lib/hubspot/codegen/crm/properties/api_client.rb +14 -0
  169. data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +3 -6
  170. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +6 -12
  171. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +3 -3
  172. data/lib/hubspot/codegen/crm/quotes/api_client.rb +14 -0
  173. data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +20 -20
  174. data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id_forward_paging.rb +226 -0
  175. data/lib/hubspot/codegen/crm/quotes/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  176. data/lib/hubspot/codegen/crm/quotes/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  177. data/lib/hubspot/codegen/crm/{schemas/models/previous_page.rb → quotes/models/forward_paging.rb} +14 -28
  178. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +1 -12
  179. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +288 -0
  180. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +23 -17
  181. data/lib/hubspot/codegen/crm/schemas/api_client.rb +14 -0
  182. data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +1 -75
  183. data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +4 -78
  184. data/lib/hubspot/codegen/crm/schemas/models/{collection_response_object_schema.rb → collection_response_object_schema_no_paging.rb} +7 -16
  185. data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +15 -1
  186. data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +15 -1
  187. data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +2 -2
  188. data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +6 -12
  189. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +11 -14
  190. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +3 -3
  191. data/lib/hubspot/codegen/crm/tickets/api_client.rb +14 -0
  192. data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +20 -20
  193. data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id_forward_paging.rb +226 -0
  194. data/lib/hubspot/codegen/crm/tickets/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  195. data/lib/hubspot/codegen/crm/tickets/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  196. data/lib/hubspot/codegen/crm/tickets/models/forward_paging.rb +210 -0
  197. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +1 -12
  198. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_with_associations.rb +288 -0
  199. data/lib/hubspot/codegen/crm/timeline/api_client.rb +14 -0
  200. data/lib/hubspot/codegen/events/api_client.rb +14 -0
  201. data/lib/hubspot/codegen/files/files/api/files_api.rb +8 -8
  202. data/lib/hubspot/codegen/files/files/api_client.rb +14 -0
  203. data/lib/hubspot/codegen/files/files/models/file_update_input.rb +2 -2
  204. data/lib/hubspot/codegen/files/files/models/{file.rb → hubspot_file.rb} +3 -3
  205. data/lib/hubspot/codegen/files/files/models/import_from_url_input.rb +2 -2
  206. data/lib/hubspot/codegen/marketing/transactional/api/default_api.rb +60 -60
  207. data/lib/hubspot/codegen/marketing/transactional/api_client.rb +14 -0
  208. data/lib/hubspot/codegen/oauth/api_client.rb +14 -0
  209. data/lib/hubspot/codegen/webhooks/api_client.rb +14 -0
  210. data/lib/hubspot/version.rb +1 -1
  211. data/spec/codegen/cms/blogs/authors/api/default_api_spec.rb +24 -24
  212. data/spec/codegen/cms/blogs/blog-posts/api/default_api_spec.rb +26 -26
  213. data/spec/codegen/cms/blogs/blog-posts/models/blog_post_spec.rb +14 -14
  214. data/spec/codegen/cms/blogs/tags/api/default_api_spec.rb +24 -24
  215. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +1 -1
  216. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +1 -1
  217. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +1 -1
  218. data/spec/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_spec.rb +1 -1
  219. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  220. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  221. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  222. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  223. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  224. data/spec/codegen/cms/hubdb/models/column_input_spec.rb +1 -1
  225. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  226. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  227. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  228. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  229. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  230. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  231. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_input_spec.rb +1 -1
  232. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +1 -1
  233. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_input_spec.rb +1 -1
  234. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +1 -1
  235. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  236. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  237. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  238. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  239. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  240. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  241. data/spec/codegen/cms/site-search/api/default_api_spec.rb +0 -1
  242. data/spec/codegen/cms/site-search/models/content_search_result_spec.rb +1 -1
  243. data/spec/codegen/cms/site-search/models/indexed_data_spec.rb +1 -1
  244. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  245. data/spec/codegen/communication_preferences/api/definition_api_spec.rb +46 -0
  246. data/spec/codegen/communication_preferences/api/status_api_spec.rb +71 -0
  247. data/spec/codegen/communication_preferences/models/error_detail_spec.rb +65 -0
  248. data/spec/codegen/communication_preferences/models/error_spec.rb +77 -0
  249. data/spec/codegen/communication_preferences/models/public_subscription_status_spec.rb +101 -0
  250. data/spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb +47 -0
  251. data/spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb +63 -0
  252. data/spec/codegen/communication_preferences/models/subscription_definition_spec.rb +95 -0
  253. data/spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb +41 -0
  254. data/spec/codegen/crm/companies/api/associations_api_spec.rb +2 -4
  255. data/spec/codegen/crm/companies/api/basic_api_spec.rb +4 -5
  256. data/spec/codegen/crm/companies/api/search_api_spec.rb +1 -1
  257. data/spec/codegen/crm/companies/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  258. data/spec/codegen/crm/companies/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  259. data/spec/codegen/crm/companies/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  260. data/spec/codegen/crm/companies/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  261. data/spec/codegen/crm/companies/models/forward_paging_spec.rb +41 -0
  262. data/spec/codegen/crm/companies/models/simple_public_object_spec.rb +0 -6
  263. data/spec/codegen/crm/companies/models/simple_public_object_with_associations_spec.rb +77 -0
  264. data/spec/codegen/crm/contacts/api/associations_api_spec.rb +2 -4
  265. data/spec/codegen/crm/contacts/api/basic_api_spec.rb +4 -5
  266. data/spec/codegen/crm/contacts/api/search_api_spec.rb +1 -1
  267. data/spec/codegen/crm/contacts/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  268. data/spec/codegen/crm/contacts/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  269. data/spec/codegen/crm/contacts/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  270. data/spec/codegen/crm/contacts/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  271. data/spec/codegen/crm/contacts/models/forward_paging_spec.rb +41 -0
  272. data/spec/codegen/crm/contacts/models/simple_public_object_spec.rb +0 -6
  273. data/spec/codegen/crm/contacts/models/simple_public_object_with_associations_spec.rb +77 -0
  274. data/spec/codegen/crm/deals/api/associations_api_spec.rb +2 -4
  275. data/spec/codegen/crm/deals/api/basic_api_spec.rb +4 -5
  276. data/spec/codegen/crm/deals/api/search_api_spec.rb +1 -1
  277. data/spec/codegen/crm/deals/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  278. data/spec/codegen/crm/deals/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  279. data/spec/codegen/crm/deals/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  280. data/spec/codegen/crm/deals/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  281. data/spec/codegen/crm/deals/models/forward_paging_spec.rb +41 -0
  282. data/spec/codegen/crm/deals/models/simple_public_object_spec.rb +0 -6
  283. data/spec/codegen/crm/deals/models/simple_public_object_with_associations_spec.rb +77 -0
  284. data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +2 -2
  285. data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +6 -0
  286. data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +6 -0
  287. data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +6 -0
  288. data/spec/codegen/crm/extensions/cards/api/cards_api_spec.rb +2 -2
  289. data/spec/codegen/crm/imports/api/default_api_spec.rb +47 -0
  290. data/spec/codegen/crm/imports/models/collection_response_public_import_error_forward_paging_spec.rb +47 -0
  291. data/spec/codegen/crm/imports/models/forward_paging_spec.rb +41 -0
  292. data/spec/codegen/crm/imports/models/import_row_core_spec.rb +53 -0
  293. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +97 -0
  294. data/spec/codegen/crm/imports/models/public_import_response_spec.rb +1 -1
  295. data/spec/codegen/crm/line_items/api/associations_api_spec.rb +2 -4
  296. data/spec/codegen/crm/line_items/api/basic_api_spec.rb +4 -5
  297. data/spec/codegen/crm/line_items/api/search_api_spec.rb +1 -1
  298. data/spec/codegen/crm/line_items/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  299. data/spec/codegen/crm/line_items/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  300. data/spec/codegen/crm/line_items/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  301. data/spec/codegen/crm/line_items/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  302. data/spec/codegen/crm/line_items/models/forward_paging_spec.rb +41 -0
  303. data/spec/codegen/crm/line_items/models/simple_public_object_spec.rb +0 -6
  304. data/spec/codegen/crm/line_items/models/simple_public_object_with_associations_spec.rb +77 -0
  305. data/spec/codegen/crm/objects/api/associations_api_spec.rb +2 -4
  306. data/spec/codegen/crm/objects/api/basic_api_spec.rb +4 -5
  307. data/spec/codegen/crm/objects/api/search_api_spec.rb +3 -3
  308. data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +1 -2
  309. data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +2 -4
  310. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +1 -1
  311. data/spec/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  312. data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  313. data/spec/codegen/crm/objects/feedback_submissions/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  314. data/spec/codegen/crm/objects/feedback_submissions/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  315. data/spec/codegen/crm/objects/feedback_submissions/models/forward_paging_spec.rb +41 -0
  316. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_spec.rb +0 -6
  317. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations_spec.rb +77 -0
  318. data/spec/codegen/crm/objects/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  319. data/spec/codegen/crm/objects/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  320. data/spec/codegen/crm/objects/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  321. data/spec/codegen/crm/objects/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  322. data/spec/codegen/crm/objects/models/forward_paging_spec.rb +41 -0
  323. data/spec/codegen/crm/objects/models/simple_public_object_spec.rb +0 -6
  324. data/spec/codegen/crm/objects/models/simple_public_object_with_associations_spec.rb +77 -0
  325. data/spec/codegen/crm/owners/api/default_api_spec.rb +3 -1
  326. data/spec/codegen/crm/owners/models/{collection_response_public_owner_spec.rb → collection_response_public_owner_forward_paging_spec.rb} +6 -6
  327. data/spec/codegen/crm/owners/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
  328. data/spec/codegen/crm/products/api/associations_api_spec.rb +2 -4
  329. data/spec/codegen/crm/products/api/basic_api_spec.rb +4 -5
  330. data/spec/codegen/crm/products/api/search_api_spec.rb +1 -1
  331. data/spec/codegen/crm/products/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  332. data/spec/codegen/crm/products/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  333. data/spec/codegen/crm/products/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  334. data/spec/codegen/crm/products/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  335. data/spec/codegen/crm/products/models/forward_paging_spec.rb +41 -0
  336. data/spec/codegen/crm/products/models/simple_public_object_spec.rb +0 -6
  337. data/spec/codegen/crm/products/models/simple_public_object_with_associations_spec.rb +77 -0
  338. data/spec/codegen/crm/quotes/api/associations_api_spec.rb +1 -2
  339. data/spec/codegen/crm/quotes/api/basic_api_spec.rb +2 -4
  340. data/spec/codegen/crm/quotes/api/search_api_spec.rb +1 -1
  341. data/spec/codegen/crm/quotes/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  342. data/spec/codegen/crm/quotes/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  343. data/spec/codegen/crm/quotes/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  344. data/spec/codegen/crm/quotes/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  345. data/spec/codegen/crm/quotes/models/forward_paging_spec.rb +41 -0
  346. data/spec/codegen/crm/quotes/models/simple_public_object_spec.rb +0 -6
  347. data/spec/codegen/crm/quotes/models/simple_public_object_with_associations_spec.rb +77 -0
  348. data/spec/codegen/crm/schemas/api/core_api_spec.rb +10 -8
  349. data/spec/codegen/crm/schemas/models/association_definition_egg_spec.rb +0 -20
  350. data/spec/codegen/crm/schemas/models/association_definition_spec.rb +0 -20
  351. data/spec/codegen/crm/schemas/models/{collection_response_object_schema_spec.rb → collection_response_object_schema_no_paging_spec.rb} +6 -12
  352. data/spec/codegen/crm/schemas/models/object_schema_spec.rb +6 -0
  353. data/spec/codegen/crm/schemas/models/object_type_definition_spec.rb +6 -0
  354. data/spec/codegen/crm/schemas/models/object_type_property_create_spec.rb +1 -1
  355. data/spec/codegen/crm/tickets/api/associations_api_spec.rb +2 -4
  356. data/spec/codegen/crm/tickets/api/basic_api_spec.rb +4 -5
  357. data/spec/codegen/crm/tickets/api/search_api_spec.rb +1 -1
  358. data/spec/codegen/crm/tickets/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  359. data/spec/codegen/crm/tickets/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  360. data/spec/codegen/crm/tickets/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  361. data/spec/codegen/crm/tickets/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  362. data/spec/codegen/crm/tickets/models/forward_paging_spec.rb +41 -0
  363. data/spec/codegen/crm/tickets/models/simple_public_object_spec.rb +0 -6
  364. data/spec/codegen/crm/tickets/models/simple_public_object_with_associations_spec.rb +77 -0
  365. data/spec/codegen/files/files/api/files_api_spec.rb +2 -2
  366. data/spec/codegen/files/files/models/file_update_input_spec.rb +1 -1
  367. data/spec/codegen/files/files/models/{file_spec.rb → hubspot_file_spec.rb} +5 -5
  368. data/spec/codegen/files/files/models/import_from_url_input_spec.rb +1 -1
  369. data/spec/codegen/marketing/transactional/api/default_api_spec.rb +12 -12
  370. data/spec/features/communication_preferences/definition_api_spec.rb +7 -0
  371. data/spec/features/communication_preferences/status_api_spec.rb +9 -0
  372. data/spec/features/crm/objects/search_api_spec.rb +1 -1
  373. metadata +200 -78
  374. data/lib/hubspot/codegen/crm/schemas/models/next_page.rb +0 -224
  375. data/spec/codegen/crm/schemas/models/next_page_spec.rb +0 -47
  376. data/spec/codegen/crm/schemas/models/paging_spec.rb +0 -47
  377. data/spec/codegen/crm/schemas/models/previous_page_spec.rb +0 -47
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccfe6fd06109ec65d90da3c0f86705f7e5be6dbcb3363ef29693d82c565cdcc3
4
- data.tar.gz: 8178297f8490805c188951645238c9bcd14e6c9455835320f8bcf37ea424c47d
3
+ metadata.gz: 2787414b7f2e6c1d26e04d8f805bc7168356111769727f4c6a3655c9d7e2867c
4
+ data.tar.gz: 505bd93ff873742b03a0fa10544c0e10248e5519dc5c214416fa18a942379ee9
5
5
  SHA512:
6
- metadata.gz: a689506081f3c5f8d0039fcc3cee7020f31095288c2d27c6313535d4e8d16707172abe0b77ea40b97e5002feb22b2fe7b289c2d394b9b489d74af0b979eeadf3
7
- data.tar.gz: 6a1dfd577ea1751b852bd4dfeff44ee4babbe6440930cdf7b35d713e9fc4181ce9fc2d93ec78c3d212838296a14524b0792df756257b48aa2d55a3c282b0249d
6
+ metadata.gz: c80436fba7cf19029f818879b2d224462b5739cd628fb4339c89c9ff4b02512fa2c3e82173d7f5aa560bdb706cc8c9c182d6cc40f8d6c4f01344a0b9b375730b
7
+ data.tar.gz: 0b35c9198e760914a4a209c5b2eedd29985af14f3307aba58db3d20ff0892c2193b2c231d6d79fa0c83321496d10237a4bc91b1357c315ca3b6040f1e687ac26
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
+ ## [10.1.0] - 2021-06-08
9
+
10
+ - added CommunicationPreferences api module
11
+
12
+ ## [10.0.0] - 2021-04-15
13
+
14
+ - retry fix
15
+ - search method was changed to do_search
16
+
17
+ ## [9.6.0] - 2021-03-31
18
+
19
+ - License was added
20
+
21
+ ## [9.5.1] - 2021-03-17
22
+
23
+ - fixed Files::Files api module
24
+
8
25
  ## [9.5.0] - 2021-02-19
9
26
 
10
27
  - added Events api module
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubspot-api-client (9.5.0)
4
+ hubspot-api-client (10.1.0)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  require_all (~> 3.0.0)
7
7
  typhoeus (~> 1.4.0)
@@ -18,9 +18,9 @@ GEM
18
18
  autotest-rails-pure (4.1.2)
19
19
  crack (0.4.4)
20
20
  diff-lcs (1.4.4)
21
- ethon (0.12.0)
22
- ffi (>= 1.3.0)
23
- ffi (1.14.2)
21
+ ethon (0.14.0)
22
+ ffi (>= 1.15.0)
23
+ ffi (1.15.1)
24
24
  hashdiff (1.0.1)
25
25
  json (2.5.1)
26
26
  public_suffix (4.0.6)
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md CHANGED
@@ -7,7 +7,7 @@ Ruby API v3 Client files and sample apps
7
7
 
8
8
  ## Documentation
9
9
 
10
- See the [Hubspot API](https://www.rubydoc.info/github/HubSpot/hubspot-api-ruby/master) docs.
10
+ See the [Hubspot API](https://developers.hubspot.com/docs/api/overview) docs.
11
11
 
12
12
  ## Installation
13
13
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.homepage = "https://github.com/HubSpot/hubspot-api-ruby"
11
11
  s.summary = "HubSpot Ruby API Gem"
12
12
  s.description = "HubSpot Ruby API client"
13
- s.license = "Unlicense"
13
+ s.license = "Apache-2.0"
14
14
  s.required_ruby_version = ">= 1.9"
15
15
 
16
16
  s.add_runtime_dependency 'typhoeus', '~> 1.4.0'
@@ -55,6 +55,20 @@ module Hubspot
55
55
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
56
56
  end
57
57
 
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
68
+ end
69
+ end
70
+ end
71
+
58
72
  unless response.success?
59
73
  if response.timed_out?
60
74
  fail ApiError.new('Connection timed out')
@@ -55,6 +55,20 @@ module Hubspot
55
55
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
56
56
  end
57
57
 
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
68
+ end
69
+ end
70
+ end
71
+
58
72
  unless response.success?
59
73
  if response.timed_out?
60
74
  fail ApiError.new('Connection timed out')
@@ -88,7 +88,7 @@ module Hubspot
88
88
  end
89
89
 
90
90
  # Archive a batch of Blog Authors
91
- # Archive the Blog Author objects identified in the request body.
91
+ # Delete the Blog Author objects identified in the request body. Note: This is not the same as the in-app `archive` function.
92
92
  # @param batch_input_string [BatchInputString] The JSON array of Blog Author ids.
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @return [nil]
@@ -98,7 +98,7 @@ module Hubspot
98
98
  end
99
99
 
100
100
  # Archive a batch of Blog Authors
101
- # Archive the Blog Author objects identified in the request body.
101
+ # Delete the Blog Author objects identified in the request body. Note: This is not the same as the in-app `archive` function.
102
102
  # @param batch_input_string [BatchInputString] The JSON array of Blog Author ids.
103
103
  # @param [Hash] opts the optional parameters
104
104
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -56,6 +56,20 @@ module Hubspot
56
56
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
57
57
  end
58
58
 
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
69
+ end
70
+ end
71
+ end
72
+
59
73
  unless response.success?
60
74
  if response.timed_out?
61
75
  fail ApiError.new('Connection timed out')
@@ -88,7 +88,7 @@ module Hubspot
88
88
  end
89
89
 
90
90
  # Archive a batch of Blog Posts
91
- # Archive the Blog Post objects identified in the request body.
91
+ # Delete the Blog Post objects identified in the request body. Note: This is not the same as the in-app `archive` function. To perform an in-app `archive` send an normal update with the `archived` field set to true.
92
92
  # @param batch_input_string [BatchInputString] The JSON array of Blog Post ids.
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @return [nil]
@@ -98,7 +98,7 @@ module Hubspot
98
98
  end
99
99
 
100
100
  # Archive a batch of Blog Posts
101
- # Archive the Blog Post objects identified in the request body.
101
+ # Delete the Blog Post objects identified in the request body. Note: This is not the same as the in-app &#x60;archive&#x60; function. To perform an in-app &#x60;archive&#x60; send an normal update with the &#x60;archived&#x60; field set to true.
102
102
  # @param batch_input_string [BatchInputString] The JSON array of Blog Post ids.
103
103
  # @param [Hash] opts the optional parameters
104
104
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -56,6 +56,20 @@ module Hubspot
56
56
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
57
57
  end
58
58
 
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
69
+ end
70
+ end
71
+ end
72
+
59
73
  unless response.success?
60
74
  if response.timed_out?
61
75
  fail ApiError.new('Connection timed out')
@@ -82,6 +82,24 @@ module Hubspot
82
82
  # The ID of the Blog Author associated with this Blog Post.
83
83
  attr_accessor :blog_author_id
84
84
 
85
+ # List of IDs for the tags associated with this Blog Post.
86
+ attr_accessor :tag_ids
87
+
88
+ # The HTML of the main post body.
89
+ attr_accessor :_post_body
90
+
91
+ # The summary of the blog post that will appear on the main listing page.
92
+ attr_accessor :post_summary
93
+
94
+ # The contents of the RSS body for this Blog Post.
95
+ attr_accessor :rss_body
96
+
97
+ # The contents of the RSS summary for this Blog Post.
98
+ attr_accessor :rss_summary
99
+
100
+ # Boolean to allow overriding the AMP settings for the blog.
101
+ attr_accessor :enable_google_amp_output_override
102
+
85
103
  # The html title of this Blog Post.
86
104
  attr_accessor :html_title
87
105
 
@@ -98,24 +116,6 @@ module Hubspot
98
116
  # Boolean to determine if this post should use a featuredImage.
99
117
  attr_accessor :use_featured_image
100
118
 
101
- # List of IDs for the tags associated with this Blog Post.
102
- attr_accessor :tag_ids
103
-
104
- # Boolean to allow overriding the AMP settings for the blog.
105
- attr_accessor :enable_google_amp_output_override
106
-
107
- # The HTML of the main post body.
108
- attr_accessor :_post_body
109
-
110
- # The summary of the blog post that will appear on the main listing page.
111
- attr_accessor :post_summary
112
-
113
- # The contents of the RSS body for this Blog Post.
114
- attr_accessor :rss_body
115
-
116
- # The contents of the RSS summary for this Blog Post.
117
- attr_accessor :rss_summary
118
-
119
119
  # Set this to create a password protected page. Entering the password will be required to view the page.
120
120
  attr_accessor :password
121
121
 
@@ -235,6 +235,12 @@ module Hubspot
235
235
  :'translated_from_id' => :'translatedFromId',
236
236
  :'dynamic_page_hub_db_table_id' => :'dynamicPageHubDbTableId',
237
237
  :'blog_author_id' => :'blogAuthorId',
238
+ :'tag_ids' => :'tagIds',
239
+ :'_post_body' => :'postBody',
240
+ :'post_summary' => :'postSummary',
241
+ :'rss_body' => :'rssBody',
242
+ :'rss_summary' => :'rssSummary',
243
+ :'enable_google_amp_output_override' => :'enableGoogleAmpOutputOverride',
238
244
  :'html_title' => :'htmlTitle',
239
245
  :'page_redirected' => :'pageRedirected',
240
246
  :'page_expiry_enabled' => :'pageExpiryEnabled',
@@ -242,12 +248,6 @@ module Hubspot
242
248
  :'page_expiry_redirect_id' => :'pageExpiryRedirectId',
243
249
  :'page_expiry_redirect_url' => :'pageExpiryRedirectUrl',
244
250
  :'use_featured_image' => :'useFeaturedImage',
245
- :'tag_ids' => :'tagIds',
246
- :'enable_google_amp_output_override' => :'enableGoogleAmpOutputOverride',
247
- :'_post_body' => :'postBody',
248
- :'post_summary' => :'postSummary',
249
- :'rss_body' => :'rssBody',
250
- :'rss_summary' => :'rssSummary',
251
251
  :'password' => :'password',
252
252
  :'attached_stylesheets' => :'attachedStylesheets',
253
253
  :'include_default_custom_css' => :'includeDefaultCustomCss',
@@ -296,12 +296,18 @@ module Hubspot
296
296
  :'subcategory' => :'String',
297
297
  :'ab_status' => :'String',
298
298
  :'folder_id' => :'String',
299
- :'widget_containers' => :'Object',
300
- :'widgets' => :'Object',
299
+ :'widget_containers' => :'Hash<String, Object>',
300
+ :'widgets' => :'Hash<String, Object>',
301
301
  :'language' => :'String',
302
302
  :'translated_from_id' => :'String',
303
303
  :'dynamic_page_hub_db_table_id' => :'String',
304
304
  :'blog_author_id' => :'String',
305
+ :'tag_ids' => :'Array<Integer>',
306
+ :'_post_body' => :'String',
307
+ :'post_summary' => :'String',
308
+ :'rss_body' => :'String',
309
+ :'rss_summary' => :'String',
310
+ :'enable_google_amp_output_override' => :'Boolean',
305
311
  :'html_title' => :'String',
306
312
  :'page_redirected' => :'Boolean',
307
313
  :'page_expiry_enabled' => :'Boolean',
@@ -309,14 +315,8 @@ module Hubspot
309
315
  :'page_expiry_redirect_id' => :'Integer',
310
316
  :'page_expiry_redirect_url' => :'String',
311
317
  :'use_featured_image' => :'Boolean',
312
- :'tag_ids' => :'Array<Integer>',
313
- :'enable_google_amp_output_override' => :'Boolean',
314
- :'_post_body' => :'String',
315
- :'post_summary' => :'String',
316
- :'rss_body' => :'String',
317
- :'rss_summary' => :'String',
318
318
  :'password' => :'String',
319
- :'attached_stylesheets' => :'Array<Object>',
319
+ :'attached_stylesheets' => :'Array<Hash<String, Object>>',
320
320
  :'include_default_custom_css' => :'Boolean',
321
321
  :'enable_domain_stylesheets' => :'Boolean',
322
322
  :'enable_layout_stylesheets' => :'Boolean',
@@ -332,7 +332,7 @@ module Hubspot
332
332
  :'public_access_rules_enabled' => :'Boolean',
333
333
  :'public_access_rules' => :'Array<Object>',
334
334
  :'layout_sections' => :'Hash<String, LayoutSection>',
335
- :'theme_settings_values' => :'Object',
335
+ :'theme_settings_values' => :'Hash<String, Object>',
336
336
  :'url' => :'String',
337
337
  :'publish_date' => :'DateTime',
338
338
  :'deleted_at' => :'DateTime',
@@ -436,11 +436,15 @@ module Hubspot
436
436
  end
437
437
 
438
438
  if attributes.key?(:'widget_containers')
439
- self.widget_containers = attributes[:'widget_containers']
439
+ if (value = attributes[:'widget_containers']).is_a?(Hash)
440
+ self.widget_containers = value
441
+ end
440
442
  end
441
443
 
442
444
  if attributes.key?(:'widgets')
443
- self.widgets = attributes[:'widgets']
445
+ if (value = attributes[:'widgets']).is_a?(Hash)
446
+ self.widgets = value
447
+ end
444
448
  end
445
449
 
446
450
  if attributes.key?(:'language')
@@ -459,6 +463,32 @@ module Hubspot
459
463
  self.blog_author_id = attributes[:'blog_author_id']
460
464
  end
461
465
 
466
+ if attributes.key?(:'tag_ids')
467
+ if (value = attributes[:'tag_ids']).is_a?(Array)
468
+ self.tag_ids = value
469
+ end
470
+ end
471
+
472
+ if attributes.key?(:'_post_body')
473
+ self._post_body = attributes[:'_post_body']
474
+ end
475
+
476
+ if attributes.key?(:'post_summary')
477
+ self.post_summary = attributes[:'post_summary']
478
+ end
479
+
480
+ if attributes.key?(:'rss_body')
481
+ self.rss_body = attributes[:'rss_body']
482
+ end
483
+
484
+ if attributes.key?(:'rss_summary')
485
+ self.rss_summary = attributes[:'rss_summary']
486
+ end
487
+
488
+ if attributes.key?(:'enable_google_amp_output_override')
489
+ self.enable_google_amp_output_override = attributes[:'enable_google_amp_output_override']
490
+ end
491
+
462
492
  if attributes.key?(:'html_title')
463
493
  self.html_title = attributes[:'html_title']
464
494
  end
@@ -487,32 +517,6 @@ module Hubspot
487
517
  self.use_featured_image = attributes[:'use_featured_image']
488
518
  end
489
519
 
490
- if attributes.key?(:'tag_ids')
491
- if (value = attributes[:'tag_ids']).is_a?(Array)
492
- self.tag_ids = value
493
- end
494
- end
495
-
496
- if attributes.key?(:'enable_google_amp_output_override')
497
- self.enable_google_amp_output_override = attributes[:'enable_google_amp_output_override']
498
- end
499
-
500
- if attributes.key?(:'_post_body')
501
- self._post_body = attributes[:'_post_body']
502
- end
503
-
504
- if attributes.key?(:'post_summary')
505
- self.post_summary = attributes[:'post_summary']
506
- end
507
-
508
- if attributes.key?(:'rss_body')
509
- self.rss_body = attributes[:'rss_body']
510
- end
511
-
512
- if attributes.key?(:'rss_summary')
513
- self.rss_summary = attributes[:'rss_summary']
514
- end
515
-
516
520
  if attributes.key?(:'password')
517
521
  self.password = attributes[:'password']
518
522
  end
@@ -588,7 +592,9 @@ module Hubspot
588
592
  end
589
593
 
590
594
  if attributes.key?(:'theme_settings_values')
591
- self.theme_settings_values = attributes[:'theme_settings_values']
595
+ if (value = attributes[:'theme_settings_values']).is_a?(Hash)
596
+ self.theme_settings_values = value
597
+ end
592
598
  end
593
599
 
594
600
  if attributes.key?(:'url')
@@ -720,6 +726,30 @@ module Hubspot
720
726
  invalid_properties.push('invalid value for "blog_author_id", blog_author_id cannot be nil.')
721
727
  end
722
728
 
729
+ if @tag_ids.nil?
730
+ invalid_properties.push('invalid value for "tag_ids", tag_ids cannot be nil.')
731
+ end
732
+
733
+ if @_post_body.nil?
734
+ invalid_properties.push('invalid value for "_post_body", _post_body cannot be nil.')
735
+ end
736
+
737
+ if @post_summary.nil?
738
+ invalid_properties.push('invalid value for "post_summary", post_summary cannot be nil.')
739
+ end
740
+
741
+ if @rss_body.nil?
742
+ invalid_properties.push('invalid value for "rss_body", rss_body cannot be nil.')
743
+ end
744
+
745
+ if @rss_summary.nil?
746
+ invalid_properties.push('invalid value for "rss_summary", rss_summary cannot be nil.')
747
+ end
748
+
749
+ if @enable_google_amp_output_override.nil?
750
+ invalid_properties.push('invalid value for "enable_google_amp_output_override", enable_google_amp_output_override cannot be nil.')
751
+ end
752
+
723
753
  if @html_title.nil?
724
754
  invalid_properties.push('invalid value for "html_title", html_title cannot be nil.')
725
755
  end
@@ -748,30 +778,6 @@ module Hubspot
748
778
  invalid_properties.push('invalid value for "use_featured_image", use_featured_image cannot be nil.')
749
779
  end
750
780
 
751
- if @tag_ids.nil?
752
- invalid_properties.push('invalid value for "tag_ids", tag_ids cannot be nil.')
753
- end
754
-
755
- if @enable_google_amp_output_override.nil?
756
- invalid_properties.push('invalid value for "enable_google_amp_output_override", enable_google_amp_output_override cannot be nil.')
757
- end
758
-
759
- if @_post_body.nil?
760
- invalid_properties.push('invalid value for "_post_body", _post_body cannot be nil.')
761
- end
762
-
763
- if @post_summary.nil?
764
- invalid_properties.push('invalid value for "post_summary", post_summary cannot be nil.')
765
- end
766
-
767
- if @rss_body.nil?
768
- invalid_properties.push('invalid value for "rss_body", rss_body cannot be nil.')
769
- end
770
-
771
- if @rss_summary.nil?
772
- invalid_properties.push('invalid value for "rss_summary", rss_summary cannot be nil.')
773
- end
774
-
775
781
  if @password.nil?
776
782
  invalid_properties.push('invalid value for "password", password cannot be nil.')
777
783
  end
@@ -903,6 +909,12 @@ module Hubspot
903
909
  return false if @translated_from_id.nil?
904
910
  return false if @dynamic_page_hub_db_table_id.nil?
905
911
  return false if @blog_author_id.nil?
912
+ return false if @tag_ids.nil?
913
+ return false if @_post_body.nil?
914
+ return false if @post_summary.nil?
915
+ return false if @rss_body.nil?
916
+ return false if @rss_summary.nil?
917
+ return false if @enable_google_amp_output_override.nil?
906
918
  return false if @html_title.nil?
907
919
  return false if @page_redirected.nil?
908
920
  return false if @page_expiry_enabled.nil?
@@ -910,12 +922,6 @@ module Hubspot
910
922
  return false if @page_expiry_redirect_id.nil?
911
923
  return false if @page_expiry_redirect_url.nil?
912
924
  return false if @use_featured_image.nil?
913
- return false if @tag_ids.nil?
914
- return false if @enable_google_amp_output_override.nil?
915
- return false if @_post_body.nil?
916
- return false if @post_summary.nil?
917
- return false if @rss_body.nil?
918
- return false if @rss_summary.nil?
919
925
  return false if @password.nil?
920
926
  return false if @attached_stylesheets.nil?
921
927
  return false if @include_default_custom_css.nil?
@@ -926,7 +932,7 @@ module Hubspot
926
932
  return false if @head_html.nil?
927
933
  return false if @footer_html.nil?
928
934
  return false if @content_type_category.nil?
929
- content_type_category_validator = EnumAttributeValidator.new('String', ["0", "1", "2", "3", "4", "5", "6"])
935
+ content_type_category_validator = EnumAttributeValidator.new('String', ["0", "1", "2", "3", "4", "5", "6", "7"])
930
936
  return false unless content_type_category_validator.valid?(@content_type_category)
931
937
  return false if @current_state.nil?
932
938
  current_state_validator = EnumAttributeValidator.new('String', ["AUTOMATED", "AUTOMATED_DRAFT", "AUTOMATED_SENDING", "AUTOMATED_FOR_FORM", "AUTOMATED_FOR_FORM_BUFFER", "AUTOMATED_FOR_FORM_DRAFT", "AUTOMATED_FOR_FORM_LEGACY", "BLOG_EMAIL_DRAFT", "BLOG_EMAIL_PUBLISHED", "DRAFT", "DRAFT_AB", "DRAFT_AB_VARIANT", "ERROR", "LOSER_AB_VARIANT", "PAGE_STUB", "PRE_PROCESSING", "PROCESSING", "PUBLISHED", "PUBLISHED_AB", "PUBLISHED_AB_VARIANT", "PUBLISHED_OR_SCHEDULED", "RSS_TO_EMAIL_DRAFT", "RSS_TO_EMAIL_PUBLISHED", "SCHEDULED", "SCHEDULED_AB", "SCHEDULED_OR_PUBLISHED", "AUTOMATED_AB", "AUTOMATED_AB_VARIANT", "AUTOMATED_DRAFT_AB", "AUTOMATED_DRAFT_ABVARIANT", "AUTOMATED_LOSER_ABVARIANT"])
@@ -984,7 +990,7 @@ module Hubspot
984
990
  # Custom attribute writer method checking allowed values (enum).
985
991
  # @param [Object] content_type_category Object to be assigned
986
992
  def content_type_category=(content_type_category)
987
- validator = EnumAttributeValidator.new('String', ["0", "1", "2", "3", "4", "5", "6"])
993
+ validator = EnumAttributeValidator.new('String', ["0", "1", "2", "3", "4", "5", "6", "7"])
988
994
  unless validator.valid?(content_type_category)
989
995
  fail ArgumentError, "invalid value for \"content_type_category\", must be one of #{validator.allowable_values}."
990
996
  end
@@ -1030,6 +1036,12 @@ module Hubspot
1030
1036
  translated_from_id == o.translated_from_id &&
1031
1037
  dynamic_page_hub_db_table_id == o.dynamic_page_hub_db_table_id &&
1032
1038
  blog_author_id == o.blog_author_id &&
1039
+ tag_ids == o.tag_ids &&
1040
+ _post_body == o._post_body &&
1041
+ post_summary == o.post_summary &&
1042
+ rss_body == o.rss_body &&
1043
+ rss_summary == o.rss_summary &&
1044
+ enable_google_amp_output_override == o.enable_google_amp_output_override &&
1033
1045
  html_title == o.html_title &&
1034
1046
  page_redirected == o.page_redirected &&
1035
1047
  page_expiry_enabled == o.page_expiry_enabled &&
@@ -1037,12 +1049,6 @@ module Hubspot
1037
1049
  page_expiry_redirect_id == o.page_expiry_redirect_id &&
1038
1050
  page_expiry_redirect_url == o.page_expiry_redirect_url &&
1039
1051
  use_featured_image == o.use_featured_image &&
1040
- tag_ids == o.tag_ids &&
1041
- enable_google_amp_output_override == o.enable_google_amp_output_override &&
1042
- _post_body == o._post_body &&
1043
- post_summary == o.post_summary &&
1044
- rss_body == o.rss_body &&
1045
- rss_summary == o.rss_summary &&
1046
1052
  password == o.password &&
1047
1053
  attached_stylesheets == o.attached_stylesheets &&
1048
1054
  include_default_custom_css == o.include_default_custom_css &&
@@ -1078,7 +1084,7 @@ module Hubspot
1078
1084
  # Calculates hash code according to all attributes.
1079
1085
  # @return [Integer] Hash code
1080
1086
  def hash
1081
- [id, slug, content_group_id, campaign, category_id, state, template_path, name, mab_experiment_id, archived, author_name, ab_test_id, created_by_id, updated_by_id, domain, subcategory, ab_status, folder_id, widget_containers, widgets, language, translated_from_id, dynamic_page_hub_db_table_id, blog_author_id, html_title, page_redirected, page_expiry_enabled, page_expiry_date, page_expiry_redirect_id, page_expiry_redirect_url, use_featured_image, tag_ids, enable_google_amp_output_override, _post_body, post_summary, rss_body, rss_summary, password, attached_stylesheets, include_default_custom_css, enable_domain_stylesheets, enable_layout_stylesheets, meta_description, publish_immediately, head_html, footer_html, content_type_category, current_state, link_rel_canonical_url, featured_image, featured_image_alt_text, public_access_rules_enabled, public_access_rules, layout_sections, theme_settings_values, url, publish_date, deleted_at, created_at, published, updated_at].hash
1087
+ [id, slug, content_group_id, campaign, category_id, state, template_path, name, mab_experiment_id, archived, author_name, ab_test_id, created_by_id, updated_by_id, domain, subcategory, ab_status, folder_id, widget_containers, widgets, language, translated_from_id, dynamic_page_hub_db_table_id, blog_author_id, tag_ids, _post_body, post_summary, rss_body, rss_summary, enable_google_amp_output_override, html_title, page_redirected, page_expiry_enabled, page_expiry_date, page_expiry_redirect_id, page_expiry_redirect_url, use_featured_image, password, attached_stylesheets, include_default_custom_css, enable_domain_stylesheets, enable_layout_stylesheets, meta_description, publish_immediately, head_html, footer_html, content_type_category, current_state, link_rel_canonical_url, featured_image, featured_image_alt_text, public_access_rules_enabled, public_access_rules, layout_sections, theme_settings_values, url, publish_date, deleted_at, created_at, published, updated_at].hash
1082
1088
  end
1083
1089
 
1084
1090
  # Builds the object from hash