hubspot-api-client 16.4.0 → 17.0.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +70 -1
  3. data/Gemfile.lock +1 -1
  4. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +66 -66
  5. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +9 -9
  6. data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_json_node.rb → batch_input_hub_db_table_row_v3_batch_update_request.rb} +4 -4
  7. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +52 -44
  8. data/lib/hubspot/codegen/cms/hubdb/models/column_request.rb +2 -2
  9. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +29 -20
  10. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_batch_update_request.rb +285 -0
  11. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_request.rb +13 -4
  12. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +60 -52
  13. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +10 -1
  14. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +9 -9
  15. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +9 -9
  16. data/lib/hubspot/codegen/crm/companies/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  17. data/lib/hubspot/codegen/crm/companies/models/filter.rb +10 -1
  18. data/lib/hubspot/codegen/crm/companies/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  19. data/lib/hubspot/codegen/crm/companies/models/public_object_id.rb +228 -0
  20. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input_for_create.rb +246 -0
  21. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +9 -9
  22. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +9 -9
  23. data/lib/hubspot/codegen/crm/contacts/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  24. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +10 -1
  25. data/lib/hubspot/codegen/crm/contacts/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  26. data/lib/hubspot/codegen/crm/contacts/models/public_object_id.rb +228 -0
  27. data/lib/hubspot/codegen/crm/{deals/models/multi_associated_object_with_label.rb → contacts/models/simple_public_object_input_for_create.rb} +28 -26
  28. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +9 -9
  29. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +9 -9
  30. data/lib/hubspot/codegen/crm/deals/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  31. data/lib/hubspot/codegen/crm/deals/models/filter.rb +10 -1
  32. data/lib/hubspot/codegen/crm/deals/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  33. data/lib/hubspot/codegen/crm/{properties/models/paging.rb → deals/models/public_object_id.rb} +19 -14
  34. data/lib/hubspot/codegen/crm/{tickets/models/multi_associated_object_with_label.rb → deals/models/simple_public_object_input_for_create.rb} +28 -26
  35. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +9 -9
  36. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +9 -9
  37. data/lib/hubspot/codegen/crm/line_items/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  38. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +10 -1
  39. data/lib/hubspot/codegen/crm/line_items/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  40. data/lib/hubspot/codegen/crm/line_items/models/public_object_id.rb +228 -0
  41. data/lib/hubspot/codegen/crm/line_items/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
  42. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +9 -9
  43. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +9 -9
  44. data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +9 -9
  45. data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +9 -9
  46. data/lib/hubspot/codegen/crm/objects/calls/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  47. data/lib/hubspot/codegen/crm/objects/calls/models/filter.rb +10 -1
  48. data/lib/hubspot/codegen/crm/objects/calls/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  49. data/lib/hubspot/codegen/crm/objects/calls/models/public_object_id.rb +230 -0
  50. data/lib/hubspot/codegen/crm/objects/calls/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
  51. data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +9 -9
  52. data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +9 -9
  53. data/lib/hubspot/codegen/crm/objects/emails/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  54. data/lib/hubspot/codegen/crm/objects/emails/models/filter.rb +10 -1
  55. data/lib/hubspot/codegen/crm/objects/emails/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  56. data/lib/hubspot/codegen/crm/objects/emails/models/public_object_id.rb +230 -0
  57. data/lib/hubspot/codegen/crm/objects/emails/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
  58. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +9 -9
  59. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +9 -9
  60. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  61. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +10 -1
  62. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  63. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_id.rb +230 -0
  64. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
  65. data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +9 -9
  66. data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +9 -9
  67. data/lib/hubspot/codegen/crm/objects/meetings/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  68. data/lib/hubspot/codegen/crm/objects/meetings/models/filter.rb +10 -1
  69. data/lib/hubspot/codegen/crm/objects/meetings/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  70. data/lib/hubspot/codegen/crm/objects/meetings/models/public_object_id.rb +230 -0
  71. data/lib/hubspot/codegen/crm/objects/meetings/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
  72. data/lib/hubspot/codegen/crm/{line_items/models/association_spec_with_label.rb → objects/models/association_spec.rb} +33 -42
  73. data/lib/hubspot/codegen/crm/objects/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  74. data/lib/hubspot/codegen/crm/objects/models/filter.rb +10 -1
  75. data/lib/hubspot/codegen/crm/objects/models/public_associations_for_object.rb +244 -0
  76. data/lib/hubspot/codegen/crm/{associations/models/public_association_definiton.rb → objects/models/public_object_id.rb} +11 -25
  77. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +246 -0
  78. data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +9 -9
  79. data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +9 -9
  80. data/lib/hubspot/codegen/crm/objects/notes/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  81. data/lib/hubspot/codegen/crm/objects/notes/models/filter.rb +10 -1
  82. data/lib/hubspot/codegen/crm/objects/notes/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  83. data/lib/hubspot/codegen/crm/objects/notes/models/public_object_id.rb +230 -0
  84. data/lib/hubspot/codegen/crm/objects/notes/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
  85. data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +9 -9
  86. data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +9 -9
  87. data/lib/hubspot/codegen/crm/objects/postal_mail/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  88. data/lib/hubspot/codegen/crm/objects/postal_mail/models/filter.rb +10 -1
  89. data/lib/hubspot/codegen/crm/objects/postal_mail/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  90. data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_object_id.rb +230 -0
  91. data/lib/hubspot/codegen/crm/objects/postal_mail/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
  92. data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +9 -9
  93. data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +9 -9
  94. data/lib/hubspot/codegen/crm/objects/tasks/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  95. data/lib/hubspot/codegen/crm/objects/tasks/models/filter.rb +10 -1
  96. data/lib/hubspot/codegen/crm/objects/tasks/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  97. data/lib/hubspot/codegen/crm/objects/tasks/models/public_object_id.rb +230 -0
  98. data/lib/hubspot/codegen/crm/objects/tasks/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
  99. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +9 -9
  100. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +9 -9
  101. data/lib/hubspot/codegen/crm/products/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  102. data/lib/hubspot/codegen/crm/products/models/filter.rb +10 -1
  103. data/lib/hubspot/codegen/crm/products/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  104. data/lib/hubspot/codegen/crm/products/models/public_object_id.rb +228 -0
  105. data/lib/hubspot/codegen/crm/products/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
  106. data/lib/hubspot/codegen/crm/properties/api/core_api.rb +9 -3
  107. data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +3 -3
  108. data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +18 -18
  109. data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +1 -21
  110. data/lib/hubspot/codegen/crm/properties/models/batch_response_property_with_errors.rb +346 -0
  111. data/lib/hubspot/codegen/crm/properties/models/{collection_response_property_group.rb → collection_response_property_group_no_paging.rb} +7 -16
  112. data/lib/hubspot/codegen/crm/properties/models/{collection_response_property.rb → collection_response_property_no_paging.rb} +7 -16
  113. data/lib/hubspot/codegen/crm/properties/models/error_category.rb +20 -20
  114. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +9 -9
  115. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +9 -9
  116. data/lib/hubspot/codegen/crm/quotes/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  117. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +10 -1
  118. data/lib/hubspot/codegen/crm/quotes/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  119. data/lib/hubspot/codegen/crm/quotes/models/public_object_id.rb +228 -0
  120. data/lib/hubspot/codegen/crm/{contacts/models/multi_associated_object_with_label.rb → quotes/models/simple_public_object_input_for_create.rb} +28 -26
  121. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +9 -9
  122. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +9 -9
  123. data/lib/hubspot/codegen/crm/tickets/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
  124. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +10 -1
  125. data/lib/hubspot/codegen/crm/tickets/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  126. data/lib/hubspot/codegen/crm/tickets/models/public_object_id.rb +228 -0
  127. data/lib/hubspot/codegen/crm/{companies/models/multi_associated_object_with_label.rb → tickets/models/simple_public_object_input_for_create.rb} +28 -26
  128. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +7 -7
  129. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +14 -14
  130. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +6 -6
  131. data/lib/hubspot/discovery/crm/companies/client.rb +0 -1
  132. data/lib/hubspot/discovery/crm/contacts/client.rb +0 -1
  133. data/lib/hubspot/discovery/crm/deals/client.rb +0 -1
  134. data/lib/hubspot/discovery/crm/line_items/client.rb +0 -1
  135. data/lib/hubspot/discovery/crm/objects/calls/client.rb +0 -1
  136. data/lib/hubspot/discovery/crm/objects/emails/client.rb +0 -1
  137. data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +0 -1
  138. data/lib/hubspot/discovery/crm/objects/meetings/client.rb +0 -1
  139. data/lib/hubspot/discovery/crm/objects/notes/client.rb +0 -1
  140. data/lib/hubspot/discovery/crm/objects/postal_mail/client.rb +0 -1
  141. data/lib/hubspot/discovery/crm/objects/tasks/client.rb +0 -1
  142. data/lib/hubspot/version.rb +1 -1
  143. data/spec/discovery/cms/hubdb/rows_batch_api_spec.rb +7 -7
  144. data/spec/discovery/oauth/access_tokens_api_spec.rb +1 -1
  145. data/spec/discovery/oauth/refresh_tokens_api_spec.rb +2 -2
  146. data/spec/discovery/oauth/tokens_api_spec.rb +1 -1
  147. metadata +162 -227
  148. data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +0 -239
  149. data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +0 -262
  150. data/lib/hubspot/codegen/crm/companies/models/association_spec_with_label.rb +0 -285
  151. data/lib/hubspot/codegen/crm/companies/models/labels_between_object_pair.rb +0 -286
  152. data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +0 -262
  153. data/lib/hubspot/codegen/crm/contacts/models/association_spec_with_label.rb +0 -285
  154. data/lib/hubspot/codegen/crm/contacts/models/labels_between_object_pair.rb +0 -286
  155. data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +0 -262
  156. data/lib/hubspot/codegen/crm/deals/models/association_spec_with_label.rb +0 -285
  157. data/lib/hubspot/codegen/crm/deals/models/labels_between_object_pair.rb +0 -286
  158. data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +0 -262
  159. data/lib/hubspot/codegen/crm/line_items/models/labels_between_object_pair.rb +0 -286
  160. data/lib/hubspot/codegen/crm/objects/calls/api/associations_api.rb +0 -264
  161. data/lib/hubspot/codegen/crm/objects/calls/models/association_spec_with_label.rb +0 -287
  162. data/lib/hubspot/codegen/crm/objects/calls/models/labels_between_object_pair.rb +0 -288
  163. data/lib/hubspot/codegen/crm/objects/emails/api/associations_api.rb +0 -264
  164. data/lib/hubspot/codegen/crm/objects/emails/models/association_spec_with_label.rb +0 -287
  165. data/lib/hubspot/codegen/crm/objects/emails/models/labels_between_object_pair.rb +0 -288
  166. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +0 -264
  167. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/association_spec_with_label.rb +0 -287
  168. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/labels_between_object_pair.rb +0 -288
  169. data/lib/hubspot/codegen/crm/objects/meetings/api/associations_api.rb +0 -264
  170. data/lib/hubspot/codegen/crm/objects/meetings/models/association_spec_with_label.rb +0 -287
  171. data/lib/hubspot/codegen/crm/objects/meetings/models/labels_between_object_pair.rb +0 -288
  172. data/lib/hubspot/codegen/crm/objects/notes/api/associations_api.rb +0 -264
  173. data/lib/hubspot/codegen/crm/objects/notes/models/association_spec_with_label.rb +0 -287
  174. data/lib/hubspot/codegen/crm/objects/notes/models/labels_between_object_pair.rb +0 -288
  175. data/lib/hubspot/codegen/crm/objects/postal_mail/api/associations_api.rb +0 -264
  176. data/lib/hubspot/codegen/crm/objects/postal_mail/models/association_spec_with_label.rb +0 -287
  177. data/lib/hubspot/codegen/crm/objects/postal_mail/models/labels_between_object_pair.rb +0 -288
  178. data/lib/hubspot/codegen/crm/objects/tasks/api/associations_api.rb +0 -264
  179. data/lib/hubspot/codegen/crm/objects/tasks/models/association_spec_with_label.rb +0 -287
  180. data/lib/hubspot/codegen/crm/objects/tasks/models/labels_between_object_pair.rb +0 -288
  181. data/lib/hubspot/codegen/crm/products/api/associations_api.rb +0 -262
  182. data/lib/hubspot/codegen/crm/products/models/association_spec_with_label.rb +0 -285
  183. data/lib/hubspot/codegen/crm/products/models/labels_between_object_pair.rb +0 -286
  184. data/lib/hubspot/codegen/crm/properties/models/next_page.rb +0 -237
  185. data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +0 -262
  186. data/lib/hubspot/codegen/crm/quotes/models/association_spec_with_label.rb +0 -285
  187. data/lib/hubspot/codegen/crm/quotes/models/labels_between_object_pair.rb +0 -286
  188. data/lib/hubspot/codegen/crm/quotes/models/multi_associated_object_with_label.rb +0 -244
  189. data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +0 -262
  190. data/lib/hubspot/codegen/crm/tickets/models/association_spec_with_label.rb +0 -285
  191. data/lib/hubspot/codegen/crm/tickets/models/labels_between_object_pair.rb +0 -286
  192. data/lib/hubspot/discovery/crm/companies/api/associations_api.rb +0 -13
  193. data/lib/hubspot/discovery/crm/contacts/api/associations_api.rb +0 -13
  194. data/lib/hubspot/discovery/crm/deals/api/associations_api.rb +0 -13
  195. data/lib/hubspot/discovery/crm/line_items/api/associations_api.rb +0 -13
  196. data/lib/hubspot/discovery/crm/objects/calls/api/associations_api.rb +0 -15
  197. data/lib/hubspot/discovery/crm/objects/emails/api/associations_api.rb +0 -15
  198. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/associations_api.rb +0 -15
  199. data/lib/hubspot/discovery/crm/objects/meetings/api/associations_api.rb +0 -15
  200. data/lib/hubspot/discovery/crm/objects/notes/api/associations_api.rb +0 -15
  201. data/lib/hubspot/discovery/crm/objects/postal_mail/api/associations_api.rb +0 -15
  202. data/lib/hubspot/discovery/crm/objects/tasks/api/associations_api.rb +0 -15
  203. data/spec/discovery/crm/companies/associations_api_spec.rb +0 -9
  204. data/spec/discovery/crm/contacts/associations_api_spec.rb +0 -9
  205. data/spec/discovery/crm/deals/associations_api_spec.rb +0 -9
  206. data/spec/discovery/crm/line_items/associations_api_spec.rb +0 -9
  207. data/spec/discovery/crm/objects/calls/associations_api_spec.rb +0 -9
  208. data/spec/discovery/crm/objects/emails/associations_api_spec.rb +0 -9
  209. data/spec/discovery/crm/objects/feedback_submissions/associations_api_spec.rb +0 -9
  210. data/spec/discovery/crm/objects/meetings/associations_api_spec.rb +0 -9
  211. data/spec/discovery/crm/objects/notes/associations_api_spec.rb +0 -9
  212. data/spec/discovery/crm/objects/postal_mail/associations_api_spec.rb +0 -9
  213. data/spec/discovery/crm/objects/tasks/associations_api_spec.rb +0 -9
  214. data/spec/discovery/crm/products/associations_api_spec.rb +0 -9
  215. data/spec/discovery/crm/quotes/associations_api_spec.rb +0 -7
  216. data/spec/discovery/crm/tickets/associations_api_spec.rb +0 -9
  217. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/api/audit_logs_api.rb +0 -0
  218. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/api_client.rb +0 -0
  219. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/api_error.rb +0 -0
  220. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/configuration.rb +0 -0
  221. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/collection_response_public_audit_log.rb +0 -0
  222. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/error.rb +0 -0
  223. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/error_detail.rb +0 -0
  224. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/next_page.rb +0 -0
  225. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/paging.rb +0 -0
  226. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/public_audit_log.rb +0 -0
  227. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/api/blog_posts_api.rb +0 -0
  228. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/api_client.rb +0 -0
  229. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/api_error.rb +0 -0
  230. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/configuration.rb +0 -0
  231. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/angle.rb +0 -0
  232. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/attach_to_lang_primary_request_v_next.rb +0 -0
  233. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/background_image.rb +0 -0
  234. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_input_blog_post.rb +0 -0
  235. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_input_json_node.rb +0 -0
  236. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_input_string.rb +0 -0
  237. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_response_blog_post.rb +0 -0
  238. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_response_blog_post_with_errors.rb +0 -0
  239. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/blog_post.rb +0 -0
  240. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/blog_post_language_clone_request_v_next.rb +0 -0
  241. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/collection_response_with_total_blog_post_forward_paging.rb +0 -0
  242. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/collection_response_with_total_version_blog_post.rb +0 -0
  243. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/color_stop.rb +0 -0
  244. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/content_clone_request_v_next.rb +0 -0
  245. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/content_language_variation.rb +0 -0
  246. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/content_schedule_request_v_next.rb +0 -0
  247. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/detach_from_lang_group_request_v_next.rb +0 -0
  248. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/error.rb +0 -0
  249. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/error_detail.rb +0 -0
  250. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/forward_paging.rb +0 -0
  251. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/gradient.rb +0 -0
  252. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/layout_section.rb +0 -0
  253. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/next_page.rb +0 -0
  254. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/paging.rb +0 -0
  255. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/previous_page.rb +0 -0
  256. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/rgba_color.rb +0 -0
  257. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/row_meta_data.rb +0 -0
  258. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/set_new_language_primary_request_v_next.rb +0 -0
  259. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/side_or_corner.rb +0 -0
  260. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/standard_error.rb +0 -0
  261. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/styles.rb +0 -0
  262. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/update_languages_request_v_next.rb +0 -0
  263. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/version_blog_post.rb +0 -0
  264. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/version_user.rb +0 -0
  265. /data/lib/hubspot/codegen/cms/{site-search → site_search}/api/public_api.rb +0 -0
  266. /data/lib/hubspot/codegen/cms/{site-search → site_search}/api_client.rb +0 -0
  267. /data/lib/hubspot/codegen/cms/{site-search → site_search}/api_error.rb +0 -0
  268. /data/lib/hubspot/codegen/cms/{site-search → site_search}/configuration.rb +0 -0
  269. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/content_search_result.rb +0 -0
  270. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/error.rb +0 -0
  271. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/error_detail.rb +0 -0
  272. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/indexed_data.rb +0 -0
  273. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/indexed_field.rb +0 -0
  274. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/public_search_results.rb +0 -0
  275. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/content_api.rb +0 -0
  276. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/extract_api.rb +0 -0
  277. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/metadata_api.rb +0 -0
  278. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/source_code_extract_api.rb +0 -0
  279. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/validation_api.rb +0 -0
  280. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api_client.rb +0 -0
  281. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api_error.rb +0 -0
  282. /data/lib/hubspot/codegen/cms/{source-code → source_code}/configuration.rb +0 -0
  283. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/action_response.rb +0 -0
  284. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/asset_file_metadata.rb +0 -0
  285. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/error.rb +0 -0
  286. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/error_detail.rb +0 -0
  287. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/file_extract_request.rb +0 -0
  288. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/task_locator.rb +0 -0
  289. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/api/redirects_api.rb +0 -0
  290. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/api_client.rb +0 -0
  291. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/api_error.rb +0 -0
  292. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/configuration.rb +0 -0
  293. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/collection_response_with_total_url_mapping_forward_paging.rb +0 -0
  294. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/error.rb +0 -0
  295. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/error_detail.rb +0 -0
  296. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/forward_paging.rb +0 -0
  297. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/next_page.rb +0 -0
  298. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/url_mapping.rb +0 -0
  299. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/url_mapping_create_request_body.rb +0 -0
  300. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/api/generate_api.rb +0 -0
  301. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/api_client.rb +0 -0
  302. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/api_error.rb +0 -0
  303. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/configuration.rb +0 -0
  304. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/error.rb +0 -0
  305. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/error_detail.rb +0 -0
  306. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/identification_token_generation_request.rb +0 -0
  307. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/identification_token_response.rb +0 -0
@@ -19,6 +19,8 @@ module Hubspot
19
19
  class Filter
20
20
  attr_accessor :value
21
21
 
22
+ attr_accessor :high_value
23
+
22
24
  attr_accessor :values
23
25
 
24
26
  attr_accessor :property_name
@@ -52,6 +54,7 @@ module Hubspot
52
54
  def self.attribute_map
53
55
  {
54
56
  :'value' => :'value',
57
+ :'high_value' => :'highValue',
55
58
  :'values' => :'values',
56
59
  :'property_name' => :'propertyName',
57
60
  :'operator' => :'operator'
@@ -67,6 +70,7 @@ module Hubspot
67
70
  def self.openapi_types
68
71
  {
69
72
  :'value' => :'String',
73
+ :'high_value' => :'String',
70
74
  :'values' => :'Array<String>',
71
75
  :'property_name' => :'String',
72
76
  :'operator' => :'String'
@@ -98,6 +102,10 @@ module Hubspot
98
102
  self.value = attributes[:'value']
99
103
  end
100
104
 
105
+ if attributes.key?(:'high_value')
106
+ self.high_value = attributes[:'high_value']
107
+ end
108
+
101
109
  if attributes.key?(:'values')
102
110
  if (value = attributes[:'values']).is_a?(Array)
103
111
  self.values = value
@@ -154,6 +162,7 @@ module Hubspot
154
162
  return true if self.equal?(o)
155
163
  self.class == o.class &&
156
164
  value == o.value &&
165
+ high_value == o.high_value &&
157
166
  values == o.values &&
158
167
  property_name == o.property_name &&
159
168
  operator == o.operator
@@ -168,7 +177,7 @@ module Hubspot
168
177
  # Calculates hash code according to all attributes.
169
178
  # @return [Integer] Hash code
170
179
  def hash
171
- [value, values, property_name, operator].hash
180
+ [value, high_value, values, property_name, operator].hash
172
181
  end
173
182
 
174
183
  # Builds the object from hash
@@ -0,0 +1,244 @@
1
+ =begin
2
+ #CRM Objects
3
+
4
+ #CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.2.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Hubspot
17
+ module Crm
18
+ module Objects
19
+ class PublicAssociationsForObject
20
+ attr_accessor :to
21
+
22
+ attr_accessor :types
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'to' => :'to',
28
+ :'types' => :'types'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'to' => :'PublicObjectId',
41
+ :'types' => :'Array<AssociationSpec>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::PublicAssociationsForObject` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::PublicAssociationsForObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'to')
67
+ self.to = attributes[:'to']
68
+ end
69
+
70
+ if attributes.key?(:'types')
71
+ if (value = attributes[:'types']).is_a?(Array)
72
+ self.types = value
73
+ end
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ if @to.nil?
82
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
83
+ end
84
+
85
+ if @types.nil?
86
+ invalid_properties.push('invalid value for "types", types cannot be nil.')
87
+ end
88
+
89
+ invalid_properties
90
+ end
91
+
92
+ # Check to see if the all the properties in the model are valid
93
+ # @return true if the model is valid
94
+ def valid?
95
+ return false if @to.nil?
96
+ return false if @types.nil?
97
+ true
98
+ end
99
+
100
+ # Checks equality by comparing each attribute.
101
+ # @param [Object] Object to be compared
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ to == o.to &&
106
+ types == o.types
107
+ end
108
+
109
+ # @see the `==` method
110
+ # @param [Object] Object to be compared
111
+ def eql?(o)
112
+ self == o
113
+ end
114
+
115
+ # Calculates hash code according to all attributes.
116
+ # @return [Integer] Hash code
117
+ def hash
118
+ [to, types].hash
119
+ end
120
+
121
+ # Builds the object from hash
122
+ # @param [Hash] attributes Model attributes in the form of hash
123
+ # @return [Object] Returns the model itself
124
+ def self.build_from_hash(attributes)
125
+ new.build_from_hash(attributes)
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ attributes = attributes.transform_keys(&:to_sym)
134
+ self.class.openapi_types.each_pair do |key, type|
135
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
136
+ self.send("#{key}=", nil)
137
+ elsif type =~ /\AArray<(.*)>/i
138
+ # check to ensure the input is an array given that the attribute
139
+ # is documented as an array but the input is not
140
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
141
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
142
+ end
143
+ elsif !attributes[self.class.attribute_map[key]].nil?
144
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
145
+ end
146
+ end
147
+
148
+ self
149
+ end
150
+
151
+ # Deserializes the data based on type
152
+ # @param string type Data type
153
+ # @param string value Value to be deserialized
154
+ # @return [Object] Deserialized data
155
+ def _deserialize(type, value)
156
+ case type.to_sym
157
+ when :Time
158
+ Time.parse(value)
159
+ when :Date
160
+ Date.parse(value)
161
+ when :String
162
+ value.to_s
163
+ when :Integer
164
+ value.to_i
165
+ when :Float
166
+ value.to_f
167
+ when :Boolean
168
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
169
+ true
170
+ else
171
+ false
172
+ end
173
+ when :Object
174
+ # generic object (usually a Hash), return directly
175
+ value
176
+ when /\AArray<(?<inner_type>.+)>\z/
177
+ inner_type = Regexp.last_match[:inner_type]
178
+ value.map { |v| _deserialize(inner_type, v) }
179
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
180
+ k_type = Regexp.last_match[:k_type]
181
+ v_type = Regexp.last_match[:v_type]
182
+ {}.tap do |hash|
183
+ value.each do |k, v|
184
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
185
+ end
186
+ end
187
+ else # model
188
+ # models (e.g. Pet) or oneOf
189
+ klass = Hubspot::Crm::Objects.const_get(type)
190
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
191
+ end
192
+ end
193
+
194
+ # Returns the string representation of the object
195
+ # @return [String] String presentation of the object
196
+ def to_s
197
+ to_hash.to_s
198
+ end
199
+
200
+ # to_body is an alias to to_hash (backward compatibility)
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_body
203
+ to_hash
204
+ end
205
+
206
+ # Returns the object in the form of hash
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_hash
209
+ hash = {}
210
+ self.class.attribute_map.each_pair do |attr, param|
211
+ value = self.send(attr)
212
+ if value.nil?
213
+ is_nullable = self.class.openapi_nullable.include?(attr)
214
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
215
+ end
216
+
217
+ hash[param] = _to_hash(value)
218
+ end
219
+ hash
220
+ end
221
+
222
+ # Outputs non-array value in the form of hash
223
+ # For object, use to_hash. Otherwise, just return the value
224
+ # @param [Object] value Any valid value
225
+ # @return [Hash] Returns the value in the form of hash
226
+ def _to_hash(value)
227
+ if value.is_a?(Array)
228
+ value.compact.map { |v| _to_hash(v) }
229
+ elsif value.is_a?(Hash)
230
+ {}.tap do |hash|
231
+ value.each { |k, v| hash[k] = _to_hash(v) }
232
+ end
233
+ elsif value.respond_to? :to_hash
234
+ value.to_hash
235
+ else
236
+ value
237
+ end
238
+ end
239
+
240
+ end
241
+
242
+ end
243
+ end
244
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Associations
2
+ #CRM Objects
3
3
 
4
- #Associations define the relationships between objects in HubSpot. These endpoints allow you to create, read, and remove associations.
4
+ #CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
5
5
 
6
6
  The version of the OpenAPI document: v3
7
7
 
@@ -15,17 +15,14 @@ require 'time'
15
15
 
16
16
  module Hubspot
17
17
  module Crm
18
- module Associations
19
- class PublicAssociationDefiniton
18
+ module Objects
19
+ class PublicObjectId
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :name
23
-
24
22
  # Attribute mapping from ruby-style variable name to JSON key.
25
23
  def self.attribute_map
26
24
  {
27
- :'id' => :'id',
28
- :'name' => :'name'
25
+ :'id' => :'id'
29
26
  }
30
27
  end
31
28
 
@@ -37,8 +34,7 @@ module Hubspot
37
34
  # Attribute type mapping.
38
35
  def self.openapi_types
39
36
  {
40
- :'id' => :'String',
41
- :'name' => :'String'
37
+ :'id' => :'String'
42
38
  }
43
39
  end
44
40
 
@@ -52,13 +48,13 @@ module Hubspot
52
48
  # @param [Hash] attributes Model attributes in the form of hash
53
49
  def initialize(attributes = {})
54
50
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Associations::PublicAssociationDefiniton` initialize method"
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::PublicObjectId` initialize method"
56
52
  end
57
53
 
58
54
  # check to see if the attribute exists and convert string to symbol for hash key
59
55
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
56
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Associations::PublicAssociationDefiniton`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::PublicObjectId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
58
  end
63
59
  h[k.to_sym] = v
64
60
  }
@@ -66,10 +62,6 @@ module Hubspot
66
62
  if attributes.key?(:'id')
67
63
  self.id = attributes[:'id']
68
64
  end
69
-
70
- if attributes.key?(:'name')
71
- self.name = attributes[:'name']
72
- end
73
65
  end
74
66
 
75
67
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -80,10 +72,6 @@ module Hubspot
80
72
  invalid_properties.push('invalid value for "id", id cannot be nil.')
81
73
  end
82
74
 
83
- if @name.nil?
84
- invalid_properties.push('invalid value for "name", name cannot be nil.')
85
- end
86
-
87
75
  invalid_properties
88
76
  end
89
77
 
@@ -91,7 +79,6 @@ module Hubspot
91
79
  # @return true if the model is valid
92
80
  def valid?
93
81
  return false if @id.nil?
94
- return false if @name.nil?
95
82
  true
96
83
  end
97
84
 
@@ -100,8 +87,7 @@ module Hubspot
100
87
  def ==(o)
101
88
  return true if self.equal?(o)
102
89
  self.class == o.class &&
103
- id == o.id &&
104
- name == o.name
90
+ id == o.id
105
91
  end
106
92
 
107
93
  # @see the `==` method
@@ -113,7 +99,7 @@ module Hubspot
113
99
  # Calculates hash code according to all attributes.
114
100
  # @return [Integer] Hash code
115
101
  def hash
116
- [id, name].hash
102
+ [id].hash
117
103
  end
118
104
 
119
105
  # Builds the object from hash
@@ -184,7 +170,7 @@ module Hubspot
184
170
  end
185
171
  else # model
186
172
  # models (e.g. Pet) or oneOf
187
- klass = Hubspot::Crm::Associations.const_get(type)
173
+ klass = Hubspot::Crm::Objects.const_get(type)
188
174
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
189
175
  end
190
176
  end
@@ -0,0 +1,246 @@
1
+ =begin
2
+ #CRM Objects
3
+
4
+ #CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.2.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Hubspot
17
+ module Crm
18
+ module Objects
19
+ class SimplePublicObjectInputForCreate
20
+ attr_accessor :properties
21
+
22
+ attr_accessor :associations
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'properties' => :'properties',
28
+ :'associations' => :'associations'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'properties' => :'Hash<String, String>',
41
+ :'associations' => :'Array<PublicAssociationsForObject>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::SimplePublicObjectInputForCreate` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::SimplePublicObjectInputForCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'properties')
67
+ if (value = attributes[:'properties']).is_a?(Hash)
68
+ self.properties = value
69
+ end
70
+ end
71
+
72
+ if attributes.key?(:'associations')
73
+ if (value = attributes[:'associations']).is_a?(Array)
74
+ self.associations = value
75
+ end
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ if @properties.nil?
84
+ invalid_properties.push('invalid value for "properties", properties cannot be nil.')
85
+ end
86
+
87
+ if @associations.nil?
88
+ invalid_properties.push('invalid value for "associations", associations cannot be nil.')
89
+ end
90
+
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ return false if @properties.nil?
98
+ return false if @associations.nil?
99
+ true
100
+ end
101
+
102
+ # Checks equality by comparing each attribute.
103
+ # @param [Object] Object to be compared
104
+ def ==(o)
105
+ return true if self.equal?(o)
106
+ self.class == o.class &&
107
+ properties == o.properties &&
108
+ associations == o.associations
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [properties, associations].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ new.build_from_hash(attributes)
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ attributes = attributes.transform_keys(&:to_sym)
136
+ self.class.openapi_types.each_pair do |key, type|
137
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
138
+ self.send("#{key}=", nil)
139
+ elsif type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the attribute
141
+ # is documented as an array but the input is not
142
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
143
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
144
+ end
145
+ elsif !attributes[self.class.attribute_map[key]].nil?
146
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
+ end
148
+ end
149
+
150
+ self
151
+ end
152
+
153
+ # Deserializes the data based on type
154
+ # @param string type Data type
155
+ # @param string value Value to be deserialized
156
+ # @return [Object] Deserialized data
157
+ def _deserialize(type, value)
158
+ case type.to_sym
159
+ when :Time
160
+ Time.parse(value)
161
+ when :Date
162
+ Date.parse(value)
163
+ when :String
164
+ value.to_s
165
+ when :Integer
166
+ value.to_i
167
+ when :Float
168
+ value.to_f
169
+ when :Boolean
170
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
171
+ true
172
+ else
173
+ false
174
+ end
175
+ when :Object
176
+ # generic object (usually a Hash), return directly
177
+ value
178
+ when /\AArray<(?<inner_type>.+)>\z/
179
+ inner_type = Regexp.last_match[:inner_type]
180
+ value.map { |v| _deserialize(inner_type, v) }
181
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
182
+ k_type = Regexp.last_match[:k_type]
183
+ v_type = Regexp.last_match[:v_type]
184
+ {}.tap do |hash|
185
+ value.each do |k, v|
186
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
187
+ end
188
+ end
189
+ else # model
190
+ # models (e.g. Pet) or oneOf
191
+ klass = Hubspot::Crm::Objects.const_get(type)
192
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
193
+ end
194
+ end
195
+
196
+ # Returns the string representation of the object
197
+ # @return [String] String presentation of the object
198
+ def to_s
199
+ to_hash.to_s
200
+ end
201
+
202
+ # to_body is an alias to to_hash (backward compatibility)
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_body
205
+ to_hash
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ if value.nil?
215
+ is_nullable = self.class.openapi_nullable.include?(attr)
216
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
217
+ end
218
+
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map { |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+
242
+ end
243
+
244
+ end
245
+ end
246
+ end