hubspot-api-client 9.6.0 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile.lock +3 -3
  4. data/lib/hubspot/codegen/automation/actions/api_client.rb +14 -0
  5. data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +14 -0
  6. data/lib/hubspot/codegen/cms/blogs/authors/api/default_api.rb +2 -2
  7. data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +14 -0
  8. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/default_api.rb +2 -2
  9. data/lib/hubspot/codegen/cms/blogs/blog-posts/api_client.rb +14 -0
  10. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +108 -102
  11. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/layout_section.rb +4 -2
  12. data/lib/hubspot/codegen/cms/blogs/tags/api/default_api.rb +2 -2
  13. data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +14 -0
  14. data/lib/hubspot/codegen/cms/domains/api_client.rb +14 -0
  15. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +1 -1
  16. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +1 -1
  17. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +1 -1
  18. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +15 -1
  19. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  24. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/column_input.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  30. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  31. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  32. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  33. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +1 -1
  34. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +5 -3
  35. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_input.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_input.rb +1 -1
  38. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +1 -1
  39. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  40. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  41. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  42. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  43. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  44. data/lib/hubspot/codegen/cms/performance/api_client.rb +14 -0
  45. data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +2 -5
  46. data/lib/hubspot/codegen/cms/site-search/api_client.rb +14 -0
  47. data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +19 -2
  48. data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +5 -2
  49. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +17 -15
  50. data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +14 -0
  51. data/lib/hubspot/codegen/conversations/visitor-identification/api_client.rb +14 -0
  52. data/lib/hubspot/codegen/crm/associations/api_client.rb +14 -0
  53. data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +6 -12
  54. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +11 -14
  55. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +3 -3
  56. data/lib/hubspot/codegen/crm/companies/api_client.rb +14 -0
  57. data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +20 -20
  58. data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id_forward_paging.rb +226 -0
  59. 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
  60. 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
  61. data/lib/hubspot/codegen/crm/companies/models/forward_paging.rb +210 -0
  62. data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -12
  63. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_with_associations.rb +288 -0
  64. data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +6 -12
  65. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +11 -14
  66. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +3 -3
  67. data/lib/hubspot/codegen/crm/contacts/api_client.rb +14 -0
  68. data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +20 -20
  69. data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id_forward_paging.rb +226 -0
  70. 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
  71. 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
  72. data/lib/hubspot/codegen/crm/contacts/models/forward_paging.rb +210 -0
  73. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -12
  74. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_with_associations.rb +288 -0
  75. data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +6 -12
  76. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +11 -14
  77. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +3 -3
  78. data/lib/hubspot/codegen/crm/deals/api_client.rb +14 -0
  79. data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +20 -20
  80. data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id_forward_paging.rb +226 -0
  81. 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
  82. 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
  83. data/lib/hubspot/codegen/crm/deals/models/forward_paging.rb +210 -0
  84. data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -12
  85. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_with_associations.rb +288 -0
  86. data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +14 -0
  87. data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +14 -0
  88. data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +14 -0
  89. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +14 -0
  90. data/lib/hubspot/codegen/crm/imports/api/default_api.rb +90 -0
  91. data/lib/hubspot/codegen/crm/imports/api_client.rb +14 -0
  92. data/lib/hubspot/codegen/crm/imports/models/collection_response_public_import_error_forward_paging.rb +226 -0
  93. data/lib/hubspot/codegen/crm/{schemas/models/paging.rb → imports/models/forward_paging.rb} +11 -20
  94. data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +238 -0
  95. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +353 -0
  96. data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +2 -2
  97. data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +6 -12
  98. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +11 -14
  99. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +3 -3
  100. data/lib/hubspot/codegen/crm/line_items/api_client.rb +14 -0
  101. data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +20 -20
  102. data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id_forward_paging.rb +226 -0
  103. 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
  104. 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
  105. data/lib/hubspot/codegen/crm/line_items/models/forward_paging.rb +210 -0
  106. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -12
  107. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +288 -0
  108. data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +6 -12
  109. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +11 -14
  110. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +10 -10
  111. data/lib/hubspot/codegen/crm/objects/api_client.rb +14 -0
  112. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +3 -6
  113. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +6 -12
  114. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +3 -3
  115. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +14 -0
  116. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +20 -20
  117. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_simple_public_object.rb → collection_response_associated_id_forward_paging.rb} +5 -5
  118. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
  119. 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
  120. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/forward_paging.rb +212 -0
  121. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +1 -12
  122. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations.rb +290 -0
  123. data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +20 -20
  124. data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id_forward_paging.rb +226 -0
  125. 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
  126. 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
  127. data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +210 -0
  128. data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +1 -12
  129. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +288 -0
  130. data/lib/hubspot/codegen/crm/owners/api/default_api.rb +9 -3
  131. data/lib/hubspot/codegen/crm/owners/api_client.rb +14 -0
  132. data/lib/hubspot/codegen/crm/owners/models/{collection_response_public_owner.rb → collection_response_public_owner_forward_paging.rb} +4 -4
  133. data/lib/hubspot/codegen/crm/owners/models/{paging.rb → forward_paging.rb} +3 -3
  134. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +14 -0
  135. data/lib/hubspot/codegen/crm/products/api/associations_api.rb +6 -12
  136. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +11 -14
  137. data/lib/hubspot/codegen/crm/products/api/search_api.rb +3 -3
  138. data/lib/hubspot/codegen/crm/products/api_client.rb +14 -0
  139. data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +20 -20
  140. data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id_forward_paging.rb +226 -0
  141. 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
  142. 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
  143. data/lib/hubspot/codegen/crm/products/models/forward_paging.rb +210 -0
  144. data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -12
  145. data/lib/hubspot/codegen/crm/products/models/simple_public_object_with_associations.rb +288 -0
  146. data/lib/hubspot/codegen/crm/properties/api_client.rb +14 -0
  147. data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +3 -6
  148. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +6 -12
  149. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +3 -3
  150. data/lib/hubspot/codegen/crm/quotes/api_client.rb +14 -0
  151. data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +20 -20
  152. data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id_forward_paging.rb +226 -0
  153. 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
  154. 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
  155. data/lib/hubspot/codegen/crm/{schemas/models/previous_page.rb → quotes/models/forward_paging.rb} +14 -28
  156. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +1 -12
  157. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +288 -0
  158. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +23 -17
  159. data/lib/hubspot/codegen/crm/schemas/api_client.rb +14 -0
  160. data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +1 -75
  161. data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +4 -78
  162. data/lib/hubspot/codegen/crm/schemas/models/{collection_response_object_schema.rb → collection_response_object_schema_no_paging.rb} +7 -16
  163. data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +15 -1
  164. data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +15 -1
  165. data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +2 -2
  166. data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +6 -12
  167. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +11 -14
  168. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +3 -3
  169. data/lib/hubspot/codegen/crm/tickets/api_client.rb +14 -0
  170. data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +20 -20
  171. data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id_forward_paging.rb +226 -0
  172. 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
  173. 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
  174. data/lib/hubspot/codegen/crm/tickets/models/forward_paging.rb +210 -0
  175. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +1 -12
  176. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_with_associations.rb +288 -0
  177. data/lib/hubspot/codegen/crm/timeline/api_client.rb +14 -0
  178. data/lib/hubspot/codegen/events/api_client.rb +14 -0
  179. data/lib/hubspot/codegen/files/files/api_client.rb +14 -0
  180. data/lib/hubspot/codegen/marketing/transactional/api/default_api.rb +60 -60
  181. data/lib/hubspot/codegen/marketing/transactional/api_client.rb +14 -0
  182. data/lib/hubspot/codegen/oauth/api_client.rb +14 -0
  183. data/lib/hubspot/codegen/webhooks/api_client.rb +14 -0
  184. data/lib/hubspot/version.rb +1 -1
  185. data/spec/codegen/cms/blogs/authors/api/default_api_spec.rb +24 -24
  186. data/spec/codegen/cms/blogs/blog-posts/api/default_api_spec.rb +26 -26
  187. data/spec/codegen/cms/blogs/blog-posts/models/blog_post_spec.rb +14 -14
  188. data/spec/codegen/cms/blogs/tags/api/default_api_spec.rb +24 -24
  189. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +1 -1
  190. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +1 -1
  191. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +1 -1
  192. data/spec/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_spec.rb +1 -1
  193. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  194. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  195. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  196. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  197. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  198. data/spec/codegen/cms/hubdb/models/column_input_spec.rb +1 -1
  199. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  200. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  201. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  202. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  203. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  204. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  205. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_input_spec.rb +1 -1
  206. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +1 -1
  207. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_input_spec.rb +1 -1
  208. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +1 -1
  209. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  210. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  211. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  212. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  213. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  214. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  215. data/spec/codegen/cms/site-search/api/default_api_spec.rb +0 -1
  216. data/spec/codegen/cms/site-search/models/content_search_result_spec.rb +1 -1
  217. data/spec/codegen/cms/site-search/models/indexed_data_spec.rb +1 -1
  218. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  219. data/spec/codegen/crm/companies/api/associations_api_spec.rb +2 -4
  220. data/spec/codegen/crm/companies/api/basic_api_spec.rb +4 -5
  221. data/spec/codegen/crm/companies/api/search_api_spec.rb +1 -1
  222. data/spec/codegen/crm/companies/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  223. data/spec/codegen/crm/companies/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  224. 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
  225. 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
  226. data/spec/codegen/crm/companies/models/forward_paging_spec.rb +41 -0
  227. data/spec/codegen/crm/companies/models/simple_public_object_spec.rb +0 -6
  228. data/spec/codegen/crm/companies/models/simple_public_object_with_associations_spec.rb +77 -0
  229. data/spec/codegen/crm/contacts/api/associations_api_spec.rb +2 -4
  230. data/spec/codegen/crm/contacts/api/basic_api_spec.rb +4 -5
  231. data/spec/codegen/crm/contacts/api/search_api_spec.rb +1 -1
  232. data/spec/codegen/crm/contacts/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  233. data/spec/codegen/crm/contacts/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  234. 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
  235. 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
  236. data/spec/codegen/crm/contacts/models/forward_paging_spec.rb +41 -0
  237. data/spec/codegen/crm/contacts/models/simple_public_object_spec.rb +0 -6
  238. data/spec/codegen/crm/contacts/models/simple_public_object_with_associations_spec.rb +77 -0
  239. data/spec/codegen/crm/deals/api/associations_api_spec.rb +2 -4
  240. data/spec/codegen/crm/deals/api/basic_api_spec.rb +4 -5
  241. data/spec/codegen/crm/deals/api/search_api_spec.rb +1 -1
  242. data/spec/codegen/crm/deals/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  243. data/spec/codegen/crm/deals/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  244. 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
  245. 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
  246. data/spec/codegen/crm/deals/models/forward_paging_spec.rb +41 -0
  247. data/spec/codegen/crm/deals/models/simple_public_object_spec.rb +0 -6
  248. data/spec/codegen/crm/deals/models/simple_public_object_with_associations_spec.rb +77 -0
  249. data/spec/codegen/crm/imports/api/default_api_spec.rb +47 -0
  250. data/spec/codegen/crm/imports/models/collection_response_public_import_error_forward_paging_spec.rb +47 -0
  251. data/spec/codegen/crm/imports/models/forward_paging_spec.rb +41 -0
  252. data/spec/codegen/crm/imports/models/import_row_core_spec.rb +53 -0
  253. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +97 -0
  254. data/spec/codegen/crm/imports/models/public_import_response_spec.rb +1 -1
  255. data/spec/codegen/crm/line_items/api/associations_api_spec.rb +2 -4
  256. data/spec/codegen/crm/line_items/api/basic_api_spec.rb +4 -5
  257. data/spec/codegen/crm/line_items/api/search_api_spec.rb +1 -1
  258. data/spec/codegen/crm/line_items/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  259. data/spec/codegen/crm/line_items/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  260. 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
  261. 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
  262. data/spec/codegen/crm/line_items/models/forward_paging_spec.rb +41 -0
  263. data/spec/codegen/crm/line_items/models/simple_public_object_spec.rb +0 -6
  264. data/spec/codegen/crm/line_items/models/simple_public_object_with_associations_spec.rb +77 -0
  265. data/spec/codegen/crm/objects/api/associations_api_spec.rb +2 -4
  266. data/spec/codegen/crm/objects/api/basic_api_spec.rb +4 -5
  267. data/spec/codegen/crm/objects/api/search_api_spec.rb +3 -3
  268. data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +1 -2
  269. data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +2 -4
  270. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +1 -1
  271. data/spec/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  272. data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  273. 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
  274. 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
  275. data/spec/codegen/crm/objects/feedback_submissions/models/forward_paging_spec.rb +41 -0
  276. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_spec.rb +0 -6
  277. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations_spec.rb +77 -0
  278. data/spec/codegen/crm/objects/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  279. data/spec/codegen/crm/objects/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  280. 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
  281. 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
  282. data/spec/codegen/crm/objects/models/forward_paging_spec.rb +41 -0
  283. data/spec/codegen/crm/objects/models/simple_public_object_spec.rb +0 -6
  284. data/spec/codegen/crm/objects/models/simple_public_object_with_associations_spec.rb +77 -0
  285. data/spec/codegen/crm/owners/api/default_api_spec.rb +3 -1
  286. data/spec/codegen/crm/owners/models/{collection_response_public_owner_spec.rb → collection_response_public_owner_forward_paging_spec.rb} +6 -6
  287. data/spec/codegen/crm/owners/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
  288. data/spec/codegen/crm/products/api/associations_api_spec.rb +2 -4
  289. data/spec/codegen/crm/products/api/basic_api_spec.rb +4 -5
  290. data/spec/codegen/crm/products/api/search_api_spec.rb +1 -1
  291. data/spec/codegen/crm/products/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  292. data/spec/codegen/crm/products/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  293. 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
  294. 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
  295. data/spec/codegen/crm/products/models/forward_paging_spec.rb +41 -0
  296. data/spec/codegen/crm/products/models/simple_public_object_spec.rb +0 -6
  297. data/spec/codegen/crm/products/models/simple_public_object_with_associations_spec.rb +77 -0
  298. data/spec/codegen/crm/quotes/api/associations_api_spec.rb +1 -2
  299. data/spec/codegen/crm/quotes/api/basic_api_spec.rb +2 -4
  300. data/spec/codegen/crm/quotes/api/search_api_spec.rb +1 -1
  301. data/spec/codegen/crm/quotes/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  302. data/spec/codegen/crm/quotes/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  303. 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
  304. 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
  305. data/spec/codegen/crm/quotes/models/forward_paging_spec.rb +41 -0
  306. data/spec/codegen/crm/quotes/models/simple_public_object_spec.rb +0 -6
  307. data/spec/codegen/crm/quotes/models/simple_public_object_with_associations_spec.rb +77 -0
  308. data/spec/codegen/crm/schemas/api/core_api_spec.rb +10 -8
  309. data/spec/codegen/crm/schemas/models/association_definition_egg_spec.rb +0 -20
  310. data/spec/codegen/crm/schemas/models/association_definition_spec.rb +0 -20
  311. data/spec/codegen/crm/schemas/models/{collection_response_object_schema_spec.rb → collection_response_object_schema_no_paging_spec.rb} +6 -12
  312. data/spec/codegen/crm/schemas/models/object_schema_spec.rb +6 -0
  313. data/spec/codegen/crm/schemas/models/object_type_definition_spec.rb +6 -0
  314. data/spec/codegen/crm/schemas/models/object_type_property_create_spec.rb +1 -1
  315. data/spec/codegen/crm/tickets/api/associations_api_spec.rb +2 -4
  316. data/spec/codegen/crm/tickets/api/basic_api_spec.rb +4 -5
  317. data/spec/codegen/crm/tickets/api/search_api_spec.rb +1 -1
  318. data/spec/codegen/crm/tickets/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  319. data/spec/codegen/crm/tickets/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  320. 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
  321. 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
  322. data/spec/codegen/crm/tickets/models/forward_paging_spec.rb +41 -0
  323. data/spec/codegen/crm/tickets/models/simple_public_object_spec.rb +0 -6
  324. data/spec/codegen/crm/tickets/models/simple_public_object_with_associations_spec.rb +77 -0
  325. data/spec/codegen/files/files/api/files_api_spec.rb +2 -2
  326. data/spec/codegen/files/files/models/file_update_input_spec.rb +1 -1
  327. data/spec/codegen/files/files/models/import_from_url_input_spec.rb +1 -1
  328. data/spec/codegen/marketing/transactional/api/default_api_spec.rb +12 -12
  329. data/spec/features/crm/objects/search_api_spec.rb +1 -1
  330. metadata +161 -74
  331. data/lib/hubspot/codegen/crm/schemas/models/next_page.rb +0 -224
  332. data/spec/codegen/crm/schemas/models/next_page_spec.rb +0 -47
  333. data/spec/codegen/crm/schemas/models/paging_spec.rb +0 -47
  334. data/spec/codegen/crm/schemas/models/previous_page_spec.rb +0 -47
@@ -30,6 +30,8 @@ module Hubspot
30
30
  # The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type.
31
31
  attr_accessor :secondary_display_properties
32
32
 
33
+ attr_accessor :archived
34
+
33
35
  # A unique ID for this schema's object type. Will be defined as {meta-type}-{unique ID}.
34
36
  attr_accessor :id
35
37
 
@@ -61,6 +63,7 @@ module Hubspot
61
63
  :'searchable_properties' => :'searchableProperties',
62
64
  :'primary_display_property' => :'primaryDisplayProperty',
63
65
  :'secondary_display_properties' => :'secondaryDisplayProperties',
66
+ :'archived' => :'archived',
64
67
  :'id' => :'id',
65
68
  :'fully_qualified_name' => :'fullyQualifiedName',
66
69
  :'created_at' => :'createdAt',
@@ -80,6 +83,7 @@ module Hubspot
80
83
  :'searchable_properties' => :'Array<String>',
81
84
  :'primary_display_property' => :'String',
82
85
  :'secondary_display_properties' => :'Array<String>',
86
+ :'archived' => :'Boolean',
83
87
  :'id' => :'String',
84
88
  :'fully_qualified_name' => :'String',
85
89
  :'created_at' => :'DateTime',
@@ -138,6 +142,10 @@ module Hubspot
138
142
  end
139
143
  end
140
144
 
145
+ if attributes.key?(:'archived')
146
+ self.archived = attributes[:'archived']
147
+ end
148
+
141
149
  if attributes.key?(:'id')
142
150
  self.id = attributes[:'id']
143
151
  end
@@ -195,6 +203,10 @@ module Hubspot
195
203
  invalid_properties.push('invalid value for "secondary_display_properties", secondary_display_properties cannot be nil.')
196
204
  end
197
205
 
206
+ if @archived.nil?
207
+ invalid_properties.push('invalid value for "archived", archived cannot be nil.')
208
+ end
209
+
198
210
  if @id.nil?
199
211
  invalid_properties.push('invalid value for "id", id cannot be nil.')
200
212
  end
@@ -229,6 +241,7 @@ module Hubspot
229
241
  return false if @required_properties.nil?
230
242
  return false if @searchable_properties.nil?
231
243
  return false if @secondary_display_properties.nil?
244
+ return false if @archived.nil?
232
245
  return false if @id.nil?
233
246
  return false if @fully_qualified_name.nil?
234
247
  return false if @object_type_id.nil?
@@ -248,6 +261,7 @@ module Hubspot
248
261
  searchable_properties == o.searchable_properties &&
249
262
  primary_display_property == o.primary_display_property &&
250
263
  secondary_display_properties == o.secondary_display_properties &&
264
+ archived == o.archived &&
251
265
  id == o.id &&
252
266
  fully_qualified_name == o.fully_qualified_name &&
253
267
  created_at == o.created_at &&
@@ -267,7 +281,7 @@ module Hubspot
267
281
  # Calculates hash code according to all attributes.
268
282
  # @return [Integer] Hash code
269
283
  def hash
270
- [labels, required_properties, searchable_properties, primary_display_property, secondary_display_properties, id, fully_qualified_name, created_at, updated_at, object_type_id, properties, associations, name].hash
284
+ [labels, required_properties, searchable_properties, primary_display_property, secondary_display_properties, archived, id, fully_qualified_name, created_at, updated_at, object_type_id, properties, associations, name].hash
271
285
  end
272
286
 
273
287
  # Builds the object from hash
@@ -30,6 +30,8 @@ module Hubspot
30
30
  # The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type.
31
31
  attr_accessor :secondary_display_properties
32
32
 
33
+ attr_accessor :archived
34
+
33
35
  # A unique ID for this object type. Will be defined as {meta-type}-{unique ID}.
34
36
  attr_accessor :id
35
37
 
@@ -57,6 +59,7 @@ module Hubspot
57
59
  :'searchable_properties' => :'searchableProperties',
58
60
  :'primary_display_property' => :'primaryDisplayProperty',
59
61
  :'secondary_display_properties' => :'secondaryDisplayProperties',
62
+ :'archived' => :'archived',
60
63
  :'id' => :'id',
61
64
  :'fully_qualified_name' => :'fullyQualifiedName',
62
65
  :'created_at' => :'createdAt',
@@ -75,6 +78,7 @@ module Hubspot
75
78
  :'searchable_properties' => :'Array<String>',
76
79
  :'primary_display_property' => :'String',
77
80
  :'secondary_display_properties' => :'Array<String>',
81
+ :'archived' => :'Boolean',
78
82
  :'id' => :'String',
79
83
  :'fully_qualified_name' => :'String',
80
84
  :'created_at' => :'DateTime',
@@ -132,6 +136,10 @@ module Hubspot
132
136
  end
133
137
  end
134
138
 
139
+ if attributes.key?(:'archived')
140
+ self.archived = attributes[:'archived']
141
+ end
142
+
135
143
  if attributes.key?(:'id')
136
144
  self.id = attributes[:'id']
137
145
  end
@@ -181,6 +189,10 @@ module Hubspot
181
189
  invalid_properties.push('invalid value for "secondary_display_properties", secondary_display_properties cannot be nil.')
182
190
  end
183
191
 
192
+ if @archived.nil?
193
+ invalid_properties.push('invalid value for "archived", archived cannot be nil.')
194
+ end
195
+
184
196
  if @id.nil?
185
197
  invalid_properties.push('invalid value for "id", id cannot be nil.')
186
198
  end
@@ -207,6 +219,7 @@ module Hubspot
207
219
  return false if @required_properties.nil?
208
220
  return false if @searchable_properties.nil?
209
221
  return false if @secondary_display_properties.nil?
222
+ return false if @archived.nil?
210
223
  return false if @id.nil?
211
224
  return false if @fully_qualified_name.nil?
212
225
  return false if @object_type_id.nil?
@@ -224,6 +237,7 @@ module Hubspot
224
237
  searchable_properties == o.searchable_properties &&
225
238
  primary_display_property == o.primary_display_property &&
226
239
  secondary_display_properties == o.secondary_display_properties &&
240
+ archived == o.archived &&
227
241
  id == o.id &&
228
242
  fully_qualified_name == o.fully_qualified_name &&
229
243
  created_at == o.created_at &&
@@ -242,7 +256,7 @@ module Hubspot
242
256
  # Calculates hash code according to all attributes.
243
257
  # @return [Integer] Hash code
244
258
  def hash
245
- [labels, required_properties, searchable_properties, primary_display_property, secondary_display_properties, id, fully_qualified_name, created_at, updated_at, object_type_id, name, portal_id].hash
259
+ [labels, required_properties, searchable_properties, primary_display_property, secondary_display_properties, archived, id, fully_qualified_name, created_at, updated_at, object_type_id, name, portal_id].hash
246
260
  end
247
261
 
248
262
  # Builds the object from hash
@@ -192,7 +192,7 @@ module Hubspot
192
192
  return false if @name.nil?
193
193
  return false if @label.nil?
194
194
  return false if @type.nil?
195
- type_validator = EnumAttributeValidator.new('String', ["string", "number", "date", "datetime", "enumeration"])
195
+ type_validator = EnumAttributeValidator.new('String', ["string", "number", "date", "datetime", "enumeration", "bool"])
196
196
  return false unless type_validator.valid?(@type)
197
197
  return false if @field_type.nil?
198
198
  true
@@ -201,7 +201,7 @@ module Hubspot
201
201
  # Custom attribute writer method checking allowed values (enum).
202
202
  # @param [Object] type Object to be assigned
203
203
  def type=(type)
204
- validator = EnumAttributeValidator.new('String', ["string", "number", "date", "datetime", "enumeration"])
204
+ validator = EnumAttributeValidator.new('String', ["string", "number", "date", "datetime", "enumeration", "bool"])
205
205
  unless validator.valid?(type)
206
206
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
207
207
  end
@@ -105,8 +105,7 @@ module Hubspot
105
105
  # @param to_object_id [String]
106
106
  # @param association_type [String]
107
107
  # @param [Hash] opts the optional parameters
108
- # @option opts [Boolean] :paginate_associations (default to false)
109
- # @return [SimplePublicObject]
108
+ # @return [SimplePublicObjectWithAssociations]
110
109
  def create(ticket_id, to_object_type, to_object_id, association_type, opts = {})
111
110
  data, _status_code, _headers = create_with_http_info(ticket_id, to_object_type, to_object_id, association_type, opts)
112
111
  data
@@ -118,8 +117,7 @@ module Hubspot
118
117
  # @param to_object_id [String]
119
118
  # @param association_type [String]
120
119
  # @param [Hash] opts the optional parameters
121
- # @option opts [Boolean] :paginate_associations
122
- # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
120
+ # @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
123
121
  def create_with_http_info(ticket_id, to_object_type, to_object_id, association_type, opts = {})
124
122
  if @api_client.config.debugging
125
123
  @api_client.config.logger.debug 'Calling API: AssociationsApi.create ...'
@@ -145,7 +143,6 @@ module Hubspot
145
143
 
146
144
  # query parameters
147
145
  query_params = opts[:query_params] || {}
148
- query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
149
146
 
150
147
  # header parameters
151
148
  header_params = opts[:header_params] || {}
@@ -159,7 +156,7 @@ module Hubspot
159
156
  post_body = opts[:body]
160
157
 
161
158
  # return_type
162
- return_type = opts[:return_type] || 'SimplePublicObject'
159
+ return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations'
163
160
 
164
161
  # auth_names
165
162
  auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
@@ -184,10 +181,9 @@ module Hubspot
184
181
  # @param ticket_id [String]
185
182
  # @param to_object_type [String]
186
183
  # @param [Hash] opts the optional parameters
187
- # @option opts [Boolean] :paginate_associations (default to false)
188
184
  # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
189
185
  # @option opts [Integer] :limit The maximum number of results to display per page. (default to 500)
190
- # @return [CollectionResponseAssociatedId]
186
+ # @return [CollectionResponseAssociatedIdForwardPaging]
191
187
  def get_all(ticket_id, to_object_type, opts = {})
192
188
  data, _status_code, _headers = get_all_with_http_info(ticket_id, to_object_type, opts)
193
189
  data
@@ -197,10 +193,9 @@ module Hubspot
197
193
  # @param ticket_id [String]
198
194
  # @param to_object_type [String]
199
195
  # @param [Hash] opts the optional parameters
200
- # @option opts [Boolean] :paginate_associations
201
196
  # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
202
197
  # @option opts [Integer] :limit The maximum number of results to display per page.
203
- # @return [Array<(CollectionResponseAssociatedId, Integer, Hash)>] CollectionResponseAssociatedId data, response status code and response headers
198
+ # @return [Array<(CollectionResponseAssociatedIdForwardPaging, Integer, Hash)>] CollectionResponseAssociatedIdForwardPaging data, response status code and response headers
204
199
  def get_all_with_http_info(ticket_id, to_object_type, opts = {})
205
200
  if @api_client.config.debugging
206
201
  @api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...'
@@ -218,7 +213,6 @@ module Hubspot
218
213
 
219
214
  # query parameters
220
215
  query_params = opts[:query_params] || {}
221
- query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
222
216
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
223
217
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
224
218
 
@@ -234,7 +228,7 @@ module Hubspot
234
228
  post_body = opts[:body]
235
229
 
236
230
  # return_type
237
- return_type = opts[:return_type] || 'CollectionResponseAssociatedId'
231
+ return_type = opts[:return_type] || 'CollectionResponseAssociatedIdForwardPaging'
238
232
 
239
233
  # auth_names
240
234
  auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
@@ -155,10 +155,9 @@ module Hubspot
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
157
157
  # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
158
- # @option opts [Boolean] :paginate_associations (default to false)
159
158
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
160
159
  # @option opts [String] :id_property The name of a property whose values are unique for this object type
161
- # @return [SimplePublicObject]
160
+ # @return [SimplePublicObjectWithAssociations]
162
161
  def get_by_id(ticket_id, opts = {})
163
162
  data, _status_code, _headers = get_by_id_with_http_info(ticket_id, opts)
164
163
  data
@@ -170,10 +169,9 @@ module Hubspot
170
169
  # @param [Hash] opts the optional parameters
171
170
  # @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
172
171
  # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
173
- # @option opts [Boolean] :paginate_associations
174
172
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
175
173
  # @option opts [String] :id_property The name of a property whose values are unique for this object type
176
- # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
174
+ # @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
177
175
  def get_by_id_with_http_info(ticket_id, opts = {})
178
176
  if @api_client.config.debugging
179
177
  @api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
@@ -189,7 +187,6 @@ module Hubspot
189
187
  query_params = opts[:query_params] || {}
190
188
  query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
189
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
192
- query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
193
190
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
194
191
  query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
195
192
 
@@ -205,7 +202,7 @@ module Hubspot
205
202
  post_body = opts[:body]
206
203
 
207
204
  # return_type
208
- return_type = opts[:return_type] || 'SimplePublicObject'
205
+ return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations'
209
206
 
210
207
  # auth_names
211
208
  auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
@@ -233,9 +230,8 @@ module Hubspot
233
230
  # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
234
231
  # @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
235
232
  # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
236
- # @option opts [Boolean] :paginate_associations (default to false)
237
233
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
238
- # @return [CollectionResponseSimplePublicObject]
234
+ # @return [CollectionResponseSimplePublicObjectWithAssociationsForwardPaging]
239
235
  def get_page(opts = {})
240
236
  data, _status_code, _headers = get_page_with_http_info(opts)
241
237
  data
@@ -248,9 +244,8 @@ module Hubspot
248
244
  # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
249
245
  # @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
250
246
  # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
251
- # @option opts [Boolean] :paginate_associations
252
247
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
253
- # @return [Array<(CollectionResponseSimplePublicObject, Integer, Hash)>] CollectionResponseSimplePublicObject data, response status code and response headers
248
+ # @return [Array<(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, Integer, Hash)>] CollectionResponseSimplePublicObjectWithAssociationsForwardPaging data, response status code and response headers
254
249
  def get_page_with_http_info(opts = {})
255
250
  if @api_client.config.debugging
256
251
  @api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
@@ -264,7 +259,6 @@ module Hubspot
264
259
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
265
260
  query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
261
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
267
- query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
268
262
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
269
263
 
270
264
  # header parameters
@@ -279,7 +273,7 @@ module Hubspot
279
273
  post_body = opts[:body]
280
274
 
281
275
  # return_type
282
- return_type = opts[:return_type] || 'CollectionResponseSimplePublicObject'
276
+ return_type = opts[:return_type] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
283
277
 
284
278
  # auth_names
285
279
  auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
@@ -301,10 +295,11 @@ module Hubspot
301
295
  end
302
296
 
303
297
  # Update
304
- # Perform a partial update of an Object identified by `{ticketId}`. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
298
+ # Perform a partial update of an Object identified by `{ticketId}`. `{ticketId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
305
299
  # @param ticket_id [String]
306
300
  # @param simple_public_object_input [SimplePublicObjectInput]
307
301
  # @param [Hash] opts the optional parameters
302
+ # @option opts [String] :id_property The name of a property whose values are unique for this object type
308
303
  # @return [SimplePublicObject]
309
304
  def update(ticket_id, simple_public_object_input, opts = {})
310
305
  data, _status_code, _headers = update_with_http_info(ticket_id, simple_public_object_input, opts)
@@ -312,10 +307,11 @@ module Hubspot
312
307
  end
313
308
 
314
309
  # Update
315
- # Perform a partial update of an Object identified by &#x60;{ticketId}&#x60;. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
310
+ # Perform a partial update of an Object identified by &#x60;{ticketId}&#x60;. &#x60;{ticketId}&#x60; refers to the internal object ID by default, or optionally any unique property value as specified by the &#x60;idProperty&#x60; query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
316
311
  # @param ticket_id [String]
317
312
  # @param simple_public_object_input [SimplePublicObjectInput]
318
313
  # @param [Hash] opts the optional parameters
314
+ # @option opts [String] :id_property The name of a property whose values are unique for this object type
319
315
  # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
320
316
  def update_with_http_info(ticket_id, simple_public_object_input, opts = {})
321
317
  if @api_client.config.debugging
@@ -334,6 +330,7 @@ module Hubspot
334
330
 
335
331
  # query parameters
336
332
  query_params = opts[:query_params] || {}
333
+ query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
337
334
 
338
335
  # header parameters
339
336
  header_params = opts[:header_params] || {}
@@ -25,7 +25,7 @@ module Hubspot
25
25
  # Filter, Sort, and Search CRM Objects
26
26
  # @param public_object_search_request [PublicObjectSearchRequest]
27
27
  # @param [Hash] opts the optional parameters
28
- # @return [CollectionResponseWithTotalSimplePublicObject]
28
+ # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
29
29
  def do_search(public_object_search_request, opts = {})
30
30
  data, _status_code, _headers = do_search_with_http_info(public_object_search_request, opts)
31
31
  data
@@ -35,7 +35,7 @@ module Hubspot
35
35
  # Filter, Sort, and Search CRM Objects
36
36
  # @param public_object_search_request [PublicObjectSearchRequest]
37
37
  # @param [Hash] opts the optional parameters
38
- # @return [Array<(CollectionResponseWithTotalSimplePublicObject, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObject data, response status code and response headers
38
+ # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
39
39
  def do_search_with_http_info(public_object_search_request, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: SearchApi.do_search ...'
@@ -64,7 +64,7 @@ module Hubspot
64
64
  post_body = opts[:body] || @api_client.object_to_http_body(public_object_search_request)
65
65
 
66
66
  # return_type
67
- return_type = opts[:return_type] || 'CollectionResponseWithTotalSimplePublicObject'
67
+ return_type = opts[:return_type] || 'CollectionResponseWithTotalSimplePublicObjectForwardPaging'
68
68
 
69
69
  # auth_names
70
70
  auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
@@ -56,6 +56,20 @@ module Hubspot
56
56
  end
57
57
 
58
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
70
+ end
71
+ end
72
+
59
73
  if response.timed_out?
60
74
  fail ApiError.new('Connection timed out')
61
75
  elsif response.code == 0
@@ -16,27 +16,27 @@ module Hubspot
16
16
  module Crm
17
17
  module Tickets
18
18
  class BatchReadInputSimplePublicObjectId
19
- attr_accessor :inputs
20
-
21
19
  attr_accessor :properties
22
20
 
23
21
  attr_accessor :id_property
24
22
 
23
+ attr_accessor :inputs
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'inputs' => :'inputs',
29
28
  :'properties' => :'properties',
30
- :'id_property' => :'idProperty'
29
+ :'id_property' => :'idProperty',
30
+ :'inputs' => :'inputs'
31
31
  }
32
32
  end
33
33
 
34
34
  # Attribute type mapping.
35
35
  def self.openapi_types
36
36
  {
37
- :'inputs' => :'Array<SimplePublicObjectId>',
38
37
  :'properties' => :'Array<String>',
39
- :'id_property' => :'String'
38
+ :'id_property' => :'String',
39
+ :'inputs' => :'Array<SimplePublicObjectId>'
40
40
  }
41
41
  end
42
42
 
@@ -61,12 +61,6 @@ module Hubspot
61
61
  h[k.to_sym] = v
62
62
  }
63
63
 
64
- if attributes.key?(:'inputs')
65
- if (value = attributes[:'inputs']).is_a?(Array)
66
- self.inputs = value
67
- end
68
- end
69
-
70
64
  if attributes.key?(:'properties')
71
65
  if (value = attributes[:'properties']).is_a?(Array)
72
66
  self.properties = value
@@ -76,28 +70,34 @@ module Hubspot
76
70
  if attributes.key?(:'id_property')
77
71
  self.id_property = attributes[:'id_property']
78
72
  end
73
+
74
+ if attributes.key?(:'inputs')
75
+ if (value = attributes[:'inputs']).is_a?(Array)
76
+ self.inputs = value
77
+ end
78
+ end
79
79
  end
80
80
 
81
81
  # Show invalid properties with the reasons. Usually used together with valid?
82
82
  # @return Array for valid properties with the reasons
83
83
  def list_invalid_properties
84
84
  invalid_properties = Array.new
85
- if @inputs.nil?
86
- invalid_properties.push('invalid value for "inputs", inputs cannot be nil.')
87
- end
88
-
89
85
  if @properties.nil?
90
86
  invalid_properties.push('invalid value for "properties", properties cannot be nil.')
91
87
  end
92
88
 
89
+ if @inputs.nil?
90
+ invalid_properties.push('invalid value for "inputs", inputs cannot be nil.')
91
+ end
92
+
93
93
  invalid_properties
94
94
  end
95
95
 
96
96
  # Check to see if the all the properties in the model are valid
97
97
  # @return true if the model is valid
98
98
  def valid?
99
- return false if @inputs.nil?
100
99
  return false if @properties.nil?
100
+ return false if @inputs.nil?
101
101
  true
102
102
  end
103
103
 
@@ -106,9 +106,9 @@ module Hubspot
106
106
  def ==(o)
107
107
  return true if self.equal?(o)
108
108
  self.class == o.class &&
109
- inputs == o.inputs &&
110
109
  properties == o.properties &&
111
- id_property == o.id_property
110
+ id_property == o.id_property &&
111
+ inputs == o.inputs
112
112
  end
113
113
 
114
114
  # @see the `==` method
@@ -120,7 +120,7 @@ module Hubspot
120
120
  # Calculates hash code according to all attributes.
121
121
  # @return [Integer] Hash code
122
122
  def hash
123
- [inputs, properties, id_property].hash
123
+ [properties, id_property, inputs].hash
124
124
  end
125
125
 
126
126
  # Builds the object from hash