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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +75 -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/properties/models/property.rb +14 -4
  115. data/lib/hubspot/codegen/crm/properties/models/property_create.rb +38 -8
  116. data/lib/hubspot/codegen/crm/properties/models/property_update.rb +18 -8
  117. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +9 -9
  118. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +9 -9
  119. 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
  120. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +10 -1
  121. data/lib/hubspot/codegen/crm/quotes/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  122. data/lib/hubspot/codegen/crm/quotes/models/public_object_id.rb +228 -0
  123. data/lib/hubspot/codegen/crm/{contacts/models/multi_associated_object_with_label.rb → quotes/models/simple_public_object_input_for_create.rb} +28 -26
  124. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +9 -9
  125. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +9 -9
  126. 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
  127. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +10 -1
  128. data/lib/hubspot/codegen/crm/tickets/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
  129. data/lib/hubspot/codegen/crm/tickets/models/public_object_id.rb +228 -0
  130. data/lib/hubspot/codegen/crm/{companies/models/multi_associated_object_with_label.rb → tickets/models/simple_public_object_input_for_create.rb} +28 -26
  131. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +7 -7
  132. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +14 -14
  133. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +6 -6
  134. data/lib/hubspot/discovery/crm/companies/client.rb +0 -1
  135. data/lib/hubspot/discovery/crm/contacts/client.rb +0 -1
  136. data/lib/hubspot/discovery/crm/deals/client.rb +0 -1
  137. data/lib/hubspot/discovery/crm/line_items/client.rb +0 -1
  138. data/lib/hubspot/discovery/crm/objects/calls/client.rb +0 -1
  139. data/lib/hubspot/discovery/crm/objects/emails/client.rb +0 -1
  140. data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +0 -1
  141. data/lib/hubspot/discovery/crm/objects/meetings/client.rb +0 -1
  142. data/lib/hubspot/discovery/crm/objects/notes/client.rb +0 -1
  143. data/lib/hubspot/discovery/crm/objects/postal_mail/client.rb +0 -1
  144. data/lib/hubspot/discovery/crm/objects/tasks/client.rb +0 -1
  145. data/lib/hubspot/helpers/get_all_helper.rb +2 -1
  146. data/lib/hubspot/version.rb +1 -1
  147. data/spec/discovery/cms/hubdb/rows_batch_api_spec.rb +7 -7
  148. data/spec/discovery/oauth/access_tokens_api_spec.rb +1 -1
  149. data/spec/discovery/oauth/refresh_tokens_api_spec.rb +2 -2
  150. data/spec/discovery/oauth/tokens_api_spec.rb +1 -1
  151. metadata +162 -227
  152. data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +0 -239
  153. data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +0 -262
  154. data/lib/hubspot/codegen/crm/companies/models/association_spec_with_label.rb +0 -285
  155. data/lib/hubspot/codegen/crm/companies/models/labels_between_object_pair.rb +0 -286
  156. data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +0 -262
  157. data/lib/hubspot/codegen/crm/contacts/models/association_spec_with_label.rb +0 -285
  158. data/lib/hubspot/codegen/crm/contacts/models/labels_between_object_pair.rb +0 -286
  159. data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +0 -262
  160. data/lib/hubspot/codegen/crm/deals/models/association_spec_with_label.rb +0 -285
  161. data/lib/hubspot/codegen/crm/deals/models/labels_between_object_pair.rb +0 -286
  162. data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +0 -262
  163. data/lib/hubspot/codegen/crm/line_items/models/labels_between_object_pair.rb +0 -286
  164. data/lib/hubspot/codegen/crm/objects/calls/api/associations_api.rb +0 -264
  165. data/lib/hubspot/codegen/crm/objects/calls/models/association_spec_with_label.rb +0 -287
  166. data/lib/hubspot/codegen/crm/objects/calls/models/labels_between_object_pair.rb +0 -288
  167. data/lib/hubspot/codegen/crm/objects/emails/api/associations_api.rb +0 -264
  168. data/lib/hubspot/codegen/crm/objects/emails/models/association_spec_with_label.rb +0 -287
  169. data/lib/hubspot/codegen/crm/objects/emails/models/labels_between_object_pair.rb +0 -288
  170. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +0 -264
  171. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/association_spec_with_label.rb +0 -287
  172. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/labels_between_object_pair.rb +0 -288
  173. data/lib/hubspot/codegen/crm/objects/meetings/api/associations_api.rb +0 -264
  174. data/lib/hubspot/codegen/crm/objects/meetings/models/association_spec_with_label.rb +0 -287
  175. data/lib/hubspot/codegen/crm/objects/meetings/models/labels_between_object_pair.rb +0 -288
  176. data/lib/hubspot/codegen/crm/objects/notes/api/associations_api.rb +0 -264
  177. data/lib/hubspot/codegen/crm/objects/notes/models/association_spec_with_label.rb +0 -287
  178. data/lib/hubspot/codegen/crm/objects/notes/models/labels_between_object_pair.rb +0 -288
  179. data/lib/hubspot/codegen/crm/objects/postal_mail/api/associations_api.rb +0 -264
  180. data/lib/hubspot/codegen/crm/objects/postal_mail/models/association_spec_with_label.rb +0 -287
  181. data/lib/hubspot/codegen/crm/objects/postal_mail/models/labels_between_object_pair.rb +0 -288
  182. data/lib/hubspot/codegen/crm/objects/tasks/api/associations_api.rb +0 -264
  183. data/lib/hubspot/codegen/crm/objects/tasks/models/association_spec_with_label.rb +0 -287
  184. data/lib/hubspot/codegen/crm/objects/tasks/models/labels_between_object_pair.rb +0 -288
  185. data/lib/hubspot/codegen/crm/products/api/associations_api.rb +0 -262
  186. data/lib/hubspot/codegen/crm/products/models/association_spec_with_label.rb +0 -285
  187. data/lib/hubspot/codegen/crm/products/models/labels_between_object_pair.rb +0 -286
  188. data/lib/hubspot/codegen/crm/properties/models/next_page.rb +0 -237
  189. data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +0 -262
  190. data/lib/hubspot/codegen/crm/quotes/models/association_spec_with_label.rb +0 -285
  191. data/lib/hubspot/codegen/crm/quotes/models/labels_between_object_pair.rb +0 -286
  192. data/lib/hubspot/codegen/crm/quotes/models/multi_associated_object_with_label.rb +0 -244
  193. data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +0 -262
  194. data/lib/hubspot/codegen/crm/tickets/models/association_spec_with_label.rb +0 -285
  195. data/lib/hubspot/codegen/crm/tickets/models/labels_between_object_pair.rb +0 -286
  196. data/lib/hubspot/discovery/crm/companies/api/associations_api.rb +0 -13
  197. data/lib/hubspot/discovery/crm/contacts/api/associations_api.rb +0 -13
  198. data/lib/hubspot/discovery/crm/deals/api/associations_api.rb +0 -13
  199. data/lib/hubspot/discovery/crm/line_items/api/associations_api.rb +0 -13
  200. data/lib/hubspot/discovery/crm/objects/calls/api/associations_api.rb +0 -15
  201. data/lib/hubspot/discovery/crm/objects/emails/api/associations_api.rb +0 -15
  202. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/associations_api.rb +0 -15
  203. data/lib/hubspot/discovery/crm/objects/meetings/api/associations_api.rb +0 -15
  204. data/lib/hubspot/discovery/crm/objects/notes/api/associations_api.rb +0 -15
  205. data/lib/hubspot/discovery/crm/objects/postal_mail/api/associations_api.rb +0 -15
  206. data/lib/hubspot/discovery/crm/objects/tasks/api/associations_api.rb +0 -15
  207. data/spec/discovery/crm/companies/associations_api_spec.rb +0 -9
  208. data/spec/discovery/crm/contacts/associations_api_spec.rb +0 -9
  209. data/spec/discovery/crm/deals/associations_api_spec.rb +0 -9
  210. data/spec/discovery/crm/line_items/associations_api_spec.rb +0 -9
  211. data/spec/discovery/crm/objects/calls/associations_api_spec.rb +0 -9
  212. data/spec/discovery/crm/objects/emails/associations_api_spec.rb +0 -9
  213. data/spec/discovery/crm/objects/feedback_submissions/associations_api_spec.rb +0 -9
  214. data/spec/discovery/crm/objects/meetings/associations_api_spec.rb +0 -9
  215. data/spec/discovery/crm/objects/notes/associations_api_spec.rb +0 -9
  216. data/spec/discovery/crm/objects/postal_mail/associations_api_spec.rb +0 -9
  217. data/spec/discovery/crm/objects/tasks/associations_api_spec.rb +0 -9
  218. data/spec/discovery/crm/products/associations_api_spec.rb +0 -9
  219. data/spec/discovery/crm/quotes/associations_api_spec.rb +0 -7
  220. data/spec/discovery/crm/tickets/associations_api_spec.rb +0 -9
  221. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/api/audit_logs_api.rb +0 -0
  222. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/api_client.rb +0 -0
  223. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/api_error.rb +0 -0
  224. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/configuration.rb +0 -0
  225. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/collection_response_public_audit_log.rb +0 -0
  226. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/error.rb +0 -0
  227. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/error_detail.rb +0 -0
  228. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/next_page.rb +0 -0
  229. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/paging.rb +0 -0
  230. /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/public_audit_log.rb +0 -0
  231. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/api/blog_posts_api.rb +0 -0
  232. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/api_client.rb +0 -0
  233. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/api_error.rb +0 -0
  234. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/configuration.rb +0 -0
  235. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/angle.rb +0 -0
  236. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/attach_to_lang_primary_request_v_next.rb +0 -0
  237. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/background_image.rb +0 -0
  238. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_input_blog_post.rb +0 -0
  239. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_input_json_node.rb +0 -0
  240. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_input_string.rb +0 -0
  241. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_response_blog_post.rb +0 -0
  242. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_response_blog_post_with_errors.rb +0 -0
  243. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/blog_post.rb +0 -0
  244. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/blog_post_language_clone_request_v_next.rb +0 -0
  245. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/collection_response_with_total_blog_post_forward_paging.rb +0 -0
  246. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/collection_response_with_total_version_blog_post.rb +0 -0
  247. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/color_stop.rb +0 -0
  248. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/content_clone_request_v_next.rb +0 -0
  249. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/content_language_variation.rb +0 -0
  250. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/content_schedule_request_v_next.rb +0 -0
  251. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/detach_from_lang_group_request_v_next.rb +0 -0
  252. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/error.rb +0 -0
  253. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/error_detail.rb +0 -0
  254. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/forward_paging.rb +0 -0
  255. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/gradient.rb +0 -0
  256. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/layout_section.rb +0 -0
  257. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/next_page.rb +0 -0
  258. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/paging.rb +0 -0
  259. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/previous_page.rb +0 -0
  260. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/rgba_color.rb +0 -0
  261. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/row_meta_data.rb +0 -0
  262. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/set_new_language_primary_request_v_next.rb +0 -0
  263. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/side_or_corner.rb +0 -0
  264. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/standard_error.rb +0 -0
  265. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/styles.rb +0 -0
  266. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/update_languages_request_v_next.rb +0 -0
  267. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/version_blog_post.rb +0 -0
  268. /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/version_user.rb +0 -0
  269. /data/lib/hubspot/codegen/cms/{site-search → site_search}/api/public_api.rb +0 -0
  270. /data/lib/hubspot/codegen/cms/{site-search → site_search}/api_client.rb +0 -0
  271. /data/lib/hubspot/codegen/cms/{site-search → site_search}/api_error.rb +0 -0
  272. /data/lib/hubspot/codegen/cms/{site-search → site_search}/configuration.rb +0 -0
  273. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/content_search_result.rb +0 -0
  274. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/error.rb +0 -0
  275. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/error_detail.rb +0 -0
  276. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/indexed_data.rb +0 -0
  277. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/indexed_field.rb +0 -0
  278. /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/public_search_results.rb +0 -0
  279. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/content_api.rb +0 -0
  280. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/extract_api.rb +0 -0
  281. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/metadata_api.rb +0 -0
  282. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/source_code_extract_api.rb +0 -0
  283. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/validation_api.rb +0 -0
  284. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api_client.rb +0 -0
  285. /data/lib/hubspot/codegen/cms/{source-code → source_code}/api_error.rb +0 -0
  286. /data/lib/hubspot/codegen/cms/{source-code → source_code}/configuration.rb +0 -0
  287. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/action_response.rb +0 -0
  288. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/asset_file_metadata.rb +0 -0
  289. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/error.rb +0 -0
  290. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/error_detail.rb +0 -0
  291. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/file_extract_request.rb +0 -0
  292. /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/task_locator.rb +0 -0
  293. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/api/redirects_api.rb +0 -0
  294. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/api_client.rb +0 -0
  295. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/api_error.rb +0 -0
  296. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/configuration.rb +0 -0
  297. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/collection_response_with_total_url_mapping_forward_paging.rb +0 -0
  298. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/error.rb +0 -0
  299. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/error_detail.rb +0 -0
  300. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/forward_paging.rb +0 -0
  301. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/next_page.rb +0 -0
  302. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/url_mapping.rb +0 -0
  303. /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/url_mapping_create_request_body.rb +0 -0
  304. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/api/generate_api.rb +0 -0
  305. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/api_client.rb +0 -0
  306. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/api_error.rb +0 -0
  307. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/configuration.rb +0 -0
  308. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/error.rb +0 -0
  309. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/error_detail.rb +0 -0
  310. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/identification_token_generation_request.rb +0 -0
  311. /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/identification_token_response.rb +0 -0
@@ -1,288 +0,0 @@
1
- =begin
2
- #Tasks
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: 6.2.1
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Hubspot
17
- module Crm
18
- module Objects
19
- module Tasks
20
- class LabelsBetweenObjectPair
21
- attr_accessor :from_object_type_id
22
-
23
- attr_accessor :from_object_id
24
-
25
- attr_accessor :to_object_type_id
26
-
27
- attr_accessor :to_object_id
28
-
29
- attr_accessor :labels
30
-
31
- # Attribute mapping from ruby-style variable name to JSON key.
32
- def self.attribute_map
33
- {
34
- :'from_object_type_id' => :'fromObjectTypeId',
35
- :'from_object_id' => :'fromObjectId',
36
- :'to_object_type_id' => :'toObjectTypeId',
37
- :'to_object_id' => :'toObjectId',
38
- :'labels' => :'labels'
39
- }
40
- end
41
-
42
- # Returns all the JSON keys this model knows about
43
- def self.acceptable_attributes
44
- attribute_map.values
45
- end
46
-
47
- # Attribute type mapping.
48
- def self.openapi_types
49
- {
50
- :'from_object_type_id' => :'String',
51
- :'from_object_id' => :'Integer',
52
- :'to_object_type_id' => :'String',
53
- :'to_object_id' => :'Integer',
54
- :'labels' => :'Array<String>'
55
- }
56
- end
57
-
58
- # List of attributes with nullable: true
59
- def self.openapi_nullable
60
- Set.new([
61
- ])
62
- end
63
-
64
- # Initializes the object
65
- # @param [Hash] attributes Model attributes in the form of hash
66
- def initialize(attributes = {})
67
- if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::Tasks::LabelsBetweenObjectPair` initialize method"
69
- end
70
-
71
- # check to see if the attribute exists and convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}) { |(k, v), h|
73
- if (!self.class.attribute_map.key?(k.to_sym))
74
- fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::Tasks::LabelsBetweenObjectPair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
75
- end
76
- h[k.to_sym] = v
77
- }
78
-
79
- if attributes.key?(:'from_object_type_id')
80
- self.from_object_type_id = attributes[:'from_object_type_id']
81
- end
82
-
83
- if attributes.key?(:'from_object_id')
84
- self.from_object_id = attributes[:'from_object_id']
85
- end
86
-
87
- if attributes.key?(:'to_object_type_id')
88
- self.to_object_type_id = attributes[:'to_object_type_id']
89
- end
90
-
91
- if attributes.key?(:'to_object_id')
92
- self.to_object_id = attributes[:'to_object_id']
93
- end
94
-
95
- if attributes.key?(:'labels')
96
- if (value = attributes[:'labels']).is_a?(Array)
97
- self.labels = value
98
- end
99
- end
100
- end
101
-
102
- # Show invalid properties with the reasons. Usually used together with valid?
103
- # @return Array for valid properties with the reasons
104
- def list_invalid_properties
105
- invalid_properties = Array.new
106
- if @from_object_type_id.nil?
107
- invalid_properties.push('invalid value for "from_object_type_id", from_object_type_id cannot be nil.')
108
- end
109
-
110
- if @from_object_id.nil?
111
- invalid_properties.push('invalid value for "from_object_id", from_object_id cannot be nil.')
112
- end
113
-
114
- if @to_object_type_id.nil?
115
- invalid_properties.push('invalid value for "to_object_type_id", to_object_type_id cannot be nil.')
116
- end
117
-
118
- if @to_object_id.nil?
119
- invalid_properties.push('invalid value for "to_object_id", to_object_id cannot be nil.')
120
- end
121
-
122
- if @labels.nil?
123
- invalid_properties.push('invalid value for "labels", labels cannot be nil.')
124
- end
125
-
126
- invalid_properties
127
- end
128
-
129
- # Check to see if the all the properties in the model are valid
130
- # @return true if the model is valid
131
- def valid?
132
- return false if @from_object_type_id.nil?
133
- return false if @from_object_id.nil?
134
- return false if @to_object_type_id.nil?
135
- return false if @to_object_id.nil?
136
- return false if @labels.nil?
137
- true
138
- end
139
-
140
- # Checks equality by comparing each attribute.
141
- # @param [Object] Object to be compared
142
- def ==(o)
143
- return true if self.equal?(o)
144
- self.class == o.class &&
145
- from_object_type_id == o.from_object_type_id &&
146
- from_object_id == o.from_object_id &&
147
- to_object_type_id == o.to_object_type_id &&
148
- to_object_id == o.to_object_id &&
149
- labels == o.labels
150
- end
151
-
152
- # @see the `==` method
153
- # @param [Object] Object to be compared
154
- def eql?(o)
155
- self == o
156
- end
157
-
158
- # Calculates hash code according to all attributes.
159
- # @return [Integer] Hash code
160
- def hash
161
- [from_object_type_id, from_object_id, to_object_type_id, to_object_id, labels].hash
162
- end
163
-
164
- # Builds the object from hash
165
- # @param [Hash] attributes Model attributes in the form of hash
166
- # @return [Object] Returns the model itself
167
- def self.build_from_hash(attributes)
168
- new.build_from_hash(attributes)
169
- end
170
-
171
- # Builds the object from hash
172
- # @param [Hash] attributes Model attributes in the form of hash
173
- # @return [Object] Returns the model itself
174
- def build_from_hash(attributes)
175
- return nil unless attributes.is_a?(Hash)
176
- attributes = attributes.transform_keys(&:to_sym)
177
- self.class.openapi_types.each_pair do |key, type|
178
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
179
- self.send("#{key}=", nil)
180
- elsif type =~ /\AArray<(.*)>/i
181
- # check to ensure the input is an array given that the attribute
182
- # is documented as an array but the input is not
183
- if attributes[self.class.attribute_map[key]].is_a?(Array)
184
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
185
- end
186
- elsif !attributes[self.class.attribute_map[key]].nil?
187
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
188
- end
189
- end
190
-
191
- self
192
- end
193
-
194
- # Deserializes the data based on type
195
- # @param string type Data type
196
- # @param string value Value to be deserialized
197
- # @return [Object] Deserialized data
198
- def _deserialize(type, value)
199
- case type.to_sym
200
- when :Time
201
- Time.parse(value)
202
- when :Date
203
- Date.parse(value)
204
- when :String
205
- value.to_s
206
- when :Integer
207
- value.to_i
208
- when :Float
209
- value.to_f
210
- when :Boolean
211
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
212
- true
213
- else
214
- false
215
- end
216
- when :Object
217
- # generic object (usually a Hash), return directly
218
- value
219
- when /\AArray<(?<inner_type>.+)>\z/
220
- inner_type = Regexp.last_match[:inner_type]
221
- value.map { |v| _deserialize(inner_type, v) }
222
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
223
- k_type = Regexp.last_match[:k_type]
224
- v_type = Regexp.last_match[:v_type]
225
- {}.tap do |hash|
226
- value.each do |k, v|
227
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
228
- end
229
- end
230
- else # model
231
- # models (e.g. Pet) or oneOf
232
- klass = Hubspot::Crm::Objects::Tasks.const_get(type)
233
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
234
- end
235
- end
236
-
237
- # Returns the string representation of the object
238
- # @return [String] String presentation of the object
239
- def to_s
240
- to_hash.to_s
241
- end
242
-
243
- # to_body is an alias to to_hash (backward compatibility)
244
- # @return [Hash] Returns the object in the form of hash
245
- def to_body
246
- to_hash
247
- end
248
-
249
- # Returns the object in the form of hash
250
- # @return [Hash] Returns the object in the form of hash
251
- def to_hash
252
- hash = {}
253
- self.class.attribute_map.each_pair do |attr, param|
254
- value = self.send(attr)
255
- if value.nil?
256
- is_nullable = self.class.openapi_nullable.include?(attr)
257
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
258
- end
259
-
260
- hash[param] = _to_hash(value)
261
- end
262
- hash
263
- end
264
-
265
- # Outputs non-array value in the form of hash
266
- # For object, use to_hash. Otherwise, just return the value
267
- # @param [Object] value Any valid value
268
- # @return [Hash] Returns the value in the form of hash
269
- def _to_hash(value)
270
- if value.is_a?(Array)
271
- value.compact.map { |v| _to_hash(v) }
272
- elsif value.is_a?(Hash)
273
- {}.tap do |hash|
274
- value.each { |k, v| hash[k] = _to_hash(v) }
275
- end
276
- elsif value.respond_to? :to_hash
277
- value.to_hash
278
- else
279
- value
280
- end
281
- end
282
-
283
- end
284
-
285
- end
286
- end
287
- end
288
- end
@@ -1,262 +0,0 @@
1
- =begin
2
- #Products
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: 6.2.1
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module Hubspot
16
- module Crm
17
- module Products
18
- class AssociationsApi
19
- attr_accessor :api_client
20
-
21
- def initialize(api_client = ApiClient.default)
22
- @api_client = api_client
23
- end
24
- # Delete
25
- # deletes all associations between two records.
26
- # @param product_id [Integer]
27
- # @param to_object_type [String]
28
- # @param to_object_id [Integer]
29
- # @param [Hash] opts the optional parameters
30
- # @return [nil]
31
- def archive(product_id, to_object_type, to_object_id, opts = {})
32
- archive_with_http_info(product_id, to_object_type, to_object_id, opts)
33
- nil
34
- end
35
-
36
- # Delete
37
- # deletes all associations between two records.
38
- # @param product_id [Integer]
39
- # @param to_object_type [String]
40
- # @param to_object_id [Integer]
41
- # @param [Hash] opts the optional parameters
42
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
43
- def archive_with_http_info(product_id, to_object_type, to_object_id, opts = {})
44
- if @api_client.config.debugging
45
- @api_client.config.logger.debug 'Calling API: AssociationsApi.archive ...'
46
- end
47
- # verify the required parameter 'product_id' is set
48
- if @api_client.config.client_side_validation && product_id.nil?
49
- fail ArgumentError, "Missing the required parameter 'product_id' when calling AssociationsApi.archive"
50
- end
51
- # verify the required parameter 'to_object_type' is set
52
- if @api_client.config.client_side_validation && to_object_type.nil?
53
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.archive"
54
- end
55
- # verify the required parameter 'to_object_id' is set
56
- if @api_client.config.client_side_validation && to_object_id.nil?
57
- fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.archive"
58
- end
59
- # resource path
60
- local_var_path = '/crm/v4/objects/products/{productId}/associations/{toObjectType}/{toObjectId}'.sub('{' + 'productId' + '}', CGI.escape(product_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s))
61
-
62
- # query parameters
63
- query_params = opts[:query_params] || {}
64
-
65
- # header parameters
66
- header_params = opts[:header_params] || {}
67
- # HTTP header 'Accept' (if needed)
68
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
69
-
70
- # form parameters
71
- form_params = opts[:form_params] || {}
72
-
73
- # http body (model)
74
- post_body = opts[:debug_body]
75
-
76
- # return_type
77
- return_type = opts[:debug_return_type]
78
-
79
- # auth_names
80
- auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
81
-
82
- new_options = opts.merge(
83
- :operation => :"AssociationsApi.archive",
84
- :header_params => header_params,
85
- :query_params => query_params,
86
- :form_params => form_params,
87
- :body => post_body,
88
- :auth_names => auth_names,
89
- :return_type => return_type
90
- )
91
-
92
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
93
- if @api_client.config.debugging
94
- @api_client.config.logger.debug "API called: AssociationsApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
95
- end
96
- return data, status_code, headers
97
- end
98
-
99
- # Create
100
- # Set association labels between two records.
101
- # @param product_id [Integer]
102
- # @param to_object_type [String]
103
- # @param to_object_id [Integer]
104
- # @param association_spec [Array<AssociationSpec>]
105
- # @param [Hash] opts the optional parameters
106
- # @return [LabelsBetweenObjectPair]
107
- def create(product_id, to_object_type, to_object_id, association_spec, opts = {})
108
- data, _status_code, _headers = create_with_http_info(product_id, to_object_type, to_object_id, association_spec, opts)
109
- data
110
- end
111
-
112
- # Create
113
- # Set association labels between two records.
114
- # @param product_id [Integer]
115
- # @param to_object_type [String]
116
- # @param to_object_id [Integer]
117
- # @param association_spec [Array<AssociationSpec>]
118
- # @param [Hash] opts the optional parameters
119
- # @return [Array<(LabelsBetweenObjectPair, Integer, Hash)>] LabelsBetweenObjectPair data, response status code and response headers
120
- def create_with_http_info(product_id, to_object_type, to_object_id, association_spec, opts = {})
121
- if @api_client.config.debugging
122
- @api_client.config.logger.debug 'Calling API: AssociationsApi.create ...'
123
- end
124
- # verify the required parameter 'product_id' is set
125
- if @api_client.config.client_side_validation && product_id.nil?
126
- fail ArgumentError, "Missing the required parameter 'product_id' when calling AssociationsApi.create"
127
- end
128
- # verify the required parameter 'to_object_type' is set
129
- if @api_client.config.client_side_validation && to_object_type.nil?
130
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.create"
131
- end
132
- # verify the required parameter 'to_object_id' is set
133
- if @api_client.config.client_side_validation && to_object_id.nil?
134
- fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.create"
135
- end
136
- # verify the required parameter 'association_spec' is set
137
- if @api_client.config.client_side_validation && association_spec.nil?
138
- fail ArgumentError, "Missing the required parameter 'association_spec' when calling AssociationsApi.create"
139
- end
140
- # resource path
141
- local_var_path = '/crm/v4/objects/products/{productId}/associations/{toObjectType}/{toObjectId}'.sub('{' + 'productId' + '}', CGI.escape(product_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s))
142
-
143
- # query parameters
144
- query_params = opts[:query_params] || {}
145
-
146
- # header parameters
147
- header_params = opts[:header_params] || {}
148
- # HTTP header 'Accept' (if needed)
149
- header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
150
- # HTTP header 'Content-Type'
151
- content_type = @api_client.select_header_content_type(['application/json'])
152
- if !content_type.nil?
153
- header_params['Content-Type'] = content_type
154
- end
155
-
156
- # form parameters
157
- form_params = opts[:form_params] || {}
158
-
159
- # http body (model)
160
- post_body = opts[:debug_body] || @api_client.object_to_http_body(association_spec)
161
-
162
- # return_type
163
- return_type = opts[:debug_return_type] || 'LabelsBetweenObjectPair'
164
-
165
- # auth_names
166
- auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
167
-
168
- new_options = opts.merge(
169
- :operation => :"AssociationsApi.create",
170
- :header_params => header_params,
171
- :query_params => query_params,
172
- :form_params => form_params,
173
- :body => post_body,
174
- :auth_names => auth_names,
175
- :return_type => return_type
176
- )
177
-
178
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
179
- if @api_client.config.debugging
180
- @api_client.config.logger.debug "API called: AssociationsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
- end
182
- return data, status_code, headers
183
- end
184
-
185
- # List
186
- # List all associations of a product by object type. Limit 1000 per call.
187
- # @param product_id [Integer]
188
- # @param to_object_type [String]
189
- # @param [Hash] opts the optional parameters
190
- # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
191
- # @option opts [Integer] :limit The maximum number of results to display per page. (default to 500)
192
- # @return [CollectionResponseMultiAssociatedObjectWithLabelForwardPaging]
193
- def get_all(product_id, to_object_type, opts = {})
194
- data, _status_code, _headers = get_all_with_http_info(product_id, to_object_type, opts)
195
- data
196
- end
197
-
198
- # List
199
- # List all associations of a product by object type. Limit 1000 per call.
200
- # @param product_id [Integer]
201
- # @param to_object_type [String]
202
- # @param [Hash] opts the optional parameters
203
- # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
204
- # @option opts [Integer] :limit The maximum number of results to display per page. (default to 500)
205
- # @return [Array<(CollectionResponseMultiAssociatedObjectWithLabelForwardPaging, Integer, Hash)>] CollectionResponseMultiAssociatedObjectWithLabelForwardPaging data, response status code and response headers
206
- def get_all_with_http_info(product_id, to_object_type, opts = {})
207
- if @api_client.config.debugging
208
- @api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...'
209
- end
210
- # verify the required parameter 'product_id' is set
211
- if @api_client.config.client_side_validation && product_id.nil?
212
- fail ArgumentError, "Missing the required parameter 'product_id' when calling AssociationsApi.get_all"
213
- end
214
- # verify the required parameter 'to_object_type' is set
215
- if @api_client.config.client_side_validation && to_object_type.nil?
216
- fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.get_all"
217
- end
218
- # resource path
219
- local_var_path = '/crm/v4/objects/products/{productId}/associations/{toObjectType}'.sub('{' + 'productId' + '}', CGI.escape(product_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
220
-
221
- # query parameters
222
- query_params = opts[:query_params] || {}
223
- query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
224
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
225
-
226
- # header parameters
227
- header_params = opts[:header_params] || {}
228
- # HTTP header 'Accept' (if needed)
229
- header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
230
-
231
- # form parameters
232
- form_params = opts[:form_params] || {}
233
-
234
- # http body (model)
235
- post_body = opts[:debug_body]
236
-
237
- # return_type
238
- return_type = opts[:debug_return_type] || 'CollectionResponseMultiAssociatedObjectWithLabelForwardPaging'
239
-
240
- # auth_names
241
- auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
242
-
243
- new_options = opts.merge(
244
- :operation => :"AssociationsApi.get_all",
245
- :header_params => header_params,
246
- :query_params => query_params,
247
- :form_params => form_params,
248
- :body => post_body,
249
- :auth_names => auth_names,
250
- :return_type => return_type
251
- )
252
-
253
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
254
- if @api_client.config.debugging
255
- @api_client.config.logger.debug "API called: AssociationsApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
256
- end
257
- return data, status_code, headers
258
- end
259
- end
260
- end
261
- end
262
- end