hubspot-api-client 16.3.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 (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
@@ -169,7 +169,8 @@ module Hubspot
169
169
  # @param object_type [String]
170
170
  # @param [Hash] opts the optional parameters
171
171
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
172
- # @return [CollectionResponseProperty]
172
+ # @option opts [String] :properties
173
+ # @return [CollectionResponsePropertyNoPaging]
173
174
  def get_all(object_type, opts = {})
174
175
  data, _status_code, _headers = get_all_with_http_info(object_type, opts)
175
176
  data
@@ -180,7 +181,8 @@ module Hubspot
180
181
  # @param object_type [String]
181
182
  # @param [Hash] opts the optional parameters
182
183
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
183
- # @return [Array<(CollectionResponseProperty, Integer, Hash)>] CollectionResponseProperty data, response status code and response headers
184
+ # @option opts [String] :properties
185
+ # @return [Array<(CollectionResponsePropertyNoPaging, Integer, Hash)>] CollectionResponsePropertyNoPaging data, response status code and response headers
184
186
  def get_all_with_http_info(object_type, opts = {})
185
187
  if @api_client.config.debugging
186
188
  @api_client.config.logger.debug 'Calling API: CoreApi.get_all ...'
@@ -195,6 +197,7 @@ module Hubspot
195
197
  # query parameters
196
198
  query_params = opts[:query_params] || {}
197
199
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
200
+ query_params[:'properties'] = opts[:'properties'] if !opts[:'properties'].nil?
198
201
 
199
202
  # header parameters
200
203
  header_params = opts[:header_params] || {}
@@ -208,7 +211,7 @@ module Hubspot
208
211
  post_body = opts[:debug_body]
209
212
 
210
213
  # return_type
211
- return_type = opts[:debug_return_type] || 'CollectionResponseProperty'
214
+ return_type = opts[:debug_return_type] || 'CollectionResponsePropertyNoPaging'
212
215
 
213
216
  # auth_names
214
217
  auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
@@ -236,6 +239,7 @@ module Hubspot
236
239
  # @param property_name [String]
237
240
  # @param [Hash] opts the optional parameters
238
241
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
242
+ # @option opts [String] :properties
239
243
  # @return [Property]
240
244
  def get_by_name(object_type, property_name, opts = {})
241
245
  data, _status_code, _headers = get_by_name_with_http_info(object_type, property_name, opts)
@@ -248,6 +252,7 @@ module Hubspot
248
252
  # @param property_name [String]
249
253
  # @param [Hash] opts the optional parameters
250
254
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
255
+ # @option opts [String] :properties
251
256
  # @return [Array<(Property, Integer, Hash)>] Property data, response status code and response headers
252
257
  def get_by_name_with_http_info(object_type, property_name, opts = {})
253
258
  if @api_client.config.debugging
@@ -267,6 +272,7 @@ module Hubspot
267
272
  # query parameters
268
273
  query_params = opts[:query_params] || {}
269
274
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
275
+ query_params[:'properties'] = opts[:'properties'] if !opts[:'properties'].nil?
270
276
 
271
277
  # header parameters
272
278
  header_params = opts[:header_params] || {}
@@ -168,7 +168,7 @@ module Hubspot
168
168
  # Read all existing property groups for the specified object type and HubSpot account.
169
169
  # @param object_type [String]
170
170
  # @param [Hash] opts the optional parameters
171
- # @return [CollectionResponsePropertyGroup]
171
+ # @return [CollectionResponsePropertyGroupNoPaging]
172
172
  def get_all(object_type, opts = {})
173
173
  data, _status_code, _headers = get_all_with_http_info(object_type, opts)
174
174
  data
@@ -178,7 +178,7 @@ module Hubspot
178
178
  # Read all existing property groups for the specified object type and HubSpot account.
179
179
  # @param object_type [String]
180
180
  # @param [Hash] opts the optional parameters
181
- # @return [Array<(CollectionResponsePropertyGroup, Integer, Hash)>] CollectionResponsePropertyGroup data, response status code and response headers
181
+ # @return [Array<(CollectionResponsePropertyGroupNoPaging, Integer, Hash)>] CollectionResponsePropertyGroupNoPaging data, response status code and response headers
182
182
  def get_all_with_http_info(object_type, opts = {})
183
183
  if @api_client.config.debugging
184
184
  @api_client.config.logger.debug 'Calling API: GroupsApi.get_all ...'
@@ -205,7 +205,7 @@ module Hubspot
205
205
  post_body = opts[:debug_body]
206
206
 
207
207
  # return_type
208
- return_type = opts[:debug_return_type] || 'CollectionResponsePropertyGroup'
208
+ return_type = opts[:debug_return_type] || 'CollectionResponsePropertyGroupNoPaging'
209
209
 
210
210
  # auth_names
211
211
  auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
@@ -17,15 +17,15 @@ module Hubspot
17
17
  module Crm
18
18
  module Properties
19
19
  class BatchReadInputPropertyName
20
- attr_accessor :inputs
21
-
22
20
  attr_accessor :archived
23
21
 
22
+ attr_accessor :inputs
23
+
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
- :'inputs' => :'inputs',
28
- :'archived' => :'archived'
27
+ :'archived' => :'archived',
28
+ :'inputs' => :'inputs'
29
29
  }
30
30
  end
31
31
 
@@ -37,8 +37,8 @@ module Hubspot
37
37
  # Attribute type mapping.
38
38
  def self.openapi_types
39
39
  {
40
- :'inputs' => :'Array<PropertyName>',
41
- :'archived' => :'Boolean'
40
+ :'archived' => :'Boolean',
41
+ :'inputs' => :'Array<PropertyName>'
42
42
  }
43
43
  end
44
44
 
@@ -63,37 +63,37 @@ module Hubspot
63
63
  h[k.to_sym] = v
64
64
  }
65
65
 
66
+ if attributes.key?(:'archived')
67
+ self.archived = attributes[:'archived']
68
+ end
69
+
66
70
  if attributes.key?(:'inputs')
67
71
  if (value = attributes[:'inputs']).is_a?(Array)
68
72
  self.inputs = value
69
73
  end
70
74
  end
71
-
72
- if attributes.key?(:'archived')
73
- self.archived = attributes[:'archived']
74
- end
75
75
  end
76
76
 
77
77
  # Show invalid properties with the reasons. Usually used together with valid?
78
78
  # @return Array for valid properties with the reasons
79
79
  def list_invalid_properties
80
80
  invalid_properties = Array.new
81
- if @inputs.nil?
82
- invalid_properties.push('invalid value for "inputs", inputs cannot be nil.')
83
- end
84
-
85
81
  if @archived.nil?
86
82
  invalid_properties.push('invalid value for "archived", archived cannot be nil.')
87
83
  end
88
84
 
85
+ if @inputs.nil?
86
+ invalid_properties.push('invalid value for "inputs", inputs cannot be nil.')
87
+ end
88
+
89
89
  invalid_properties
90
90
  end
91
91
 
92
92
  # Check to see if the all the properties in the model are valid
93
93
  # @return true if the model is valid
94
94
  def valid?
95
- return false if @inputs.nil?
96
95
  return false if @archived.nil?
96
+ return false if @inputs.nil?
97
97
  true
98
98
  end
99
99
 
@@ -102,8 +102,8 @@ module Hubspot
102
102
  def ==(o)
103
103
  return true if self.equal?(o)
104
104
  self.class == o.class &&
105
- inputs == o.inputs &&
106
- archived == o.archived
105
+ archived == o.archived &&
106
+ inputs == o.inputs
107
107
  end
108
108
 
109
109
  # @see the `==` method
@@ -115,7 +115,7 @@ module Hubspot
115
115
  # Calculates hash code according to all attributes.
116
116
  # @return [Integer] Hash code
117
117
  def hash
118
- [inputs, archived].hash
118
+ [archived, inputs].hash
119
119
  end
120
120
 
121
121
  # Builds the object from hash
@@ -21,10 +21,6 @@ module Hubspot
21
21
 
22
22
  attr_accessor :results
23
23
 
24
- attr_accessor :num_errors
25
-
26
- attr_accessor :errors
27
-
28
24
  attr_accessor :requested_at
29
25
 
30
26
  attr_accessor :started_at
@@ -60,8 +56,6 @@ module Hubspot
60
56
  {
61
57
  :'status' => :'status',
62
58
  :'results' => :'results',
63
- :'num_errors' => :'numErrors',
64
- :'errors' => :'errors',
65
59
  :'requested_at' => :'requestedAt',
66
60
  :'started_at' => :'startedAt',
67
61
  :'completed_at' => :'completedAt',
@@ -79,8 +73,6 @@ module Hubspot
79
73
  {
80
74
  :'status' => :'String',
81
75
  :'results' => :'Array<Property>',
82
- :'num_errors' => :'Integer',
83
- :'errors' => :'Array<StandardError>',
84
76
  :'requested_at' => :'Time',
85
77
  :'started_at' => :'Time',
86
78
  :'completed_at' => :'Time',
@@ -119,16 +111,6 @@ module Hubspot
119
111
  end
120
112
  end
121
113
 
122
- if attributes.key?(:'num_errors')
123
- self.num_errors = attributes[:'num_errors']
124
- end
125
-
126
- if attributes.key?(:'errors')
127
- if (value = attributes[:'errors']).is_a?(Array)
128
- self.errors = value
129
- end
130
- end
131
-
132
114
  if attributes.key?(:'requested_at')
133
115
  self.requested_at = attributes[:'requested_at']
134
116
  end
@@ -200,8 +182,6 @@ module Hubspot
200
182
  self.class == o.class &&
201
183
  status == o.status &&
202
184
  results == o.results &&
203
- num_errors == o.num_errors &&
204
- errors == o.errors &&
205
185
  requested_at == o.requested_at &&
206
186
  started_at == o.started_at &&
207
187
  completed_at == o.completed_at &&
@@ -217,7 +197,7 @@ module Hubspot
217
197
  # Calculates hash code according to all attributes.
218
198
  # @return [Integer] Hash code
219
199
  def hash
220
- [status, results, num_errors, errors, requested_at, started_at, completed_at, links].hash
200
+ [status, results, requested_at, started_at, completed_at, links].hash
221
201
  end
222
202
 
223
203
  # Builds the object from hash
@@ -0,0 +1,346 @@
1
+ =begin
2
+ #Properties
3
+
4
+ #All HubSpot objects store data in default and custom properties. These endpoints provide access to read and modify object properties in HubSpot.
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 Properties
19
+ class BatchResponsePropertyWithErrors
20
+ attr_accessor :status
21
+
22
+ attr_accessor :results
23
+
24
+ attr_accessor :num_errors
25
+
26
+ attr_accessor :errors
27
+
28
+ attr_accessor :requested_at
29
+
30
+ attr_accessor :started_at
31
+
32
+ attr_accessor :completed_at
33
+
34
+ attr_accessor :links
35
+
36
+ class EnumAttributeValidator
37
+ attr_reader :datatype
38
+ attr_reader :allowable_values
39
+
40
+ def initialize(datatype, allowable_values)
41
+ @allowable_values = allowable_values.map do |value|
42
+ case datatype.to_s
43
+ when /Integer/i
44
+ value.to_i
45
+ when /Float/i
46
+ value.to_f
47
+ else
48
+ value
49
+ end
50
+ end
51
+ end
52
+
53
+ def valid?(value)
54
+ !value || allowable_values.include?(value)
55
+ end
56
+ end
57
+
58
+ # Attribute mapping from ruby-style variable name to JSON key.
59
+ def self.attribute_map
60
+ {
61
+ :'status' => :'status',
62
+ :'results' => :'results',
63
+ :'num_errors' => :'numErrors',
64
+ :'errors' => :'errors',
65
+ :'requested_at' => :'requestedAt',
66
+ :'started_at' => :'startedAt',
67
+ :'completed_at' => :'completedAt',
68
+ :'links' => :'links'
69
+ }
70
+ end
71
+
72
+ # Returns all the JSON keys this model knows about
73
+ def self.acceptable_attributes
74
+ attribute_map.values
75
+ end
76
+
77
+ # Attribute type mapping.
78
+ def self.openapi_types
79
+ {
80
+ :'status' => :'String',
81
+ :'results' => :'Array<Property>',
82
+ :'num_errors' => :'Integer',
83
+ :'errors' => :'Array<StandardError>',
84
+ :'requested_at' => :'Time',
85
+ :'started_at' => :'Time',
86
+ :'completed_at' => :'Time',
87
+ :'links' => :'Hash<String, String>'
88
+ }
89
+ end
90
+
91
+ # List of attributes with nullable: true
92
+ def self.openapi_nullable
93
+ Set.new([
94
+ ])
95
+ end
96
+
97
+ # Initializes the object
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ def initialize(attributes = {})
100
+ if (!attributes.is_a?(Hash))
101
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Properties::BatchResponsePropertyWithErrors` initialize method"
102
+ end
103
+
104
+ # check to see if the attribute exists and convert string to symbol for hash key
105
+ attributes = attributes.each_with_object({}) { |(k, v), h|
106
+ if (!self.class.attribute_map.key?(k.to_sym))
107
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Properties::BatchResponsePropertyWithErrors`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
108
+ end
109
+ h[k.to_sym] = v
110
+ }
111
+
112
+ if attributes.key?(:'status')
113
+ self.status = attributes[:'status']
114
+ end
115
+
116
+ if attributes.key?(:'results')
117
+ if (value = attributes[:'results']).is_a?(Array)
118
+ self.results = value
119
+ end
120
+ end
121
+
122
+ if attributes.key?(:'num_errors')
123
+ self.num_errors = attributes[:'num_errors']
124
+ end
125
+
126
+ if attributes.key?(:'errors')
127
+ if (value = attributes[:'errors']).is_a?(Array)
128
+ self.errors = value
129
+ end
130
+ end
131
+
132
+ if attributes.key?(:'requested_at')
133
+ self.requested_at = attributes[:'requested_at']
134
+ end
135
+
136
+ if attributes.key?(:'started_at')
137
+ self.started_at = attributes[:'started_at']
138
+ end
139
+
140
+ if attributes.key?(:'completed_at')
141
+ self.completed_at = attributes[:'completed_at']
142
+ end
143
+
144
+ if attributes.key?(:'links')
145
+ if (value = attributes[:'links']).is_a?(Hash)
146
+ self.links = value
147
+ end
148
+ end
149
+ end
150
+
151
+ # Show invalid properties with the reasons. Usually used together with valid?
152
+ # @return Array for valid properties with the reasons
153
+ def list_invalid_properties
154
+ invalid_properties = Array.new
155
+ if @status.nil?
156
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
157
+ end
158
+
159
+ if @results.nil?
160
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
161
+ end
162
+
163
+ if @started_at.nil?
164
+ invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
165
+ end
166
+
167
+ if @completed_at.nil?
168
+ invalid_properties.push('invalid value for "completed_at", completed_at cannot be nil.')
169
+ end
170
+
171
+ invalid_properties
172
+ end
173
+
174
+ # Check to see if the all the properties in the model are valid
175
+ # @return true if the model is valid
176
+ def valid?
177
+ return false if @status.nil?
178
+ status_validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
179
+ return false unless status_validator.valid?(@status)
180
+ return false if @results.nil?
181
+ return false if @started_at.nil?
182
+ return false if @completed_at.nil?
183
+ true
184
+ end
185
+
186
+ # Custom attribute writer method checking allowed values (enum).
187
+ # @param [Object] status Object to be assigned
188
+ def status=(status)
189
+ validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
190
+ unless validator.valid?(status)
191
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
192
+ end
193
+ @status = status
194
+ end
195
+
196
+ # Checks equality by comparing each attribute.
197
+ # @param [Object] Object to be compared
198
+ def ==(o)
199
+ return true if self.equal?(o)
200
+ self.class == o.class &&
201
+ status == o.status &&
202
+ results == o.results &&
203
+ num_errors == o.num_errors &&
204
+ errors == o.errors &&
205
+ requested_at == o.requested_at &&
206
+ started_at == o.started_at &&
207
+ completed_at == o.completed_at &&
208
+ links == o.links
209
+ end
210
+
211
+ # @see the `==` method
212
+ # @param [Object] Object to be compared
213
+ def eql?(o)
214
+ self == o
215
+ end
216
+
217
+ # Calculates hash code according to all attributes.
218
+ # @return [Integer] Hash code
219
+ def hash
220
+ [status, results, num_errors, errors, requested_at, started_at, completed_at, links].hash
221
+ end
222
+
223
+ # Builds the object from hash
224
+ # @param [Hash] attributes Model attributes in the form of hash
225
+ # @return [Object] Returns the model itself
226
+ def self.build_from_hash(attributes)
227
+ new.build_from_hash(attributes)
228
+ end
229
+
230
+ # Builds the object from hash
231
+ # @param [Hash] attributes Model attributes in the form of hash
232
+ # @return [Object] Returns the model itself
233
+ def build_from_hash(attributes)
234
+ return nil unless attributes.is_a?(Hash)
235
+ attributes = attributes.transform_keys(&:to_sym)
236
+ self.class.openapi_types.each_pair do |key, type|
237
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
238
+ self.send("#{key}=", nil)
239
+ elsif type =~ /\AArray<(.*)>/i
240
+ # check to ensure the input is an array given that the attribute
241
+ # is documented as an array but the input is not
242
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
243
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
244
+ end
245
+ elsif !attributes[self.class.attribute_map[key]].nil?
246
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
247
+ end
248
+ end
249
+
250
+ self
251
+ end
252
+
253
+ # Deserializes the data based on type
254
+ # @param string type Data type
255
+ # @param string value Value to be deserialized
256
+ # @return [Object] Deserialized data
257
+ def _deserialize(type, value)
258
+ case type.to_sym
259
+ when :Time
260
+ Time.parse(value)
261
+ when :Date
262
+ Date.parse(value)
263
+ when :String
264
+ value.to_s
265
+ when :Integer
266
+ value.to_i
267
+ when :Float
268
+ value.to_f
269
+ when :Boolean
270
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
271
+ true
272
+ else
273
+ false
274
+ end
275
+ when :Object
276
+ # generic object (usually a Hash), return directly
277
+ value
278
+ when /\AArray<(?<inner_type>.+)>\z/
279
+ inner_type = Regexp.last_match[:inner_type]
280
+ value.map { |v| _deserialize(inner_type, v) }
281
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
282
+ k_type = Regexp.last_match[:k_type]
283
+ v_type = Regexp.last_match[:v_type]
284
+ {}.tap do |hash|
285
+ value.each do |k, v|
286
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
287
+ end
288
+ end
289
+ else # model
290
+ # models (e.g. Pet) or oneOf
291
+ klass = Hubspot::Crm::Properties.const_get(type)
292
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
293
+ end
294
+ end
295
+
296
+ # Returns the string representation of the object
297
+ # @return [String] String presentation of the object
298
+ def to_s
299
+ to_hash.to_s
300
+ end
301
+
302
+ # to_body is an alias to to_hash (backward compatibility)
303
+ # @return [Hash] Returns the object in the form of hash
304
+ def to_body
305
+ to_hash
306
+ end
307
+
308
+ # Returns the object in the form of hash
309
+ # @return [Hash] Returns the object in the form of hash
310
+ def to_hash
311
+ hash = {}
312
+ self.class.attribute_map.each_pair do |attr, param|
313
+ value = self.send(attr)
314
+ if value.nil?
315
+ is_nullable = self.class.openapi_nullable.include?(attr)
316
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
317
+ end
318
+
319
+ hash[param] = _to_hash(value)
320
+ end
321
+ hash
322
+ end
323
+
324
+ # Outputs non-array value in the form of hash
325
+ # For object, use to_hash. Otherwise, just return the value
326
+ # @param [Object] value Any valid value
327
+ # @return [Hash] Returns the value in the form of hash
328
+ def _to_hash(value)
329
+ if value.is_a?(Array)
330
+ value.compact.map { |v| _to_hash(v) }
331
+ elsif value.is_a?(Hash)
332
+ {}.tap do |hash|
333
+ value.each { |k, v| hash[k] = _to_hash(v) }
334
+ end
335
+ elsif value.respond_to? :to_hash
336
+ value.to_hash
337
+ else
338
+ value
339
+ end
340
+ end
341
+
342
+ end
343
+
344
+ end
345
+ end
346
+ end
@@ -16,16 +16,13 @@ require 'time'
16
16
  module Hubspot
17
17
  module Crm
18
18
  module Properties
19
- class CollectionResponsePropertyGroup
19
+ class CollectionResponsePropertyGroupNoPaging
20
20
  attr_accessor :results
21
21
 
22
- attr_accessor :paging
23
-
24
22
  # Attribute mapping from ruby-style variable name to JSON key.
25
23
  def self.attribute_map
26
24
  {
27
- :'results' => :'results',
28
- :'paging' => :'paging'
25
+ :'results' => :'results'
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
- :'results' => :'Array<PropertyGroup>',
41
- :'paging' => :'Paging'
37
+ :'results' => :'Array<PropertyGroup>'
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::Properties::CollectionResponsePropertyGroup` initialize method"
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Properties::CollectionResponsePropertyGroupNoPaging` 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::Properties::CollectionResponsePropertyGroup`. 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::Properties::CollectionResponsePropertyGroupNoPaging`. 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
  }
@@ -68,10 +64,6 @@ module Hubspot
68
64
  self.results = value
69
65
  end
70
66
  end
71
-
72
- if attributes.key?(:'paging')
73
- self.paging = attributes[:'paging']
74
- end
75
67
  end
76
68
 
77
69
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -97,8 +89,7 @@ module Hubspot
97
89
  def ==(o)
98
90
  return true if self.equal?(o)
99
91
  self.class == o.class &&
100
- results == o.results &&
101
- paging == o.paging
92
+ results == o.results
102
93
  end
103
94
 
104
95
  # @see the `==` method
@@ -110,7 +101,7 @@ module Hubspot
110
101
  # Calculates hash code according to all attributes.
111
102
  # @return [Integer] Hash code
112
103
  def hash
113
- [results, paging].hash
104
+ [results].hash
114
105
  end
115
106
 
116
107
  # Builds the object from hash