hubspot-api-client 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (841) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +68 -0
  4. data/README.md +109 -0
  5. data/Rakefile +8 -0
  6. data/git_push.sh +55 -0
  7. data/hubspot-api-client.gemspec +31 -0
  8. data/lib/hubspot-api-client.rb +49 -0
  9. data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +246 -0
  10. data/lib/hubspot/codegen/crm/associations/api_client.rb +423 -0
  11. data/lib/hubspot/codegen/crm/associations/api_error.rb +63 -0
  12. data/lib/hubspot/codegen/crm/associations/configuration.rb +260 -0
  13. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +221 -0
  14. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +221 -0
  15. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +331 -0
  16. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +331 -0
  17. data/lib/hubspot/codegen/crm/associations/models/error.rb +286 -0
  18. data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +265 -0
  19. data/lib/hubspot/codegen/crm/associations/models/public_association.rb +233 -0
  20. data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +236 -0
  21. data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +220 -0
  22. data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +240 -0
  23. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +360 -0
  24. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +273 -0
  25. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +90 -0
  26. data/lib/hubspot/codegen/crm/companies/api_client.rb +423 -0
  27. data/lib/hubspot/codegen/crm/companies/api_error.rb +63 -0
  28. data/lib/hubspot/codegen/crm/companies/configuration.rb +260 -0
  29. data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +221 -0
  30. data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +221 -0
  31. data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +221 -0
  32. data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +237 -0
  33. data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +331 -0
  34. data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +230 -0
  35. data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object_id.rb +230 -0
  36. data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +245 -0
  37. data/lib/hubspot/codegen/crm/companies/models/error.rb +286 -0
  38. data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +265 -0
  39. data/lib/hubspot/codegen/crm/companies/models/filter.rb +276 -0
  40. data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +221 -0
  41. data/lib/hubspot/codegen/crm/companies/models/next_page.rb +228 -0
  42. data/lib/hubspot/codegen/crm/companies/models/paging.rb +214 -0
  43. data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +290 -0
  44. data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +302 -0
  45. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +235 -0
  46. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +219 -0
  47. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +221 -0
  48. data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +240 -0
  49. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +360 -0
  50. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +273 -0
  51. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +90 -0
  52. data/lib/hubspot/codegen/crm/contacts/api_client.rb +423 -0
  53. data/lib/hubspot/codegen/crm/contacts/api_error.rb +63 -0
  54. data/lib/hubspot/codegen/crm/contacts/configuration.rb +260 -0
  55. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +221 -0
  56. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +221 -0
  57. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +221 -0
  58. data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +237 -0
  59. data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +331 -0
  60. data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +230 -0
  61. data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object_id.rb +230 -0
  62. data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +245 -0
  63. data/lib/hubspot/codegen/crm/contacts/models/error.rb +286 -0
  64. data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +265 -0
  65. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +276 -0
  66. data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +221 -0
  67. data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +228 -0
  68. data/lib/hubspot/codegen/crm/contacts/models/paging.rb +214 -0
  69. data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +290 -0
  70. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +302 -0
  71. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +235 -0
  72. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +219 -0
  73. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +221 -0
  74. data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +240 -0
  75. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +360 -0
  76. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +273 -0
  77. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +90 -0
  78. data/lib/hubspot/codegen/crm/deals/api_client.rb +423 -0
  79. data/lib/hubspot/codegen/crm/deals/api_error.rb +63 -0
  80. data/lib/hubspot/codegen/crm/deals/configuration.rb +260 -0
  81. data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +221 -0
  82. data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +221 -0
  83. data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +221 -0
  84. data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +237 -0
  85. data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +331 -0
  86. data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +230 -0
  87. data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object_id.rb +230 -0
  88. data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +245 -0
  89. data/lib/hubspot/codegen/crm/deals/models/error.rb +286 -0
  90. data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +265 -0
  91. data/lib/hubspot/codegen/crm/deals/models/filter.rb +276 -0
  92. data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +221 -0
  93. data/lib/hubspot/codegen/crm/deals/models/next_page.rb +228 -0
  94. data/lib/hubspot/codegen/crm/deals/models/paging.rb +214 -0
  95. data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +290 -0
  96. data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +302 -0
  97. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +235 -0
  98. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +219 -0
  99. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +221 -0
  100. data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +338 -0
  101. data/lib/hubspot/codegen/crm/extensions/cards/api/default_api.rb +318 -0
  102. data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +425 -0
  103. data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +65 -0
  104. data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +262 -0
  105. data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +223 -0
  106. data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +263 -0
  107. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +223 -0
  108. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +299 -0
  109. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +237 -0
  110. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +232 -0
  111. data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +223 -0
  112. data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +271 -0
  113. data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +243 -0
  114. data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +295 -0
  115. data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +283 -0
  116. data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +288 -0
  117. data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +244 -0
  118. data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +240 -0
  119. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +360 -0
  120. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +273 -0
  121. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +90 -0
  122. data/lib/hubspot/codegen/crm/line_items/api_client.rb +423 -0
  123. data/lib/hubspot/codegen/crm/line_items/api_error.rb +63 -0
  124. data/lib/hubspot/codegen/crm/line_items/configuration.rb +260 -0
  125. data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +221 -0
  126. data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +221 -0
  127. data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +221 -0
  128. data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +237 -0
  129. data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +331 -0
  130. data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +230 -0
  131. data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object_id.rb +230 -0
  132. data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +245 -0
  133. data/lib/hubspot/codegen/crm/line_items/models/error.rb +286 -0
  134. data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +265 -0
  135. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +276 -0
  136. data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +221 -0
  137. data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +228 -0
  138. data/lib/hubspot/codegen/crm/line_items/models/paging.rb +214 -0
  139. data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +290 -0
  140. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +302 -0
  141. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +235 -0
  142. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +219 -0
  143. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +221 -0
  144. data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +258 -0
  145. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +390 -0
  146. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +297 -0
  147. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +96 -0
  148. data/lib/hubspot/codegen/crm/objects/api_client.rb +423 -0
  149. data/lib/hubspot/codegen/crm/objects/api_error.rb +63 -0
  150. data/lib/hubspot/codegen/crm/objects/configuration.rb +260 -0
  151. data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +221 -0
  152. data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +221 -0
  153. data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_input.rb +221 -0
  154. data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +237 -0
  155. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +331 -0
  156. data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +230 -0
  157. data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_id.rb +230 -0
  158. data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +245 -0
  159. data/lib/hubspot/codegen/crm/objects/models/error.rb +286 -0
  160. data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +265 -0
  161. data/lib/hubspot/codegen/crm/objects/models/filter.rb +276 -0
  162. data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +221 -0
  163. data/lib/hubspot/codegen/crm/objects/models/next_page.rb +228 -0
  164. data/lib/hubspot/codegen/crm/objects/models/paging.rb +214 -0
  165. data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +290 -0
  166. data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +302 -0
  167. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +235 -0
  168. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +219 -0
  169. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +221 -0
  170. data/lib/hubspot/codegen/crm/owners/api/default_api.rb +160 -0
  171. data/lib/hubspot/codegen/crm/owners/api_client.rb +423 -0
  172. data/lib/hubspot/codegen/crm/owners/api_error.rb +63 -0
  173. data/lib/hubspot/codegen/crm/owners/configuration.rb +260 -0
  174. data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +230 -0
  175. data/lib/hubspot/codegen/crm/owners/models/error.rb +286 -0
  176. data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +242 -0
  177. data/lib/hubspot/codegen/crm/owners/models/next_page.rb +228 -0
  178. data/lib/hubspot/codegen/crm/owners/models/paging.rb +214 -0
  179. data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +313 -0
  180. data/lib/hubspot/codegen/crm/owners/models/public_team.rb +276 -0
  181. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +483 -0
  182. data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +447 -0
  183. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +423 -0
  184. data/lib/hubspot/codegen/crm/pipelines/api_error.rb +63 -0
  185. data/lib/hubspot/codegen/crm/pipelines/configuration.rb +260 -0
  186. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +230 -0
  187. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +230 -0
  188. data/lib/hubspot/codegen/crm/pipelines/models/error.rb +307 -0
  189. data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +242 -0
  190. data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +228 -0
  191. data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +214 -0
  192. data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +323 -0
  193. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +253 -0
  194. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +236 -0
  195. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +323 -0
  196. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +253 -0
  197. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +253 -0
  198. data/lib/hubspot/codegen/crm/products/api/associations_api.rb +240 -0
  199. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +360 -0
  200. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +273 -0
  201. data/lib/hubspot/codegen/crm/products/api/search_api.rb +90 -0
  202. data/lib/hubspot/codegen/crm/products/api_client.rb +423 -0
  203. data/lib/hubspot/codegen/crm/products/api_error.rb +63 -0
  204. data/lib/hubspot/codegen/crm/products/configuration.rb +260 -0
  205. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +221 -0
  206. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +221 -0
  207. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +221 -0
  208. data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +237 -0
  209. data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +331 -0
  210. data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +230 -0
  211. data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object_id.rb +230 -0
  212. data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +245 -0
  213. data/lib/hubspot/codegen/crm/products/models/error.rb +286 -0
  214. data/lib/hubspot/codegen/crm/products/models/error_detail.rb +265 -0
  215. data/lib/hubspot/codegen/crm/products/models/filter.rb +276 -0
  216. data/lib/hubspot/codegen/crm/products/models/filter_group.rb +221 -0
  217. data/lib/hubspot/codegen/crm/products/models/next_page.rb +228 -0
  218. data/lib/hubspot/codegen/crm/products/models/paging.rb +214 -0
  219. data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +290 -0
  220. data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +302 -0
  221. data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +235 -0
  222. data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +219 -0
  223. data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +221 -0
  224. data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +228 -0
  225. data/lib/hubspot/codegen/crm/properties/api/core_api.rb +372 -0
  226. data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +366 -0
  227. data/lib/hubspot/codegen/crm/properties/api_client.rb +423 -0
  228. data/lib/hubspot/codegen/crm/properties/api_error.rb +63 -0
  229. data/lib/hubspot/codegen/crm/properties/configuration.rb +260 -0
  230. data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +221 -0
  231. data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +221 -0
  232. data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +235 -0
  233. data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +331 -0
  234. data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +230 -0
  235. data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +230 -0
  236. data/lib/hubspot/codegen/crm/properties/models/error.rb +286 -0
  237. data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +265 -0
  238. data/lib/hubspot/codegen/crm/properties/models/next_page.rb +228 -0
  239. data/lib/hubspot/codegen/crm/properties/models/option.rb +270 -0
  240. data/lib/hubspot/codegen/crm/properties/models/option_input.rb +270 -0
  241. data/lib/hubspot/codegen/crm/properties/models/paging.rb +214 -0
  242. data/lib/hubspot/codegen/crm/properties/models/property.rb +469 -0
  243. data/lib/hubspot/codegen/crm/properties/models/property_create.rb +378 -0
  244. data/lib/hubspot/codegen/crm/properties/models/property_group.rb +265 -0
  245. data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +245 -0
  246. data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +225 -0
  247. data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +256 -0
  248. data/lib/hubspot/codegen/crm/properties/models/property_name.rb +220 -0
  249. data/lib/hubspot/codegen/crm/properties/models/property_update.rb +333 -0
  250. data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +240 -0
  251. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +360 -0
  252. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +273 -0
  253. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +90 -0
  254. data/lib/hubspot/codegen/crm/quotes/api_client.rb +423 -0
  255. data/lib/hubspot/codegen/crm/quotes/api_error.rb +63 -0
  256. data/lib/hubspot/codegen/crm/quotes/configuration.rb +260 -0
  257. data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +221 -0
  258. data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +221 -0
  259. data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +221 -0
  260. data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +237 -0
  261. data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +331 -0
  262. data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +230 -0
  263. data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object_id.rb +230 -0
  264. data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +245 -0
  265. data/lib/hubspot/codegen/crm/quotes/models/error.rb +286 -0
  266. data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +265 -0
  267. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +276 -0
  268. data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +221 -0
  269. data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +228 -0
  270. data/lib/hubspot/codegen/crm/quotes/models/paging.rb +214 -0
  271. data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +290 -0
  272. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +302 -0
  273. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +235 -0
  274. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +219 -0
  275. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +221 -0
  276. data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +240 -0
  277. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +360 -0
  278. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +273 -0
  279. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +90 -0
  280. data/lib/hubspot/codegen/crm/tickets/api_client.rb +423 -0
  281. data/lib/hubspot/codegen/crm/tickets/api_error.rb +63 -0
  282. data/lib/hubspot/codegen/crm/tickets/configuration.rb +260 -0
  283. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +221 -0
  284. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +221 -0
  285. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +221 -0
  286. data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +237 -0
  287. data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +331 -0
  288. data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +230 -0
  289. data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object_id.rb +230 -0
  290. data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +245 -0
  291. data/lib/hubspot/codegen/crm/tickets/models/error.rb +286 -0
  292. data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +265 -0
  293. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +276 -0
  294. data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +221 -0
  295. data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +228 -0
  296. data/lib/hubspot/codegen/crm/tickets/models/paging.rb +214 -0
  297. data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +290 -0
  298. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +302 -0
  299. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +235 -0
  300. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +219 -0
  301. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +221 -0
  302. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +88 -0
  303. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +340 -0
  304. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +102 -0
  305. data/lib/hubspot/codegen/oauth/api_client.rb +423 -0
  306. data/lib/hubspot/codegen/oauth/api_error.rb +61 -0
  307. data/lib/hubspot/codegen/oauth/configuration.rb +258 -0
  308. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +321 -0
  309. data/lib/hubspot/codegen/oauth/models/error.rb +305 -0
  310. data/lib/hubspot/codegen/oauth/models/error_detail.rb +240 -0
  311. data/lib/hubspot/codegen/oauth/models/json_node.rb +426 -0
  312. data/lib/hubspot/codegen/oauth/models/refresh_token.rb +259 -0
  313. data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +307 -0
  314. data/lib/hubspot/configuration.rb +207 -0
  315. data/lib/hubspot/exceptions.rb +3 -0
  316. data/lib/hubspot/oauth.rb +17 -0
  317. data/lib/hubspot/version.rb +3 -0
  318. data/sample-apps/companies-app/.env.template +2 -0
  319. data/sample-apps/companies-app/.env.test.template +3 -0
  320. data/sample-apps/companies-app/.gitignore +35 -0
  321. data/sample-apps/companies-app/.rspec +1 -0
  322. data/sample-apps/companies-app/.ruby-version +1 -0
  323. data/sample-apps/companies-app/Dockerfile +22 -0
  324. data/sample-apps/companies-app/Gemfile +33 -0
  325. data/sample-apps/companies-app/Gemfile.lock +270 -0
  326. data/sample-apps/companies-app/README.md +31 -0
  327. data/sample-apps/companies-app/Rakefile +6 -0
  328. data/sample-apps/companies-app/app/assets/config/manifest.js +3 -0
  329. data/sample-apps/companies-app/app/assets/images/.keep +0 -0
  330. data/sample-apps/companies-app/app/assets/javascripts/application.js +15 -0
  331. data/sample-apps/companies-app/app/assets/javascripts/cable.js +13 -0
  332. data/sample-apps/companies-app/app/assets/javascripts/channels/.keep +0 -0
  333. data/sample-apps/companies-app/app/assets/stylesheets/application.css +117 -0
  334. data/sample-apps/companies-app/app/controllers/application_controller.rb +12 -0
  335. data/sample-apps/companies-app/app/controllers/companies_controller.rb +67 -0
  336. data/sample-apps/companies-app/app/controllers/concerns/.keep +0 -0
  337. data/sample-apps/companies-app/app/controllers/concerns/exception_handler.rb +12 -0
  338. data/sample-apps/companies-app/app/controllers/contacts_controller.rb +28 -0
  339. data/sample-apps/companies-app/app/controllers/oauth/authorization_controller.rb +19 -0
  340. data/sample-apps/companies-app/app/helpers/application_helper.rb +2 -0
  341. data/sample-apps/companies-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
  342. data/sample-apps/companies-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
  343. data/sample-apps/companies-app/app/lib/services/authorization/tokens/base.rb +19 -0
  344. data/sample-apps/companies-app/app/lib/services/authorization/tokens/generate.rb +26 -0
  345. data/sample-apps/companies-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
  346. data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +38 -0
  347. data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +38 -0
  348. data/sample-apps/companies-app/app/lib/services/hubspot/associations/get_by_id.rb +39 -0
  349. data/sample-apps/companies-app/app/lib/services/hubspot/companies/create.rb +24 -0
  350. data/sample-apps/companies-app/app/lib/services/hubspot/companies/destroy.rb +16 -0
  351. data/sample-apps/companies-app/app/lib/services/hubspot/companies/export.rb +48 -0
  352. data/sample-apps/companies-app/app/lib/services/hubspot/companies/get_all.rb +16 -0
  353. data/sample-apps/companies-app/app/lib/services/hubspot/companies/get_by_id.rb +16 -0
  354. data/sample-apps/companies-app/app/lib/services/hubspot/companies/search.rb +28 -0
  355. data/sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb +26 -0
  356. data/sample-apps/companies-app/app/lib/services/hubspot/contacts/get_all.rb +26 -0
  357. data/sample-apps/companies-app/app/lib/services/hubspot/contacts/search.rb +28 -0
  358. data/sample-apps/companies-app/app/models/application_record.rb +3 -0
  359. data/sample-apps/companies-app/app/models/concerns/.keep +0 -0
  360. data/sample-apps/companies-app/app/views/companies/index.html.erb +74 -0
  361. data/sample-apps/companies-app/app/views/companies/new.html.erb +24 -0
  362. data/sample-apps/companies-app/app/views/companies/show.html.erb +50 -0
  363. data/sample-apps/companies-app/app/views/contacts/index.html.erb +49 -0
  364. data/sample-apps/companies-app/app/views/layouts/application.html.erb +23 -0
  365. data/sample-apps/companies-app/app/views/oauth/authorization/login.html.erb +15 -0
  366. data/sample-apps/companies-app/app/views/shared/_header.html.erb +15 -0
  367. data/sample-apps/companies-app/bin/bundle +3 -0
  368. data/sample-apps/companies-app/bin/rails +9 -0
  369. data/sample-apps/companies-app/bin/rake +9 -0
  370. data/sample-apps/companies-app/bin/setup +36 -0
  371. data/sample-apps/companies-app/bin/spring +17 -0
  372. data/sample-apps/companies-app/bin/update +31 -0
  373. data/sample-apps/companies-app/bin/yarn +11 -0
  374. data/sample-apps/companies-app/config.ru +5 -0
  375. data/sample-apps/companies-app/config/application.rb +19 -0
  376. data/sample-apps/companies-app/config/boot.rb +3 -0
  377. data/sample-apps/companies-app/config/cable.yml +10 -0
  378. data/sample-apps/companies-app/config/database.yml +25 -0
  379. data/sample-apps/companies-app/config/environment.rb +5 -0
  380. data/sample-apps/companies-app/config/environments/development.rb +61 -0
  381. data/sample-apps/companies-app/config/environments/production.rb +94 -0
  382. data/sample-apps/companies-app/config/environments/test.rb +46 -0
  383. data/sample-apps/companies-app/config/initializers/assets.rb +14 -0
  384. data/sample-apps/companies-app/config/initializers/filter_parameter_logging.rb +4 -0
  385. data/sample-apps/companies-app/config/initializers/hubspot-api-client.rb +3 -0
  386. data/sample-apps/companies-app/config/initializers/mime_types.rb +1 -0
  387. data/sample-apps/companies-app/config/initializers/wrap_parameters.rb +14 -0
  388. data/sample-apps/companies-app/config/locales/en.yml +33 -0
  389. data/sample-apps/companies-app/config/puma.rb +34 -0
  390. data/sample-apps/companies-app/config/routes.rb +17 -0
  391. data/sample-apps/companies-app/config/spring.rb +6 -0
  392. data/sample-apps/companies-app/db/seeds.rb +7 -0
  393. data/sample-apps/companies-app/docker-compose.yml +11 -0
  394. data/sample-apps/companies-app/docker-entrypoint.sh +8 -0
  395. data/sample-apps/companies-app/lib/assets/.keep +0 -0
  396. data/sample-apps/companies-app/lib/tasks/.keep +0 -0
  397. data/sample-apps/companies-app/log/.keep +0 -0
  398. data/sample-apps/companies-app/package.json +5 -0
  399. data/sample-apps/companies-app/public/404.html +67 -0
  400. data/sample-apps/companies-app/public/422.html +67 -0
  401. data/sample-apps/companies-app/public/500.html +66 -0
  402. data/sample-apps/companies-app/public/apple-touch-icon-precomposed.png +0 -0
  403. data/sample-apps/companies-app/public/apple-touch-icon.png +0 -0
  404. data/sample-apps/companies-app/public/favicon.ico +0 -0
  405. data/sample-apps/companies-app/public/robots.txt +1 -0
  406. data/sample-apps/companies-app/tmp/.keep +0 -0
  407. data/sample-apps/contacts-app/.env.template +2 -0
  408. data/sample-apps/contacts-app/.env.test.template +3 -0
  409. data/sample-apps/contacts-app/.gitignore +35 -0
  410. data/sample-apps/contacts-app/.rspec +1 -0
  411. data/sample-apps/contacts-app/.ruby-version +1 -0
  412. data/sample-apps/contacts-app/Dockerfile +22 -0
  413. data/sample-apps/contacts-app/Gemfile +33 -0
  414. data/sample-apps/contacts-app/Gemfile.lock +270 -0
  415. data/sample-apps/contacts-app/README.md +41 -0
  416. data/sample-apps/contacts-app/Rakefile +6 -0
  417. data/sample-apps/contacts-app/app/assets/config/manifest.js +3 -0
  418. data/sample-apps/contacts-app/app/assets/images/.keep +0 -0
  419. data/sample-apps/contacts-app/app/assets/javascripts/application.js +15 -0
  420. data/sample-apps/contacts-app/app/assets/javascripts/cable.js +13 -0
  421. data/sample-apps/contacts-app/app/assets/javascripts/channels/.keep +0 -0
  422. data/sample-apps/contacts-app/app/assets/stylesheets/application.css +117 -0
  423. data/sample-apps/contacts-app/app/controllers/application_controller.rb +12 -0
  424. data/sample-apps/contacts-app/app/controllers/concerns/.keep +0 -0
  425. data/sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb +12 -0
  426. data/sample-apps/contacts-app/app/controllers/contacts_controller.rb +68 -0
  427. data/sample-apps/contacts-app/app/controllers/oauth/authorization_controller.rb +19 -0
  428. data/sample-apps/contacts-app/app/controllers/properties_controller.rb +52 -0
  429. data/sample-apps/contacts-app/app/helpers/application_helper.rb +2 -0
  430. data/sample-apps/contacts-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
  431. data/sample-apps/contacts-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
  432. data/sample-apps/contacts-app/app/lib/services/authorization/tokens/base.rb +19 -0
  433. data/sample-apps/contacts-app/app/lib/services/authorization/tokens/generate.rb +26 -0
  434. data/sample-apps/contacts-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
  435. data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +22 -0
  436. data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/destroy.rb +16 -0
  437. data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/export.rb +48 -0
  438. data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/get_all.rb +26 -0
  439. data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/get_by_id.rb +28 -0
  440. data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/search.rb +37 -0
  441. data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +24 -0
  442. data/sample-apps/contacts-app/app/lib/services/hubspot/owners/get_all.rb +12 -0
  443. data/sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb +23 -0
  444. data/sample-apps/contacts-app/app/lib/services/hubspot/properties/destroy.rb +16 -0
  445. data/sample-apps/contacts-app/app/lib/services/hubspot/properties/get_all.rb +12 -0
  446. data/sample-apps/contacts-app/app/lib/services/hubspot/properties/get_by_name.rb +20 -0
  447. data/sample-apps/contacts-app/app/lib/services/hubspot/properties/update.rb +27 -0
  448. data/sample-apps/contacts-app/app/models/application_record.rb +3 -0
  449. data/sample-apps/contacts-app/app/models/concerns/.keep +0 -0
  450. data/sample-apps/contacts-app/app/views/contacts/index.html.erb +78 -0
  451. data/sample-apps/contacts-app/app/views/contacts/new.html.erb +18 -0
  452. data/sample-apps/contacts-app/app/views/contacts/show.html.erb +38 -0
  453. data/sample-apps/contacts-app/app/views/layouts/application.html.erb +23 -0
  454. data/sample-apps/contacts-app/app/views/oauth/authorization/login.html.erb +15 -0
  455. data/sample-apps/contacts-app/app/views/properties/index.html.erb +68 -0
  456. data/sample-apps/contacts-app/app/views/properties/new.html.erb +29 -0
  457. data/sample-apps/contacts-app/app/views/properties/show.html.erb +29 -0
  458. data/sample-apps/contacts-app/app/views/shared/_header.html.erb +18 -0
  459. data/sample-apps/contacts-app/bin/bundle +3 -0
  460. data/sample-apps/contacts-app/bin/rails +9 -0
  461. data/sample-apps/contacts-app/bin/rake +9 -0
  462. data/sample-apps/contacts-app/bin/setup +36 -0
  463. data/sample-apps/contacts-app/bin/spring +17 -0
  464. data/sample-apps/contacts-app/bin/update +31 -0
  465. data/sample-apps/contacts-app/bin/yarn +11 -0
  466. data/sample-apps/contacts-app/config.ru +5 -0
  467. data/sample-apps/contacts-app/config/application.rb +19 -0
  468. data/sample-apps/contacts-app/config/boot.rb +3 -0
  469. data/sample-apps/contacts-app/config/cable.yml +10 -0
  470. data/sample-apps/contacts-app/config/database.yml +25 -0
  471. data/sample-apps/contacts-app/config/environment.rb +5 -0
  472. data/sample-apps/contacts-app/config/environments/development.rb +61 -0
  473. data/sample-apps/contacts-app/config/environments/production.rb +94 -0
  474. data/sample-apps/contacts-app/config/environments/test.rb +46 -0
  475. data/sample-apps/contacts-app/config/initializers/assets.rb +14 -0
  476. data/sample-apps/contacts-app/config/initializers/filter_parameter_logging.rb +4 -0
  477. data/sample-apps/contacts-app/config/initializers/hubspot-api-client.rb +3 -0
  478. data/sample-apps/contacts-app/config/initializers/mime_types.rb +1 -0
  479. data/sample-apps/contacts-app/config/initializers/wrap_parameters.rb +14 -0
  480. data/sample-apps/contacts-app/config/locales/en.yml +33 -0
  481. data/sample-apps/contacts-app/config/puma.rb +34 -0
  482. data/sample-apps/contacts-app/config/routes.rb +14 -0
  483. data/sample-apps/contacts-app/config/spring.rb +6 -0
  484. data/sample-apps/contacts-app/db/seeds.rb +7 -0
  485. data/sample-apps/contacts-app/docker-compose.yml +11 -0
  486. data/sample-apps/contacts-app/docker-entrypoint.sh +8 -0
  487. data/sample-apps/contacts-app/lib/assets/.keep +0 -0
  488. data/sample-apps/contacts-app/lib/tasks/.keep +0 -0
  489. data/sample-apps/contacts-app/log/.keep +0 -0
  490. data/sample-apps/contacts-app/package.json +5 -0
  491. data/sample-apps/contacts-app/public/404.html +67 -0
  492. data/sample-apps/contacts-app/public/422.html +67 -0
  493. data/sample-apps/contacts-app/public/500.html +66 -0
  494. data/sample-apps/contacts-app/public/apple-touch-icon-precomposed.png +0 -0
  495. data/sample-apps/contacts-app/public/apple-touch-icon.png +0 -0
  496. data/sample-apps/contacts-app/public/favicon.ico +0 -0
  497. data/sample-apps/contacts-app/public/robots.txt +1 -0
  498. data/sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb +27 -0
  499. data/sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb +18 -0
  500. data/sample-apps/contacts-app/spec/features/visitor_downloads_contacts_spec.rb +21 -0
  501. data/sample-apps/contacts-app/spec/features/visitor_edits_contact_spec.rb +35 -0
  502. data/sample-apps/contacts-app/spec/features/visitor_lists_contacts_spec.rb +10 -0
  503. data/sample-apps/contacts-app/spec/features/visitor_logs_in_spec.rb +22 -0
  504. data/sample-apps/contacts-app/spec/features/visitor_searches_contacts_spec.rb +33 -0
  505. data/sample-apps/contacts-app/spec/rails_helper.rb +42 -0
  506. data/sample-apps/contacts-app/spec/spec_helper.rb +11 -0
  507. data/sample-apps/contacts-app/spec/support/application_helper.rb +29 -0
  508. data/sample-apps/contacts-app/spec/support/download_helper.rb +37 -0
  509. data/sample-apps/contacts-app/tmp/.keep +0 -0
  510. data/sample-apps/oauth-app/.env.template +2 -0
  511. data/sample-apps/oauth-app/.env.test.template +3 -0
  512. data/sample-apps/oauth-app/.gitignore +35 -0
  513. data/sample-apps/oauth-app/.rspec +1 -0
  514. data/sample-apps/oauth-app/.ruby-version +1 -0
  515. data/sample-apps/oauth-app/Dockerfile +22 -0
  516. data/sample-apps/oauth-app/Gemfile +33 -0
  517. data/sample-apps/oauth-app/Gemfile.lock +270 -0
  518. data/sample-apps/oauth-app/README.md +33 -0
  519. data/sample-apps/oauth-app/Rakefile +6 -0
  520. data/sample-apps/oauth-app/app/assets/config/manifest.js +3 -0
  521. data/sample-apps/oauth-app/app/assets/images/.keep +0 -0
  522. data/sample-apps/oauth-app/app/assets/javascripts/application.js +15 -0
  523. data/sample-apps/oauth-app/app/assets/javascripts/cable.js +13 -0
  524. data/sample-apps/oauth-app/app/assets/javascripts/channels/.keep +0 -0
  525. data/sample-apps/oauth-app/app/assets/stylesheets/application.css +117 -0
  526. data/sample-apps/oauth-app/app/controllers/application_controller.rb +12 -0
  527. data/sample-apps/oauth-app/app/controllers/concerns/.keep +0 -0
  528. data/sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb +12 -0
  529. data/sample-apps/oauth-app/app/controllers/contacts_controller.rb +67 -0
  530. data/sample-apps/oauth-app/app/controllers/oauth/authorization_controller.rb +19 -0
  531. data/sample-apps/oauth-app/app/helpers/application_helper.rb +2 -0
  532. data/sample-apps/oauth-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
  533. data/sample-apps/oauth-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
  534. data/sample-apps/oauth-app/app/lib/services/authorization/tokens/base.rb +19 -0
  535. data/sample-apps/oauth-app/app/lib/services/authorization/tokens/generate.rb +26 -0
  536. data/sample-apps/oauth-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
  537. data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +22 -0
  538. data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/destroy.rb +16 -0
  539. data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/export.rb +48 -0
  540. data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/get_all.rb +26 -0
  541. data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/get_by_id.rb +20 -0
  542. data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/search.rb +37 -0
  543. data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +24 -0
  544. data/sample-apps/oauth-app/app/lib/services/hubspot/owners/get_all.rb +12 -0
  545. data/sample-apps/oauth-app/app/models/application_record.rb +3 -0
  546. data/sample-apps/oauth-app/app/models/concerns/.keep +0 -0
  547. data/sample-apps/oauth-app/app/views/contacts/index.html.erb +78 -0
  548. data/sample-apps/oauth-app/app/views/contacts/new.html.erb +18 -0
  549. data/sample-apps/oauth-app/app/views/contacts/show.html.erb +38 -0
  550. data/sample-apps/oauth-app/app/views/layouts/application.html.erb +23 -0
  551. data/sample-apps/oauth-app/app/views/oauth/authorization/login.html.erb +15 -0
  552. data/sample-apps/oauth-app/app/views/shared/_header.html.erb +15 -0
  553. data/sample-apps/oauth-app/bin/bundle +3 -0
  554. data/sample-apps/oauth-app/bin/rails +9 -0
  555. data/sample-apps/oauth-app/bin/rake +9 -0
  556. data/sample-apps/oauth-app/bin/setup +36 -0
  557. data/sample-apps/oauth-app/bin/spring +17 -0
  558. data/sample-apps/oauth-app/bin/update +31 -0
  559. data/sample-apps/oauth-app/bin/yarn +11 -0
  560. data/sample-apps/oauth-app/config.ru +5 -0
  561. data/sample-apps/oauth-app/config/application.rb +19 -0
  562. data/sample-apps/oauth-app/config/boot.rb +3 -0
  563. data/sample-apps/oauth-app/config/cable.yml +10 -0
  564. data/sample-apps/oauth-app/config/database.yml +25 -0
  565. data/sample-apps/oauth-app/config/environment.rb +5 -0
  566. data/sample-apps/oauth-app/config/environments/development.rb +61 -0
  567. data/sample-apps/oauth-app/config/environments/production.rb +94 -0
  568. data/sample-apps/oauth-app/config/environments/test.rb +46 -0
  569. data/sample-apps/oauth-app/config/initializers/assets.rb +14 -0
  570. data/sample-apps/oauth-app/config/initializers/filter_parameter_logging.rb +4 -0
  571. data/sample-apps/oauth-app/config/initializers/hubspot-api-client.rb +3 -0
  572. data/sample-apps/oauth-app/config/initializers/mime_types.rb +1 -0
  573. data/sample-apps/oauth-app/config/initializers/wrap_parameters.rb +14 -0
  574. data/sample-apps/oauth-app/config/locales/en.yml +33 -0
  575. data/sample-apps/oauth-app/config/puma.rb +34 -0
  576. data/sample-apps/oauth-app/config/routes.rb +14 -0
  577. data/sample-apps/oauth-app/config/spring.rb +6 -0
  578. data/sample-apps/oauth-app/db/seeds.rb +7 -0
  579. data/sample-apps/oauth-app/docker-compose.yml +11 -0
  580. data/sample-apps/oauth-app/docker-entrypoint.sh +8 -0
  581. data/sample-apps/oauth-app/lib/assets/.keep +0 -0
  582. data/sample-apps/oauth-app/lib/tasks/.keep +0 -0
  583. data/sample-apps/oauth-app/log/.keep +0 -0
  584. data/sample-apps/oauth-app/package.json +5 -0
  585. data/sample-apps/oauth-app/public/404.html +67 -0
  586. data/sample-apps/oauth-app/public/422.html +67 -0
  587. data/sample-apps/oauth-app/public/500.html +66 -0
  588. data/sample-apps/oauth-app/public/apple-touch-icon-precomposed.png +0 -0
  589. data/sample-apps/oauth-app/public/apple-touch-icon.png +0 -0
  590. data/sample-apps/oauth-app/public/favicon.ico +0 -0
  591. data/sample-apps/oauth-app/public/robots.txt +1 -0
  592. data/sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb +27 -0
  593. data/sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb +18 -0
  594. data/sample-apps/oauth-app/spec/features/visitor_downloads_contacts_spec.rb +21 -0
  595. data/sample-apps/oauth-app/spec/features/visitor_edits_contact_spec.rb +35 -0
  596. data/sample-apps/oauth-app/spec/features/visitor_lists_contacts_spec.rb +10 -0
  597. data/sample-apps/oauth-app/spec/features/visitor_logs_in_spec.rb +22 -0
  598. data/sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb +33 -0
  599. data/sample-apps/oauth-app/spec/rails_helper.rb +42 -0
  600. data/sample-apps/oauth-app/spec/spec_helper.rb +11 -0
  601. data/sample-apps/oauth-app/spec/support/application_helper.rb +29 -0
  602. data/sample-apps/oauth-app/spec/support/download_helper.rb +37 -0
  603. data/sample-apps/oauth-app/tmp/.keep +0 -0
  604. data/sample-apps/retry-middleware-sample-app/.env.template +2 -0
  605. data/sample-apps/retry-middleware-sample-app/.gitignore +35 -0
  606. data/sample-apps/retry-middleware-sample-app/.ruby-version +1 -0
  607. data/sample-apps/retry-middleware-sample-app/Dockerfile +22 -0
  608. data/sample-apps/retry-middleware-sample-app/Gemfile +37 -0
  609. data/sample-apps/retry-middleware-sample-app/Gemfile.lock +282 -0
  610. data/sample-apps/retry-middleware-sample-app/README.md +33 -0
  611. data/sample-apps/retry-middleware-sample-app/Rakefile +6 -0
  612. data/sample-apps/retry-middleware-sample-app/app/assets/config/manifest.js +3 -0
  613. data/sample-apps/retry-middleware-sample-app/app/assets/images/.keep +0 -0
  614. data/sample-apps/retry-middleware-sample-app/app/assets/javascripts/application.js +25 -0
  615. data/sample-apps/retry-middleware-sample-app/app/assets/javascripts/cable.js +13 -0
  616. data/sample-apps/retry-middleware-sample-app/app/assets/javascripts/channels/.keep +0 -0
  617. data/sample-apps/retry-middleware-sample-app/app/assets/stylesheets/application.css +90 -0
  618. data/sample-apps/retry-middleware-sample-app/app/controllers/application_controller.rb +12 -0
  619. data/sample-apps/retry-middleware-sample-app/app/controllers/concerns/.keep +0 -0
  620. data/sample-apps/retry-middleware-sample-app/app/controllers/concerns/exception_handler.rb +12 -0
  621. data/sample-apps/retry-middleware-sample-app/app/controllers/home_controller.rb +15 -0
  622. data/sample-apps/retry-middleware-sample-app/app/controllers/oauth/authorization_controller.rb +19 -0
  623. data/sample-apps/retry-middleware-sample-app/app/helpers/application_helper.rb +2 -0
  624. data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
  625. data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
  626. data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/base.rb +19 -0
  627. data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/generate.rb +26 -0
  628. data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
  629. data/sample-apps/retry-middleware-sample-app/app/models/application_record.rb +3 -0
  630. data/sample-apps/retry-middleware-sample-app/app/models/concerns/.keep +0 -0
  631. data/sample-apps/retry-middleware-sample-app/app/views/home/index.html.erb +13 -0
  632. data/sample-apps/retry-middleware-sample-app/app/views/layouts/application.html.erb +23 -0
  633. data/sample-apps/retry-middleware-sample-app/app/views/oauth/authorization/login.html.erb +15 -0
  634. data/sample-apps/retry-middleware-sample-app/app/views/shared/_header.html.erb +12 -0
  635. data/sample-apps/retry-middleware-sample-app/bin/bundle +3 -0
  636. data/sample-apps/retry-middleware-sample-app/bin/rails +9 -0
  637. data/sample-apps/retry-middleware-sample-app/bin/rake +9 -0
  638. data/sample-apps/retry-middleware-sample-app/bin/setup +36 -0
  639. data/sample-apps/retry-middleware-sample-app/bin/spring +17 -0
  640. data/sample-apps/retry-middleware-sample-app/bin/update +31 -0
  641. data/sample-apps/retry-middleware-sample-app/bin/yarn +11 -0
  642. data/sample-apps/retry-middleware-sample-app/config.ru +5 -0
  643. data/sample-apps/retry-middleware-sample-app/config/application.rb +19 -0
  644. data/sample-apps/retry-middleware-sample-app/config/boot.rb +3 -0
  645. data/sample-apps/retry-middleware-sample-app/config/cable.yml +10 -0
  646. data/sample-apps/retry-middleware-sample-app/config/database.yml +25 -0
  647. data/sample-apps/retry-middleware-sample-app/config/environment.rb +5 -0
  648. data/sample-apps/retry-middleware-sample-app/config/environments/development.rb +61 -0
  649. data/sample-apps/retry-middleware-sample-app/config/environments/production.rb +94 -0
  650. data/sample-apps/retry-middleware-sample-app/config/environments/test.rb +46 -0
  651. data/sample-apps/retry-middleware-sample-app/config/initializers/assets.rb +14 -0
  652. data/sample-apps/retry-middleware-sample-app/config/initializers/filter_parameter_logging.rb +4 -0
  653. data/sample-apps/retry-middleware-sample-app/config/initializers/hubspot-api-client.rb +3 -0
  654. data/sample-apps/retry-middleware-sample-app/config/initializers/mime_types.rb +1 -0
  655. data/sample-apps/retry-middleware-sample-app/config/initializers/wrap_parameters.rb +14 -0
  656. data/sample-apps/retry-middleware-sample-app/config/locales/en.yml +33 -0
  657. data/sample-apps/retry-middleware-sample-app/config/puma.rb +34 -0
  658. data/sample-apps/retry-middleware-sample-app/config/routes.rb +6 -0
  659. data/sample-apps/retry-middleware-sample-app/config/spring.rb +6 -0
  660. data/sample-apps/retry-middleware-sample-app/db/seeds.rb +7 -0
  661. data/sample-apps/retry-middleware-sample-app/docker-compose.yml +11 -0
  662. data/sample-apps/retry-middleware-sample-app/docker-entrypoint.sh +8 -0
  663. data/sample-apps/retry-middleware-sample-app/lib/assets/.keep +0 -0
  664. data/sample-apps/retry-middleware-sample-app/lib/tasks/.keep +0 -0
  665. data/sample-apps/retry-middleware-sample-app/lib/tasks/retry_middleware.rake +37 -0
  666. data/sample-apps/retry-middleware-sample-app/log/.keep +0 -0
  667. data/sample-apps/retry-middleware-sample-app/package.json +5 -0
  668. data/sample-apps/retry-middleware-sample-app/public/404.html +67 -0
  669. data/sample-apps/retry-middleware-sample-app/public/422.html +67 -0
  670. data/sample-apps/retry-middleware-sample-app/public/500.html +66 -0
  671. data/sample-apps/retry-middleware-sample-app/public/apple-touch-icon-precomposed.png +0 -0
  672. data/sample-apps/retry-middleware-sample-app/public/apple-touch-icon.png +0 -0
  673. data/sample-apps/retry-middleware-sample-app/public/favicon.ico +0 -0
  674. data/sample-apps/retry-middleware-sample-app/public/robots.txt +1 -0
  675. data/sample-apps/retry-middleware-sample-app/tmp/.keep +0 -0
  676. data/sample-apps/webhooks-contacts-app/.env.template +2 -0
  677. data/sample-apps/webhooks-contacts-app/.gitignore +35 -0
  678. data/sample-apps/webhooks-contacts-app/.ruby-version +1 -0
  679. data/sample-apps/webhooks-contacts-app/Dockerfile +21 -0
  680. data/sample-apps/webhooks-contacts-app/Gemfile +37 -0
  681. data/sample-apps/webhooks-contacts-app/Gemfile.lock +280 -0
  682. data/sample-apps/webhooks-contacts-app/README.md +51 -0
  683. data/sample-apps/webhooks-contacts-app/Rakefile +6 -0
  684. data/sample-apps/webhooks-contacts-app/app/assets/config/manifest.js +3 -0
  685. data/sample-apps/webhooks-contacts-app/app/assets/images/.keep +0 -0
  686. data/sample-apps/webhooks-contacts-app/app/assets/javascripts/application.js +46 -0
  687. data/sample-apps/webhooks-contacts-app/app/assets/javascripts/cable.js +13 -0
  688. data/sample-apps/webhooks-contacts-app/app/assets/javascripts/channels/.keep +0 -0
  689. data/sample-apps/webhooks-contacts-app/app/assets/stylesheets/application.css +140 -0
  690. data/sample-apps/webhooks-contacts-app/app/controllers/application_controller.rb +18 -0
  691. data/sample-apps/webhooks-contacts-app/app/controllers/concerns/.keep +0 -0
  692. data/sample-apps/webhooks-contacts-app/app/controllers/concerns/exception_handler.rb +12 -0
  693. data/sample-apps/webhooks-contacts-app/app/controllers/events_controller.rb +33 -0
  694. data/sample-apps/webhooks-contacts-app/app/controllers/oauth/authorization_controller.rb +19 -0
  695. data/sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb +9 -0
  696. data/sample-apps/webhooks-contacts-app/app/helpers/application_helper.rb +2 -0
  697. data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
  698. data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
  699. data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/base.rb +19 -0
  700. data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/generate.rb +26 -0
  701. data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/refresh.rb +34 -0
  702. data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +39 -0
  703. data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/handle.rb +34 -0
  704. data/sample-apps/webhooks-contacts-app/app/models/application_record.rb +3 -0
  705. data/sample-apps/webhooks-contacts-app/app/models/concerns/.keep +0 -0
  706. data/sample-apps/webhooks-contacts-app/app/models/event.rb +2 -0
  707. data/sample-apps/webhooks-contacts-app/app/models/token.rb +15 -0
  708. data/sample-apps/webhooks-contacts-app/app/views/events/index.html.erb +41 -0
  709. data/sample-apps/webhooks-contacts-app/app/views/layouts/application.html.erb +21 -0
  710. data/sample-apps/webhooks-contacts-app/app/views/oauth/authorization/login.html.erb +15 -0
  711. data/sample-apps/webhooks-contacts-app/app/views/shared/_header.html.erb +15 -0
  712. data/sample-apps/webhooks-contacts-app/bin/bundle +3 -0
  713. data/sample-apps/webhooks-contacts-app/bin/rails +9 -0
  714. data/sample-apps/webhooks-contacts-app/bin/rake +9 -0
  715. data/sample-apps/webhooks-contacts-app/bin/setup +36 -0
  716. data/sample-apps/webhooks-contacts-app/bin/spring +17 -0
  717. data/sample-apps/webhooks-contacts-app/bin/update +31 -0
  718. data/sample-apps/webhooks-contacts-app/bin/yarn +11 -0
  719. data/sample-apps/webhooks-contacts-app/config.ru +5 -0
  720. data/sample-apps/webhooks-contacts-app/config/application.rb +19 -0
  721. data/sample-apps/webhooks-contacts-app/config/boot.rb +3 -0
  722. data/sample-apps/webhooks-contacts-app/config/cable.yml +10 -0
  723. data/sample-apps/webhooks-contacts-app/config/database.yml +15 -0
  724. data/sample-apps/webhooks-contacts-app/config/environment.rb +5 -0
  725. data/sample-apps/webhooks-contacts-app/config/environments/development.rb +61 -0
  726. data/sample-apps/webhooks-contacts-app/config/environments/production.rb +94 -0
  727. data/sample-apps/webhooks-contacts-app/config/environments/test.rb +47 -0
  728. data/sample-apps/webhooks-contacts-app/config/initializers/assets.rb +14 -0
  729. data/sample-apps/webhooks-contacts-app/config/initializers/filter_parameter_logging.rb +4 -0
  730. data/sample-apps/webhooks-contacts-app/config/initializers/wrap_parameters.rb +14 -0
  731. data/sample-apps/webhooks-contacts-app/config/locales/en.yml +33 -0
  732. data/sample-apps/webhooks-contacts-app/config/puma.rb +34 -0
  733. data/sample-apps/webhooks-contacts-app/config/routes.rb +10 -0
  734. data/sample-apps/webhooks-contacts-app/config/spring.rb +6 -0
  735. data/sample-apps/webhooks-contacts-app/db/migrate/20191202170347_create_tokens.rb +10 -0
  736. data/sample-apps/webhooks-contacts-app/db/migrate/20200130113853_create_events.rb +14 -0
  737. data/sample-apps/webhooks-contacts-app/db/schema.rb +36 -0
  738. data/sample-apps/webhooks-contacts-app/docker-compose.yml +38 -0
  739. data/sample-apps/webhooks-contacts-app/docker-entrypoint.sh +8 -0
  740. data/sample-apps/webhooks-contacts-app/lib/assets/.keep +0 -0
  741. data/sample-apps/webhooks-contacts-app/lib/tasks/.keep +0 -0
  742. data/sample-apps/webhooks-contacts-app/log/.keep +0 -0
  743. data/sample-apps/webhooks-contacts-app/package.json +5 -0
  744. data/sample-apps/webhooks-contacts-app/public/404.html +67 -0
  745. data/sample-apps/webhooks-contacts-app/public/422.html +67 -0
  746. data/sample-apps/webhooks-contacts-app/public/500.html +66 -0
  747. data/sample-apps/webhooks-contacts-app/public/apple-touch-icon-precomposed.png +0 -0
  748. data/sample-apps/webhooks-contacts-app/public/apple-touch-icon.png +0 -0
  749. data/sample-apps/webhooks-contacts-app/public/favicon.ico +0 -0
  750. data/sample-apps/webhooks-contacts-app/public/robots.txt +1 -0
  751. data/sample-apps/webhooks-contacts-app/public/sample.png +0 -0
  752. data/sample-apps/webhooks-contacts-app/tmp/.keep +0 -0
  753. data/spec/oauth/api/access_tokens_api_spec.rb +46 -0
  754. data/spec/oauth/api/refresh_tokens_api_spec.rb +92 -0
  755. data/spec/oauth/api/tokens_api_spec.rb +51 -0
  756. data/spec/oauth/api_client_spec.rb +226 -0
  757. data/spec/oauth/configuration_spec.rb +42 -0
  758. data/spec/oauth/models/access_token_info_response_spec.rb +89 -0
  759. data/spec/oauth/models/error_detail_spec.rb +53 -0
  760. data/spec/oauth/models/error_spec.rb +71 -0
  761. data/spec/oauth/models/json_node_spec.rb +165 -0
  762. data/spec/oauth/models/refresh_token_info_response_spec.rb +83 -0
  763. data/spec/oauth/models/refresh_token_spec.rb +59 -0
  764. data/spec/objects/api/associations_api_spec.rb +76 -0
  765. data/spec/objects/api/basic_api_spec.rb +108 -0
  766. data/spec/objects/api/batch_api_spec.rb +88 -0
  767. data/spec/objects/api/search_api_spec.rb +48 -0
  768. data/spec/objects/api_client_spec.rb +226 -0
  769. data/spec/objects/configuration_spec.rb +42 -0
  770. data/spec/objects/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  771. data/spec/objects/models/batch_input_simple_public_object_id_spec.rb +41 -0
  772. data/spec/objects/models/batch_input_simple_public_object_input_spec.rb +41 -0
  773. data/spec/objects/models/batch_read_input_simple_public_object_id_spec.rb +47 -0
  774. data/spec/objects/models/batch_response_simple_public_object_spec.rb +81 -0
  775. data/spec/objects/models/collection_response_simple_public_object_id_spec.rb +47 -0
  776. data/spec/objects/models/collection_response_simple_public_object_spec.rb +47 -0
  777. data/spec/objects/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  778. data/spec/objects/models/error_detail_spec.rb +65 -0
  779. data/spec/objects/models/error_spec.rb +71 -0
  780. data/spec/objects/models/filter_group_spec.rb +41 -0
  781. data/spec/objects/models/filter_spec.rb +57 -0
  782. data/spec/objects/models/next_page_spec.rb +47 -0
  783. data/spec/objects/models/paging_spec.rb +41 -0
  784. data/spec/objects/models/public_object_search_request_spec.rb +71 -0
  785. data/spec/objects/models/simple_public_object_batch_input_spec.rb +47 -0
  786. data/spec/objects/models/simple_public_object_id_spec.rb +41 -0
  787. data/spec/objects/models/simple_public_object_input_spec.rb +41 -0
  788. data/spec/objects/models/simple_public_object_spec.rb +77 -0
  789. data/spec/owners/api/default_api_spec.rb +60 -0
  790. data/spec/owners/api_client_spec.rb +226 -0
  791. data/spec/owners/configuration_spec.rb +42 -0
  792. data/spec/owners/models/collection_response_public_owner_spec.rb +47 -0
  793. data/spec/owners/models/error_detail_spec.rb +53 -0
  794. data/spec/owners/models/error_spec.rb +71 -0
  795. data/spec/owners/models/next_page_spec.rb +47 -0
  796. data/spec/owners/models/paging_spec.rb +41 -0
  797. data/spec/owners/models/public_owner_spec.rb +89 -0
  798. data/spec/owners/models/public_team_spec.rb +57 -0
  799. data/spec/pipelines/api/pipeline_stages_api_spec.rb +123 -0
  800. data/spec/pipelines/api/pipelines_api_spec.rb +117 -0
  801. data/spec/pipelines/api_client_spec.rb +226 -0
  802. data/spec/pipelines/configuration_spec.rb +42 -0
  803. data/spec/pipelines/models/collection_response_pipeline_spec.rb +47 -0
  804. data/spec/pipelines/models/collection_response_pipeline_stage_spec.rb +47 -0
  805. data/spec/pipelines/models/error_detail_spec.rb +53 -0
  806. data/spec/pipelines/models/error_spec.rb +71 -0
  807. data/spec/pipelines/models/next_page_spec.rb +47 -0
  808. data/spec/pipelines/models/paging_spec.rb +41 -0
  809. data/spec/pipelines/models/pipeline_input_spec.rb +53 -0
  810. data/spec/pipelines/models/pipeline_patch_input_spec.rb +53 -0
  811. data/spec/pipelines/models/pipeline_spec.rb +83 -0
  812. data/spec/pipelines/models/pipeline_stage_input_spec.rb +53 -0
  813. data/spec/pipelines/models/pipeline_stage_patch_input_spec.rb +59 -0
  814. data/spec/pipelines/models/pipeline_stage_spec.rb +83 -0
  815. data/spec/properties/api/batch_api_spec.rb +74 -0
  816. data/spec/properties/api/core_api_spec.rb +102 -0
  817. data/spec/properties/api/groups_api_spec.rb +100 -0
  818. data/spec/properties/api_client_spec.rb +226 -0
  819. data/spec/properties/configuration_spec.rb +42 -0
  820. data/spec/properties/models/batch_input_property_create_spec.rb +41 -0
  821. data/spec/properties/models/batch_input_property_name_spec.rb +41 -0
  822. data/spec/properties/models/batch_read_input_property_name_spec.rb +47 -0
  823. data/spec/properties/models/batch_response_property_spec.rb +81 -0
  824. data/spec/properties/models/collection_response_property_group_spec.rb +47 -0
  825. data/spec/properties/models/collection_response_property_spec.rb +47 -0
  826. data/spec/properties/models/error_detail_spec.rb +65 -0
  827. data/spec/properties/models/error_spec.rb +71 -0
  828. data/spec/properties/models/next_page_spec.rb +47 -0
  829. data/spec/properties/models/option_input_spec.rb +65 -0
  830. data/spec/properties/models/option_spec.rb +65 -0
  831. data/spec/properties/models/paging_spec.rb +41 -0
  832. data/spec/properties/models/property_create_spec.rb +103 -0
  833. data/spec/properties/models/property_group_create_spec.rb +53 -0
  834. data/spec/properties/models/property_group_spec.rb +59 -0
  835. data/spec/properties/models/property_group_update_spec.rb +47 -0
  836. data/spec/properties/models/property_modification_metadata_spec.rb +59 -0
  837. data/spec/properties/models/property_name_spec.rb +41 -0
  838. data/spec/properties/models/property_spec.rb +177 -0
  839. data/spec/properties/models/property_update_spec.rb +91 -0
  840. data/spec/spec_helper.rb +111 -0
  841. metadata +1145 -0
@@ -0,0 +1,390 @@
1
+ =begin
2
+ #CRM Objects
3
+
4
+ #CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are native objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Hubspot
16
+ module Client
17
+ module Crm
18
+ module Objects
19
+ module Api
20
+ class BasicApi
21
+ attr_accessor :api_client
22
+
23
+ def initialize(api_client = ApiClient.default)
24
+ @api_client = api_client
25
+ end
26
+ # Archive
27
+ # Move an Object identified by `{objectId}` to the recycling bin.
28
+ # @param object_type [String]
29
+ # @param object_id [String]
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [nil]
32
+ def archive(object_type, object_id, opts = {})
33
+ archive_with_http_info(object_type, object_id, opts)
34
+ nil
35
+ end
36
+
37
+ # Archive
38
+ # Move an Object identified by `{objectId}` to the recycling bin.
39
+ # @param object_type [String]
40
+ # @param object_id [String]
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(object_type, object_id, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: BasicApi.archive ...'
46
+ end
47
+ # verify the required parameter 'object_type' is set
48
+ if @api_client.config.client_side_validation && object_type.nil?
49
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling BasicApi.archive"
50
+ end
51
+ # verify the required parameter 'object_id' is set
52
+ if @api_client.config.client_side_validation && object_id.nil?
53
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.archive"
54
+ end
55
+ # resource path
56
+ local_var_path = '/{objectType}/{objectId}'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/')).sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s).gsub('%2F', '/'))
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:body]
71
+
72
+ # return_type
73
+ return_type = opts[:return_type]
74
+
75
+ # auth_names
76
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
77
+
78
+ new_options = opts.merge(
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names,
84
+ :return_type => return_type
85
+ )
86
+
87
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: BasicApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ return data, status_code, headers
92
+ end
93
+
94
+ # Create
95
+ # Create a CRM object with the given properties and return a copy of the object, including the ID. Documentation and examples for creating native objects is provided.
96
+ # @param object_type [String]
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [SimplePublicObjectInput] :body
99
+ # @return [SimplePublicObject]
100
+ def create(object_type, opts = {})
101
+ data, _status_code, _headers = create_with_http_info(object_type, opts)
102
+ data
103
+ end
104
+
105
+ # Create
106
+ # Create a CRM object with the given properties and return a copy of the object, including the ID. Documentation and examples for creating native objects is provided.
107
+ # @param object_type [String]
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [SimplePublicObjectInput] :body
110
+ # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
111
+ def create_with_http_info(object_type, opts = {})
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug 'Calling API: BasicApi.create ...'
114
+ end
115
+ # verify the required parameter 'object_type' is set
116
+ if @api_client.config.client_side_validation && object_type.nil?
117
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling BasicApi.create"
118
+ end
119
+ # resource path
120
+ local_var_path = '/{objectType}'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/'))
121
+
122
+ # query parameters
123
+ query_params = opts[:query_params] || {}
124
+
125
+ # header parameters
126
+ header_params = opts[:header_params] || {}
127
+ # HTTP header 'Accept' (if needed)
128
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
129
+ # HTTP header 'Content-Type'
130
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
131
+
132
+ # form parameters
133
+ form_params = opts[:form_params] || {}
134
+
135
+ # http body (model)
136
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
137
+
138
+ # return_type
139
+ return_type = opts[:return_type] || 'SimplePublicObject'
140
+
141
+ # auth_names
142
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
143
+
144
+ new_options = opts.merge(
145
+ :header_params => header_params,
146
+ :query_params => query_params,
147
+ :form_params => form_params,
148
+ :body => post_body,
149
+ :auth_names => auth_names,
150
+ :return_type => return_type
151
+ )
152
+
153
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug "API called: BasicApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
+ end
157
+ return data, status_code, headers
158
+ end
159
+
160
+ # Read
161
+ # Read an Object identified by `{objectId}`. Control what is returned via the `properties` query param.
162
+ # @param object_type [String]
163
+ # @param object_id [String]
164
+ # @param [Hash] opts the optional parameters
165
+ # @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
166
+ # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
167
+ # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
168
+ # @return [SimplePublicObject]
169
+ def get_by_id(object_type, object_id, opts = {})
170
+ data, _status_code, _headers = get_by_id_with_http_info(object_type, object_id, opts)
171
+ data
172
+ end
173
+
174
+ # Read
175
+ # Read an Object identified by &#x60;{objectId}&#x60;. Control what is returned via the &#x60;properties&#x60; query param.
176
+ # @param object_type [String]
177
+ # @param object_id [String]
178
+ # @param [Hash] opts the optional parameters
179
+ # @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
180
+ # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
181
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
182
+ # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
183
+ def get_by_id_with_http_info(object_type, object_id, opts = {})
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
186
+ end
187
+ # verify the required parameter 'object_type' is set
188
+ if @api_client.config.client_side_validation && object_type.nil?
189
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling BasicApi.get_by_id"
190
+ end
191
+ # verify the required parameter 'object_id' is set
192
+ if @api_client.config.client_side_validation && object_id.nil?
193
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.get_by_id"
194
+ end
195
+ # resource path
196
+ local_var_path = '/{objectType}/{objectId}'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/')).sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s).gsub('%2F', '/'))
197
+
198
+ # query parameters
199
+ query_params = opts[:query_params] || {}
200
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
201
+ query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
202
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
203
+
204
+ # header parameters
205
+ header_params = opts[:header_params] || {}
206
+ # HTTP header 'Accept' (if needed)
207
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
208
+
209
+ # form parameters
210
+ form_params = opts[:form_params] || {}
211
+
212
+ # http body (model)
213
+ post_body = opts[:body]
214
+
215
+ # return_type
216
+ return_type = opts[:return_type] || 'SimplePublicObject'
217
+
218
+ # auth_names
219
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
220
+
221
+ new_options = opts.merge(
222
+ :header_params => header_params,
223
+ :query_params => query_params,
224
+ :form_params => form_params,
225
+ :body => post_body,
226
+ :auth_names => auth_names,
227
+ :return_type => return_type
228
+ )
229
+
230
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug "API called: BasicApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
233
+ end
234
+ return data, status_code, headers
235
+ end
236
+
237
+ # List
238
+ # Read a page of objects. Control what is returned via the `properties` query param.
239
+ # @param object_type [String]
240
+ # @param [Hash] opts the optional parameters
241
+ # @option opts [Integer] :limit The maximum number of results to display per page. (default to 10)
242
+ # @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.
243
+ # @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
244
+ # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
245
+ # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
246
+ # @return [CollectionResponseSimplePublicObject]
247
+ def get_page(object_type, opts = {})
248
+ data, _status_code, _headers = get_page_with_http_info(object_type, opts)
249
+ data
250
+ end
251
+
252
+ # List
253
+ # Read a page of objects. Control what is returned via the &#x60;properties&#x60; query param.
254
+ # @param object_type [String]
255
+ # @param [Hash] opts the optional parameters
256
+ # @option opts [Integer] :limit The maximum number of results to display per page.
257
+ # @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.
258
+ # @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
259
+ # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
260
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
261
+ # @return [Array<(CollectionResponseSimplePublicObject, Integer, Hash)>] CollectionResponseSimplePublicObject data, response status code and response headers
262
+ def get_page_with_http_info(object_type, opts = {})
263
+ if @api_client.config.debugging
264
+ @api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
265
+ end
266
+ # verify the required parameter 'object_type' is set
267
+ if @api_client.config.client_side_validation && object_type.nil?
268
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling BasicApi.get_page"
269
+ end
270
+ # resource path
271
+ local_var_path = '/{objectType}'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/'))
272
+
273
+ # query parameters
274
+ query_params = opts[:query_params] || {}
275
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
276
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
277
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
278
+ query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
279
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
280
+
281
+ # header parameters
282
+ header_params = opts[:header_params] || {}
283
+ # HTTP header 'Accept' (if needed)
284
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
285
+
286
+ # form parameters
287
+ form_params = opts[:form_params] || {}
288
+
289
+ # http body (model)
290
+ post_body = opts[:body]
291
+
292
+ # return_type
293
+ return_type = opts[:return_type] || 'CollectionResponseSimplePublicObject'
294
+
295
+ # auth_names
296
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
297
+
298
+ new_options = opts.merge(
299
+ :header_params => header_params,
300
+ :query_params => query_params,
301
+ :form_params => form_params,
302
+ :body => post_body,
303
+ :auth_names => auth_names,
304
+ :return_type => return_type
305
+ )
306
+
307
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug "API called: BasicApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
310
+ end
311
+ return data, status_code, headers
312
+ end
313
+
314
+ # Update
315
+ # Perform a partial update of an Object identified by `{objectId}`. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
316
+ # @param object_type [String]
317
+ # @param object_id [String]
318
+ # @param [Hash] opts the optional parameters
319
+ # @option opts [SimplePublicObjectInput] :body
320
+ # @return [SimplePublicObject]
321
+ def update(object_type, object_id, opts = {})
322
+ data, _status_code, _headers = update_with_http_info(object_type, object_id, opts)
323
+ data
324
+ end
325
+
326
+ # Update
327
+ # Perform a partial update of an Object identified by &#x60;{objectId}&#x60;. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
328
+ # @param object_type [String]
329
+ # @param object_id [String]
330
+ # @param [Hash] opts the optional parameters
331
+ # @option opts [SimplePublicObjectInput] :body
332
+ # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
333
+ def update_with_http_info(object_type, object_id, opts = {})
334
+ if @api_client.config.debugging
335
+ @api_client.config.logger.debug 'Calling API: BasicApi.update ...'
336
+ end
337
+ # verify the required parameter 'object_type' is set
338
+ if @api_client.config.client_side_validation && object_type.nil?
339
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling BasicApi.update"
340
+ end
341
+ # verify the required parameter 'object_id' is set
342
+ if @api_client.config.client_side_validation && object_id.nil?
343
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.update"
344
+ end
345
+ # resource path
346
+ local_var_path = '/{objectType}/{objectId}'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/')).sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s).gsub('%2F', '/'))
347
+
348
+ # query parameters
349
+ query_params = opts[:query_params] || {}
350
+
351
+ # header parameters
352
+ header_params = opts[:header_params] || {}
353
+ # HTTP header 'Accept' (if needed)
354
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
355
+ # HTTP header 'Content-Type'
356
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
357
+
358
+ # form parameters
359
+ form_params = opts[:form_params] || {}
360
+
361
+ # http body (model)
362
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
363
+
364
+ # return_type
365
+ return_type = opts[:return_type] || 'SimplePublicObject'
366
+
367
+ # auth_names
368
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
369
+
370
+ new_options = opts.merge(
371
+ :header_params => header_params,
372
+ :query_params => query_params,
373
+ :form_params => form_params,
374
+ :body => post_body,
375
+ :auth_names => auth_names,
376
+ :return_type => return_type
377
+ )
378
+
379
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
380
+ if @api_client.config.debugging
381
+ @api_client.config.logger.debug "API called: BasicApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
382
+ end
383
+ return data, status_code, headers
384
+ end
385
+ end
386
+ end
387
+ end
388
+ end
389
+ end
390
+ end
@@ -0,0 +1,297 @@
1
+ =begin
2
+ #CRM Objects
3
+
4
+ #CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are native objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Hubspot
16
+ module Client
17
+ module Crm
18
+ module Objects
19
+ module Api
20
+ class BatchApi
21
+ attr_accessor :api_client
22
+
23
+ def initialize(api_client = ApiClient.default)
24
+ @api_client = api_client
25
+ end
26
+ # Archive a batch of objects by ID
27
+ # Archive a list of objects given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
28
+ # @param object_type [String]
29
+ # @param [Hash] opts the optional parameters
30
+ # @option opts [BatchInputSimplePublicObjectId] :body
31
+ # @return [nil]
32
+ def archive_batch(object_type, opts = {})
33
+ archive_batch_with_http_info(object_type, opts)
34
+ nil
35
+ end
36
+
37
+ # Archive a batch of objects by ID
38
+ # Archive a list of objects given a collection of IDs. This method will return a &#x60;204 No Content&#x60; response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
39
+ # @param object_type [String]
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [BatchInputSimplePublicObjectId] :body
42
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
43
+ def archive_batch_with_http_info(object_type, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: BatchApi.archive_batch ...'
46
+ end
47
+ # verify the required parameter 'object_type' is set
48
+ if @api_client.config.client_side_validation && object_type.nil?
49
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling BatchApi.archive_batch"
50
+ end
51
+ # resource path
52
+ local_var_path = '/{objectType}/batch/archive'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/'))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
69
+
70
+ # return_type
71
+ return_type = opts[:return_type]
72
+
73
+ # auth_names
74
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
75
+
76
+ new_options = opts.merge(
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: BatchApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
92
+ # Create a batch of objects
93
+ # Create a batch of objects. This follows the same rules as creating an individual object.
94
+ # @param object_type [String]
95
+ # @param [Hash] opts the optional parameters
96
+ # @option opts [BatchInputSimplePublicObjectInput] :body
97
+ # @return [BatchResponseSimplePublicObject]
98
+ def create_batch(object_type, opts = {})
99
+ data, _status_code, _headers = create_batch_with_http_info(object_type, opts)
100
+ data
101
+ end
102
+
103
+ # Create a batch of objects
104
+ # Create a batch of objects. This follows the same rules as creating an individual object.
105
+ # @param object_type [String]
106
+ # @param [Hash] opts the optional parameters
107
+ # @option opts [BatchInputSimplePublicObjectInput] :body
108
+ # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
109
+ def create_batch_with_http_info(object_type, opts = {})
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug 'Calling API: BatchApi.create_batch ...'
112
+ end
113
+ # verify the required parameter 'object_type' is set
114
+ if @api_client.config.client_side_validation && object_type.nil?
115
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling BatchApi.create_batch"
116
+ end
117
+ # resource path
118
+ local_var_path = '/{objectType}/batch/create'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/'))
119
+
120
+ # query parameters
121
+ query_params = opts[:query_params] || {}
122
+
123
+ # header parameters
124
+ header_params = opts[:header_params] || {}
125
+ # HTTP header 'Accept' (if needed)
126
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
127
+ # HTTP header 'Content-Type'
128
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
129
+
130
+ # form parameters
131
+ form_params = opts[:form_params] || {}
132
+
133
+ # http body (model)
134
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
135
+
136
+ # return_type
137
+ return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
138
+
139
+ # auth_names
140
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
141
+
142
+ new_options = opts.merge(
143
+ :header_params => header_params,
144
+ :query_params => query_params,
145
+ :form_params => form_params,
146
+ :body => post_body,
147
+ :auth_names => auth_names,
148
+ :return_type => return_type
149
+ )
150
+
151
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
152
+ if @api_client.config.debugging
153
+ @api_client.config.logger.debug "API called: BatchApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
+ end
155
+ return data, status_code, headers
156
+ end
157
+
158
+ # Read a batch of objects by ID
159
+ # Read a list of objects given a collection of IDs. Use the `properties` request body property to control which properties are returned.
160
+ # @param object_type [String]
161
+ # @param [Hash] opts the optional parameters
162
+ # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
163
+ # @option opts [BatchReadInputSimplePublicObjectId] :body
164
+ # @return [BatchResponseSimplePublicObject]
165
+ def read_batch(object_type, opts = {})
166
+ data, _status_code, _headers = read_batch_with_http_info(object_type, opts)
167
+ data
168
+ end
169
+
170
+ # Read a batch of objects by ID
171
+ # Read a list of objects given a collection of IDs. Use the &#x60;properties&#x60; request body property to control which properties are returned.
172
+ # @param object_type [String]
173
+ # @param [Hash] opts the optional parameters
174
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
175
+ # @option opts [BatchReadInputSimplePublicObjectId] :body
176
+ # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
177
+ def read_batch_with_http_info(object_type, opts = {})
178
+ if @api_client.config.debugging
179
+ @api_client.config.logger.debug 'Calling API: BatchApi.read_batch ...'
180
+ end
181
+ # verify the required parameter 'object_type' is set
182
+ if @api_client.config.client_side_validation && object_type.nil?
183
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling BatchApi.read_batch"
184
+ end
185
+ # resource path
186
+ local_var_path = '/{objectType}/batch/read'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/'))
187
+
188
+ # query parameters
189
+ query_params = opts[:query_params] || {}
190
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
191
+
192
+ # header parameters
193
+ header_params = opts[:header_params] || {}
194
+ # HTTP header 'Accept' (if needed)
195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
196
+ # HTTP header 'Content-Type'
197
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
198
+
199
+ # form parameters
200
+ form_params = opts[:form_params] || {}
201
+
202
+ # http body (model)
203
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
204
+
205
+ # return_type
206
+ return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
207
+
208
+ # auth_names
209
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
210
+
211
+ new_options = opts.merge(
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => return_type
218
+ )
219
+
220
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+
227
+ # Update a batch of objects
228
+ # Perform a partial upate on a batch of objects. This follows the same rules as performing partial updates on an individual object.
229
+ # @param object_type [String]
230
+ # @param [Hash] opts the optional parameters
231
+ # @option opts [BatchInputSimplePublicObjectBatchInput] :body
232
+ # @return [BatchResponseSimplePublicObject]
233
+ def update_batch(object_type, opts = {})
234
+ data, _status_code, _headers = update_batch_with_http_info(object_type, opts)
235
+ data
236
+ end
237
+
238
+ # Update a batch of objects
239
+ # Perform a partial upate on a batch of objects. This follows the same rules as performing partial updates on an individual object.
240
+ # @param object_type [String]
241
+ # @param [Hash] opts the optional parameters
242
+ # @option opts [BatchInputSimplePublicObjectBatchInput] :body
243
+ # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
244
+ def update_batch_with_http_info(object_type, opts = {})
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug 'Calling API: BatchApi.update_batch ...'
247
+ end
248
+ # verify the required parameter 'object_type' is set
249
+ if @api_client.config.client_side_validation && object_type.nil?
250
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling BatchApi.update_batch"
251
+ end
252
+ # resource path
253
+ local_var_path = '/{objectType}/batch/update'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/'))
254
+
255
+ # query parameters
256
+ query_params = opts[:query_params] || {}
257
+
258
+ # header parameters
259
+ header_params = opts[:header_params] || {}
260
+ # HTTP header 'Accept' (if needed)
261
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
262
+ # HTTP header 'Content-Type'
263
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
264
+
265
+ # form parameters
266
+ form_params = opts[:form_params] || {}
267
+
268
+ # http body (model)
269
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
270
+
271
+ # return_type
272
+ return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
273
+
274
+ # auth_names
275
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
276
+
277
+ new_options = opts.merge(
278
+ :header_params => header_params,
279
+ :query_params => query_params,
280
+ :form_params => form_params,
281
+ :body => post_body,
282
+ :auth_names => auth_names,
283
+ :return_type => return_type
284
+ )
285
+
286
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug "API called: BatchApi#update_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
+ end
290
+ return data, status_code, headers
291
+ end
292
+ end
293
+ end
294
+ end
295
+ end
296
+ end
297
+ end