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
@@ -0,0 +1,61 @@
1
+ =begin
2
+ #CRM Imports
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ module Hubspot
14
+ module Crm
15
+ module Imports
16
+ class ApiError < StandardError
17
+ attr_reader :code, :response_headers, :response_body
18
+
19
+ # Usage examples:
20
+ # ApiError.new
21
+ # ApiError.new("message")
22
+ # ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
23
+ # ApiError.new(:code => 404, :message => "Not Found")
24
+ def initialize(arg = nil)
25
+ if arg.is_a? Hash
26
+ if arg.key?(:message) || arg.key?('message')
27
+ super(arg[:message] || arg['message'])
28
+ else
29
+ super arg
30
+ end
31
+
32
+ arg.each do |k, v|
33
+ instance_variable_set "@#{k}", v
34
+ end
35
+ else
36
+ super arg
37
+ end
38
+ end
39
+
40
+ # Override to_s to display a friendly error message
41
+ def to_s
42
+ message
43
+ end
44
+
45
+ def message
46
+ if @message.nil?
47
+ msg = "Error message: the server returns an error"
48
+ else
49
+ msg = @message
50
+ end
51
+
52
+ msg += "\nHTTP status code: #{code}" if code
53
+ msg += "\nResponse headers: #{response_headers}" if response_headers
54
+ msg += "\nResponse body: #{response_body}" if response_body
55
+
56
+ msg
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,258 @@
1
+ =begin
2
+ #CRM Imports
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ module Hubspot
14
+ module Crm
15
+ module Imports
16
+ class Configuration
17
+ # Defines url scheme
18
+ attr_accessor :scheme
19
+
20
+ # Defines url host
21
+ attr_accessor :host
22
+
23
+ # Defines url base path
24
+ attr_accessor :base_path
25
+
26
+ # Defines API keys used with API Key authentications.
27
+ #
28
+ # @return [Hash] key: parameter name, value: parameter value (API key)
29
+ #
30
+ # @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)
31
+ # config.api_key['api_key'] = 'xxx'
32
+ attr_accessor :api_key
33
+
34
+ # Defines API key prefixes used with API Key authentications.
35
+ #
36
+ # @return [Hash] key: parameter name, value: API key prefix
37
+ #
38
+ # @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)
39
+ # config.api_key_prefix['api_key'] = 'Token'
40
+ attr_accessor :api_key_prefix
41
+
42
+ # Defines the username used with HTTP basic authentication.
43
+ #
44
+ # @return [String]
45
+ attr_accessor :username
46
+
47
+ # Defines the password used with HTTP basic authentication.
48
+ #
49
+ # @return [String]
50
+ attr_accessor :password
51
+
52
+ # Defines the access token (Bearer) used with OAuth2.
53
+ attr_accessor :access_token
54
+
55
+ # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
56
+ # details will be logged with `logger.debug` (see the `logger` attribute).
57
+ # Default to false.
58
+ #
59
+ # @return [true, false]
60
+ attr_accessor :debugging
61
+
62
+ # Defines the logger used for debugging.
63
+ # Default to `Rails.logger` (when in Rails) or logging to STDOUT.
64
+ #
65
+ # @return [#debug]
66
+ attr_accessor :logger
67
+
68
+ # Defines the temporary folder to store downloaded files
69
+ # (for API endpoints that have file response).
70
+ # Default to use `Tempfile`.
71
+ #
72
+ # @return [String]
73
+ attr_accessor :temp_folder_path
74
+
75
+ # The time limit for HTTP request in seconds.
76
+ # Default to 0 (never times out).
77
+ attr_accessor :timeout
78
+
79
+ # Set this to false to skip client side validation in the operation.
80
+ # Default to true.
81
+ # @return [true, false]
82
+ attr_accessor :client_side_validation
83
+
84
+ ### TLS/SSL setting
85
+ # Set this to false to skip verifying SSL certificate when calling API from https server.
86
+ # Default to true.
87
+ #
88
+ # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
89
+ #
90
+ # @return [true, false]
91
+ attr_accessor :ssl_verify
92
+
93
+ ### TLS/SSL setting
94
+ # Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
95
+ #
96
+ # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
97
+ #
98
+ attr_accessor :ssl_verify_mode
99
+
100
+ ### TLS/SSL setting
101
+ # Set this to customize the certificate file to verify the peer.
102
+ #
103
+ # @return [String] the path to the certificate file
104
+ attr_accessor :ssl_ca_file
105
+
106
+ ### TLS/SSL setting
107
+ # Client certificate file (for client certificate)
108
+ attr_accessor :ssl_client_cert
109
+
110
+ ### TLS/SSL setting
111
+ # Client private key file (for client certificate)
112
+ attr_accessor :ssl_client_key
113
+
114
+ # Set this to customize parameters encoding of array parameter with multi collectionFormat.
115
+ # Default to nil.
116
+ #
117
+ # @see The params_encoding option of Ethon. Related source code:
118
+ # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
119
+ attr_accessor :params_encoding
120
+
121
+ attr_accessor :inject_format
122
+
123
+ attr_accessor :force_ending_format
124
+
125
+ attr_accessor :error_handler
126
+
127
+ def initialize
128
+ @scheme = 'https'
129
+ @host = 'api.hubapi.com'
130
+ @base_path = ''
131
+ @api_key = {}
132
+ @api_key_prefix = {}
133
+ @timeout = 0
134
+ @client_side_validation = true
135
+ @ssl_verify = true
136
+ @ssl_verify_mode = nil
137
+ @ssl_ca_file = nil
138
+ @ssl_client_cert = nil
139
+ @ssl_client_key = nil
140
+ @debugging = false
141
+ @inject_format = false
142
+ @force_ending_format = false
143
+ @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
144
+ # error_handler params: { 'status_code': { max_retries: ..., seconds_delay: ... }, ... }
145
+ @error_handler = {}
146
+
147
+ yield(self) if block_given?
148
+ end
149
+
150
+ # The default Configuration object.
151
+ def self.default
152
+ @@default ||= Configuration.new
153
+ end
154
+
155
+ def configure
156
+ yield(self) if block_given?
157
+ end
158
+
159
+ def scheme=(scheme)
160
+ # remove :// from scheme
161
+ @scheme = scheme.sub(/:\/\//, '')
162
+ end
163
+
164
+ def host=(host)
165
+ # remove http(s):// and anything after a slash
166
+ @host = host.sub(/https?:\/\//, '').split('/').first
167
+ end
168
+
169
+ def base_path=(base_path)
170
+ # Add leading and trailing slashes to base_path
171
+ @base_path = "/#{base_path}".gsub(/\/+/, '/')
172
+ @base_path = '' if @base_path == '/'
173
+ end
174
+
175
+ def base_url
176
+ "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
177
+ end
178
+
179
+ # Gets API key (with prefix if set).
180
+ # @param [String] param_name the parameter name of API key auth
181
+ def api_key_with_prefix(param_name)
182
+ if @api_key_prefix[param_name]
183
+ "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
184
+ else
185
+ @api_key[param_name]
186
+ end
187
+ end
188
+
189
+ # Gets Basic Auth token string
190
+ def basic_auth_token
191
+ 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
192
+ end
193
+
194
+ # Returns Auth Settings hash for api client.
195
+ def auth_settings
196
+ {
197
+ 'hapikey' =>
198
+ {
199
+ type: 'api_key',
200
+ in: 'query',
201
+ key: 'hapikey',
202
+ value: api_key_with_prefix('hapikey')
203
+ },
204
+ 'oauth2' =>
205
+ {
206
+ type: 'oauth2',
207
+ in: 'header',
208
+ key: 'Authorization',
209
+ value: "Bearer #{access_token}"
210
+ },
211
+ }
212
+ end
213
+
214
+ # Returns an array of Server setting
215
+ def server_settings
216
+ [
217
+ {
218
+ url: "https://api.hubapi.com/",
219
+ description: "No description provided",
220
+ }
221
+ ]
222
+ end
223
+
224
+ # Returns URL based on server settings
225
+ #
226
+ # @param index array index of the server settings
227
+ # @param variables hash of variable and the corresponding value
228
+ def server_url(index, variables = {})
229
+ servers = server_settings
230
+
231
+ # check array index out of bound
232
+ if (index < 0 || index >= servers.size)
233
+ fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}"
234
+ end
235
+
236
+ server = servers[index]
237
+ url = server[:url]
238
+
239
+ # go through variable and assign a value
240
+ server[:variables].each do |name, variable|
241
+ if variables.key?(name)
242
+ if (server[:variables][name][:enum_values].include? variables[name])
243
+ url.gsub! "{" + name.to_s + "}", variables[name]
244
+ else
245
+ fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}."
246
+ end
247
+ else
248
+ # use default value
249
+ url.gsub! "{" + name.to_s + "}", server[:variables][name][:default_value]
250
+ end
251
+ end
252
+
253
+ url
254
+ end
255
+ end
256
+ end
257
+ end
258
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Timeline events
2
+ #CRM Imports
3
3
 
4
- #This feature allows an app to create and configure custom events that can show up in the timelines of certain CRM object like contacts, companies, or deals. You'll find multiple use cases for this API in the sections below.
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -14,15 +14,15 @@ require 'date'
14
14
 
15
15
  module Hubspot
16
16
  module Crm
17
- module Timeline
18
- class DivideNumbers
19
- attr_accessor :operator
17
+ module Imports
18
+ class ActionResponse
19
+ attr_accessor :status
20
20
 
21
- attr_accessor :value
21
+ attr_accessor :requested_at
22
22
 
23
- attr_accessor :inputs
23
+ attr_accessor :started_at
24
24
 
25
- attr_accessor :property_name
25
+ attr_accessor :completed_at
26
26
 
27
27
  class EnumAttributeValidator
28
28
  attr_reader :datatype
@@ -49,20 +49,20 @@ module Hubspot
49
49
  # Attribute mapping from ruby-style variable name to JSON key.
50
50
  def self.attribute_map
51
51
  {
52
- :'operator' => :'operator',
53
- :'value' => :'value',
54
- :'inputs' => :'inputs',
55
- :'property_name' => :'propertyName'
52
+ :'status' => :'status',
53
+ :'requested_at' => :'requestedAt',
54
+ :'started_at' => :'startedAt',
55
+ :'completed_at' => :'completedAt'
56
56
  }
57
57
  end
58
58
 
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'operator' => :'String',
63
- :'value' => :'Float',
64
- :'inputs' => :'Array<AnyOfConstantBooleanConstantNumberConstantStringBooleanPropertyVariableStringPropertyVariableNumberPropertyVariableAddNumbersSubtractNumbersMultiplyNumbersDivideNumbersRoundDownNumbersRoundUpNumbersUpperCaseLowerCaseConcatStringsContainsBeginsWithNumberToStringParseNumberFetchExchangeRatePipelineProbabilityMaxNumbersMinNumbersLessThanLessThanOrEqualMoreThanMoreThanOrEqualNumberEqualsStringEqualsNotDateMonthYearNowTimeBetweenPeriodToMonthsAndOrXorIfStringIfNumberIfBooleanIsPresentHasEmailReplyHasPlainTextEmailReplyExtractMostRecentEmailReplyHtmlExtractMostRecentEmailReplyTextExtractMostRecentPlainTextEmailReply>',
65
- :'property_name' => :'String'
62
+ :'status' => :'String',
63
+ :'requested_at' => :'DateTime',
64
+ :'started_at' => :'DateTime',
65
+ :'completed_at' => :'DateTime'
66
66
  }
67
67
  end
68
68
 
@@ -76,35 +76,31 @@ module Hubspot
76
76
  # @param [Hash] attributes Model attributes in the form of hash
77
77
  def initialize(attributes = {})
78
78
  if (!attributes.is_a?(Hash))
79
- fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Timeline::DivideNumbers` initialize method"
79
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Imports::ActionResponse` initialize method"
80
80
  end
81
81
 
82
82
  # check to see if the attribute exists and convert string to symbol for hash key
83
83
  attributes = attributes.each_with_object({}) { |(k, v), h|
84
84
  if (!self.class.attribute_map.key?(k.to_sym))
85
- fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Timeline::DivideNumbers`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Imports::ActionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
86
86
  end
87
87
  h[k.to_sym] = v
88
88
  }
89
89
 
90
- if attributes.key?(:'operator')
91
- self.operator = attributes[:'operator']
92
- else
93
- self.operator = 'DIVIDE_NUMBERS'
90
+ if attributes.key?(:'status')
91
+ self.status = attributes[:'status']
94
92
  end
95
93
 
96
- if attributes.key?(:'value')
97
- self.value = attributes[:'value']
94
+ if attributes.key?(:'requested_at')
95
+ self.requested_at = attributes[:'requested_at']
98
96
  end
99
97
 
100
- if attributes.key?(:'inputs')
101
- if (value = attributes[:'inputs']).is_a?(Array)
102
- self.inputs = value
103
- end
98
+ if attributes.key?(:'started_at')
99
+ self.started_at = attributes[:'started_at']
104
100
  end
105
101
 
106
- if attributes.key?(:'property_name')
107
- self.property_name = attributes[:'property_name']
102
+ if attributes.key?(:'completed_at')
103
+ self.completed_at = attributes[:'completed_at']
108
104
  end
109
105
  end
110
106
 
@@ -112,8 +108,16 @@ module Hubspot
112
108
  # @return Array for valid properties with the reasons
113
109
  def list_invalid_properties
114
110
  invalid_properties = Array.new
115
- if @operator.nil?
116
- invalid_properties.push('invalid value for "operator", operator cannot be nil.')
111
+ if @status.nil?
112
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
113
+ end
114
+
115
+ if @started_at.nil?
116
+ invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
117
+ end
118
+
119
+ if @completed_at.nil?
120
+ invalid_properties.push('invalid value for "completed_at", completed_at cannot be nil.')
117
121
  end
118
122
 
119
123
  invalid_properties
@@ -122,20 +126,22 @@ module Hubspot
122
126
  # Check to see if the all the properties in the model are valid
123
127
  # @return true if the model is valid
124
128
  def valid?
125
- return false if @operator.nil?
126
- operator_validator = EnumAttributeValidator.new('String', ["DIVIDE_NUMBERS"])
127
- return false unless operator_validator.valid?(@operator)
129
+ return false if @status.nil?
130
+ status_validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
131
+ return false unless status_validator.valid?(@status)
132
+ return false if @started_at.nil?
133
+ return false if @completed_at.nil?
128
134
  true
129
135
  end
130
136
 
131
137
  # Custom attribute writer method checking allowed values (enum).
132
- # @param [Object] operator Object to be assigned
133
- def operator=(operator)
134
- validator = EnumAttributeValidator.new('String', ["DIVIDE_NUMBERS"])
135
- unless validator.valid?(operator)
136
- fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
138
+ # @param [Object] status Object to be assigned
139
+ def status=(status)
140
+ validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
141
+ unless validator.valid?(status)
142
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
137
143
  end
138
- @operator = operator
144
+ @status = status
139
145
  end
140
146
 
141
147
  # Checks equality by comparing each attribute.
@@ -143,10 +149,10 @@ module Hubspot
143
149
  def ==(o)
144
150
  return true if self.equal?(o)
145
151
  self.class == o.class &&
146
- operator == o.operator &&
147
- value == o.value &&
148
- inputs == o.inputs &&
149
- property_name == o.property_name
152
+ status == o.status &&
153
+ requested_at == o.requested_at &&
154
+ started_at == o.started_at &&
155
+ completed_at == o.completed_at
150
156
  end
151
157
 
152
158
  # @see the `==` method
@@ -158,7 +164,7 @@ module Hubspot
158
164
  # Calculates hash code according to all attributes.
159
165
  # @return [Integer] Hash code
160
166
  def hash
161
- [operator, value, inputs, property_name].hash
167
+ [status, requested_at, started_at, completed_at].hash
162
168
  end
163
169
 
164
170
  # Builds the object from hash
@@ -225,7 +231,7 @@ module Hubspot
225
231
  end
226
232
  end
227
233
  else # model
228
- Hubspot::Crm::Timeline.const_get(type).build_from_hash(value)
234
+ Hubspot::Crm::Imports.const_get(type).build_from_hash(value)
229
235
  end
230
236
  end
231
237
 
@@ -277,4 +283,4 @@ module Hubspot
277
283
  end
278
284
  end
279
285
  end
280
- end
286
+ end