hubspot-api-client 2.3.2 → 3.0.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (379) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +2 -31
  4. data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +22 -22
  5. data/lib/hubspot/codegen/crm/associations/api/types_api.rb +8 -8
  6. data/lib/hubspot/codegen/crm/associations/api_client.rb +3 -3
  7. data/lib/hubspot/codegen/crm/associations/api_error.rb +2 -2
  8. data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
  9. data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
  10. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +2 -2
  11. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
  12. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +1 -1
  13. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +1 -1
  14. data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +1 -1
  15. data/lib/hubspot/codegen/crm/associations/models/error.rb +1 -1
  16. data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +1 -1
  17. data/lib/hubspot/codegen/crm/associations/models/next_page.rb +1 -1
  18. data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
  19. data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
  20. data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +1 -1
  21. data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +1 -1
  22. data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +2 -2
  23. data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +26 -26
  24. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +1 -1
  25. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +21 -21
  26. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
  27. data/lib/hubspot/codegen/crm/companies/api_client.rb +3 -3
  28. data/lib/hubspot/codegen/crm/companies/api_error.rb +2 -2
  29. data/lib/hubspot/codegen/crm/companies/configuration.rb +1 -1
  30. data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +1 -1
  31. data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +2 -2
  32. data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +2 -2
  33. data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +2 -2
  34. data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +1 -1
  35. data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -1
  36. data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +1 -1
  37. data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +2 -2
  38. data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +2 -2
  39. data/lib/hubspot/codegen/crm/companies/models/error.rb +1 -1
  40. data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +1 -1
  41. data/lib/hubspot/codegen/crm/companies/models/filter.rb +4 -4
  42. data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +2 -2
  43. data/lib/hubspot/codegen/crm/companies/models/next_page.rb +2 -2
  44. data/lib/hubspot/codegen/crm/companies/models/paging.rb +2 -2
  45. data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +2 -2
  46. data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -1
  47. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +2 -2
  48. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +2 -2
  49. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
  50. data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +26 -26
  51. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +1 -1
  52. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +21 -21
  53. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
  54. data/lib/hubspot/codegen/crm/contacts/api_client.rb +3 -3
  55. data/lib/hubspot/codegen/crm/contacts/api_error.rb +2 -2
  56. data/lib/hubspot/codegen/crm/contacts/configuration.rb +1 -1
  57. data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +1 -1
  58. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +2 -2
  59. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +2 -2
  60. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +2 -2
  61. data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +1 -1
  62. data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -1
  63. data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +1 -1
  64. data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +2 -2
  65. data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +2 -2
  66. data/lib/hubspot/codegen/crm/contacts/models/error.rb +1 -1
  67. data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +1 -1
  68. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +1 -1
  69. data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +2 -2
  70. data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +2 -2
  71. data/lib/hubspot/codegen/crm/contacts/models/paging.rb +2 -2
  72. data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +2 -2
  73. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -1
  74. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +2 -2
  75. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +2 -2
  76. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +2 -2
  77. data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +26 -26
  78. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +1 -1
  79. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +21 -21
  80. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
  81. data/lib/hubspot/codegen/crm/deals/api_client.rb +3 -3
  82. data/lib/hubspot/codegen/crm/deals/api_error.rb +2 -2
  83. data/lib/hubspot/codegen/crm/deals/configuration.rb +1 -1
  84. data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +1 -1
  85. data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +2 -2
  86. data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +2 -2
  87. data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +2 -2
  88. data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +1 -1
  89. data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -1
  90. data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +1 -1
  91. data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +2 -2
  92. data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +2 -2
  93. data/lib/hubspot/codegen/crm/deals/models/error.rb +1 -1
  94. data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +1 -1
  95. data/lib/hubspot/codegen/crm/deals/models/filter.rb +1 -1
  96. data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +2 -2
  97. data/lib/hubspot/codegen/crm/deals/models/next_page.rb +2 -2
  98. data/lib/hubspot/codegen/crm/deals/models/paging.rb +2 -2
  99. data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +2 -2
  100. data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -1
  101. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +2 -2
  102. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +2 -2
  103. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +2 -2
  104. data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +1 -1
  105. data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +1 -1
  106. data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +2 -2
  107. data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +4 -4
  108. data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
  109. data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +1 -1
  110. data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +1 -1
  111. data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -2
  112. data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -2
  113. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -2
  114. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -2
  115. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -2
  116. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +0 -1
  117. data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -2
  118. data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +1 -1
  119. data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -2
  120. data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -2
  121. data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -2
  122. data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +1 -1
  123. data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +1 -1
  124. data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +1 -1
  125. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -2
  126. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +2 -2
  127. data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +1 -1
  128. data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +2 -2
  129. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +279 -0
  130. data/lib/hubspot/codegen/crm/imports/api_client.rb +422 -0
  131. data/lib/hubspot/codegen/crm/imports/api_error.rb +61 -0
  132. data/lib/hubspot/codegen/crm/imports/configuration.rb +258 -0
  133. data/lib/hubspot/codegen/crm/{timeline/models/divide_numbers.rb → imports/models/action_response.rb} +54 -48
  134. data/lib/hubspot/codegen/crm/{timeline/models/now.rb → imports/models/collection_response_public_import_response.rb} +25 -79
  135. data/lib/hubspot/codegen/crm/{timeline/models/date.rb → imports/models/error.rb} +82 -70
  136. data/lib/hubspot/codegen/crm/{timeline/models/add_numbers.rb → imports/models/error_detail.rb} +51 -73
  137. data/lib/hubspot/codegen/crm/{timeline/models/model_or.rb → imports/models/next_page.rb} +24 -80
  138. data/lib/hubspot/codegen/crm/{timeline/models/month.rb → imports/models/paging.rb} +15 -85
  139. data/lib/hubspot/codegen/crm/{timeline/models/pipeline_probability.rb → imports/models/public_import_metadata.rb} +48 -76
  140. data/lib/hubspot/codegen/crm/{timeline/models/contains.rb → imports/models/public_import_response.rb} +93 -57
  141. data/lib/hubspot/codegen/crm/{timeline/models/xor.rb → imports/models/public_object_list_record.rb} +31 -80
  142. data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +26 -26
  143. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +1 -1
  144. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +21 -21
  145. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
  146. data/lib/hubspot/codegen/crm/line_items/api_client.rb +3 -3
  147. data/lib/hubspot/codegen/crm/line_items/api_error.rb +2 -2
  148. data/lib/hubspot/codegen/crm/line_items/configuration.rb +1 -1
  149. data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +1 -1
  150. data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +2 -2
  151. data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +2 -2
  152. data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +2 -2
  153. data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -1
  154. data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -1
  155. data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +1 -1
  156. data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +2 -2
  157. data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +2 -2
  158. data/lib/hubspot/codegen/crm/line_items/models/error.rb +1 -1
  159. data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +1 -1
  160. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +1 -1
  161. data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +2 -2
  162. data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +2 -2
  163. data/lib/hubspot/codegen/crm/line_items/models/paging.rb +2 -2
  164. data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +2 -2
  165. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -1
  166. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +2 -2
  167. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +2 -2
  168. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +2 -2
  169. data/lib/hubspot/codegen/crm/owners/api/default_api.rb +1 -1
  170. data/lib/hubspot/codegen/crm/owners/api_client.rb +3 -3
  171. data/lib/hubspot/codegen/crm/owners/api_error.rb +2 -2
  172. data/lib/hubspot/codegen/crm/owners/configuration.rb +1 -1
  173. data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
  174. data/lib/hubspot/codegen/crm/owners/models/error.rb +2 -2
  175. data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +2 -2
  176. data/lib/hubspot/codegen/crm/owners/models/next_page.rb +3 -3
  177. data/lib/hubspot/codegen/crm/owners/models/paging.rb +3 -3
  178. data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +2 -2
  179. data/lib/hubspot/codegen/crm/owners/models/public_team.rb +3 -3
  180. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +2 -2
  181. data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
  182. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +3 -3
  183. data/lib/hubspot/codegen/crm/pipelines/api_error.rb +2 -2
  184. data/lib/hubspot/codegen/crm/pipelines/configuration.rb +2 -2
  185. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +2 -2
  186. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +2 -2
  187. data/lib/hubspot/codegen/crm/pipelines/models/error.rb +1 -1
  188. data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +1 -1
  189. data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +2 -2
  190. data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +2 -2
  191. data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +2 -3
  192. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +2 -3
  193. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +2 -3
  194. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +2 -3
  195. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +2 -3
  196. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +2 -3
  197. data/lib/hubspot/codegen/crm/products/api/associations_api.rb +26 -26
  198. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +1 -1
  199. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +21 -21
  200. data/lib/hubspot/codegen/crm/products/api/search_api.rb +2 -2
  201. data/lib/hubspot/codegen/crm/products/api_client.rb +3 -3
  202. data/lib/hubspot/codegen/crm/products/api_error.rb +2 -2
  203. data/lib/hubspot/codegen/crm/products/configuration.rb +2 -2
  204. data/lib/hubspot/codegen/crm/products/models/associated_id.rb +1 -1
  205. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +3 -3
  206. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +2 -2
  207. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +2 -2
  208. data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -1
  209. data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -1
  210. data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +1 -1
  211. data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +2 -2
  212. data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +2 -2
  213. data/lib/hubspot/codegen/crm/products/models/error.rb +1 -1
  214. data/lib/hubspot/codegen/crm/products/models/error_detail.rb +1 -1
  215. data/lib/hubspot/codegen/crm/products/models/filter.rb +1 -1
  216. data/lib/hubspot/codegen/crm/products/models/filter_group.rb +2 -2
  217. data/lib/hubspot/codegen/crm/products/models/next_page.rb +2 -2
  218. data/lib/hubspot/codegen/crm/products/models/paging.rb +2 -2
  219. data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +2 -2
  220. data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -1
  221. data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +2 -2
  222. data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +1 -1
  223. data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -1
  224. data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +19 -19
  225. data/lib/hubspot/codegen/crm/properties/api/core_api.rb +1 -1
  226. data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +1 -1
  227. data/lib/hubspot/codegen/crm/properties/api_client.rb +3 -3
  228. data/lib/hubspot/codegen/crm/properties/api_error.rb +2 -2
  229. data/lib/hubspot/codegen/crm/properties/configuration.rb +2 -2
  230. data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +2 -2
  231. data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +2 -2
  232. data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +2 -2
  233. data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +2 -2
  234. data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +2 -2
  235. data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +2 -2
  236. data/lib/hubspot/codegen/crm/properties/models/error.rb +1 -1
  237. data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +1 -1
  238. data/lib/hubspot/codegen/crm/properties/models/next_page.rb +2 -2
  239. data/lib/hubspot/codegen/crm/properties/models/option.rb +2 -2
  240. data/lib/hubspot/codegen/crm/properties/models/option_input.rb +2 -2
  241. data/lib/hubspot/codegen/crm/properties/models/paging.rb +2 -2
  242. data/lib/hubspot/codegen/crm/properties/models/property.rb +2 -2
  243. data/lib/hubspot/codegen/crm/properties/models/property_create.rb +2 -2
  244. data/lib/hubspot/codegen/crm/properties/models/property_group.rb +2 -3
  245. data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +2 -2
  246. data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +2 -2
  247. data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +2 -2
  248. data/lib/hubspot/codegen/crm/properties/models/property_name.rb +2 -2
  249. data/lib/hubspot/codegen/crm/properties/models/property_update.rb +2 -2
  250. data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +26 -26
  251. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +1 -1
  252. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +21 -21
  253. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +2 -2
  254. data/lib/hubspot/codegen/crm/quotes/api_client.rb +3 -3
  255. data/lib/hubspot/codegen/crm/quotes/api_error.rb +2 -2
  256. data/lib/hubspot/codegen/crm/quotes/configuration.rb +2 -2
  257. data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +1 -1
  258. data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +2 -2
  259. data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +2 -2
  260. data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +2 -2
  261. data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -1
  262. data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -1
  263. data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +1 -1
  264. data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +2 -2
  265. data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +2 -2
  266. data/lib/hubspot/codegen/crm/quotes/models/error.rb +1 -1
  267. data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +1 -1
  268. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +1 -1
  269. data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +2 -2
  270. data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +1 -1
  271. data/lib/hubspot/codegen/crm/quotes/models/paging.rb +1 -1
  272. data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +1 -1
  273. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +1 -1
  274. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +1 -1
  275. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -1
  276. data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +25 -25
  277. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +20 -20
  278. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
  279. data/lib/hubspot/codegen/crm/tickets/api_client.rb +2 -2
  280. data/lib/hubspot/codegen/crm/tickets/api_error.rb +1 -1
  281. data/lib/hubspot/codegen/crm/tickets/configuration.rb +2 -2
  282. data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +1 -1
  283. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +1 -1
  284. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +1 -1
  285. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +1 -1
  286. data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +1 -1
  287. data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +1 -1
  288. data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +1 -1
  289. data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +1 -1
  290. data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +1 -1
  291. data/lib/hubspot/codegen/crm/tickets/models/paging.rb +1 -1
  292. data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +1 -1
  293. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +1 -1
  294. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +2 -2
  295. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +2 -2
  296. data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +1 -1
  297. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +34 -34
  298. data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +24 -24
  299. data/lib/hubspot/codegen/crm/timeline/api_client.rb +2 -2
  300. data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
  301. data/lib/hubspot/codegen/crm/timeline/configuration.rb +1 -1
  302. data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +1 -2
  303. data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +1 -2
  304. data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +1 -2
  305. data/lib/hubspot/codegen/crm/timeline/models/error.rb +1 -1
  306. data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +1 -1
  307. data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +1 -2
  308. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +1 -1
  309. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +1 -1
  310. data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +1 -2
  311. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +1 -1
  312. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +1 -2
  313. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +1 -2
  314. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +1 -2
  315. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +1 -2
  316. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +1 -1
  317. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +1 -2
  318. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +1 -2
  319. data/lib/hubspot/codegen/oauth/api_client.rb +3 -3
  320. data/lib/hubspot/codegen/oauth/api_error.rb +2 -2
  321. data/lib/hubspot/codegen/oauth/configuration.rb +1 -1
  322. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +2 -2
  323. data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +2 -2
  324. data/lib/hubspot/codegen/webhooks/api/settings_api.rb +25 -21
  325. data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +59 -55
  326. data/lib/hubspot/codegen/webhooks/api_client.rb +1 -1
  327. data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +0 -1
  328. data/lib/hubspot/codegen/webhooks/models/settings_response.rb +0 -1
  329. data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +0 -1
  330. data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +0 -1
  331. data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +0 -1
  332. data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +0 -1
  333. data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +0 -1
  334. data/lib/hubspot/version.rb +1 -1
  335. data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
  336. data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
  337. data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
  338. data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
  339. data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +1 -1
  340. metadata +32 -211
  341. data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +0 -294
  342. data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +0 -280
  343. data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +0 -280
  344. data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +0 -280
  345. data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +0 -280
  346. data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +0 -280
  347. data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +0 -280
  348. data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +0 -280
  349. data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +0 -280
  350. data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +0 -280
  351. data/lib/hubspot/codegen/crm/timeline/models/has_email_reply.rb +0 -280
  352. data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +0 -280
  353. data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +0 -303
  354. data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +0 -303
  355. data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +0 -303
  356. data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +0 -294
  357. data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +0 -280
  358. data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +0 -280
  359. data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +0 -280
  360. data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +0 -280
  361. data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +0 -280
  362. data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +0 -280
  363. data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +0 -280
  364. data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +0 -280
  365. data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +0 -280
  366. data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +0 -280
  367. data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +0 -280
  368. data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +0 -280
  369. data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +0 -280
  370. data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +0 -280
  371. data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +0 -280
  372. data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +0 -280
  373. data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +0 -280
  374. data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +0 -280
  375. data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +0 -280
  376. data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +0 -280
  377. data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +0 -280
  378. data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +0 -280
  379. data/lib/hubspot/codegen/crm/timeline/models/year.rb +0 -280
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81c8078b57f0f0c1f072f0c360926452c6cd7e12c5d4457e6b9fc2c34e576110
4
- data.tar.gz: 44d1dfae5c4e8cdfa5db53664961f67a1d09e51200be1f2cfca53b03b48f88ed
3
+ metadata.gz: 0d3b73bce39d0976a2b8cf22fb414ccf0f2762456bd088fa3b5dcec8e3422108
4
+ data.tar.gz: ee98be5c964c99b98cf4c3686e65af9dafc18376c993e388f882bcfe95c1016e
5
5
  SHA512:
6
- metadata.gz: bbe348fb2212f0605a866da236aaf86454b65bae4c2960fdf0d21899d60f778dcea308b3371cc6f220d0f8e8b8804a7c79b38185b4606c1e15aaab5547dd252c
7
- data.tar.gz: 692d2dcf247a5ba0a7dc7680beab001e27495f342b216c3d4512fce724b9b94d115a703cb796e6e0a0fbe38908ce0beb2f4bd4d19b78e0885619f7edd6a663c7
6
+ metadata.gz: 366f2a968c8c73aa234bf097523f44854d6cb67164a44c195fea01f25add8d215b70da88c39f47cd8bae8bb13c92867038c81fcd3f15920e7db771da9a260604
7
+ data.tar.gz: ee9be0472cb8063f3ae3c8d798947b1f46848d625aed91afcd97512e13f61db4fdaf409f6f7cf60d0c88336b24db250c46b4f4db71bebb739a9b86308a82f0f4
data/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [3.0.0-beta] - 2020-04-20
9
+
10
+ - This CHANGELOG.md file.
11
+ - Regenerate clients
12
+ - Update sample apps according to regenerated clients
13
+ - Update Gemfile
data/README.md CHANGED
@@ -7,39 +7,10 @@ Ruby API v3 Client files and sample apps
7
7
 
8
8
  ## Installation
9
9
 
10
- ### Build a gem
11
-
12
- To build the Ruby code into a gem:
13
-
14
- ```shell
15
- gem build hubspot-api-client.gemspec
16
- ```
17
-
18
- Then either install the gem locally:
19
-
20
- ```shell
21
- gem install ./hubspot-api-client-1.0.0.gem
22
- ```
23
- (for development, run `gem install --dev ./hubspot-api-client-1.0.0.gem` to install the development dependencies)
24
-
25
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
26
-
27
- Finally add this to the Gemfile:
28
-
29
- gem 'hubspot-api-client', '~> 1.0.0'
30
-
31
- ### Install from Git
32
-
33
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
34
-
35
- gem 'hubspot-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
36
-
37
- ### Include the Ruby code directly
10
+ ```ruby
38
11
 
39
- Include the Ruby code directly using `-I` as follows:
12
+ gem 'hubspot-api-client'
40
13
 
41
- ```shell
42
- ruby -Ilib script.rb
43
14
  ```
44
15
 
45
16
  ## Getting Started
@@ -28,8 +28,8 @@ module Hubspot
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [BatchInputPublicAssociation] :batch_input_public_association
30
30
  # @return [nil]
31
- def archive_batch(from_object_type, to_object_type, opts = {})
32
- archive_batch_with_http_info(from_object_type, to_object_type, opts)
31
+ def archive(from_object_type, to_object_type, opts = {})
32
+ archive_with_http_info(from_object_type, to_object_type, opts)
33
33
  nil
34
34
  end
35
35
 
@@ -40,17 +40,17 @@ module Hubspot
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @option opts [BatchInputPublicAssociation] :batch_input_public_association
42
42
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
43
- def archive_batch_with_http_info(from_object_type, to_object_type, opts = {})
43
+ def archive_with_http_info(from_object_type, to_object_type, opts = {})
44
44
  if @api_client.config.debugging
45
- @api_client.config.logger.debug 'Calling API: BatchApi.archive_batch ...'
45
+ @api_client.config.logger.debug 'Calling API: BatchApi.archive ...'
46
46
  end
47
47
  # verify the required parameter 'from_object_type' is set
48
48
  if @api_client.config.client_side_validation && from_object_type.nil?
49
- fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.archive_batch"
49
+ fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.archive"
50
50
  end
51
51
  # verify the required parameter 'to_object_type' is set
52
52
  if @api_client.config.client_side_validation && to_object_type.nil?
53
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.archive_batch"
53
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.archive"
54
54
  end
55
55
  # resource path
56
56
  local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/archive'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
@@ -88,7 +88,7 @@ module Hubspot
88
88
 
89
89
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
90
90
  if @api_client.config.debugging
91
- @api_client.config.logger.debug "API called: BatchApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ @api_client.config.logger.debug "API called: BatchApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
92
  end
93
93
  return data, status_code, headers
94
94
  end
@@ -100,8 +100,8 @@ module Hubspot
100
100
  # @param [Hash] opts the optional parameters
101
101
  # @option opts [BatchInputPublicAssociation] :batch_input_public_association
102
102
  # @return [BatchResponsePublicAssociation]
103
- def create_batch(from_object_type, to_object_type, opts = {})
104
- data, _status_code, _headers = create_batch_with_http_info(from_object_type, to_object_type, opts)
103
+ def create(from_object_type, to_object_type, opts = {})
104
+ data, _status_code, _headers = create_with_http_info(from_object_type, to_object_type, opts)
105
105
  data
106
106
  end
107
107
 
@@ -112,17 +112,17 @@ module Hubspot
112
112
  # @param [Hash] opts the optional parameters
113
113
  # @option opts [BatchInputPublicAssociation] :batch_input_public_association
114
114
  # @return [Array<(BatchResponsePublicAssociation, Integer, Hash)>] BatchResponsePublicAssociation data, response status code and response headers
115
- def create_batch_with_http_info(from_object_type, to_object_type, opts = {})
115
+ def create_with_http_info(from_object_type, to_object_type, opts = {})
116
116
  if @api_client.config.debugging
117
- @api_client.config.logger.debug 'Calling API: BatchApi.create_batch ...'
117
+ @api_client.config.logger.debug 'Calling API: BatchApi.create ...'
118
118
  end
119
119
  # verify the required parameter 'from_object_type' is set
120
120
  if @api_client.config.client_side_validation && from_object_type.nil?
121
- fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.create_batch"
121
+ fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.create"
122
122
  end
123
123
  # verify the required parameter 'to_object_type' is set
124
124
  if @api_client.config.client_side_validation && to_object_type.nil?
125
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.create_batch"
125
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.create"
126
126
  end
127
127
  # resource path
128
128
  local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/create'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
@@ -160,7 +160,7 @@ module Hubspot
160
160
 
161
161
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
162
162
  if @api_client.config.debugging
163
- @api_client.config.logger.debug "API called: BatchApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
163
+ @api_client.config.logger.debug "API called: BatchApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
164
164
  end
165
165
  return data, status_code, headers
166
166
  end
@@ -172,8 +172,8 @@ module Hubspot
172
172
  # @param [Hash] opts the optional parameters
173
173
  # @option opts [BatchInputPublicObjectId] :batch_input_public_object_id
174
174
  # @return [BatchResponsePublicAssociationMulti]
175
- def read_batch(from_object_type, to_object_type, opts = {})
176
- data, _status_code, _headers = read_batch_with_http_info(from_object_type, to_object_type, opts)
175
+ def read(from_object_type, to_object_type, opts = {})
176
+ data, _status_code, _headers = read_with_http_info(from_object_type, to_object_type, opts)
177
177
  data
178
178
  end
179
179
 
@@ -184,17 +184,17 @@ module Hubspot
184
184
  # @param [Hash] opts the optional parameters
185
185
  # @option opts [BatchInputPublicObjectId] :batch_input_public_object_id
186
186
  # @return [Array<(BatchResponsePublicAssociationMulti, Integer, Hash)>] BatchResponsePublicAssociationMulti data, response status code and response headers
187
- def read_batch_with_http_info(from_object_type, to_object_type, opts = {})
187
+ def read_with_http_info(from_object_type, to_object_type, opts = {})
188
188
  if @api_client.config.debugging
189
- @api_client.config.logger.debug 'Calling API: BatchApi.read_batch ...'
189
+ @api_client.config.logger.debug 'Calling API: BatchApi.read ...'
190
190
  end
191
191
  # verify the required parameter 'from_object_type' is set
192
192
  if @api_client.config.client_side_validation && from_object_type.nil?
193
- fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.read_batch"
193
+ fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.read"
194
194
  end
195
195
  # verify the required parameter 'to_object_type' is set
196
196
  if @api_client.config.client_side_validation && to_object_type.nil?
197
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.read_batch"
197
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.read"
198
198
  end
199
199
  # resource path
200
200
  local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/read'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
@@ -232,11 +232,11 @@ module Hubspot
232
232
 
233
233
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
234
234
  if @api_client.config.debugging
235
- @api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
235
+ @api_client.config.logger.debug "API called: BatchApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
236
236
  end
237
237
  return data, status_code, headers
238
238
  end
239
239
  end
240
240
  end
241
241
  end
242
- end
242
+ end
@@ -27,8 +27,8 @@ module Hubspot
27
27
  # @param to_object_type [String]
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @return [CollectionResponsePublicAssociationDefiniton]
30
- def get_types(from_object_type, to_object_type, opts = {})
31
- data, _status_code, _headers = get_types_with_http_info(from_object_type, to_object_type, opts)
30
+ def get_all(from_object_type, to_object_type, opts = {})
31
+ data, _status_code, _headers = get_all_with_http_info(from_object_type, to_object_type, opts)
32
32
  data
33
33
  end
34
34
 
@@ -38,17 +38,17 @@ module Hubspot
38
38
  # @param to_object_type [String]
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [Array<(CollectionResponsePublicAssociationDefiniton, Integer, Hash)>] CollectionResponsePublicAssociationDefiniton data, response status code and response headers
41
- def get_types_with_http_info(from_object_type, to_object_type, opts = {})
41
+ def get_all_with_http_info(from_object_type, to_object_type, opts = {})
42
42
  if @api_client.config.debugging
43
- @api_client.config.logger.debug 'Calling API: TypesApi.get_types ...'
43
+ @api_client.config.logger.debug 'Calling API: TypesApi.get_all ...'
44
44
  end
45
45
  # verify the required parameter 'from_object_type' is set
46
46
  if @api_client.config.client_side_validation && from_object_type.nil?
47
- fail ArgumentError, "Missing the required parameter 'from_object_type' when calling TypesApi.get_types"
47
+ fail ArgumentError, "Missing the required parameter 'from_object_type' when calling TypesApi.get_all"
48
48
  end
49
49
  # verify the required parameter 'to_object_type' is set
50
50
  if @api_client.config.client_side_validation && to_object_type.nil?
51
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling TypesApi.get_types"
51
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling TypesApi.get_all"
52
52
  end
53
53
  # resource path
54
54
  local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/types'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
@@ -84,11 +84,11 @@ module Hubspot
84
84
 
85
85
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
86
86
  if @api_client.config.debugging
87
- @api_client.config.logger.debug "API called: TypesApi#get_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ @api_client.config.logger.debug "API called: TypesApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
88
  end
89
89
  return data, status_code, headers
90
90
  end
91
91
  end
92
92
  end
93
93
  end
94
- end
94
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -99,7 +99,7 @@ module Hubspot
99
99
  fail ApiError.new(:code => response.status,
100
100
  :response_headers => response.headers,
101
101
  :response_body => response.body),
102
- response.reason_phrase
102
+ response.reason_phrase
103
103
  end
104
104
  end
105
105
  rescue Faraday::TimeoutError
@@ -419,4 +419,4 @@ module Hubspot
419
419
  end
420
420
  end
421
421
  end
422
- end
422
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -58,4 +58,4 @@ module Hubspot
58
58
  end
59
59
  end
60
60
  end
61
- end
61
+ end
@@ -255,4 +255,4 @@ module Hubspot
255
255
  end
256
256
  end
257
257
  end
258
- end
258
+ end
@@ -226,4 +226,4 @@ module Hubspot
226
226
  end
227
227
  end
228
228
  end
229
- end
229
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -214,4 +214,4 @@ module Hubspot
214
214
  end
215
215
  end
216
216
  end
217
- end
217
+ end
@@ -214,4 +214,4 @@ module Hubspot
214
214
  end
215
215
  end
216
216
  end
217
- end
217
+ end
@@ -319,4 +319,4 @@ module Hubspot
319
319
  end
320
320
  end
321
321
  end
322
- end
322
+ end
@@ -319,4 +319,4 @@ module Hubspot
319
319
  end
320
320
  end
321
321
  end
322
- end
322
+ end
@@ -223,4 +223,4 @@ module Hubspot
223
223
  end
224
224
  end
225
225
  end
226
- end
226
+ end
@@ -289,4 +289,4 @@ module Hubspot
289
289
  end
290
290
  end
291
291
  end
292
- end
292
+ end
@@ -255,4 +255,4 @@ module Hubspot
255
255
  end
256
256
  end
257
257
  end
258
- end
258
+ end
@@ -221,4 +221,4 @@ module Hubspot
221
221
  end
222
222
  end
223
223
  end
224
- end
224
+ end
@@ -207,4 +207,4 @@ module Hubspot
207
207
  end
208
208
  end
209
209
  end
210
- end
210
+ end
@@ -240,4 +240,4 @@ module Hubspot
240
240
  end
241
241
  end
242
242
  end
243
- end
243
+ end
@@ -226,4 +226,4 @@ module Hubspot
226
226
  end
227
227
  end
228
228
  end
229
- end
229
+ end
@@ -229,4 +229,4 @@ module Hubspot
229
229
  end
230
230
  end
231
231
  end
232
- end
232
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -213,4 +213,4 @@ module Hubspot
213
213
  end
214
214
  end
215
215
  end
216
- end
216
+ end
@@ -28,8 +28,8 @@ module Hubspot
28
28
  # @param association_type [String]
29
29
  # @param [Hash] opts the optional parameters
30
30
  # @return [nil]
31
- def archive_association(company_id, to_object_type, to_object_id, association_type, opts = {})
32
- archive_association_with_http_info(company_id, to_object_type, to_object_id, association_type, opts)
31
+ def archive(company_id, to_object_type, to_object_id, association_type, opts = {})
32
+ archive_with_http_info(company_id, to_object_type, to_object_id, association_type, opts)
33
33
  nil
34
34
  end
35
35
 
@@ -40,25 +40,25 @@ module Hubspot
40
40
  # @param association_type [String]
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
43
- def archive_association_with_http_info(company_id, to_object_type, to_object_id, association_type, opts = {})
43
+ def archive_with_http_info(company_id, to_object_type, to_object_id, association_type, opts = {})
44
44
  if @api_client.config.debugging
45
- @api_client.config.logger.debug 'Calling API: AssociationsApi.archive_association ...'
45
+ @api_client.config.logger.debug 'Calling API: AssociationsApi.archive ...'
46
46
  end
47
47
  # verify the required parameter 'company_id' is set
48
48
  if @api_client.config.client_side_validation && company_id.nil?
49
- fail ArgumentError, "Missing the required parameter 'company_id' when calling AssociationsApi.archive_association"
49
+ fail ArgumentError, "Missing the required parameter 'company_id' when calling AssociationsApi.archive"
50
50
  end
51
51
  # verify the required parameter 'to_object_type' is set
52
52
  if @api_client.config.client_side_validation && to_object_type.nil?
53
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.archive_association"
53
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.archive"
54
54
  end
55
55
  # verify the required parameter 'to_object_id' is set
56
56
  if @api_client.config.client_side_validation && to_object_id.nil?
57
- fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.archive_association"
57
+ fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.archive"
58
58
  end
59
59
  # verify the required parameter 'association_type' is set
60
60
  if @api_client.config.client_side_validation && association_type.nil?
61
- fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.archive_association"
61
+ fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.archive"
62
62
  end
63
63
  # resource path
64
64
  local_var_path = '/crm/v3/objects/companies/{companyId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'companyId' + '}', CGI.escape(company_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s))
@@ -94,7 +94,7 @@ module Hubspot
94
94
 
95
95
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
96
96
  if @api_client.config.debugging
97
- @api_client.config.logger.debug "API called: AssociationsApi#archive_association\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
97
+ @api_client.config.logger.debug "API called: AssociationsApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
98
  end
99
99
  return data, status_code, headers
100
100
  end
@@ -106,8 +106,8 @@ module Hubspot
106
106
  # @param association_type [String]
107
107
  # @param [Hash] opts the optional parameters
108
108
  # @return [SimplePublicObject]
109
- def create_association(company_id, to_object_type, to_object_id, association_type, opts = {})
110
- data, _status_code, _headers = create_association_with_http_info(company_id, to_object_type, to_object_id, association_type, opts)
109
+ def create(company_id, to_object_type, to_object_id, association_type, opts = {})
110
+ data, _status_code, _headers = create_with_http_info(company_id, to_object_type, to_object_id, association_type, opts)
111
111
  data
112
112
  end
113
113
 
@@ -118,25 +118,25 @@ module Hubspot
118
118
  # @param association_type [String]
119
119
  # @param [Hash] opts the optional parameters
120
120
  # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
121
- def create_association_with_http_info(company_id, to_object_type, to_object_id, association_type, opts = {})
121
+ def create_with_http_info(company_id, to_object_type, to_object_id, association_type, opts = {})
122
122
  if @api_client.config.debugging
123
- @api_client.config.logger.debug 'Calling API: AssociationsApi.create_association ...'
123
+ @api_client.config.logger.debug 'Calling API: AssociationsApi.create ...'
124
124
  end
125
125
  # verify the required parameter 'company_id' is set
126
126
  if @api_client.config.client_side_validation && company_id.nil?
127
- fail ArgumentError, "Missing the required parameter 'company_id' when calling AssociationsApi.create_association"
127
+ fail ArgumentError, "Missing the required parameter 'company_id' when calling AssociationsApi.create"
128
128
  end
129
129
  # verify the required parameter 'to_object_type' is set
130
130
  if @api_client.config.client_side_validation && to_object_type.nil?
131
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.create_association"
131
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.create"
132
132
  end
133
133
  # verify the required parameter 'to_object_id' is set
134
134
  if @api_client.config.client_side_validation && to_object_id.nil?
135
- fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.create_association"
135
+ fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.create"
136
136
  end
137
137
  # verify the required parameter 'association_type' is set
138
138
  if @api_client.config.client_side_validation && association_type.nil?
139
- fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.create_association"
139
+ fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.create"
140
140
  end
141
141
  # resource path
142
142
  local_var_path = '/crm/v3/objects/companies/{companyId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'companyId' + '}', CGI.escape(company_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s))
@@ -172,7 +172,7 @@ module Hubspot
172
172
 
173
173
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
174
174
  if @api_client.config.debugging
175
- @api_client.config.logger.debug "API called: AssociationsApi#create_association\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ @api_client.config.logger.debug "API called: AssociationsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
176
  end
177
177
  return data, status_code, headers
178
178
  end
@@ -182,8 +182,8 @@ module Hubspot
182
182
  # @param to_object_type [String]
183
183
  # @param [Hash] opts the optional parameters
184
184
  # @return [CollectionResponseAssociatedId]
185
- def get_associations(company_id, to_object_type, opts = {})
186
- data, _status_code, _headers = get_associations_with_http_info(company_id, to_object_type, opts)
185
+ def get_all(company_id, to_object_type, opts = {})
186
+ data, _status_code, _headers = get_all_with_http_info(company_id, to_object_type, opts)
187
187
  data
188
188
  end
189
189
 
@@ -192,17 +192,17 @@ module Hubspot
192
192
  # @param to_object_type [String]
193
193
  # @param [Hash] opts the optional parameters
194
194
  # @return [Array<(CollectionResponseAssociatedId, Integer, Hash)>] CollectionResponseAssociatedId data, response status code and response headers
195
- def get_associations_with_http_info(company_id, to_object_type, opts = {})
195
+ def get_all_with_http_info(company_id, to_object_type, opts = {})
196
196
  if @api_client.config.debugging
197
- @api_client.config.logger.debug 'Calling API: AssociationsApi.get_associations ...'
197
+ @api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...'
198
198
  end
199
199
  # verify the required parameter 'company_id' is set
200
200
  if @api_client.config.client_side_validation && company_id.nil?
201
- fail ArgumentError, "Missing the required parameter 'company_id' when calling AssociationsApi.get_associations"
201
+ fail ArgumentError, "Missing the required parameter 'company_id' when calling AssociationsApi.get_all"
202
202
  end
203
203
  # verify the required parameter 'to_object_type' is set
204
204
  if @api_client.config.client_side_validation && to_object_type.nil?
205
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.get_associations"
205
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.get_all"
206
206
  end
207
207
  # resource path
208
208
  local_var_path = '/crm/v3/objects/companies/{companyId}/associations/{toObjectType}'.sub('{' + 'companyId' + '}', CGI.escape(company_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
@@ -238,11 +238,11 @@ module Hubspot
238
238
 
239
239
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
240
240
  if @api_client.config.debugging
241
- @api_client.config.logger.debug "API called: AssociationsApi#get_associations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
+ @api_client.config.logger.debug "API called: AssociationsApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
242
242
  end
243
243
  return data, status_code, headers
244
244
  end
245
245
  end
246
246
  end
247
247
  end
248
- end
248
+ end