hubspot-api-client 17.1.1 → 18.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1367) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +205 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +1 -1
  5. data/lib/hubspot/codegen/automation/actions/api/callbacks_api.rb +12 -16
  6. data/lib/hubspot/codegen/automation/actions/api/definitions_api.rb +54 -64
  7. data/lib/hubspot/codegen/automation/actions/api/functions_api.rb +73 -87
  8. data/lib/hubspot/codegen/automation/actions/api/revisions_api.rb +20 -24
  9. data/lib/hubspot/codegen/automation/actions/api_client.rb +2 -2
  10. data/lib/hubspot/codegen/automation/actions/api_error.rb +2 -2
  11. data/lib/hubspot/codegen/automation/actions/configuration.rb +2 -2
  12. data/lib/hubspot/codegen/automation/actions/models/batch_input_callback_completion_batch_request.rb +2 -2
  13. data/lib/hubspot/codegen/automation/actions/models/callback_completion_batch_request.rb +20 -23
  14. data/lib/hubspot/codegen/automation/actions/models/callback_completion_request.rb +2 -4
  15. data/lib/hubspot/codegen/automation/actions/models/{collection_response_extension_action_definition_forward_paging.rb → collection_response_public_action_definition_forward_paging.rb} +18 -18
  16. data/lib/hubspot/codegen/automation/actions/models/{collection_response_action_function_identifier_no_paging.rb → collection_response_public_action_function_identifier_no_paging.rb} +6 -6
  17. data/lib/hubspot/codegen/automation/actions/models/{collection_response_action_revision_forward_paging.rb → collection_response_public_action_revision_forward_paging.rb} +18 -18
  18. data/lib/hubspot/codegen/automation/actions/models/error.rb +52 -52
  19. data/lib/hubspot/codegen/automation/actions/models/error_detail.rb +30 -30
  20. data/lib/hubspot/codegen/automation/actions/models/field_type_definition.rb +87 -44
  21. data/lib/hubspot/codegen/automation/actions/models/forward_paging.rb +2 -2
  22. data/lib/hubspot/codegen/automation/actions/models/input_field_definition.rb +29 -23
  23. data/lib/hubspot/codegen/automation/actions/models/next_page.rb +15 -15
  24. data/lib/hubspot/codegen/automation/actions/models/option.rb +43 -46
  25. data/lib/hubspot/codegen/automation/actions/models/output_field_definition.rb +228 -0
  26. data/lib/hubspot/codegen/automation/actions/models/{extension_action_definition.rb → public_action_definition.rb} +83 -71
  27. data/lib/hubspot/codegen/automation/actions/models/{extension_action_definition_input.rb → public_action_definition_egg.rb} +76 -63
  28. data/lib/hubspot/codegen/automation/actions/models/{extension_action_definition_patch_input_field_dependencies_inner.rb → public_action_definition_input_field_dependencies_inner.rb} +5 -5
  29. data/lib/hubspot/codegen/automation/actions/models/{extension_action_definition_patch.rb → public_action_definition_patch.rb} +59 -44
  30. data/lib/hubspot/codegen/automation/actions/models/{action_function.rb → public_action_function.rb} +7 -11
  31. data/lib/hubspot/codegen/automation/actions/models/{action_function_identifier.rb → public_action_function_identifier.rb} +7 -10
  32. data/lib/hubspot/codegen/automation/actions/models/{action_labels.rb → public_action_labels.rb} +62 -36
  33. data/lib/hubspot/codegen/automation/actions/models/{action_revision.rb → public_action_revision.rb} +32 -35
  34. data/lib/hubspot/codegen/automation/actions/models/{conditional_single_field_dependency.rb → public_conditional_single_field_dependency.rb} +5 -5
  35. data/lib/hubspot/codegen/automation/actions/models/public_execution_translation_rule.rb +244 -0
  36. data/lib/hubspot/codegen/automation/actions/models/{object_request_options.rb → public_object_request_options.rb} +5 -7
  37. data/lib/hubspot/codegen/automation/actions/models/{single_field_dependency.rb → public_single_field_dependency.rb} +5 -5
  38. data/lib/hubspot/codegen/cms/audit_logs/api/audit_logs_api.rb +14 -14
  39. data/lib/hubspot/codegen/cms/audit_logs/api_client.rb +1 -1
  40. data/lib/hubspot/codegen/cms/audit_logs/api_error.rb +1 -1
  41. data/lib/hubspot/codegen/cms/audit_logs/configuration.rb +1 -8
  42. data/lib/hubspot/codegen/cms/audit_logs/models/collection_response_public_audit_log.rb +15 -14
  43. data/lib/hubspot/codegen/cms/audit_logs/models/error.rb +51 -51
  44. data/lib/hubspot/codegen/cms/audit_logs/models/error_detail.rb +29 -29
  45. data/lib/hubspot/codegen/cms/audit_logs/models/next_page.rb +14 -14
  46. data/lib/hubspot/codegen/cms/audit_logs/models/paging.rb +14 -5
  47. data/lib/hubspot/codegen/{files/files/models/collection_response_folder.rb → cms/audit_logs/models/previous_page.rb} +24 -26
  48. data/lib/hubspot/codegen/cms/audit_logs/models/public_audit_log.rb +60 -51
  49. data/lib/hubspot/codegen/cms/blogs/authors/api/blog_authors_api.rb +22 -16
  50. data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +1 -1
  51. data/lib/hubspot/codegen/cms/blogs/authors/api_error.rb +1 -1
  52. data/lib/hubspot/codegen/cms/blogs/authors/configuration.rb +1 -1
  53. data/lib/hubspot/codegen/cms/blogs/authors/models/attach_to_lang_primary_request_v_next.rb +18 -64
  54. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_blog_author.rb +1 -1
  55. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_json_node.rb +1 -1
  56. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_string.rb +1 -1
  57. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author.rb +45 -45
  58. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author_with_errors.rb +57 -57
  59. data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author.rb +142 -142
  60. data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author_clone_request_v_next.rb +12 -12
  61. data/lib/hubspot/codegen/cms/blogs/authors/models/collection_response_with_total_blog_author_forward_paging.rb +14 -14
  62. data/lib/hubspot/codegen/cms/blogs/authors/models/detach_from_lang_group_request_v_next.rb +1 -1
  63. data/lib/hubspot/codegen/cms/blogs/authors/models/error.rb +51 -51
  64. data/lib/hubspot/codegen/cms/blogs/authors/models/error_detail.rb +29 -29
  65. data/lib/hubspot/codegen/cms/blogs/authors/models/forward_paging.rb +1 -1
  66. data/lib/hubspot/codegen/cms/blogs/authors/models/next_page.rb +16 -14
  67. data/lib/hubspot/codegen/cms/blogs/authors/models/set_new_language_primary_request_v_next.rb +1 -1
  68. data/lib/hubspot/codegen/cms/blogs/authors/models/standard_error.rb +53 -53
  69. data/lib/hubspot/codegen/cms/blogs/authors/models/update_languages_request_v_next.rb +19 -41
  70. data/lib/hubspot/codegen/cms/blogs/blog_posts/api/blog_posts_api.rb +46 -40
  71. data/lib/hubspot/codegen/cms/blogs/blog_posts/api_client.rb +1 -1
  72. data/lib/hubspot/codegen/cms/blogs/blog_posts/api_error.rb +1 -1
  73. data/lib/hubspot/codegen/cms/blogs/blog_posts/configuration.rb +1 -8
  74. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/angle.rb +18 -52
  75. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/attach_to_lang_primary_request_v_next.rb +18 -64
  76. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/background_image.rb +1 -35
  77. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/batch_input_blog_post.rb +1 -1
  78. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/batch_input_json_node.rb +1 -1
  79. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/batch_input_string.rb +1 -1
  80. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/batch_response_blog_post.rb +45 -45
  81. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/batch_response_blog_post_with_errors.rb +57 -57
  82. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/blog_post.rb +571 -560
  83. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/blog_post_language_clone_request_v_next.rb +15 -15
  84. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/collection_response_with_total_blog_post_forward_paging.rb +14 -14
  85. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/collection_response_with_total_version_blog_post.rb +14 -14
  86. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/color_stop.rb +1 -1
  87. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/content_clone_request_v_next.rb +15 -15
  88. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/content_language_variation.rb +98 -98
  89. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/content_schedule_request_v_next.rb +20 -20
  90. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/detach_from_lang_group_request_v_next.rb +1 -1
  91. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/error.rb +51 -51
  92. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/error_detail.rb +29 -29
  93. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/forward_paging.rb +1 -1
  94. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/gradient.rb +16 -16
  95. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/layout_section.rb +48 -48
  96. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/next_page.rb +16 -14
  97. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/paging.rb +1 -1
  98. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/previous_page.rb +3 -1
  99. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/rgba_color.rb +27 -27
  100. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/row_meta_data.rb +19 -19
  101. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/set_new_language_primary_request_v_next.rb +1 -1
  102. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/side_or_corner.rb +18 -64
  103. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/standard_error.rb +53 -53
  104. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/styles.rb +47 -93
  105. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/update_languages_request_v_next.rb +19 -41
  106. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/version_blog_post.rb +21 -21
  107. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/version_user.rb +20 -20
  108. data/lib/hubspot/codegen/cms/blogs/tags/api/blog_tags_api.rb +22 -16
  109. data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +1 -1
  110. data/lib/hubspot/codegen/cms/blogs/tags/api_error.rb +1 -1
  111. data/lib/hubspot/codegen/cms/blogs/tags/configuration.rb +1 -1
  112. data/lib/hubspot/codegen/cms/blogs/tags/models/attach_to_lang_primary_request_v_next.rb +18 -64
  113. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_json_node.rb +1 -1
  114. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_string.rb +1 -1
  115. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_tag.rb +1 -1
  116. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag.rb +45 -45
  117. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag_with_errors.rb +57 -57
  118. data/lib/hubspot/codegen/cms/blogs/tags/models/collection_response_with_total_tag_forward_paging.rb +14 -14
  119. data/lib/hubspot/codegen/cms/blogs/tags/models/detach_from_lang_group_request_v_next.rb +1 -1
  120. data/lib/hubspot/codegen/cms/blogs/tags/models/error.rb +51 -51
  121. data/lib/hubspot/codegen/cms/blogs/tags/models/error_detail.rb +29 -29
  122. data/lib/hubspot/codegen/cms/blogs/tags/models/forward_paging.rb +1 -1
  123. data/lib/hubspot/codegen/cms/blogs/tags/models/next_page.rb +16 -14
  124. data/lib/hubspot/codegen/cms/blogs/tags/models/set_new_language_primary_request_v_next.rb +1 -1
  125. data/lib/hubspot/codegen/cms/blogs/tags/models/standard_error.rb +53 -53
  126. data/lib/hubspot/codegen/cms/blogs/tags/models/tag.rb +46 -46
  127. data/lib/hubspot/codegen/cms/blogs/tags/models/tag_clone_request_v_next.rb +27 -27
  128. data/lib/hubspot/codegen/cms/blogs/tags/models/update_languages_request_v_next.rb +19 -41
  129. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +1 -1
  130. data/lib/hubspot/codegen/cms/domains/api_client.rb +1 -1
  131. data/lib/hubspot/codegen/cms/domains/api_error.rb +1 -1
  132. data/lib/hubspot/codegen/cms/domains/configuration.rb +1 -1
  133. data/lib/hubspot/codegen/cms/domains/models/collection_response_with_total_domain_forward_paging.rb +14 -14
  134. data/lib/hubspot/codegen/cms/domains/models/domain.rb +111 -111
  135. data/lib/hubspot/codegen/cms/domains/models/error.rb +51 -51
  136. data/lib/hubspot/codegen/cms/domains/models/error_detail.rb +29 -29
  137. data/lib/hubspot/codegen/cms/domains/models/forward_paging.rb +1 -1
  138. data/lib/hubspot/codegen/cms/domains/models/next_page.rb +14 -14
  139. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +1 -1
  140. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +1 -1
  141. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +1 -1
  142. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
  143. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  144. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  145. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_batch_update_request.rb +1 -1
  146. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_request.rb +2 -1
  147. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +2 -1
  148. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3.rb +31 -31
  149. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +61 -53
  150. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +16 -14
  151. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +16 -14
  152. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +83 -83
  153. data/lib/hubspot/codegen/cms/hubdb/models/column_request.rb +41 -41
  154. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +51 -51
  155. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +29 -29
  156. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +19 -16
  157. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  158. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +1 -1
  159. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +48 -48
  160. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_batch_update_request.rb +21 -21
  161. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_request.rb +12 -12
  162. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +106 -106
  163. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_request.rb +48 -48
  164. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +32 -32
  165. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +16 -14
  166. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +20 -16
  167. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +37 -33
  168. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +55 -47
  169. data/lib/hubspot/codegen/cms/pages/api/landing_pages_api.rb +2754 -0
  170. data/lib/hubspot/codegen/cms/pages/api/site_pages_api.rb +1896 -0
  171. data/lib/hubspot/codegen/cms/pages/api_client.rb +410 -0
  172. data/lib/hubspot/codegen/cms/pages/api_error.rb +61 -0
  173. data/lib/hubspot/codegen/cms/pages/configuration.rb +287 -0
  174. data/lib/hubspot/codegen/cms/pages/models/ab_test_create_request_v_next.rb +244 -0
  175. data/lib/hubspot/codegen/cms/pages/models/ab_test_end_request_v_next.rb +244 -0
  176. data/lib/hubspot/codegen/cms/pages/models/ab_test_rerun_request_v_next.rb +244 -0
  177. data/lib/hubspot/codegen/cms/pages/models/angle.rb +244 -0
  178. data/lib/hubspot/codegen/cms/pages/models/attach_to_lang_primary_request_v_next.rb +269 -0
  179. data/lib/hubspot/codegen/cms/pages/models/background_image.rb +259 -0
  180. data/lib/hubspot/codegen/cms/pages/models/batch_input_content_folder.rb +231 -0
  181. data/lib/hubspot/codegen/cms/pages/models/batch_input_json_node.rb +231 -0
  182. data/lib/hubspot/codegen/cms/pages/models/batch_input_page.rb +231 -0
  183. data/lib/hubspot/codegen/cms/pages/models/batch_input_string.rb +231 -0
  184. data/lib/hubspot/codegen/cms/pages/models/batch_response_content_folder.rb +326 -0
  185. data/lib/hubspot/codegen/{files/files/models/file_action_response.rb → cms/pages/models/batch_response_content_folder_with_errors.rb} +60 -67
  186. data/lib/hubspot/codegen/cms/pages/models/batch_response_page.rb +326 -0
  187. data/lib/hubspot/codegen/{files/files/models/folder_action_response.rb → cms/pages/models/batch_response_page_with_errors.rb} +60 -67
  188. data/lib/hubspot/codegen/cms/pages/models/collection_response_with_total_content_folder_forward_paging.rb +255 -0
  189. data/lib/hubspot/codegen/cms/pages/models/collection_response_with_total_page_forward_paging.rb +255 -0
  190. data/lib/hubspot/codegen/cms/pages/models/collection_response_with_total_version_content_folder.rb +255 -0
  191. data/lib/hubspot/codegen/cms/pages/models/collection_response_with_total_version_page.rb +255 -0
  192. data/lib/hubspot/codegen/cms/pages/models/color_stop.rb +228 -0
  193. data/lib/hubspot/codegen/{crm/associations/models/public_association_definition.rb → cms/pages/models/content_clone_request_v_next.rb} +23 -26
  194. data/lib/hubspot/codegen/{files/files/models/folder.rb → cms/pages/models/content_folder.rb} +77 -74
  195. data/lib/hubspot/codegen/cms/pages/models/content_language_clone_request_v_next.rb +249 -0
  196. data/lib/hubspot/codegen/cms/pages/models/content_language_variation.rb +409 -0
  197. data/lib/hubspot/codegen/{files/files/models/folder_update_task_locator.rb → cms/pages/models/content_schedule_request_v_next.rb} +28 -26
  198. data/lib/hubspot/codegen/cms/pages/models/detach_from_lang_group_request_v_next.rb +229 -0
  199. data/lib/hubspot/codegen/cms/pages/models/error.rb +305 -0
  200. data/lib/hubspot/codegen/cms/pages/models/error_detail.rb +271 -0
  201. data/lib/hubspot/codegen/cms/pages/models/forward_paging.rb +223 -0
  202. data/lib/hubspot/codegen/cms/pages/models/gradient.rb +259 -0
  203. data/lib/hubspot/codegen/cms/pages/models/layout_section.rb +416 -0
  204. data/lib/hubspot/codegen/{files/files → cms/pages}/models/next_page.rb +22 -20
  205. data/lib/hubspot/codegen/cms/pages/models/page.rb +1165 -0
  206. data/lib/hubspot/codegen/cms/pages/models/paging.rb +232 -0
  207. data/lib/hubspot/codegen/{files/files → cms/pages}/models/previous_page.rb +9 -7
  208. data/lib/hubspot/codegen/cms/pages/models/rgba_color.rb +274 -0
  209. data/lib/hubspot/codegen/cms/pages/models/row_meta_data.rb +243 -0
  210. data/lib/hubspot/codegen/cms/pages/models/set_new_language_primary_request_v_next.rb +229 -0
  211. data/lib/hubspot/codegen/cms/pages/models/side_or_corner.rb +244 -0
  212. data/lib/hubspot/codegen/{files/files → cms/pages}/models/standard_error.rb +62 -54
  213. data/lib/hubspot/codegen/{files/files/models/signed_url.rb → cms/pages/models/styles.rb} +78 -86
  214. data/lib/hubspot/codegen/cms/pages/models/update_languages_request_v_next.rb +246 -0
  215. data/lib/hubspot/codegen/cms/pages/models/version_content_folder.rb +271 -0
  216. data/lib/hubspot/codegen/cms/pages/models/version_page.rb +271 -0
  217. data/lib/hubspot/codegen/cms/pages/models/version_user.rb +259 -0
  218. data/lib/hubspot/codegen/cms/performance/api/public_performance_api.rb +1 -1
  219. data/lib/hubspot/codegen/cms/performance/api_client.rb +1 -1
  220. data/lib/hubspot/codegen/cms/performance/api_error.rb +1 -1
  221. data/lib/hubspot/codegen/cms/performance/configuration.rb +1 -1
  222. data/lib/hubspot/codegen/cms/performance/models/error.rb +51 -51
  223. data/lib/hubspot/codegen/cms/performance/models/error_detail.rb +29 -29
  224. data/lib/hubspot/codegen/cms/performance/models/performance_view.rb +105 -120
  225. data/lib/hubspot/codegen/cms/performance/models/public_performance_response.rb +54 -54
  226. data/lib/hubspot/codegen/cms/site_search/api/public_api.rb +3 -3
  227. data/lib/hubspot/codegen/cms/site_search/configuration.rb +0 -7
  228. data/lib/hubspot/codegen/cms/site_search/models/content_search_result.rb +113 -113
  229. data/lib/hubspot/codegen/cms/site_search/models/error.rb +50 -50
  230. data/lib/hubspot/codegen/cms/site_search/models/error_detail.rb +28 -28
  231. data/lib/hubspot/codegen/cms/site_search/models/indexed_field.rb +17 -17
  232. data/lib/hubspot/codegen/cms/site_search/models/public_search_results.rb +27 -27
  233. data/lib/hubspot/codegen/cms/source_code/api/content_api.rb +48 -48
  234. data/lib/hubspot/codegen/cms/source_code/api/extract_api.rb +1 -1
  235. data/lib/hubspot/codegen/cms/source_code/api/metadata_api.rb +4 -1
  236. data/lib/hubspot/codegen/cms/source_code/api/source_code_extract_api.rb +9 -4
  237. data/lib/hubspot/codegen/cms/source_code/api/validation_api.rb +1 -1
  238. data/lib/hubspot/codegen/cms/source_code/configuration.rb +0 -7
  239. data/lib/hubspot/codegen/cms/source_code/models/action_response.rb +25 -25
  240. data/lib/hubspot/codegen/cms/source_code/models/asset_file_metadata.rb +56 -47
  241. data/lib/hubspot/codegen/cms/source_code/models/error.rb +50 -50
  242. data/lib/hubspot/codegen/cms/source_code/models/error_detail.rb +28 -28
  243. data/lib/hubspot/codegen/cms/source_code/models/task_locator.rb +13 -13
  244. data/lib/hubspot/codegen/cms/url_redirects/api/redirects_api.rb +6 -6
  245. data/lib/hubspot/codegen/cms/url_redirects/api_client.rb +1 -1
  246. data/lib/hubspot/codegen/cms/url_redirects/api_error.rb +1 -1
  247. data/lib/hubspot/codegen/cms/url_redirects/configuration.rb +1 -8
  248. data/lib/hubspot/codegen/cms/url_redirects/models/collection_response_with_total_url_mapping_forward_paging.rb +14 -14
  249. data/lib/hubspot/codegen/cms/url_redirects/models/error.rb +51 -51
  250. data/lib/hubspot/codegen/cms/url_redirects/models/error_detail.rb +29 -29
  251. data/lib/hubspot/codegen/cms/url_redirects/models/forward_paging.rb +1 -1
  252. data/lib/hubspot/codegen/cms/url_redirects/models/next_page.rb +14 -14
  253. data/lib/hubspot/codegen/cms/url_redirects/models/url_mapping.rb +91 -91
  254. data/lib/hubspot/codegen/cms/url_redirects/models/url_mapping_create_request_body.rb +58 -58
  255. data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +1 -1
  256. data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +3 -3
  257. data/lib/hubspot/codegen/communication_preferences/configuration.rb +0 -7
  258. data/lib/hubspot/codegen/communication_preferences/models/error.rb +50 -50
  259. data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +28 -28
  260. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +62 -62
  261. data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +12 -12
  262. data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +71 -71
  263. data/lib/hubspot/codegen/conversations/visitor_identification/api/generate_api.rb +1 -1
  264. data/lib/hubspot/codegen/conversations/visitor_identification/configuration.rb +0 -7
  265. data/lib/hubspot/codegen/conversations/visitor_identification/models/error.rb +50 -50
  266. data/lib/hubspot/codegen/conversations/visitor_identification/models/error_detail.rb +28 -28
  267. data/lib/hubspot/codegen/conversations/visitor_identification/models/identification_token_generation_request.rb +14 -14
  268. data/lib/hubspot/codegen/conversations/visitor_identification/models/identification_token_response.rb +1 -0
  269. data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +1 -1
  270. data/lib/hubspot/codegen/crm/associations/api_client.rb +1 -1
  271. data/lib/hubspot/codegen/crm/associations/api_error.rb +1 -1
  272. data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
  273. data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
  274. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +1 -1
  275. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
  276. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +42 -42
  277. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +42 -42
  278. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi_with_errors.rb +53 -53
  279. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_with_errors.rb +53 -53
  280. data/lib/hubspot/codegen/crm/associations/models/error.rb +51 -51
  281. data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +29 -29
  282. data/lib/hubspot/codegen/crm/associations/models/next_page.rb +14 -14
  283. data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
  284. data/lib/hubspot/codegen/crm/associations/models/previous_page.rb +1 -1
  285. data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
  286. data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +14 -14
  287. data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +1 -1
  288. data/lib/hubspot/codegen/crm/associations/models/standard_error.rb +48 -48
  289. data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +1 -1
  290. data/lib/hubspot/codegen/crm/associations/schema/api_client.rb +1 -1
  291. data/lib/hubspot/codegen/crm/associations/schema/api_error.rb +1 -1
  292. data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +1 -1
  293. data/lib/hubspot/codegen/crm/associations/schema/models/collection_response_public_association_definition_no_paging.rb +1 -1
  294. data/lib/hubspot/codegen/crm/associations/schema/models/error.rb +51 -51
  295. data/lib/hubspot/codegen/crm/associations/schema/models/error_detail.rb +29 -29
  296. data/lib/hubspot/codegen/crm/associations/schema/models/public_association_definition.rb +19 -19
  297. data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +15 -15
  298. data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +1 -1
  299. data/lib/hubspot/codegen/crm/associations/v4/api_client.rb +1 -1
  300. data/lib/hubspot/codegen/crm/associations/v4/api_error.rb +1 -1
  301. data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +1 -1
  302. data/lib/hubspot/codegen/crm/associations/v4/models/association_spec.rb +1 -1
  303. data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +1 -1
  304. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_archive.rb +1 -1
  305. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_post.rb +1 -1
  306. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_default_association_multi_post.rb +1 -1
  307. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_fetch_associations_batch_request.rb +1 -1
  308. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +1 -1
  309. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +1 -1
  310. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +1 -1
  311. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +1 -1
  312. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +2 -2
  313. data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +1 -1
  314. data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +1 -1
  315. data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +1 -1
  316. data/lib/hubspot/codegen/crm/associations/v4/models/forward_paging.rb +1 -1
  317. data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +3 -3
  318. data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +2 -2
  319. data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +1 -1
  320. data/lib/hubspot/codegen/crm/associations/v4/models/paging.rb +1 -1
  321. data/lib/hubspot/codegen/crm/associations/v4/models/previous_page.rb +1 -1
  322. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_archive.rb +1 -1
  323. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +1 -1
  324. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +1 -1
  325. data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +1 -1
  326. data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association_multi_post.rb +1 -1
  327. data/lib/hubspot/codegen/crm/associations/v4/models/public_fetch_associations_batch_request.rb +1 -1
  328. data/lib/hubspot/codegen/crm/associations/v4/models/public_object_id.rb +1 -1
  329. data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +2 -2
  330. data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +56 -56
  331. data/lib/hubspot/codegen/crm/associations/v4/schema/api_client.rb +2 -2
  332. data/lib/hubspot/codegen/crm/associations/v4/schema/api_error.rb +1 -1
  333. data/lib/hubspot/codegen/crm/associations/v4/schema/configuration.rb +1 -1
  334. data/lib/hubspot/codegen/crm/associations/v4/schema/models/association_spec_with_label.rb +22 -22
  335. data/lib/hubspot/codegen/crm/associations/v4/schema/models/collection_response_association_spec_with_label_no_paging.rb +4 -4
  336. data/lib/hubspot/codegen/crm/associations/v4/schema/models/error.rb +54 -54
  337. data/lib/hubspot/codegen/crm/associations/v4/schema/models/error_detail.rb +32 -32
  338. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_create_request.rb +28 -19
  339. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_update_request.rb +28 -19
  340. data/lib/hubspot/codegen/crm/companies/api/gdpr_api.rb +94 -0
  341. data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +20 -20
  342. data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +41 -41
  343. data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object_with_errors.rb +52 -52
  344. data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +13 -13
  345. data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  346. data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  347. data/lib/hubspot/codegen/crm/companies/models/error.rb +50 -50
  348. data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +28 -28
  349. data/lib/hubspot/codegen/crm/companies/models/filter.rb +16 -16
  350. data/lib/hubspot/codegen/crm/companies/models/next_page.rb +13 -13
  351. data/lib/hubspot/codegen/crm/companies/models/public_associations_for_object.rb +18 -18
  352. data/lib/hubspot/codegen/crm/companies/models/public_gdpr_delete_input.rb +237 -0
  353. data/lib/hubspot/codegen/crm/companies/models/public_merge_input.rb +18 -18
  354. data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +44 -44
  355. data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +44 -44
  356. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +26 -17
  357. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input_for_create.rb +20 -20
  358. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_with_associations.rb +49 -49
  359. data/lib/hubspot/codegen/crm/companies/models/standard_error.rb +46 -46
  360. data/lib/hubspot/codegen/crm/companies/models/value_with_timestamp.rb +33 -33
  361. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +9 -9
  362. data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +20 -20
  363. data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +41 -41
  364. data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object_with_errors.rb +52 -52
  365. data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +13 -13
  366. data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  367. data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  368. data/lib/hubspot/codegen/crm/contacts/models/error.rb +50 -50
  369. data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +28 -28
  370. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +16 -16
  371. data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +13 -13
  372. data/lib/hubspot/codegen/crm/contacts/models/public_associations_for_object.rb +18 -18
  373. data/lib/hubspot/codegen/crm/contacts/models/public_gdpr_delete_input.rb +13 -13
  374. data/lib/hubspot/codegen/crm/contacts/models/public_merge_input.rb +18 -18
  375. data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +44 -44
  376. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +44 -44
  377. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +26 -17
  378. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input_for_create.rb +20 -20
  379. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_with_associations.rb +49 -49
  380. data/lib/hubspot/codegen/crm/contacts/models/standard_error.rb +46 -46
  381. data/lib/hubspot/codegen/crm/contacts/models/value_with_timestamp.rb +33 -33
  382. data/lib/hubspot/codegen/crm/deals/api/gdpr_api.rb +94 -0
  383. data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +20 -20
  384. data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +41 -41
  385. data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object_with_errors.rb +52 -52
  386. data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +13 -13
  387. data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  388. data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  389. data/lib/hubspot/codegen/crm/deals/models/error.rb +50 -50
  390. data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +28 -28
  391. data/lib/hubspot/codegen/crm/deals/models/filter.rb +16 -16
  392. data/lib/hubspot/codegen/crm/deals/models/next_page.rb +13 -13
  393. data/lib/hubspot/codegen/crm/deals/models/public_associations_for_object.rb +18 -18
  394. data/lib/hubspot/codegen/crm/deals/models/public_gdpr_delete_input.rb +237 -0
  395. data/lib/hubspot/codegen/crm/deals/models/public_merge_input.rb +18 -18
  396. data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +44 -44
  397. data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +44 -44
  398. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +26 -17
  399. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input_for_create.rb +20 -20
  400. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_with_associations.rb +49 -49
  401. data/lib/hubspot/codegen/crm/deals/models/standard_error.rb +46 -46
  402. data/lib/hubspot/codegen/crm/deals/models/value_with_timestamp.rb +33 -33
  403. data/lib/hubspot/codegen/crm/extensions/calling/api/recording_settings_api.rb +227 -0
  404. data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +1 -1
  405. data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +1 -1
  406. data/lib/hubspot/codegen/crm/extensions/calling/api_error.rb +1 -1
  407. data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +1 -1
  408. data/lib/hubspot/codegen/crm/extensions/calling/models/error.rb +51 -51
  409. data/lib/hubspot/codegen/crm/extensions/calling/models/error_detail.rb +29 -29
  410. data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_patch_request.rb +225 -0
  411. data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_request.rb +230 -0
  412. data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_response.rb +230 -0
  413. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +33 -33
  414. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +33 -33
  415. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +58 -58
  416. data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +45 -45
  417. data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +2 -2
  418. data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +1 -1
  419. data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +1 -1
  420. data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
  421. data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +1 -1
  422. data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +1 -1
  423. data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -1
  424. data/lib/hubspot/codegen/crm/{associations/schema/models/batch_response_public_association_multi_with_errors.rb → extensions/cards/models/card_audit_response.rb} +87 -89
  425. data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +17 -17
  426. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -1
  427. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +35 -35
  428. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +69 -17
  429. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +64 -12
  430. data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +3 -3
  431. data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +12 -12
  432. data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -1
  433. data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +51 -51
  434. data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +29 -29
  435. data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +42 -42
  436. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +29 -29
  437. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +25 -25
  438. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result_actions_inner.rb +1 -1
  439. data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +11 -11
  440. data/lib/hubspot/codegen/crm/extensions/cards/models/public_card_fetch_body.rb +246 -0
  441. data/lib/hubspot/codegen/crm/extensions/cards/models/{card_list_response.rb → public_card_list_response.rb} +5 -7
  442. data/lib/hubspot/codegen/crm/extensions/cards/models/{card_response.rb → public_card_response.rb} +62 -51
  443. data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +16 -16
  444. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api/settings_api.rb +4 -4
  445. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +2 -1
  446. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_error.rb +1 -1
  447. data/lib/hubspot/codegen/crm/extensions/videoconferencing/configuration.rb +8 -1
  448. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/error.rb +51 -51
  449. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/error_detail.rb +29 -29
  450. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/external_settings.rb +24 -15
  451. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +1 -1
  452. data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +1 -1
  453. data/lib/hubspot/codegen/crm/imports/api_client.rb +1 -1
  454. data/lib/hubspot/codegen/crm/imports/api_error.rb +1 -1
  455. data/lib/hubspot/codegen/crm/imports/configuration.rb +1 -1
  456. data/lib/hubspot/codegen/crm/imports/models/action_response.rb +26 -26
  457. data/lib/hubspot/codegen/crm/imports/models/collection_response_public_import_error_forward_paging.rb +14 -14
  458. data/lib/hubspot/codegen/crm/imports/models/collection_response_public_import_response.rb +14 -14
  459. data/lib/hubspot/codegen/crm/imports/models/error.rb +51 -51
  460. data/lib/hubspot/codegen/crm/imports/models/error_detail.rb +29 -29
  461. data/lib/hubspot/codegen/crm/imports/models/forward_paging.rb +1 -1
  462. data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +25 -25
  463. data/lib/hubspot/codegen/crm/imports/models/import_template.rb +276 -0
  464. data/lib/hubspot/codegen/crm/imports/models/next_page.rb +14 -14
  465. data/lib/hubspot/codegen/crm/imports/models/paging.rb +1 -1
  466. data/lib/hubspot/codegen/crm/imports/models/previous_page.rb +1 -1
  467. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +60 -65
  468. data/lib/hubspot/codegen/crm/imports/models/public_import_metadata.rb +22 -22
  469. data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +72 -42
  470. data/lib/hubspot/codegen/crm/imports/models/public_object_list_record.rb +1 -1
  471. data/lib/hubspot/codegen/crm/line_items/api/gdpr_api.rb +94 -0
  472. data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +20 -20
  473. data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +41 -41
  474. data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object_with_errors.rb +52 -52
  475. data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +13 -13
  476. data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  477. data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  478. data/lib/hubspot/codegen/crm/line_items/models/error.rb +50 -50
  479. data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +28 -28
  480. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +16 -16
  481. data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +13 -13
  482. data/lib/hubspot/codegen/crm/line_items/models/public_associations_for_object.rb +18 -18
  483. data/lib/hubspot/codegen/crm/line_items/models/public_gdpr_delete_input.rb +237 -0
  484. data/lib/hubspot/codegen/crm/line_items/models/public_merge_input.rb +18 -18
  485. data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +44 -44
  486. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +44 -49
  487. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +21 -17
  488. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +0 -5
  489. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input_for_create.rb +15 -20
  490. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +49 -49
  491. data/lib/hubspot/codegen/crm/line_items/models/standard_error.rb +46 -46
  492. data/lib/hubspot/codegen/crm/line_items/models/value_with_timestamp.rb +33 -33
  493. data/lib/hubspot/codegen/crm/lists/api/lists_api.rb +635 -0
  494. data/lib/hubspot/codegen/crm/lists/api/memberships_api.rb +452 -0
  495. data/lib/hubspot/codegen/{files/files → crm/lists}/api_client.rb +5 -5
  496. data/lib/hubspot/codegen/{files/files → crm/lists}/api_error.rb +4 -4
  497. data/lib/hubspot/codegen/{files/files → crm/lists}/configuration.rb +4 -4
  498. data/lib/hubspot/codegen/{files/files/models/collection_response_file.rb → crm/lists/models/collection_response_long.rb} +22 -22
  499. data/lib/hubspot/codegen/crm/lists/models/error.rb +305 -0
  500. data/lib/hubspot/codegen/crm/lists/models/error_detail.rb +271 -0
  501. data/lib/hubspot/codegen/crm/lists/models/list_create_request.rb +278 -0
  502. data/lib/hubspot/codegen/crm/lists/models/list_create_response.rb +228 -0
  503. data/lib/hubspot/codegen/crm/lists/models/list_fetch_response.rb +228 -0
  504. data/lib/hubspot/codegen/crm/lists/models/list_filter_update_request.rb +228 -0
  505. data/lib/hubspot/codegen/crm/lists/models/list_search_request.rb +266 -0
  506. data/lib/hubspot/codegen/crm/lists/models/list_search_response.rb +276 -0
  507. data/lib/hubspot/codegen/crm/lists/models/list_update_response.rb +223 -0
  508. data/lib/hubspot/codegen/crm/lists/models/lists_by_id_response.rb +231 -0
  509. data/lib/hubspot/codegen/crm/lists/models/membership_change_request.rb +248 -0
  510. data/lib/hubspot/codegen/crm/{objects/models/collection_response_associated_id_forward_paging.rb → lists/models/memberships_update_response.rb} +49 -24
  511. data/lib/hubspot/codegen/crm/lists/models/next_page.rb +239 -0
  512. data/lib/hubspot/codegen/{files/files → crm/lists}/models/paging.rb +7 -7
  513. data/lib/hubspot/codegen/crm/lists/models/previous_page.rb +239 -0
  514. data/lib/hubspot/codegen/crm/lists/models/public_absolute_comparative_timestamp_refine_by.rb +292 -0
  515. data/lib/hubspot/codegen/{files/files/models/file_update_input.rb → crm/lists/models/public_absolute_ranged_timestamp_refine_by.rb} +63 -56
  516. data/lib/hubspot/codegen/crm/lists/models/public_ads_search_filter.rb +336 -0
  517. data/lib/hubspot/codegen/crm/lists/models/public_ads_time_filter.rb +278 -0
  518. data/lib/hubspot/codegen/crm/lists/models/public_all_history_refine_by.rb +264 -0
  519. data/lib/hubspot/codegen/crm/lists/models/public_all_property_types_operation.rb +292 -0
  520. data/lib/hubspot/codegen/crm/lists/models/public_and_filter_branch.rb +310 -0
  521. data/lib/hubspot/codegen/crm/lists/models/public_association_filter_branch.rb +366 -0
  522. data/lib/hubspot/codegen/crm/{deals/models/error_category.rb → lists/models/public_association_in_list_filter.rb} +110 -34
  523. data/lib/hubspot/codegen/crm/lists/models/public_bool_property_operation.rb +306 -0
  524. data/lib/hubspot/codegen/crm/lists/models/public_calendar_date_property_operation.rb +345 -0
  525. data/lib/hubspot/codegen/crm/lists/models/public_campaign_influenced_filter.rb +278 -0
  526. data/lib/hubspot/codegen/crm/lists/models/public_communication_subscription_filter.rb +333 -0
  527. data/lib/hubspot/codegen/crm/lists/models/public_comparative_date_property_operation.rb +315 -0
  528. data/lib/hubspot/codegen/crm/lists/models/public_comparative_property_updated_operation.rb +315 -0
  529. data/lib/hubspot/codegen/crm/lists/models/public_constant_filter.rb +287 -0
  530. data/lib/hubspot/codegen/crm/lists/models/public_cta_analytics_filter.rb +310 -0
  531. data/lib/hubspot/codegen/crm/{tickets/models/error_category.rb → lists/models/public_date_point.rb} +123 -34
  532. data/lib/hubspot/codegen/crm/lists/models/public_date_property_operation.rb +334 -0
  533. data/lib/hubspot/codegen/crm/lists/models/public_date_time_property_operation.rb +320 -0
  534. data/lib/hubspot/codegen/crm/{contacts/models/error_category.rb → lists/models/public_email_event_filter.rb} +108 -34
  535. data/lib/hubspot/codegen/crm/lists/models/public_email_subscription_filter.rb +305 -0
  536. data/lib/hubspot/codegen/crm/lists/models/public_enumeration_property_operation.rb +308 -0
  537. data/lib/hubspot/codegen/crm/lists/models/public_event_analytics_filter.rb +310 -0
  538. data/lib/hubspot/codegen/crm/lists/models/public_event_analytics_filter_coalescing_refine_by.rb +115 -0
  539. data/lib/hubspot/codegen/crm/lists/models/public_event_filter_metadata.rb +242 -0
  540. data/lib/hubspot/codegen/crm/lists/models/public_fiscal_quarter_reference.rb +328 -0
  541. data/lib/hubspot/codegen/crm/lists/models/public_fiscal_year_reference.rb +328 -0
  542. data/lib/hubspot/codegen/crm/lists/models/public_form_submission_filter.rb +317 -0
  543. data/lib/hubspot/codegen/{files/files/models/error_category.rb → crm/lists/models/public_form_submission_on_page_filter.rb} +90 -35
  544. data/lib/hubspot/codegen/crm/lists/models/public_in_list_filter.rb +301 -0
  545. data/lib/hubspot/codegen/{files/files/models/import_from_url_task_locator.rb → crm/lists/models/public_in_list_filter_metadata.rb} +20 -20
  546. data/lib/hubspot/codegen/crm/lists/models/public_index_offset.rb +295 -0
  547. data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point.rb +310 -0
  548. data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point_index_reference.rb +114 -0
  549. data/lib/hubspot/codegen/crm/lists/models/public_integration_event_filter.rb +294 -0
  550. data/lib/hubspot/codegen/crm/lists/models/public_month_reference.rb +314 -0
  551. data/lib/hubspot/codegen/crm/lists/models/public_multi_string_property_operation.rb +308 -0
  552. data/lib/hubspot/codegen/crm/lists/models/public_not_all_filter_branch.rb +310 -0
  553. data/lib/hubspot/codegen/crm/lists/models/public_not_any_filter_branch.rb +310 -0
  554. data/lib/hubspot/codegen/crm/lists/models/public_now_reference.rb +300 -0
  555. data/lib/hubspot/codegen/crm/lists/models/public_num_associations_filter.rb +306 -0
  556. data/lib/hubspot/codegen/crm/lists/models/public_num_occurrences_refine_by.rb +282 -0
  557. data/lib/hubspot/codegen/crm/lists/models/public_number_property_operation.rb +306 -0
  558. data/lib/hubspot/codegen/crm/{products/models/error_category.rb → lists/models/public_object_list.rb} +149 -52
  559. data/lib/hubspot/codegen/crm/lists/models/public_object_list_search_result.rb +381 -0
  560. data/lib/hubspot/codegen/crm/lists/models/public_or_filter_branch.rb +310 -0
  561. data/lib/hubspot/codegen/crm/lists/models/public_page_view_analytics_filter.rb +319 -0
  562. data/lib/hubspot/codegen/crm/lists/models/public_privacy_analytics_filter.rb +292 -0
  563. data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch.rb +352 -0
  564. data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.rb +114 -0
  565. data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filters_inner.rb +130 -0
  566. data/lib/hubspot/codegen/crm/lists/models/public_property_association_in_list_filter.rb +329 -0
  567. data/lib/hubspot/codegen/crm/lists/models/public_property_filter.rb +292 -0
  568. data/lib/hubspot/codegen/crm/lists/models/public_property_filter_operation.rb +123 -0
  569. data/lib/hubspot/codegen/crm/lists/models/public_property_referenced_time.rb +315 -0
  570. data/lib/hubspot/codegen/crm/lists/models/public_quarter_reference.rb +328 -0
  571. data/lib/hubspot/codegen/crm/lists/models/public_ranged_date_property_operation.rb +334 -0
  572. data/lib/hubspot/codegen/crm/lists/models/public_ranged_number_property_operation.rb +320 -0
  573. data/lib/hubspot/codegen/crm/lists/models/public_ranged_time_operation.rb +361 -0
  574. data/lib/hubspot/codegen/crm/lists/models/public_relative_comparative_timestamp_refine_by.rb +292 -0
  575. data/lib/hubspot/codegen/crm/lists/models/public_relative_ranged_timestamp_refine_by.rb +306 -0
  576. data/lib/hubspot/codegen/crm/lists/models/public_restricted_filter_branch.rb +310 -0
  577. data/lib/hubspot/codegen/crm/lists/models/public_rolling_date_range_property_operation.rb +320 -0
  578. data/lib/hubspot/codegen/crm/lists/models/public_rolling_property_updated_operation.rb +306 -0
  579. data/lib/hubspot/codegen/crm/lists/models/public_set_occurrences_refine_by.rb +278 -0
  580. data/lib/hubspot/codegen/crm/lists/models/public_string_property_operation.rb +306 -0
  581. data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_filter.rb +292 -0
  582. data/lib/hubspot/codegen/crm/{companies/models/error_category.rb → lists/models/public_survey_monkey_value_filter.rb} +96 -34
  583. data/lib/hubspot/codegen/{files/files/models/folder_input.rb → crm/lists/models/public_time_offset.rb} +40 -34
  584. data/lib/hubspot/codegen/crm/{associations/models/error_category.rb → lists/models/public_time_point_operation.rb} +96 -34
  585. data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation_time_point.rb +109 -0
  586. data/lib/hubspot/codegen/crm/lists/models/public_today_reference.rb +300 -0
  587. data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter.rb +307 -0
  588. data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter_branch.rb +350 -0
  589. data/lib/hubspot/codegen/crm/lists/models/public_unified_events_in_list_filter.rb +310 -0
  590. data/lib/hubspot/codegen/crm/lists/models/public_webinar_filter.rb +287 -0
  591. data/lib/hubspot/codegen/crm/lists/models/public_week_reference.rb +326 -0
  592. data/lib/hubspot/codegen/crm/lists/models/public_year_reference.rb +328 -0
  593. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +2 -2
  594. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +10 -10
  595. data/lib/hubspot/codegen/crm/objects/calls/api/gdpr_api.rb +96 -0
  596. data/lib/hubspot/codegen/crm/objects/calls/models/batch_read_input_simple_public_object_id.rb +20 -20
  597. data/lib/hubspot/codegen/crm/objects/calls/models/batch_response_simple_public_object.rb +41 -41
  598. data/lib/hubspot/codegen/crm/objects/calls/models/batch_response_simple_public_object_with_errors.rb +52 -52
  599. data/lib/hubspot/codegen/crm/objects/calls/models/collection_response_associated_id.rb +13 -13
  600. data/lib/hubspot/codegen/crm/objects/calls/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  601. data/lib/hubspot/codegen/crm/objects/calls/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  602. data/lib/hubspot/codegen/crm/objects/calls/models/error.rb +50 -50
  603. data/lib/hubspot/codegen/crm/objects/calls/models/error_detail.rb +28 -28
  604. data/lib/hubspot/codegen/crm/objects/calls/models/filter.rb +16 -16
  605. data/lib/hubspot/codegen/crm/objects/calls/models/next_page.rb +13 -13
  606. data/lib/hubspot/codegen/crm/objects/calls/models/public_associations_for_object.rb +18 -18
  607. data/lib/hubspot/codegen/crm/{associations/v4 → objects/calls}/models/public_gdpr_delete_input.rb +7 -7
  608. data/lib/hubspot/codegen/crm/objects/calls/models/public_merge_input.rb +18 -18
  609. data/lib/hubspot/codegen/crm/objects/calls/models/public_object_search_request.rb +44 -44
  610. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object.rb +44 -44
  611. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input.rb +26 -17
  612. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input_for_create.rb +20 -20
  613. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_with_associations.rb +49 -49
  614. data/lib/hubspot/codegen/crm/objects/calls/models/standard_error.rb +46 -46
  615. data/lib/hubspot/codegen/crm/objects/calls/models/value_with_timestamp.rb +33 -33
  616. data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +9 -9
  617. data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +12 -12
  618. data/lib/hubspot/codegen/crm/objects/communications/api/gdpr_api.rb +96 -0
  619. data/lib/hubspot/codegen/crm/objects/communications/api/public_object_api.rb +3 -3
  620. data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +1 -1
  621. data/lib/hubspot/codegen/crm/objects/communications/models/batch_read_input_simple_public_object_id.rb +20 -20
  622. data/lib/hubspot/codegen/crm/objects/communications/models/batch_response_simple_public_object.rb +41 -41
  623. data/lib/hubspot/codegen/crm/objects/communications/models/batch_response_simple_public_object_with_errors.rb +52 -52
  624. data/lib/hubspot/codegen/crm/objects/communications/models/collection_response_associated_id.rb +13 -13
  625. data/lib/hubspot/codegen/crm/objects/communications/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  626. data/lib/hubspot/codegen/crm/objects/communications/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  627. data/lib/hubspot/codegen/crm/objects/communications/models/error.rb +50 -50
  628. data/lib/hubspot/codegen/crm/objects/communications/models/error_detail.rb +28 -28
  629. data/lib/hubspot/codegen/crm/objects/communications/models/filter.rb +16 -16
  630. data/lib/hubspot/codegen/crm/objects/communications/models/next_page.rb +13 -13
  631. data/lib/hubspot/codegen/crm/objects/communications/models/public_associations_for_object.rb +18 -18
  632. data/lib/hubspot/codegen/crm/objects/communications/models/public_gdpr_delete_input.rb +239 -0
  633. data/lib/hubspot/codegen/crm/objects/communications/models/public_merge_input.rb +18 -18
  634. data/lib/hubspot/codegen/crm/objects/communications/models/public_object_search_request.rb +44 -44
  635. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object.rb +44 -44
  636. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input.rb +26 -17
  637. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb +20 -20
  638. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_with_associations.rb +49 -49
  639. data/lib/hubspot/codegen/crm/objects/communications/models/standard_error.rb +46 -46
  640. data/lib/hubspot/codegen/crm/objects/communications/models/value_with_timestamp.rb +33 -33
  641. data/lib/hubspot/codegen/crm/objects/emails/api/gdpr_api.rb +96 -0
  642. data/lib/hubspot/codegen/crm/objects/emails/models/batch_read_input_simple_public_object_id.rb +20 -20
  643. data/lib/hubspot/codegen/crm/objects/emails/models/batch_response_simple_public_object.rb +41 -41
  644. data/lib/hubspot/codegen/crm/objects/emails/models/batch_response_simple_public_object_with_errors.rb +52 -52
  645. data/lib/hubspot/codegen/crm/objects/emails/models/collection_response_associated_id.rb +13 -13
  646. data/lib/hubspot/codegen/crm/objects/emails/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  647. data/lib/hubspot/codegen/crm/objects/emails/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  648. data/lib/hubspot/codegen/crm/objects/emails/models/error.rb +50 -50
  649. data/lib/hubspot/codegen/crm/objects/emails/models/error_detail.rb +28 -28
  650. data/lib/hubspot/codegen/crm/objects/emails/models/filter.rb +16 -16
  651. data/lib/hubspot/codegen/crm/objects/emails/models/next_page.rb +13 -13
  652. data/lib/hubspot/codegen/crm/objects/emails/models/public_associations_for_object.rb +18 -18
  653. data/lib/hubspot/codegen/crm/objects/emails/models/public_gdpr_delete_input.rb +239 -0
  654. data/lib/hubspot/codegen/crm/objects/emails/models/public_merge_input.rb +18 -18
  655. data/lib/hubspot/codegen/crm/objects/emails/models/public_object_search_request.rb +44 -44
  656. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object.rb +44 -44
  657. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input.rb +26 -17
  658. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input_for_create.rb +20 -20
  659. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_with_associations.rb +49 -49
  660. data/lib/hubspot/codegen/crm/objects/emails/models/standard_error.rb +46 -46
  661. data/lib/hubspot/codegen/crm/objects/emails/models/value_with_timestamp.rb +33 -33
  662. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/gdpr_api.rb +96 -0
  663. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +20 -20
  664. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object.rb +41 -41
  665. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors.rb +52 -52
  666. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id.rb +13 -13
  667. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  668. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  669. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error.rb +50 -50
  670. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error_detail.rb +28 -28
  671. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +16 -16
  672. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/next_page.rb +13 -13
  673. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_associations_for_object.rb +18 -18
  674. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_gdpr_delete_input.rb +239 -0
  675. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_merge_input.rb +18 -18
  676. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_search_request.rb +44 -44
  677. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +44 -44
  678. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_batch_input.rb +26 -17
  679. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_input_for_create.rb +20 -20
  680. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations.rb +49 -49
  681. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/standard_error.rb +46 -46
  682. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/value_with_timestamp.rb +33 -33
  683. data/lib/hubspot/codegen/crm/objects/goals/api/basic_api.rb +391 -0
  684. data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +295 -0
  685. data/lib/hubspot/codegen/crm/objects/goals/api/gdpr_api.rb +96 -0
  686. data/lib/hubspot/codegen/crm/objects/goals/api/public_object_api.rb +94 -0
  687. data/lib/hubspot/codegen/crm/objects/goals/api/search_api.rb +92 -0
  688. data/lib/hubspot/codegen/crm/objects/goals/api_client.rb +412 -0
  689. data/lib/hubspot/codegen/crm/objects/goals/api_error.rb +63 -0
  690. data/lib/hubspot/codegen/crm/objects/goals/configuration.rb +289 -0
  691. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/associated_id.rb +7 -7
  692. data/lib/hubspot/codegen/crm/objects/goals/models/association_spec.rb +278 -0
  693. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/batch_input_simple_public_object_batch_input.rb +7 -7
  694. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/batch_input_simple_public_object_id.rb +7 -7
  695. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/batch_input_simple_public_object_input_for_create.rb +7 -7
  696. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/batch_read_input_simple_public_object_id.rb +7 -7
  697. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/batch_response_simple_public_object.rb +7 -7
  698. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/batch_response_simple_public_object_with_errors.rb +8 -8
  699. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/collection_response_associated_id.rb +7 -7
  700. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/collection_response_simple_public_object_with_associations_forward_paging.rb +7 -7
  701. data/lib/hubspot/codegen/crm/objects/goals/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
  702. data/lib/hubspot/codegen/crm/objects/goals/models/error.rb +307 -0
  703. data/lib/hubspot/codegen/crm/objects/goals/models/error_detail.rb +273 -0
  704. data/lib/hubspot/codegen/crm/{associations/schema/models/batch_response_public_association_multi.rb → objects/goals/models/filter.rb} +56 -76
  705. data/lib/hubspot/codegen/crm/objects/goals/models/filter_group.rb +232 -0
  706. data/lib/hubspot/codegen/crm/objects/goals/models/forward_paging.rb +225 -0
  707. data/lib/hubspot/codegen/crm/{associations/schema → objects/goals}/models/next_page.rb +20 -20
  708. data/lib/hubspot/codegen/crm/{associations/schema → objects/goals}/models/paging.rb +7 -7
  709. data/lib/hubspot/codegen/crm/{associations/schema → objects/goals}/models/previous_page.rb +7 -7
  710. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/public_associations_for_object.rb +7 -7
  711. data/lib/hubspot/codegen/crm/objects/goals/models/public_gdpr_delete_input.rb +239 -0
  712. data/lib/hubspot/codegen/crm/objects/goals/models/public_merge_input.rb +244 -0
  713. data/lib/hubspot/codegen/crm/objects/goals/models/public_object_id.rb +230 -0
  714. data/lib/hubspot/codegen/crm/objects/goals/models/public_object_search_request.rb +301 -0
  715. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/simple_public_object.rb +7 -7
  716. data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input.rb +255 -0
  717. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/simple_public_object_id.rb +7 -7
  718. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/simple_public_object_input.rb +7 -7
  719. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/simple_public_object_input_for_create.rb +7 -7
  720. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/simple_public_object_with_associations.rb +7 -7
  721. data/lib/hubspot/codegen/crm/{associations/v4/models/standard_error1.rb → objects/goals/models/standard_error.rb} +8 -8
  722. data/lib/hubspot/codegen/crm/{associations/v4 → objects/goals}/models/value_with_timestamp.rb +7 -7
  723. data/lib/hubspot/codegen/crm/objects/meetings/api/gdpr_api.rb +96 -0
  724. data/lib/hubspot/codegen/crm/objects/meetings/models/batch_read_input_simple_public_object_id.rb +20 -20
  725. data/lib/hubspot/codegen/crm/objects/meetings/models/batch_response_simple_public_object.rb +41 -41
  726. data/lib/hubspot/codegen/crm/objects/meetings/models/batch_response_simple_public_object_with_errors.rb +52 -52
  727. data/lib/hubspot/codegen/crm/objects/meetings/models/collection_response_associated_id.rb +13 -13
  728. data/lib/hubspot/codegen/crm/objects/meetings/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  729. data/lib/hubspot/codegen/crm/objects/meetings/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  730. data/lib/hubspot/codegen/crm/objects/meetings/models/error.rb +50 -50
  731. data/lib/hubspot/codegen/crm/objects/meetings/models/error_detail.rb +28 -28
  732. data/lib/hubspot/codegen/crm/objects/meetings/models/filter.rb +16 -16
  733. data/lib/hubspot/codegen/crm/objects/meetings/models/next_page.rb +13 -13
  734. data/lib/hubspot/codegen/crm/objects/meetings/models/public_associations_for_object.rb +18 -18
  735. data/lib/hubspot/codegen/crm/objects/meetings/models/public_gdpr_delete_input.rb +239 -0
  736. data/lib/hubspot/codegen/crm/objects/meetings/models/public_merge_input.rb +18 -18
  737. data/lib/hubspot/codegen/crm/objects/meetings/models/public_object_search_request.rb +44 -44
  738. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object.rb +44 -44
  739. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input.rb +26 -17
  740. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input_for_create.rb +20 -20
  741. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_with_associations.rb +49 -49
  742. data/lib/hubspot/codegen/crm/objects/meetings/models/standard_error.rb +46 -46
  743. data/lib/hubspot/codegen/crm/objects/meetings/models/value_with_timestamp.rb +33 -33
  744. data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +20 -20
  745. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +41 -41
  746. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +52 -52
  747. data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +13 -13
  748. data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  749. data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  750. data/lib/hubspot/codegen/crm/objects/models/error.rb +50 -50
  751. data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +28 -28
  752. data/lib/hubspot/codegen/crm/objects/models/filter.rb +16 -16
  753. data/lib/hubspot/codegen/crm/objects/models/next_page.rb +13 -13
  754. data/lib/hubspot/codegen/crm/objects/models/public_associations_for_object.rb +18 -18
  755. data/lib/hubspot/codegen/crm/objects/models/public_gdpr_delete_input.rb +13 -13
  756. data/lib/hubspot/codegen/crm/objects/models/public_merge_input.rb +18 -18
  757. data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +44 -44
  758. data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +44 -44
  759. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +28 -17
  760. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +20 -20
  761. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +49 -49
  762. data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +46 -46
  763. data/lib/hubspot/codegen/crm/objects/models/value_with_timestamp.rb +33 -33
  764. data/lib/hubspot/codegen/crm/objects/notes/api/gdpr_api.rb +96 -0
  765. data/lib/hubspot/codegen/crm/objects/notes/models/batch_read_input_simple_public_object_id.rb +20 -20
  766. data/lib/hubspot/codegen/crm/objects/notes/models/batch_response_simple_public_object.rb +41 -41
  767. data/lib/hubspot/codegen/crm/objects/notes/models/batch_response_simple_public_object_with_errors.rb +52 -52
  768. data/lib/hubspot/codegen/crm/objects/notes/models/collection_response_associated_id.rb +13 -13
  769. data/lib/hubspot/codegen/crm/objects/notes/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  770. data/lib/hubspot/codegen/crm/objects/notes/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  771. data/lib/hubspot/codegen/crm/objects/notes/models/error.rb +50 -50
  772. data/lib/hubspot/codegen/crm/objects/notes/models/error_detail.rb +28 -28
  773. data/lib/hubspot/codegen/crm/objects/notes/models/filter.rb +16 -16
  774. data/lib/hubspot/codegen/crm/objects/notes/models/next_page.rb +13 -13
  775. data/lib/hubspot/codegen/crm/objects/notes/models/public_associations_for_object.rb +18 -18
  776. data/lib/hubspot/codegen/crm/objects/notes/models/public_gdpr_delete_input.rb +239 -0
  777. data/lib/hubspot/codegen/crm/objects/notes/models/public_merge_input.rb +18 -18
  778. data/lib/hubspot/codegen/crm/objects/notes/models/public_object_search_request.rb +44 -44
  779. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object.rb +44 -44
  780. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input.rb +26 -17
  781. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input_for_create.rb +20 -20
  782. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_with_associations.rb +49 -49
  783. data/lib/hubspot/codegen/crm/objects/notes/models/standard_error.rb +46 -46
  784. data/lib/hubspot/codegen/crm/objects/notes/models/value_with_timestamp.rb +33 -33
  785. data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +33 -33
  786. data/lib/hubspot/codegen/crm/objects/postal_mail/api/gdpr_api.rb +96 -0
  787. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_read_input_simple_public_object_id.rb +20 -20
  788. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_response_simple_public_object.rb +41 -41
  789. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_response_simple_public_object_with_errors.rb +52 -52
  790. data/lib/hubspot/codegen/crm/objects/postal_mail/models/collection_response_associated_id.rb +13 -13
  791. data/lib/hubspot/codegen/crm/objects/postal_mail/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  792. data/lib/hubspot/codegen/crm/objects/postal_mail/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  793. data/lib/hubspot/codegen/crm/objects/postal_mail/models/error.rb +50 -50
  794. data/lib/hubspot/codegen/crm/objects/postal_mail/models/error_detail.rb +28 -28
  795. data/lib/hubspot/codegen/crm/objects/postal_mail/models/filter.rb +16 -16
  796. data/lib/hubspot/codegen/crm/objects/postal_mail/models/next_page.rb +13 -13
  797. data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_associations_for_object.rb +18 -18
  798. data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_gdpr_delete_input.rb +239 -0
  799. data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_merge_input.rb +18 -18
  800. data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_object_search_request.rb +44 -44
  801. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object.rb +44 -44
  802. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input.rb +26 -17
  803. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input_for_create.rb +20 -20
  804. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_with_associations.rb +49 -49
  805. data/lib/hubspot/codegen/crm/objects/postal_mail/models/standard_error.rb +46 -46
  806. data/lib/hubspot/codegen/crm/objects/postal_mail/models/value_with_timestamp.rb +33 -33
  807. data/lib/hubspot/codegen/crm/objects/tasks/api/gdpr_api.rb +96 -0
  808. data/lib/hubspot/codegen/crm/objects/tasks/models/batch_read_input_simple_public_object_id.rb +20 -20
  809. data/lib/hubspot/codegen/crm/objects/tasks/models/batch_response_simple_public_object.rb +41 -41
  810. data/lib/hubspot/codegen/crm/objects/tasks/models/batch_response_simple_public_object_with_errors.rb +52 -52
  811. data/lib/hubspot/codegen/crm/objects/tasks/models/collection_response_associated_id.rb +13 -13
  812. data/lib/hubspot/codegen/crm/objects/tasks/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  813. data/lib/hubspot/codegen/crm/objects/tasks/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  814. data/lib/hubspot/codegen/crm/objects/tasks/models/error.rb +50 -50
  815. data/lib/hubspot/codegen/crm/objects/tasks/models/error_detail.rb +28 -28
  816. data/lib/hubspot/codegen/crm/objects/tasks/models/filter.rb +16 -16
  817. data/lib/hubspot/codegen/crm/objects/tasks/models/next_page.rb +13 -13
  818. data/lib/hubspot/codegen/crm/objects/tasks/models/public_associations_for_object.rb +18 -18
  819. data/lib/hubspot/codegen/crm/objects/tasks/models/public_gdpr_delete_input.rb +239 -0
  820. data/lib/hubspot/codegen/crm/objects/tasks/models/public_merge_input.rb +18 -18
  821. data/lib/hubspot/codegen/crm/objects/tasks/models/public_object_search_request.rb +44 -44
  822. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object.rb +44 -44
  823. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input.rb +26 -17
  824. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input_for_create.rb +20 -20
  825. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_with_associations.rb +49 -49
  826. data/lib/hubspot/codegen/crm/objects/tasks/models/standard_error.rb +46 -46
  827. data/lib/hubspot/codegen/crm/objects/tasks/models/value_with_timestamp.rb +33 -33
  828. data/lib/hubspot/codegen/crm/objects/taxes/api/basic_api.rb +391 -0
  829. data/lib/hubspot/codegen/crm/objects/taxes/api/batch_api.rb +295 -0
  830. data/lib/hubspot/codegen/crm/objects/taxes/api/gdpr_api.rb +96 -0
  831. data/lib/hubspot/codegen/crm/objects/taxes/api/public_object_api.rb +94 -0
  832. data/lib/hubspot/codegen/crm/objects/taxes/api/search_api.rb +92 -0
  833. data/lib/hubspot/codegen/crm/objects/taxes/api_client.rb +412 -0
  834. data/lib/hubspot/codegen/crm/objects/taxes/api_error.rb +63 -0
  835. data/lib/hubspot/codegen/crm/objects/taxes/configuration.rb +289 -0
  836. data/lib/hubspot/codegen/crm/{associations/schema → objects/taxes}/models/associated_id.rb +7 -7
  837. data/lib/hubspot/codegen/crm/objects/taxes/models/association_spec.rb +278 -0
  838. data/lib/hubspot/codegen/crm/objects/taxes/models/batch_input_simple_public_object_batch_input.rb +232 -0
  839. data/lib/hubspot/codegen/crm/{associations/schema/models/batch_input_public_object_id.rb → objects/taxes/models/batch_input_simple_public_object_id.rb} +9 -9
  840. data/lib/hubspot/codegen/crm/{associations/schema/models/batch_input_public_association.rb → objects/taxes/models/batch_input_simple_public_object_input_for_create.rb} +9 -9
  841. data/lib/hubspot/codegen/crm/objects/taxes/models/batch_read_input_simple_public_object_id.rb +273 -0
  842. data/lib/hubspot/codegen/crm/{associations/schema/models/batch_response_public_association.rb → objects/taxes/models/batch_response_simple_public_object.rb} +49 -49
  843. data/lib/hubspot/codegen/crm/{associations/schema/models/batch_response_public_association_with_errors.rb → objects/taxes/models/batch_response_simple_public_object_with_errors.rb} +60 -60
  844. data/lib/hubspot/codegen/crm/{associations/v4/models/collection_response_association_spec_with_label_no_paging.rb → objects/taxes/models/collection_response_associated_id.rb} +19 -10
  845. data/lib/hubspot/codegen/crm/objects/taxes/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
  846. data/lib/hubspot/codegen/crm/objects/taxes/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
  847. data/lib/hubspot/codegen/crm/objects/taxes/models/error.rb +307 -0
  848. data/lib/hubspot/codegen/crm/objects/taxes/models/error_detail.rb +273 -0
  849. data/lib/hubspot/codegen/crm/objects/taxes/models/filter.rb +308 -0
  850. data/lib/hubspot/codegen/crm/objects/taxes/models/filter_group.rb +232 -0
  851. data/lib/hubspot/codegen/crm/objects/taxes/models/forward_paging.rb +225 -0
  852. data/lib/hubspot/codegen/crm/objects/taxes/models/next_page.rb +239 -0
  853. data/lib/hubspot/codegen/crm/objects/taxes/models/paging.rb +234 -0
  854. data/lib/hubspot/codegen/crm/objects/taxes/models/previous_page.rb +239 -0
  855. data/lib/hubspot/codegen/crm/{associations/v4/models/public_association_definition_create_request.rb → objects/taxes/models/public_associations_for_object.rb} +29 -27
  856. data/lib/hubspot/codegen/crm/objects/taxes/models/public_gdpr_delete_input.rb +239 -0
  857. data/lib/hubspot/codegen/crm/objects/taxes/models/public_merge_input.rb +244 -0
  858. data/lib/hubspot/codegen/crm/objects/taxes/models/public_object_id.rb +230 -0
  859. data/lib/hubspot/codegen/crm/objects/taxes/models/public_object_search_request.rb +301 -0
  860. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object.rb +303 -0
  861. data/lib/hubspot/codegen/crm/{associations/v4 → objects/taxes}/models/simple_public_object_batch_input.rb +17 -8
  862. data/lib/hubspot/codegen/crm/{associations/schema/models/public_object_id.rb → objects/taxes/models/simple_public_object_id.rb} +8 -9
  863. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input.rb +232 -0
  864. data/lib/hubspot/codegen/crm/{associations/v4/models/public_association_definition_update_request.rb → objects/taxes/models/simple_public_object_input_for_create.rb} +31 -27
  865. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_with_associations.rb +314 -0
  866. data/lib/hubspot/codegen/crm/{associations/schema → objects/taxes}/models/standard_error.rb +54 -54
  867. data/lib/hubspot/codegen/crm/objects/taxes/models/value_with_timestamp.rb +285 -0
  868. data/lib/hubspot/codegen/crm/owners/api/owners_api.rb +1 -1
  869. data/lib/hubspot/codegen/crm/owners/api_client.rb +1 -1
  870. data/lib/hubspot/codegen/crm/owners/api_error.rb +1 -1
  871. data/lib/hubspot/codegen/crm/owners/configuration.rb +1 -1
  872. data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner_forward_paging.rb +14 -14
  873. data/lib/hubspot/codegen/crm/owners/models/error.rb +51 -51
  874. data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +29 -29
  875. data/lib/hubspot/codegen/crm/owners/models/forward_paging.rb +1 -1
  876. data/lib/hubspot/codegen/crm/owners/models/next_page.rb +14 -14
  877. data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +51 -51
  878. data/lib/hubspot/codegen/crm/owners/models/public_team.rb +16 -16
  879. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_audits_api.rb +1 -1
  880. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stage_audits_api.rb +1 -1
  881. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +1 -1
  882. data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +10 -1
  883. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +1 -1
  884. data/lib/hubspot/codegen/crm/pipelines/api_error.rb +1 -1
  885. data/lib/hubspot/codegen/crm/pipelines/configuration.rb +1 -1
  886. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_no_paging.rb +1 -1
  887. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage_no_paging.rb +1 -1
  888. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_public_audit_info_no_paging.rb +1 -1
  889. data/lib/hubspot/codegen/crm/pipelines/models/error.rb +51 -51
  890. data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +29 -29
  891. data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +62 -62
  892. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +20 -20
  893. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +16 -16
  894. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +105 -62
  895. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +24 -24
  896. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +21 -21
  897. data/lib/hubspot/codegen/crm/pipelines/models/public_audit_info.rb +40 -40
  898. data/lib/hubspot/codegen/crm/products/api/gdpr_api.rb +94 -0
  899. data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +20 -20
  900. data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +41 -41
  901. data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object_with_errors.rb +52 -52
  902. data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +13 -13
  903. data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  904. data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  905. data/lib/hubspot/codegen/crm/products/models/error.rb +50 -50
  906. data/lib/hubspot/codegen/crm/products/models/error_detail.rb +28 -28
  907. data/lib/hubspot/codegen/crm/products/models/filter.rb +16 -16
  908. data/lib/hubspot/codegen/crm/products/models/next_page.rb +13 -13
  909. data/lib/hubspot/codegen/crm/products/models/public_associations_for_object.rb +18 -18
  910. data/lib/hubspot/codegen/crm/products/models/public_gdpr_delete_input.rb +237 -0
  911. data/lib/hubspot/codegen/crm/products/models/public_merge_input.rb +18 -18
  912. data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +44 -44
  913. data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +44 -49
  914. data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +21 -22
  915. data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -5
  916. data/lib/hubspot/codegen/crm/products/models/simple_public_object_input_for_create.rb +16 -25
  917. data/lib/hubspot/codegen/crm/products/models/simple_public_object_with_associations.rb +49 -49
  918. data/lib/hubspot/codegen/crm/products/models/standard_error.rb +46 -46
  919. data/lib/hubspot/codegen/crm/products/models/value_with_timestamp.rb +33 -33
  920. data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +41 -41
  921. data/lib/hubspot/codegen/crm/properties/models/batch_response_property_with_errors.rb +52 -52
  922. data/lib/hubspot/codegen/crm/properties/models/error.rb +50 -50
  923. data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +28 -28
  924. data/lib/hubspot/codegen/crm/properties/models/option.rb +34 -34
  925. data/lib/hubspot/codegen/crm/properties/models/option_input.rb +34 -34
  926. data/lib/hubspot/codegen/crm/properties/models/property.rb +152 -150
  927. data/lib/hubspot/codegen/crm/properties/models/property_create.rb +79 -79
  928. data/lib/hubspot/codegen/crm/properties/models/property_group.rb +25 -25
  929. data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +14 -14
  930. data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +14 -14
  931. data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +28 -28
  932. data/lib/hubspot/codegen/crm/properties/models/property_update.rb +58 -58
  933. data/lib/hubspot/codegen/crm/properties/models/standard_error.rb +46 -46
  934. data/lib/hubspot/codegen/crm/quotes/api/gdpr_api.rb +94 -0
  935. data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +20 -20
  936. data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +41 -41
  937. data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object_with_errors.rb +52 -52
  938. data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +13 -13
  939. data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  940. data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  941. data/lib/hubspot/codegen/crm/quotes/models/error.rb +50 -50
  942. data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +28 -28
  943. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +16 -16
  944. data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +13 -13
  945. data/lib/hubspot/codegen/crm/quotes/models/public_associations_for_object.rb +18 -18
  946. data/lib/hubspot/codegen/crm/quotes/models/public_gdpr_delete_input.rb +237 -0
  947. data/lib/hubspot/codegen/crm/quotes/models/public_merge_input.rb +18 -18
  948. data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +44 -44
  949. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +44 -44
  950. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +26 -17
  951. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input_for_create.rb +20 -20
  952. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +49 -49
  953. data/lib/hubspot/codegen/crm/quotes/models/standard_error.rb +46 -46
  954. data/lib/hubspot/codegen/crm/quotes/models/value_with_timestamp.rb +33 -33
  955. data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +23 -23
  956. data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +14 -14
  957. data/lib/hubspot/codegen/crm/schemas/models/error.rb +50 -50
  958. data/lib/hubspot/codegen/crm/schemas/models/error_detail.rb +28 -28
  959. data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +94 -110
  960. data/lib/hubspot/codegen/crm/schemas/models/object_schema_egg.rb +50 -51
  961. data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +82 -98
  962. data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_labels.rb +14 -14
  963. data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_patch.rb +28 -19
  964. data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +152 -46
  965. data/lib/hubspot/codegen/crm/schemas/models/option.rb +34 -34
  966. data/lib/hubspot/codegen/crm/schemas/models/option_input.rb +39 -39
  967. data/lib/hubspot/codegen/crm/schemas/models/property.rb +150 -140
  968. data/lib/hubspot/codegen/crm/schemas/models/property_modification_metadata.rb +32 -28
  969. data/lib/hubspot/codegen/crm/tickets/api/gdpr_api.rb +94 -0
  970. data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +20 -20
  971. data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +41 -41
  972. data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object_with_errors.rb +52 -52
  973. data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +13 -13
  974. data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  975. data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object_forward_paging.rb +13 -13
  976. data/lib/hubspot/codegen/crm/tickets/models/error.rb +50 -50
  977. data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +28 -28
  978. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +16 -16
  979. data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +13 -13
  980. data/lib/hubspot/codegen/crm/tickets/models/public_associations_for_object.rb +18 -18
  981. data/lib/hubspot/codegen/crm/tickets/models/public_gdpr_delete_input.rb +237 -0
  982. data/lib/hubspot/codegen/crm/tickets/models/public_merge_input.rb +18 -18
  983. data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +44 -44
  984. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +44 -44
  985. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +26 -17
  986. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input_for_create.rb +20 -20
  987. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_with_associations.rb +49 -49
  988. data/lib/hubspot/codegen/crm/tickets/models/standard_error.rb +46 -46
  989. data/lib/hubspot/codegen/crm/tickets/models/value_with_timestamp.rb +33 -33
  990. data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +6 -6
  991. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +1 -1
  992. data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +1 -1
  993. data/lib/hubspot/codegen/crm/timeline/api_client.rb +1 -1
  994. data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
  995. data/lib/hubspot/codegen/crm/timeline/configuration.rb +1 -1
  996. data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +1 -1
  997. data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +45 -45
  998. data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response_with_errors.rb +53 -53
  999. data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template_no_paging.rb +1 -1
  1000. data/lib/hubspot/codegen/crm/timeline/models/error.rb +51 -51
  1001. data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +29 -29
  1002. data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +1 -1
  1003. data/lib/hubspot/codegen/crm/timeline/models/standard_error.rb +48 -48
  1004. data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +56 -56
  1005. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +17 -17
  1006. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +70 -70
  1007. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +29 -29
  1008. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +22 -22
  1009. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +34 -39
  1010. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +19 -19
  1011. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +17 -22
  1012. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +25 -25
  1013. data/lib/hubspot/codegen/events/api/events_api.rb +35 -22
  1014. data/lib/hubspot/codegen/events/api_client.rb +1 -1
  1015. data/lib/hubspot/codegen/events/api_error.rb +1 -1
  1016. data/lib/hubspot/codegen/events/configuration.rb +1 -1
  1017. data/lib/hubspot/codegen/events/models/collection_response_external_unified_event.rb +15 -14
  1018. data/lib/hubspot/codegen/events/models/error.rb +51 -51
  1019. data/lib/hubspot/codegen/events/models/error_detail.rb +29 -29
  1020. data/lib/hubspot/codegen/events/models/external_unified_event.rb +43 -48
  1021. data/lib/hubspot/codegen/events/models/next_page.rb +16 -14
  1022. data/lib/hubspot/codegen/events/models/paging.rb +14 -5
  1023. data/lib/hubspot/codegen/events/models/previous_page.rb +235 -0
  1024. data/lib/hubspot/codegen/events/send/api/custom_event_data_api.rb +94 -0
  1025. data/lib/hubspot/codegen/events/send/api_client.rb +410 -0
  1026. data/lib/hubspot/codegen/events/send/api_error.rb +61 -0
  1027. data/lib/hubspot/codegen/events/send/configuration.rb +287 -0
  1028. data/lib/hubspot/codegen/events/send/models/behavioral_event_http_completion_request.rb +290 -0
  1029. data/lib/hubspot/codegen/{files/files → events/send}/models/error.rb +57 -57
  1030. data/lib/hubspot/codegen/{files/files → events/send}/models/error_detail.rb +35 -35
  1031. data/lib/hubspot/codegen/files/api/files_api.rb +880 -0
  1032. data/lib/hubspot/codegen/files/api/folders_api.rb +603 -0
  1033. data/lib/hubspot/codegen/files/api_client.rb +408 -0
  1034. data/lib/hubspot/codegen/files/api_error.rb +59 -0
  1035. data/lib/hubspot/codegen/files/configuration.rb +285 -0
  1036. data/lib/hubspot/codegen/files/models/collection_response_file.rb +238 -0
  1037. data/lib/hubspot/codegen/files/models/collection_response_folder.rb +238 -0
  1038. data/lib/hubspot/codegen/files/models/error.rb +303 -0
  1039. data/lib/hubspot/codegen/files/models/error_detail.rb +269 -0
  1040. data/lib/hubspot/codegen/files/models/file.rb +460 -0
  1041. data/lib/hubspot/codegen/files/models/file_action_response.rb +359 -0
  1042. data/lib/hubspot/codegen/files/models/file_stat.rb +230 -0
  1043. data/lib/hubspot/codegen/{webhooks/models/error_category.rb → files/models/file_update_input.rb} +63 -32
  1044. data/lib/hubspot/codegen/files/models/folder.rb +312 -0
  1045. data/lib/hubspot/codegen/files/models/folder_action_response.rb +359 -0
  1046. data/lib/hubspot/codegen/files/models/folder_input.rb +247 -0
  1047. data/lib/hubspot/codegen/files/models/folder_update_input.rb +247 -0
  1048. data/lib/hubspot/codegen/files/models/folder_update_task_locator.rb +244 -0
  1049. data/lib/hubspot/codegen/files/models/import_from_url_input.rb +370 -0
  1050. data/lib/hubspot/codegen/files/models/import_from_url_task_locator.rb +244 -0
  1051. data/lib/hubspot/codegen/files/models/next_page.rb +235 -0
  1052. data/lib/hubspot/codegen/files/models/paging.rb +230 -0
  1053. data/lib/hubspot/codegen/files/models/previous_page.rb +235 -0
  1054. data/lib/hubspot/codegen/files/models/signed_url.rb +322 -0
  1055. data/lib/hubspot/codegen/files/models/standard_error.rb +320 -0
  1056. data/lib/hubspot/codegen/marketing/events/api/attendance_subscriber_state_changes_api.rb +3 -3
  1057. data/lib/hubspot/codegen/marketing/events/api/basic_api.rb +460 -0
  1058. data/lib/hubspot/codegen/marketing/events/api/batch_api.rb +162 -0
  1059. data/lib/hubspot/codegen/marketing/events/api/marketing_events_external_api.rb +1 -704
  1060. data/lib/hubspot/codegen/marketing/events/api/search_api.rb +1 -1
  1061. data/lib/hubspot/codegen/marketing/events/api/{settings_external_api.rb → settings_api.rb} +27 -19
  1062. data/lib/hubspot/codegen/marketing/events/api/subscriber_state_changes_api.rb +200 -0
  1063. data/lib/hubspot/codegen/marketing/events/api_client.rb +1 -1
  1064. data/lib/hubspot/codegen/marketing/events/api_error.rb +1 -1
  1065. data/lib/hubspot/codegen/marketing/events/configuration.rb +1 -8
  1066. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_create_request_params.rb +2 -1
  1067. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber.rb +1 -1
  1068. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_external_unique_identifier.rb +1 -1
  1069. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_subscriber.rb +1 -1
  1070. data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response.rb +61 -53
  1071. data/lib/hubspot/codegen/marketing/events/models/batch_response_subscriber_email_response.rb +53 -53
  1072. data/lib/hubspot/codegen/marketing/events/models/batch_response_subscriber_vid_response.rb +53 -53
  1073. data/lib/hubspot/codegen/marketing/events/models/collection_response_marketing_event_external_unique_identifier_no_paging.rb +1 -1
  1074. data/lib/hubspot/codegen/marketing/events/models/error.rb +51 -51
  1075. data/lib/hubspot/codegen/marketing/events/models/error_detail.rb +29 -29
  1076. data/lib/hubspot/codegen/marketing/events/models/event_detail_settings.rb +1 -1
  1077. data/lib/hubspot/codegen/marketing/events/models/event_detail_settings_url.rb +1 -1
  1078. data/lib/hubspot/codegen/marketing/events/models/marketing_event_complete_request_params.rb +1 -1
  1079. data/lib/hubspot/codegen/marketing/events/models/marketing_event_create_request_params.rb +75 -75
  1080. data/lib/hubspot/codegen/marketing/events/models/marketing_event_default_response.rb +57 -57
  1081. data/lib/hubspot/codegen/marketing/events/models/marketing_event_email_subscriber.rb +23 -23
  1082. data/lib/hubspot/codegen/marketing/events/models/marketing_event_external_unique_identifier.rb +20 -20
  1083. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response.rb +69 -66
  1084. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response.rb +120 -117
  1085. data/lib/hubspot/codegen/marketing/events/models/marketing_event_subscriber.rb +15 -15
  1086. data/lib/hubspot/codegen/marketing/events/models/marketing_event_update_request_params.rb +52 -52
  1087. data/lib/hubspot/codegen/marketing/events/models/property_value.rb +114 -95
  1088. data/lib/hubspot/codegen/marketing/events/models/standard_error.rb +56 -48
  1089. data/lib/hubspot/codegen/marketing/events/models/subscriber_email_response.rb +1 -1
  1090. data/lib/hubspot/codegen/marketing/events/models/subscriber_vid_response.rb +1 -1
  1091. data/lib/hubspot/codegen/marketing/forms/api/forms_api.rb +1 -1
  1092. data/lib/hubspot/codegen/marketing/forms/api_client.rb +1 -1
  1093. data/lib/hubspot/codegen/marketing/forms/api_error.rb +1 -1
  1094. data/lib/hubspot/codegen/marketing/forms/configuration.rb +1 -1
  1095. data/lib/hubspot/codegen/marketing/forms/models/collection_response_form_definition_base_forward_paging.rb +14 -14
  1096. data/lib/hubspot/codegen/marketing/forms/models/collection_response_form_definition_base_forward_paging_results_inner.rb +1 -1
  1097. data/lib/hubspot/codegen/marketing/forms/models/datepicker_field.rb +31 -1
  1098. data/lib/hubspot/codegen/marketing/forms/models/dependent_field.rb +6 -1
  1099. data/lib/hubspot/codegen/marketing/forms/models/dependent_field_dependent_field.rb +2 -1
  1100. data/lib/hubspot/codegen/marketing/forms/models/dependent_field_filter.rb +1 -1
  1101. data/lib/hubspot/codegen/marketing/forms/models/dropdown_field.rb +41 -1
  1102. data/lib/hubspot/codegen/marketing/forms/models/email_field.rb +36 -1
  1103. data/lib/hubspot/codegen/marketing/forms/models/email_field_validation.rb +1 -1
  1104. data/lib/hubspot/codegen/marketing/forms/models/enumerated_field_option.rb +1 -1
  1105. data/lib/hubspot/codegen/marketing/forms/models/error.rb +51 -51
  1106. data/lib/hubspot/codegen/marketing/forms/models/error_detail.rb +29 -29
  1107. data/lib/hubspot/codegen/marketing/forms/models/field_group.rb +12 -1
  1108. data/lib/hubspot/codegen/marketing/forms/models/file_field.rb +36 -1
  1109. data/lib/hubspot/codegen/marketing/forms/models/form_definition_base.rb +1 -1
  1110. data/lib/hubspot/codegen/marketing/forms/models/form_definition_create_request_base.rb +1 -1
  1111. data/lib/hubspot/codegen/marketing/forms/models/form_display_options.rb +17 -16
  1112. data/lib/hubspot/codegen/marketing/forms/models/form_post_submit_action.rb +1 -1
  1113. data/lib/hubspot/codegen/marketing/forms/models/form_style.rb +100 -88
  1114. data/lib/hubspot/codegen/marketing/forms/models/forward_paging.rb +1 -1
  1115. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_configuration.rb +106 -95
  1116. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition.rb +3 -7
  1117. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_all_of.rb +3 -7
  1118. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_create_request.rb +3 -7
  1119. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_create_request_all_of.rb +3 -7
  1120. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_patch_request.rb +25 -25
  1121. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_patch_request_legal_consent_options.rb +1 -1
  1122. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_checkbox.rb +1 -1
  1123. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_explicit_consent_to_process.rb +1 -1
  1124. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_implicit_consent_to_process.rb +1 -1
  1125. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_legitimate_interest.rb +3 -3
  1126. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_none.rb +1 -1
  1127. data/lib/hubspot/codegen/marketing/forms/models/lifecycle_stage.rb +244 -0
  1128. data/lib/hubspot/codegen/marketing/forms/models/mobile_phone_field.rb +36 -1
  1129. data/lib/hubspot/codegen/marketing/forms/models/multi_line_text_field.rb +31 -1
  1130. data/lib/hubspot/codegen/marketing/forms/models/multiple_checkboxes_field.rb +41 -1
  1131. data/lib/hubspot/codegen/marketing/forms/models/next_page.rb +16 -14
  1132. data/lib/hubspot/codegen/marketing/forms/models/number_field.rb +31 -1
  1133. data/lib/hubspot/codegen/marketing/forms/models/number_field_validation.rb +1 -1
  1134. data/lib/hubspot/codegen/{crm/line_items/models/error_category.rb → marketing/forms/models/payment_link_radio_field.rb} +140 -25
  1135. data/lib/hubspot/codegen/marketing/forms/models/phone_field.rb +41 -1
  1136. data/lib/hubspot/codegen/marketing/forms/models/phone_field_validation.rb +1 -1
  1137. data/lib/hubspot/codegen/marketing/forms/models/radio_field.rb +41 -1
  1138. data/lib/hubspot/codegen/marketing/forms/models/single_checkbox_field.rb +31 -1
  1139. data/lib/hubspot/codegen/marketing/forms/models/single_line_text_field.rb +31 -1
  1140. data/lib/hubspot/codegen/marketing/transactional/api/public_smtp_tokens_api.rb +1 -1
  1141. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +1 -1
  1142. data/lib/hubspot/codegen/marketing/transactional/api_client.rb +1 -1
  1143. data/lib/hubspot/codegen/marketing/transactional/api_error.rb +1 -1
  1144. data/lib/hubspot/codegen/marketing/transactional/configuration.rb +1 -1
  1145. data/lib/hubspot/codegen/marketing/transactional/models/collection_response_smtp_api_token_view_forward_paging.rb +14 -14
  1146. data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +26 -26
  1147. data/lib/hubspot/codegen/marketing/transactional/models/error.rb +51 -51
  1148. data/lib/hubspot/codegen/marketing/transactional/models/error_detail.rb +29 -29
  1149. data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +1 -1
  1150. data/lib/hubspot/codegen/marketing/transactional/models/forward_paging.rb +1 -1
  1151. data/lib/hubspot/codegen/marketing/transactional/models/next_page.rb +16 -14
  1152. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +37 -37
  1153. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +17 -17
  1154. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -1
  1155. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +47 -47
  1156. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +2 -0
  1157. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +2 -0
  1158. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +2 -0
  1159. data/lib/hubspot/codegen/oauth/api_client.rb +2 -0
  1160. data/lib/hubspot/codegen/oauth/api_error.rb +2 -0
  1161. data/lib/hubspot/codegen/oauth/configuration.rb +2 -0
  1162. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +59 -96
  1163. data/lib/hubspot/codegen/oauth/models/error.rb +52 -50
  1164. data/lib/hubspot/codegen/oauth/models/error_detail.rb +30 -28
  1165. data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +63 -53
  1166. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +28 -21
  1167. data/lib/hubspot/codegen/settings/business_units/api/business_unit_api.rb +95 -0
  1168. data/lib/hubspot/codegen/settings/business_units/api_client.rb +410 -0
  1169. data/lib/hubspot/codegen/settings/business_units/api_error.rb +61 -0
  1170. data/lib/hubspot/codegen/settings/business_units/configuration.rb +287 -0
  1171. data/lib/hubspot/codegen/{crm/associations/models/collection_response_public_association_definition_no_paging.rb → settings/business_units/models/collection_response_public_business_unit_no_paging.rb} +11 -9
  1172. data/lib/hubspot/codegen/settings/business_units/models/error.rb +305 -0
  1173. data/lib/hubspot/codegen/settings/business_units/models/error_detail.rb +271 -0
  1174. data/lib/hubspot/codegen/{files/files/models/folder_update_input.rb → settings/business_units/models/public_business_unit.rb} +29 -25
  1175. data/lib/hubspot/codegen/settings/business_units/models/public_business_unit_logo_metadata.rb +245 -0
  1176. data/lib/hubspot/codegen/settings/users/api/roles_api.rb +1 -1
  1177. data/lib/hubspot/codegen/settings/users/api/teams_api.rb +1 -1
  1178. data/lib/hubspot/codegen/settings/users/api/users_api.rb +1 -1
  1179. data/lib/hubspot/codegen/settings/users/api_client.rb +1 -1
  1180. data/lib/hubspot/codegen/settings/users/api_error.rb +1 -1
  1181. data/lib/hubspot/codegen/settings/users/configuration.rb +1 -1
  1182. data/lib/hubspot/codegen/settings/users/models/collection_response_public_permission_set_no_paging.rb +1 -1
  1183. data/lib/hubspot/codegen/settings/users/models/collection_response_public_team_no_paging.rb +1 -1
  1184. data/lib/hubspot/codegen/settings/users/models/collection_response_public_user_forward_paging.rb +14 -14
  1185. data/lib/hubspot/codegen/settings/users/models/error.rb +51 -51
  1186. data/lib/hubspot/codegen/settings/users/models/error_detail.rb +29 -29
  1187. data/lib/hubspot/codegen/settings/users/models/forward_paging.rb +1 -1
  1188. data/lib/hubspot/codegen/settings/users/models/next_page.rb +14 -14
  1189. data/lib/hubspot/codegen/settings/users/models/public_permission_set.rb +22 -22
  1190. data/lib/hubspot/codegen/settings/users/models/public_team.rb +24 -24
  1191. data/lib/hubspot/codegen/settings/users/models/public_user.rb +58 -29
  1192. data/lib/hubspot/codegen/settings/users/models/public_user_update.rb +12 -12
  1193. data/lib/hubspot/codegen/settings/users/models/user_provision_request.rb +26 -31
  1194. data/lib/hubspot/codegen/webhooks/api/settings_api.rb +1 -1
  1195. data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +1 -1
  1196. data/lib/hubspot/codegen/webhooks/api_client.rb +1 -1
  1197. data/lib/hubspot/codegen/webhooks/api_error.rb +1 -1
  1198. data/lib/hubspot/codegen/webhooks/configuration.rb +1 -1
  1199. data/lib/hubspot/codegen/webhooks/models/batch_input_subscription_batch_update_request.rb +1 -1
  1200. data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response.rb +42 -42
  1201. data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response_with_errors.rb +53 -53
  1202. data/lib/hubspot/codegen/webhooks/models/error.rb +51 -51
  1203. data/lib/hubspot/codegen/webhooks/models/error_detail.rb +29 -29
  1204. data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +20 -20
  1205. data/lib/hubspot/codegen/webhooks/models/settings_response.rb +22 -22
  1206. data/lib/hubspot/codegen/webhooks/models/standard_error.rb +47 -47
  1207. data/lib/hubspot/codegen/webhooks/models/subscription_batch_update_request.rb +19 -19
  1208. data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +15 -15
  1209. data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +1 -1
  1210. data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +1 -1
  1211. data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +27 -27
  1212. data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +20 -20
  1213. data/lib/hubspot/discovery/cms/client.rb +1 -0
  1214. data/lib/hubspot/discovery/cms/pages/api/landing_pages_api.rb +13 -0
  1215. data/lib/hubspot/discovery/{files/files/api/folders_api.rb → cms/pages/api/site_pages_api.rb} +3 -3
  1216. data/lib/hubspot/discovery/cms/pages/client.rb +20 -0
  1217. data/lib/hubspot/discovery/crm/client.rb +1 -0
  1218. data/lib/hubspot/discovery/crm/contacts/api/gdpr_api.rb +1 -1
  1219. data/lib/hubspot/discovery/crm/extensions/accounting/client.rb +1 -0
  1220. data/lib/hubspot/discovery/crm/extensions/calling/api/recording_settings_api.rb +15 -0
  1221. data/lib/hubspot/discovery/crm/extensions/calling/client.rb +1 -0
  1222. data/lib/hubspot/discovery/crm/line_items/api/gdpr_api.rb +13 -0
  1223. data/lib/hubspot/discovery/crm/line_items/client.rb +1 -0
  1224. data/lib/hubspot/discovery/{files/files/api/files_api.rb → crm/lists/api/lists_api.rb} +3 -3
  1225. data/lib/hubspot/discovery/crm/lists/api/memberships_api.rb +13 -0
  1226. data/lib/hubspot/discovery/crm/lists/client.rb +20 -0
  1227. data/lib/hubspot/discovery/crm/objects/api/gdpr_api.rb +1 -1
  1228. data/lib/hubspot/discovery/crm/objects/calls/api/gdpr_api.rb +15 -0
  1229. data/lib/hubspot/discovery/crm/objects/calls/client.rb +1 -0
  1230. data/lib/hubspot/discovery/crm/objects/client.rb +2 -0
  1231. data/lib/hubspot/discovery/crm/objects/communications/api/gdpr_api.rb +15 -0
  1232. data/lib/hubspot/discovery/crm/objects/communications/client.rb +1 -0
  1233. data/lib/hubspot/discovery/crm/objects/emails/api/gdpr_api.rb +15 -0
  1234. data/lib/hubspot/discovery/crm/objects/emails/client.rb +1 -0
  1235. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/gdpr_api.rb +15 -0
  1236. data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +1 -0
  1237. data/lib/hubspot/discovery/crm/objects/goals/api/basic_api.rb +15 -0
  1238. data/lib/hubspot/discovery/crm/objects/goals/api/batch_api.rb +15 -0
  1239. data/lib/hubspot/discovery/crm/objects/goals/api/gdpr_api.rb +15 -0
  1240. data/lib/hubspot/discovery/crm/objects/goals/api/public_object_api.rb +15 -0
  1241. data/lib/hubspot/discovery/crm/objects/goals/api/search_api.rb +15 -0
  1242. data/lib/hubspot/discovery/crm/objects/goals/client.rb +25 -0
  1243. data/lib/hubspot/discovery/crm/objects/meetings/api/gdpr_api.rb +15 -0
  1244. data/lib/hubspot/discovery/crm/objects/meetings/client.rb +1 -0
  1245. data/lib/hubspot/discovery/crm/objects/notes/api/gdpr_api.rb +15 -0
  1246. data/lib/hubspot/discovery/crm/objects/notes/client.rb +1 -0
  1247. data/lib/hubspot/discovery/crm/objects/postal_mail/api/gdpr_api.rb +15 -0
  1248. data/lib/hubspot/discovery/crm/objects/postal_mail/client.rb +1 -0
  1249. data/lib/hubspot/discovery/crm/objects/tasks/api/gdpr_api.rb +15 -0
  1250. data/lib/hubspot/discovery/crm/objects/tasks/client.rb +1 -0
  1251. data/lib/hubspot/discovery/crm/objects/taxes/api/basic_api.rb +15 -0
  1252. data/lib/hubspot/discovery/crm/objects/taxes/api/batch_api.rb +15 -0
  1253. data/lib/hubspot/discovery/crm/objects/taxes/api/gdpr_api.rb +15 -0
  1254. data/lib/hubspot/discovery/crm/objects/taxes/api/public_object_api.rb +15 -0
  1255. data/lib/hubspot/discovery/crm/objects/taxes/api/search_api.rb +15 -0
  1256. data/lib/hubspot/discovery/crm/objects/taxes/client.rb +25 -0
  1257. data/lib/hubspot/discovery/crm/products/api/gdpr_api.rb +13 -0
  1258. data/lib/hubspot/discovery/crm/products/client.rb +1 -0
  1259. data/lib/hubspot/discovery/crm/quotes/api/gdpr_api.rb +13 -0
  1260. data/lib/hubspot/discovery/crm/quotes/client.rb +1 -0
  1261. data/lib/hubspot/discovery/crm/tickets/api/gdpr_api.rb +13 -0
  1262. data/lib/hubspot/discovery/crm/tickets/client.rb +1 -0
  1263. data/lib/hubspot/discovery/events/client.rb +6 -0
  1264. data/lib/hubspot/discovery/events/send/api/custom_event_data_api.rb +13 -0
  1265. data/lib/hubspot/discovery/{files/files → events/send}/client.rb +3 -4
  1266. data/lib/hubspot/discovery/files/api/files_api.rb +11 -0
  1267. data/lib/hubspot/discovery/files/api/folders_api.rb +11 -0
  1268. data/lib/hubspot/discovery/files/client.rb +2 -1
  1269. data/lib/hubspot/discovery/marketing/events/api/{settings_external_api.rb → basic_api.rb} +1 -1
  1270. data/lib/hubspot/discovery/marketing/events/api/batch_api.rb +13 -0
  1271. data/lib/hubspot/discovery/marketing/events/api/settings_api.rb +13 -0
  1272. data/lib/hubspot/discovery/marketing/events/api/subscriber_state_changes_api.rb +13 -0
  1273. data/lib/hubspot/discovery/marketing/events/client.rb +4 -1
  1274. data/lib/hubspot/discovery/settings/business_units/api/business_unit_api.rb +13 -0
  1275. data/lib/hubspot/discovery/settings/business_units/client.rb +19 -0
  1276. data/lib/hubspot/discovery/settings/client.rb +1 -0
  1277. data/lib/hubspot/helpers/camel_case.rb +4 -1
  1278. data/lib/hubspot/version.rb +1 -1
  1279. data/spec/discovery/client_spec.rb +1 -0
  1280. data/spec/discovery/cms/client_spec.rb +1 -0
  1281. data/spec/discovery/cms/pages/landing_pages_api_spec.rb +45 -0
  1282. data/spec/discovery/cms/pages/site_pages_api_spec.rb +33 -0
  1283. data/spec/discovery/cms/source-code/content_api_spec.rb +2 -2
  1284. data/spec/discovery/crm/associations/v4/schema/definitions_api_spec.rb +1 -1
  1285. data/spec/discovery/crm/contacts/gdpr_api_spec.rb +1 -1
  1286. data/spec/discovery/crm/extensions/calling/recording_settings_api_spec.rb +9 -0
  1287. data/spec/discovery/crm/line_items/gdpr_api_spec.rb +7 -0
  1288. data/spec/discovery/crm/lists/lists_api_spec.rb +15 -0
  1289. data/spec/discovery/crm/lists/memberships_api_spec.rb +12 -0
  1290. data/spec/discovery/crm/objects/calls/gdpr_api_spec.rb +7 -0
  1291. data/spec/discovery/crm/objects/communications/gdpr_api_spec.rb +7 -0
  1292. data/spec/discovery/crm/objects/emails/gdpr_api_spec.rb +7 -0
  1293. data/spec/discovery/crm/objects/feedback_submissions/gdpr_api_spec.rb +7 -0
  1294. data/spec/discovery/crm/objects/goals/basic_api_spec.rb +11 -0
  1295. data/spec/discovery/crm/objects/goals/batch_api_spec.rb +10 -0
  1296. data/spec/discovery/crm/objects/goals/gdpr_api_spec.rb +7 -0
  1297. data/spec/discovery/crm/objects/goals/public_object_api_spec.rb +7 -0
  1298. data/spec/discovery/crm/objects/goals/search_api_spec.rb +7 -0
  1299. data/spec/discovery/crm/objects/meetings/gdpr_api_spec.rb +7 -0
  1300. data/spec/discovery/crm/objects/notes/gdpr_api_spec.rb +7 -0
  1301. data/spec/discovery/crm/objects/postal_mail/gdpr_api_spec.rb +7 -0
  1302. data/spec/discovery/crm/objects/tasks/gdpr_api_spec.rb +7 -0
  1303. data/spec/discovery/crm/objects/taxes/basic_api_spec.rb +11 -0
  1304. data/spec/discovery/crm/objects/taxes/batch_api_spec.rb +10 -0
  1305. data/spec/discovery/crm/objects/taxes/gdpr_api_spec.rb +7 -0
  1306. data/spec/discovery/crm/objects/taxes/public_object_api_spec.rb +7 -0
  1307. data/spec/discovery/crm/objects/taxes/search_api_spec.rb +7 -0
  1308. data/spec/discovery/crm/products/gdpr_api_spec.rb +7 -0
  1309. data/spec/discovery/crm/quotes/gdpr_api_spec.rb +7 -0
  1310. data/spec/discovery/crm/tickets/gdpr_api_spec.rb +7 -0
  1311. data/spec/discovery/events/send/custom_event_data_api_spec.rb +7 -0
  1312. data/spec/discovery/files/{files/files_api_spec.rb → files_api_spec.rb} +2 -2
  1313. data/spec/discovery/files/{files/folders_api_spec.rb → folders_api_spec.rb} +2 -2
  1314. data/spec/discovery/marketing/events/basic_api_spec.rb +12 -0
  1315. data/spec/discovery/marketing/events/batch_api_spec.rb +8 -0
  1316. data/spec/discovery/marketing/events/marketing_events_external_api_spec.rb +0 -11
  1317. data/spec/discovery/marketing/events/{settings_external_api_spec.rb → settings_api_spec.rb} +2 -2
  1318. data/spec/discovery/marketing/events/subscriber_state_changes_api_spec.rb +8 -0
  1319. data/spec/discovery/settings/businnes_units/business_unit_api_spec.rb +7 -0
  1320. data/spec/integration/contacts_spec.rb +85 -0
  1321. metadata +446 -141
  1322. data/lib/hubspot/codegen/crm/associations/schema/models/error_category.rb +0 -278
  1323. data/lib/hubspot/codegen/crm/associations/schema/models/public_association.rb +0 -258
  1324. data/lib/hubspot/codegen/crm/associations/schema/models/public_association_multi.rb +0 -256
  1325. data/lib/hubspot/codegen/crm/associations/v4/models/error_category.rb +0 -278
  1326. data/lib/hubspot/codegen/crm/associations/v4/schema/models/association_spec.rb +0 -280
  1327. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_multi_archive.rb +0 -234
  1328. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_multi_post.rb +0 -234
  1329. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_default_association_multi_post.rb +0 -234
  1330. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_fetch_associations_batch_request.rb +0 -234
  1331. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_labels_between_object_pair.rb +0 -330
  1332. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_labels_between_object_pair_with_errors.rb +0 -350
  1333. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_multi_with_label.rb +0 -330
  1334. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_multi_with_label_with_errors.rb +0 -350
  1335. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_default_association.rb +0 -350
  1336. data/lib/hubspot/codegen/crm/associations/v4/schema/models/error_category.rb +0 -280
  1337. data/lib/hubspot/codegen/crm/associations/v4/schema/models/labels_between_object_pair.rb +0 -290
  1338. data/lib/hubspot/codegen/crm/associations/v4/schema/models/multi_associated_object_with_label.rb +0 -248
  1339. data/lib/hubspot/codegen/crm/associations/v4/schema/models/next_page.rb +0 -241
  1340. data/lib/hubspot/codegen/crm/associations/v4/schema/models/paging.rb +0 -236
  1341. data/lib/hubspot/codegen/crm/associations/v4/schema/models/previous_page.rb +0 -241
  1342. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_multi_archive.rb +0 -248
  1343. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_multi_post.rb +0 -262
  1344. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_multi_with_label.rb +0 -257
  1345. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_default_association.rb +0 -260
  1346. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_default_association_multi_post.rb +0 -246
  1347. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_fetch_associations_batch_request.rb +0 -241
  1348. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_object_id.rb +0 -232
  1349. data/lib/hubspot/codegen/crm/associations/v4/schema/models/standard_error.rb +0 -326
  1350. data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +0 -275
  1351. data/lib/hubspot/codegen/crm/objects/calls/models/error_category.rb +0 -278
  1352. data/lib/hubspot/codegen/crm/objects/communications/models/error_category.rb +0 -278
  1353. data/lib/hubspot/codegen/crm/objects/emails/models/error_category.rb +0 -278
  1354. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error_category.rb +0 -278
  1355. data/lib/hubspot/codegen/crm/objects/meetings/models/error_category.rb +0 -278
  1356. data/lib/hubspot/codegen/crm/objects/models/error_category.rb +0 -276
  1357. data/lib/hubspot/codegen/crm/objects/notes/models/error_category.rb +0 -278
  1358. data/lib/hubspot/codegen/crm/objects/postal_mail/models/error_category.rb +0 -278
  1359. data/lib/hubspot/codegen/crm/objects/tasks/models/error_category.rb +0 -278
  1360. data/lib/hubspot/codegen/crm/properties/models/error_category.rb +0 -276
  1361. data/lib/hubspot/codegen/crm/quotes/models/error_category.rb +0 -276
  1362. data/lib/hubspot/codegen/crm/timeline/models/error_category.rb +0 -276
  1363. data/lib/hubspot/codegen/files/files/api/files_api.rb +0 -815
  1364. data/lib/hubspot/codegen/files/files/api/folders_api.rb +0 -605
  1365. data/lib/hubspot/codegen/files/files/models/hubspot_file.rb +0 -454
  1366. data/lib/hubspot/codegen/files/files/models/import_from_url_input.rb +0 -387
  1367. data/lib/hubspot/codegen/marketing/events/models/error_category.rb +0 -276
@@ -0,0 +1,2754 @@
1
+ =begin
2
+ #Pages
3
+
4
+ #Use these endpoints for interacting with Landing Pages and Site Pages
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.2.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Hubspot
16
+ module Cms
17
+ module Pages
18
+ class LandingPagesApi
19
+ attr_accessor :api_client
20
+
21
+ def initialize(api_client = ApiClient.default)
22
+ @api_client = api_client
23
+ end
24
+ # Delete a Landing Page
25
+ # Delete the Landing Page object identified by the id in the path.
26
+ # @param object_id [String] The Landing Page id.
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
29
+ # @return [nil]
30
+ def archive(object_id, opts = {})
31
+ archive_with_http_info(object_id, opts)
32
+ nil
33
+ end
34
+
35
+ # Delete a Landing Page
36
+ # Delete the Landing Page object identified by the id in the path.
37
+ # @param object_id [String] The Landing Page id.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
40
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
41
+ def archive_with_http_info(object_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.archive ...'
44
+ end
45
+ # verify the required parameter 'object_id' is set
46
+ if @api_client.config.client_side_validation && object_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.archive"
48
+ end
49
+ # resource path
50
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
55
+
56
+ # header parameters
57
+ header_params = opts[:header_params] || {}
58
+ # HTTP header 'Accept' (if needed)
59
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body]
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type]
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || ['oauth2']
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"LandingPagesApi.archive",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: LandingPagesApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Delete a batch of Landing Pages
91
+ # Delete the Landing Page objects identified in the request body. Note: This is not the same as the dashboard `archive` function. To perform a dashboard `archive` send an normal update with the `archivedInDashboard` field set to true.
92
+ # @param batch_input_string [BatchInputString] The JSON array of Landing Page ids.
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [nil]
95
+ def archive_batch(batch_input_string, opts = {})
96
+ archive_batch_with_http_info(batch_input_string, opts)
97
+ nil
98
+ end
99
+
100
+ # Delete a batch of Landing Pages
101
+ # Delete the Landing Page objects identified in the request body. Note: This is not the same as the dashboard &#x60;archive&#x60; function. To perform a dashboard &#x60;archive&#x60; send an normal update with the &#x60;archivedInDashboard&#x60; field set to true.
102
+ # @param batch_input_string [BatchInputString] The JSON array of Landing Page ids.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
105
+ def archive_batch_with_http_info(batch_input_string, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.archive_batch ...'
108
+ end
109
+ # verify the required parameter 'batch_input_string' is set
110
+ if @api_client.config.client_side_validation && batch_input_string.nil?
111
+ fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling LandingPagesApi.archive_batch"
112
+ end
113
+ # resource path
114
+ local_var_path = '/cms/v3/pages/landing-pages/batch/archive'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
123
+ # HTTP header 'Content-Type'
124
+ content_type = @api_client.select_header_content_type(['application/json'])
125
+ if !content_type.nil?
126
+ header_params['Content-Type'] = content_type
127
+ end
128
+
129
+ # form parameters
130
+ form_params = opts[:form_params] || {}
131
+
132
+ # http body (model)
133
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_string)
134
+
135
+ # return_type
136
+ return_type = opts[:debug_return_type]
137
+
138
+ # auth_names
139
+ auth_names = opts[:debug_auth_names] || ['oauth2']
140
+
141
+ new_options = opts.merge(
142
+ :operation => :"LandingPagesApi.archive_batch",
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: LandingPagesApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
+ end
155
+ return data, status_code, headers
156
+ end
157
+
158
+ # Delete a Folder
159
+ # Delete the Folder object identified by the id in the path.
160
+ # @param object_id [String] The Folder id.
161
+ # @param [Hash] opts the optional parameters
162
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
163
+ # @return [nil]
164
+ def archive_folder(object_id, opts = {})
165
+ archive_folder_with_http_info(object_id, opts)
166
+ nil
167
+ end
168
+
169
+ # Delete a Folder
170
+ # Delete the Folder object identified by the id in the path.
171
+ # @param object_id [String] The Folder id.
172
+ # @param [Hash] opts the optional parameters
173
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
174
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
175
+ def archive_folder_with_http_info(object_id, opts = {})
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.archive_folder ...'
178
+ end
179
+ # verify the required parameter 'object_id' is set
180
+ if @api_client.config.client_side_validation && object_id.nil?
181
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.archive_folder"
182
+ end
183
+ # resource path
184
+ local_var_path = '/cms/v3/pages/landing-pages/folders/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
185
+
186
+ # query parameters
187
+ query_params = opts[:query_params] || {}
188
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
189
+
190
+ # header parameters
191
+ header_params = opts[:header_params] || {}
192
+ # HTTP header 'Accept' (if needed)
193
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
194
+
195
+ # form parameters
196
+ form_params = opts[:form_params] || {}
197
+
198
+ # http body (model)
199
+ post_body = opts[:debug_body]
200
+
201
+ # return_type
202
+ return_type = opts[:debug_return_type]
203
+
204
+ # auth_names
205
+ auth_names = opts[:debug_auth_names] || ['oauth2']
206
+
207
+ new_options = opts.merge(
208
+ :operation => :"LandingPagesApi.archive_folder",
209
+ :header_params => header_params,
210
+ :query_params => query_params,
211
+ :form_params => form_params,
212
+ :body => post_body,
213
+ :auth_names => auth_names,
214
+ :return_type => return_type
215
+ )
216
+
217
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
218
+ if @api_client.config.debugging
219
+ @api_client.config.logger.debug "API called: LandingPagesApi#archive_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
220
+ end
221
+ return data, status_code, headers
222
+ end
223
+
224
+ # Delete a batch of Folders
225
+ # Delete the Folder objects identified in the request body.
226
+ # @param batch_input_string [BatchInputString] The JSON array of Folder ids.
227
+ # @param [Hash] opts the optional parameters
228
+ # @return [nil]
229
+ def archive_folders(batch_input_string, opts = {})
230
+ archive_folders_with_http_info(batch_input_string, opts)
231
+ nil
232
+ end
233
+
234
+ # Delete a batch of Folders
235
+ # Delete the Folder objects identified in the request body.
236
+ # @param batch_input_string [BatchInputString] The JSON array of Folder ids.
237
+ # @param [Hash] opts the optional parameters
238
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
239
+ def archive_folders_with_http_info(batch_input_string, opts = {})
240
+ if @api_client.config.debugging
241
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.archive_folders ...'
242
+ end
243
+ # verify the required parameter 'batch_input_string' is set
244
+ if @api_client.config.client_side_validation && batch_input_string.nil?
245
+ fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling LandingPagesApi.archive_folders"
246
+ end
247
+ # resource path
248
+ local_var_path = '/cms/v3/pages/landing-pages/folders/batch/archive'
249
+
250
+ # query parameters
251
+ query_params = opts[:query_params] || {}
252
+
253
+ # header parameters
254
+ header_params = opts[:header_params] || {}
255
+ # HTTP header 'Accept' (if needed)
256
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
257
+ # HTTP header 'Content-Type'
258
+ content_type = @api_client.select_header_content_type(['application/json'])
259
+ if !content_type.nil?
260
+ header_params['Content-Type'] = content_type
261
+ end
262
+
263
+ # form parameters
264
+ form_params = opts[:form_params] || {}
265
+
266
+ # http body (model)
267
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_string)
268
+
269
+ # return_type
270
+ return_type = opts[:debug_return_type]
271
+
272
+ # auth_names
273
+ auth_names = opts[:debug_auth_names] || ['oauth2']
274
+
275
+ new_options = opts.merge(
276
+ :operation => :"LandingPagesApi.archive_folders",
277
+ :header_params => header_params,
278
+ :query_params => query_params,
279
+ :form_params => form_params,
280
+ :body => post_body,
281
+ :auth_names => auth_names,
282
+ :return_type => return_type
283
+ )
284
+
285
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug "API called: LandingPagesApi#archive_folders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
288
+ end
289
+ return data, status_code, headers
290
+ end
291
+
292
+ # Attach a landing page to a multi-language group
293
+ # Attach a landing page to a multi-language group.
294
+ # @param attach_to_lang_primary_request_v_next [AttachToLangPrimaryRequestVNext] The JSON representation of the AttachToLangPrimaryRequest object.
295
+ # @param [Hash] opts the optional parameters
296
+ # @return [nil]
297
+ def attach_to_lang_group(attach_to_lang_primary_request_v_next, opts = {})
298
+ attach_to_lang_group_with_http_info(attach_to_lang_primary_request_v_next, opts)
299
+ nil
300
+ end
301
+
302
+ # Attach a landing page to a multi-language group
303
+ # Attach a landing page to a multi-language group.
304
+ # @param attach_to_lang_primary_request_v_next [AttachToLangPrimaryRequestVNext] The JSON representation of the AttachToLangPrimaryRequest object.
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
307
+ def attach_to_lang_group_with_http_info(attach_to_lang_primary_request_v_next, opts = {})
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.attach_to_lang_group ...'
310
+ end
311
+ # verify the required parameter 'attach_to_lang_primary_request_v_next' is set
312
+ if @api_client.config.client_side_validation && attach_to_lang_primary_request_v_next.nil?
313
+ fail ArgumentError, "Missing the required parameter 'attach_to_lang_primary_request_v_next' when calling LandingPagesApi.attach_to_lang_group"
314
+ end
315
+ # resource path
316
+ local_var_path = '/cms/v3/pages/landing-pages/multi-language/attach-to-lang-group'
317
+
318
+ # query parameters
319
+ query_params = opts[:query_params] || {}
320
+
321
+ # header parameters
322
+ header_params = opts[:header_params] || {}
323
+ # HTTP header 'Accept' (if needed)
324
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
325
+ # HTTP header 'Content-Type'
326
+ content_type = @api_client.select_header_content_type(['application/json'])
327
+ if !content_type.nil?
328
+ header_params['Content-Type'] = content_type
329
+ end
330
+
331
+ # form parameters
332
+ form_params = opts[:form_params] || {}
333
+
334
+ # http body (model)
335
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_to_lang_primary_request_v_next)
336
+
337
+ # return_type
338
+ return_type = opts[:debug_return_type]
339
+
340
+ # auth_names
341
+ auth_names = opts[:debug_auth_names] || ['oauth2']
342
+
343
+ new_options = opts.merge(
344
+ :operation => :"LandingPagesApi.attach_to_lang_group",
345
+ :header_params => header_params,
346
+ :query_params => query_params,
347
+ :form_params => form_params,
348
+ :body => post_body,
349
+ :auth_names => auth_names,
350
+ :return_type => return_type
351
+ )
352
+
353
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug "API called: LandingPagesApi#attach_to_lang_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
356
+ end
357
+ return data, status_code, headers
358
+ end
359
+
360
+ # Clone a Landing Page
361
+ # Clone a Landing Page
362
+ # @param content_clone_request_v_next [ContentCloneRequestVNext] The JSON representation of the ContentCloneRequest object.
363
+ # @param [Hash] opts the optional parameters
364
+ # @return [Page]
365
+ def clone(content_clone_request_v_next, opts = {})
366
+ data, _status_code, _headers = clone_with_http_info(content_clone_request_v_next, opts)
367
+ data
368
+ end
369
+
370
+ # Clone a Landing Page
371
+ # Clone a Landing Page
372
+ # @param content_clone_request_v_next [ContentCloneRequestVNext] The JSON representation of the ContentCloneRequest object.
373
+ # @param [Hash] opts the optional parameters
374
+ # @return [Array<(Page, Integer, Hash)>] Page data, response status code and response headers
375
+ def clone_with_http_info(content_clone_request_v_next, opts = {})
376
+ if @api_client.config.debugging
377
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.clone ...'
378
+ end
379
+ # verify the required parameter 'content_clone_request_v_next' is set
380
+ if @api_client.config.client_side_validation && content_clone_request_v_next.nil?
381
+ fail ArgumentError, "Missing the required parameter 'content_clone_request_v_next' when calling LandingPagesApi.clone"
382
+ end
383
+ # resource path
384
+ local_var_path = '/cms/v3/pages/landing-pages/clone'
385
+
386
+ # query parameters
387
+ query_params = opts[:query_params] || {}
388
+
389
+ # header parameters
390
+ header_params = opts[:header_params] || {}
391
+ # HTTP header 'Accept' (if needed)
392
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
393
+ # HTTP header 'Content-Type'
394
+ content_type = @api_client.select_header_content_type(['application/json'])
395
+ if !content_type.nil?
396
+ header_params['Content-Type'] = content_type
397
+ end
398
+
399
+ # form parameters
400
+ form_params = opts[:form_params] || {}
401
+
402
+ # http body (model)
403
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(content_clone_request_v_next)
404
+
405
+ # return_type
406
+ return_type = opts[:debug_return_type] || 'Page'
407
+
408
+ # auth_names
409
+ auth_names = opts[:debug_auth_names] || ['oauth2']
410
+
411
+ new_options = opts.merge(
412
+ :operation => :"LandingPagesApi.clone",
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names,
418
+ :return_type => return_type
419
+ )
420
+
421
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
422
+ if @api_client.config.debugging
423
+ @api_client.config.logger.debug "API called: LandingPagesApi#clone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
424
+ end
425
+ return data, status_code, headers
426
+ end
427
+
428
+ # Create a new Landing Page
429
+ # Create a new Landing Page
430
+ # @param page [Page] The JSON representation of a new Landing Page.
431
+ # @param [Hash] opts the optional parameters
432
+ # @return [nil]
433
+ def create(page, opts = {})
434
+ create_with_http_info(page, opts)
435
+ nil
436
+ end
437
+
438
+ # Create a new Landing Page
439
+ # Create a new Landing Page
440
+ # @param page [Page] The JSON representation of a new Landing Page.
441
+ # @param [Hash] opts the optional parameters
442
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
443
+ def create_with_http_info(page, opts = {})
444
+ if @api_client.config.debugging
445
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.create ...'
446
+ end
447
+ # verify the required parameter 'page' is set
448
+ if @api_client.config.client_side_validation && page.nil?
449
+ fail ArgumentError, "Missing the required parameter 'page' when calling LandingPagesApi.create"
450
+ end
451
+ # resource path
452
+ local_var_path = '/cms/v3/pages/landing-pages'
453
+
454
+ # query parameters
455
+ query_params = opts[:query_params] || {}
456
+
457
+ # header parameters
458
+ header_params = opts[:header_params] || {}
459
+ # HTTP header 'Accept' (if needed)
460
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
461
+ # HTTP header 'Content-Type'
462
+ content_type = @api_client.select_header_content_type(['application/json'])
463
+ if !content_type.nil?
464
+ header_params['Content-Type'] = content_type
465
+ end
466
+
467
+ # form parameters
468
+ form_params = opts[:form_params] || {}
469
+
470
+ # http body (model)
471
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(page)
472
+
473
+ # return_type
474
+ return_type = opts[:debug_return_type]
475
+
476
+ # auth_names
477
+ auth_names = opts[:debug_auth_names] || ['oauth2']
478
+
479
+ new_options = opts.merge(
480
+ :operation => :"LandingPagesApi.create",
481
+ :header_params => header_params,
482
+ :query_params => query_params,
483
+ :form_params => form_params,
484
+ :body => post_body,
485
+ :auth_names => auth_names,
486
+ :return_type => return_type
487
+ )
488
+
489
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
490
+ if @api_client.config.debugging
491
+ @api_client.config.logger.debug "API called: LandingPagesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
492
+ end
493
+ return data, status_code, headers
494
+ end
495
+
496
+ # Create a new A/B test variation
497
+ # Create a new A/B test variation based on the information provided in the request body.
498
+ # @param ab_test_create_request_v_next [AbTestCreateRequestVNext] The JSON representation of the AbTestCreateRequest object.
499
+ # @param [Hash] opts the optional parameters
500
+ # @return [Page]
501
+ def create_ab_test_variation(ab_test_create_request_v_next, opts = {})
502
+ data, _status_code, _headers = create_ab_test_variation_with_http_info(ab_test_create_request_v_next, opts)
503
+ data
504
+ end
505
+
506
+ # Create a new A/B test variation
507
+ # Create a new A/B test variation based on the information provided in the request body.
508
+ # @param ab_test_create_request_v_next [AbTestCreateRequestVNext] The JSON representation of the AbTestCreateRequest object.
509
+ # @param [Hash] opts the optional parameters
510
+ # @return [Array<(Page, Integer, Hash)>] Page data, response status code and response headers
511
+ def create_ab_test_variation_with_http_info(ab_test_create_request_v_next, opts = {})
512
+ if @api_client.config.debugging
513
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.create_ab_test_variation ...'
514
+ end
515
+ # verify the required parameter 'ab_test_create_request_v_next' is set
516
+ if @api_client.config.client_side_validation && ab_test_create_request_v_next.nil?
517
+ fail ArgumentError, "Missing the required parameter 'ab_test_create_request_v_next' when calling LandingPagesApi.create_ab_test_variation"
518
+ end
519
+ # resource path
520
+ local_var_path = '/cms/v3/pages/landing-pages/ab-test/create-variation'
521
+
522
+ # query parameters
523
+ query_params = opts[:query_params] || {}
524
+
525
+ # header parameters
526
+ header_params = opts[:header_params] || {}
527
+ # HTTP header 'Accept' (if needed)
528
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
529
+ # HTTP header 'Content-Type'
530
+ content_type = @api_client.select_header_content_type(['application/json'])
531
+ if !content_type.nil?
532
+ header_params['Content-Type'] = content_type
533
+ end
534
+
535
+ # form parameters
536
+ form_params = opts[:form_params] || {}
537
+
538
+ # http body (model)
539
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(ab_test_create_request_v_next)
540
+
541
+ # return_type
542
+ return_type = opts[:debug_return_type] || 'Page'
543
+
544
+ # auth_names
545
+ auth_names = opts[:debug_auth_names] || ['oauth2']
546
+
547
+ new_options = opts.merge(
548
+ :operation => :"LandingPagesApi.create_ab_test_variation",
549
+ :header_params => header_params,
550
+ :query_params => query_params,
551
+ :form_params => form_params,
552
+ :body => post_body,
553
+ :auth_names => auth_names,
554
+ :return_type => return_type
555
+ )
556
+
557
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
558
+ if @api_client.config.debugging
559
+ @api_client.config.logger.debug "API called: LandingPagesApi#create_ab_test_variation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
560
+ end
561
+ return data, status_code, headers
562
+ end
563
+
564
+ # Create a batch of Landing Pages
565
+ # Create the Landing Page objects detailed in the request body.
566
+ # @param batch_input_page [BatchInputPage] The JSON array of new Landing Pages to create.
567
+ # @param [Hash] opts the optional parameters
568
+ # @return [BatchResponsePage]
569
+ def create_batch(batch_input_page, opts = {})
570
+ data, _status_code, _headers = create_batch_with_http_info(batch_input_page, opts)
571
+ data
572
+ end
573
+
574
+ # Create a batch of Landing Pages
575
+ # Create the Landing Page objects detailed in the request body.
576
+ # @param batch_input_page [BatchInputPage] The JSON array of new Landing Pages to create.
577
+ # @param [Hash] opts the optional parameters
578
+ # @return [Array<(BatchResponsePage, Integer, Hash)>] BatchResponsePage data, response status code and response headers
579
+ def create_batch_with_http_info(batch_input_page, opts = {})
580
+ if @api_client.config.debugging
581
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.create_batch ...'
582
+ end
583
+ # verify the required parameter 'batch_input_page' is set
584
+ if @api_client.config.client_side_validation && batch_input_page.nil?
585
+ fail ArgumentError, "Missing the required parameter 'batch_input_page' when calling LandingPagesApi.create_batch"
586
+ end
587
+ # resource path
588
+ local_var_path = '/cms/v3/pages/landing-pages/batch/create'
589
+
590
+ # query parameters
591
+ query_params = opts[:query_params] || {}
592
+
593
+ # header parameters
594
+ header_params = opts[:header_params] || {}
595
+ # HTTP header 'Accept' (if needed)
596
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
597
+ # HTTP header 'Content-Type'
598
+ content_type = @api_client.select_header_content_type(['application/json'])
599
+ if !content_type.nil?
600
+ header_params['Content-Type'] = content_type
601
+ end
602
+
603
+ # form parameters
604
+ form_params = opts[:form_params] || {}
605
+
606
+ # http body (model)
607
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_page)
608
+
609
+ # return_type
610
+ return_type = opts[:debug_return_type] || 'BatchResponsePage'
611
+
612
+ # auth_names
613
+ auth_names = opts[:debug_auth_names] || ['oauth2']
614
+
615
+ new_options = opts.merge(
616
+ :operation => :"LandingPagesApi.create_batch",
617
+ :header_params => header_params,
618
+ :query_params => query_params,
619
+ :form_params => form_params,
620
+ :body => post_body,
621
+ :auth_names => auth_names,
622
+ :return_type => return_type
623
+ )
624
+
625
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
626
+ if @api_client.config.debugging
627
+ @api_client.config.logger.debug "API called: LandingPagesApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
628
+ end
629
+ return data, status_code, headers
630
+ end
631
+
632
+ # Create a new Folder
633
+ # Create a new Folder
634
+ # @param content_folder [ContentFolder] The JSON representation of a new Folder.
635
+ # @param [Hash] opts the optional parameters
636
+ # @return [ContentFolder]
637
+ def create_folder(content_folder, opts = {})
638
+ data, _status_code, _headers = create_folder_with_http_info(content_folder, opts)
639
+ data
640
+ end
641
+
642
+ # Create a new Folder
643
+ # Create a new Folder
644
+ # @param content_folder [ContentFolder] The JSON representation of a new Folder.
645
+ # @param [Hash] opts the optional parameters
646
+ # @return [Array<(ContentFolder, Integer, Hash)>] ContentFolder data, response status code and response headers
647
+ def create_folder_with_http_info(content_folder, opts = {})
648
+ if @api_client.config.debugging
649
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.create_folder ...'
650
+ end
651
+ # verify the required parameter 'content_folder' is set
652
+ if @api_client.config.client_side_validation && content_folder.nil?
653
+ fail ArgumentError, "Missing the required parameter 'content_folder' when calling LandingPagesApi.create_folder"
654
+ end
655
+ # resource path
656
+ local_var_path = '/cms/v3/pages/landing-pages/folders'
657
+
658
+ # query parameters
659
+ query_params = opts[:query_params] || {}
660
+
661
+ # header parameters
662
+ header_params = opts[:header_params] || {}
663
+ # HTTP header 'Accept' (if needed)
664
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
665
+ # HTTP header 'Content-Type'
666
+ content_type = @api_client.select_header_content_type(['application/json'])
667
+ if !content_type.nil?
668
+ header_params['Content-Type'] = content_type
669
+ end
670
+
671
+ # form parameters
672
+ form_params = opts[:form_params] || {}
673
+
674
+ # http body (model)
675
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(content_folder)
676
+
677
+ # return_type
678
+ return_type = opts[:debug_return_type] || 'ContentFolder'
679
+
680
+ # auth_names
681
+ auth_names = opts[:debug_auth_names] || ['oauth2']
682
+
683
+ new_options = opts.merge(
684
+ :operation => :"LandingPagesApi.create_folder",
685
+ :header_params => header_params,
686
+ :query_params => query_params,
687
+ :form_params => form_params,
688
+ :body => post_body,
689
+ :auth_names => auth_names,
690
+ :return_type => return_type
691
+ )
692
+
693
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
694
+ if @api_client.config.debugging
695
+ @api_client.config.logger.debug "API called: LandingPagesApi#create_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
696
+ end
697
+ return data, status_code, headers
698
+ end
699
+
700
+ # Create a batch of Folders
701
+ # Create the Folder objects detailed in the request body.
702
+ # @param batch_input_content_folder [BatchInputContentFolder] The JSON array of new Folders to create.
703
+ # @param [Hash] opts the optional parameters
704
+ # @return [BatchResponseContentFolder]
705
+ def create_folders(batch_input_content_folder, opts = {})
706
+ data, _status_code, _headers = create_folders_with_http_info(batch_input_content_folder, opts)
707
+ data
708
+ end
709
+
710
+ # Create a batch of Folders
711
+ # Create the Folder objects detailed in the request body.
712
+ # @param batch_input_content_folder [BatchInputContentFolder] The JSON array of new Folders to create.
713
+ # @param [Hash] opts the optional parameters
714
+ # @return [Array<(BatchResponseContentFolder, Integer, Hash)>] BatchResponseContentFolder data, response status code and response headers
715
+ def create_folders_with_http_info(batch_input_content_folder, opts = {})
716
+ if @api_client.config.debugging
717
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.create_folders ...'
718
+ end
719
+ # verify the required parameter 'batch_input_content_folder' is set
720
+ if @api_client.config.client_side_validation && batch_input_content_folder.nil?
721
+ fail ArgumentError, "Missing the required parameter 'batch_input_content_folder' when calling LandingPagesApi.create_folders"
722
+ end
723
+ # resource path
724
+ local_var_path = '/cms/v3/pages/landing-pages/folders/batch/create'
725
+
726
+ # query parameters
727
+ query_params = opts[:query_params] || {}
728
+
729
+ # header parameters
730
+ header_params = opts[:header_params] || {}
731
+ # HTTP header 'Accept' (if needed)
732
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
733
+ # HTTP header 'Content-Type'
734
+ content_type = @api_client.select_header_content_type(['application/json'])
735
+ if !content_type.nil?
736
+ header_params['Content-Type'] = content_type
737
+ end
738
+
739
+ # form parameters
740
+ form_params = opts[:form_params] || {}
741
+
742
+ # http body (model)
743
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_content_folder)
744
+
745
+ # return_type
746
+ return_type = opts[:debug_return_type] || 'BatchResponseContentFolder'
747
+
748
+ # auth_names
749
+ auth_names = opts[:debug_auth_names] || ['oauth2']
750
+
751
+ new_options = opts.merge(
752
+ :operation => :"LandingPagesApi.create_folders",
753
+ :header_params => header_params,
754
+ :query_params => query_params,
755
+ :form_params => form_params,
756
+ :body => post_body,
757
+ :auth_names => auth_names,
758
+ :return_type => return_type
759
+ )
760
+
761
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
762
+ if @api_client.config.debugging
763
+ @api_client.config.logger.debug "API called: LandingPagesApi#create_folders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
764
+ end
765
+ return data, status_code, headers
766
+ end
767
+
768
+ # Create a new language variation
769
+ # Create a new language variation from an existing landing page
770
+ # @param content_language_clone_request_v_next [ContentLanguageCloneRequestVNext] The JSON representation of the ContentLanguageCloneRequest object.
771
+ # @param [Hash] opts the optional parameters
772
+ # @return [Page]
773
+ def create_lang_variation(content_language_clone_request_v_next, opts = {})
774
+ data, _status_code, _headers = create_lang_variation_with_http_info(content_language_clone_request_v_next, opts)
775
+ data
776
+ end
777
+
778
+ # Create a new language variation
779
+ # Create a new language variation from an existing landing page
780
+ # @param content_language_clone_request_v_next [ContentLanguageCloneRequestVNext] The JSON representation of the ContentLanguageCloneRequest object.
781
+ # @param [Hash] opts the optional parameters
782
+ # @return [Array<(Page, Integer, Hash)>] Page data, response status code and response headers
783
+ def create_lang_variation_with_http_info(content_language_clone_request_v_next, opts = {})
784
+ if @api_client.config.debugging
785
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.create_lang_variation ...'
786
+ end
787
+ # verify the required parameter 'content_language_clone_request_v_next' is set
788
+ if @api_client.config.client_side_validation && content_language_clone_request_v_next.nil?
789
+ fail ArgumentError, "Missing the required parameter 'content_language_clone_request_v_next' when calling LandingPagesApi.create_lang_variation"
790
+ end
791
+ # resource path
792
+ local_var_path = '/cms/v3/pages/landing-pages/multi-language/create-language-variation'
793
+
794
+ # query parameters
795
+ query_params = opts[:query_params] || {}
796
+
797
+ # header parameters
798
+ header_params = opts[:header_params] || {}
799
+ # HTTP header 'Accept' (if needed)
800
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
801
+ # HTTP header 'Content-Type'
802
+ content_type = @api_client.select_header_content_type(['application/json'])
803
+ if !content_type.nil?
804
+ header_params['Content-Type'] = content_type
805
+ end
806
+
807
+ # form parameters
808
+ form_params = opts[:form_params] || {}
809
+
810
+ # http body (model)
811
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(content_language_clone_request_v_next)
812
+
813
+ # return_type
814
+ return_type = opts[:debug_return_type] || 'Page'
815
+
816
+ # auth_names
817
+ auth_names = opts[:debug_auth_names] || ['oauth2']
818
+
819
+ new_options = opts.merge(
820
+ :operation => :"LandingPagesApi.create_lang_variation",
821
+ :header_params => header_params,
822
+ :query_params => query_params,
823
+ :form_params => form_params,
824
+ :body => post_body,
825
+ :auth_names => auth_names,
826
+ :return_type => return_type
827
+ )
828
+
829
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
830
+ if @api_client.config.debugging
831
+ @api_client.config.logger.debug "API called: LandingPagesApi#create_lang_variation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
832
+ end
833
+ return data, status_code, headers
834
+ end
835
+
836
+ # Detach a landing page from a multi-language group
837
+ # Detach a landing page from a multi-language group.
838
+ # @param detach_from_lang_group_request_v_next [DetachFromLangGroupRequestVNext] The JSON representation of the DetachFromLangGroupRequest object.
839
+ # @param [Hash] opts the optional parameters
840
+ # @return [nil]
841
+ def detach_from_lang_group(detach_from_lang_group_request_v_next, opts = {})
842
+ detach_from_lang_group_with_http_info(detach_from_lang_group_request_v_next, opts)
843
+ nil
844
+ end
845
+
846
+ # Detach a landing page from a multi-language group
847
+ # Detach a landing page from a multi-language group.
848
+ # @param detach_from_lang_group_request_v_next [DetachFromLangGroupRequestVNext] The JSON representation of the DetachFromLangGroupRequest object.
849
+ # @param [Hash] opts the optional parameters
850
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
851
+ def detach_from_lang_group_with_http_info(detach_from_lang_group_request_v_next, opts = {})
852
+ if @api_client.config.debugging
853
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.detach_from_lang_group ...'
854
+ end
855
+ # verify the required parameter 'detach_from_lang_group_request_v_next' is set
856
+ if @api_client.config.client_side_validation && detach_from_lang_group_request_v_next.nil?
857
+ fail ArgumentError, "Missing the required parameter 'detach_from_lang_group_request_v_next' when calling LandingPagesApi.detach_from_lang_group"
858
+ end
859
+ # resource path
860
+ local_var_path = '/cms/v3/pages/landing-pages/multi-language/detach-from-lang-group'
861
+
862
+ # query parameters
863
+ query_params = opts[:query_params] || {}
864
+
865
+ # header parameters
866
+ header_params = opts[:header_params] || {}
867
+ # HTTP header 'Accept' (if needed)
868
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
869
+ # HTTP header 'Content-Type'
870
+ content_type = @api_client.select_header_content_type(['application/json'])
871
+ if !content_type.nil?
872
+ header_params['Content-Type'] = content_type
873
+ end
874
+
875
+ # form parameters
876
+ form_params = opts[:form_params] || {}
877
+
878
+ # http body (model)
879
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(detach_from_lang_group_request_v_next)
880
+
881
+ # return_type
882
+ return_type = opts[:debug_return_type]
883
+
884
+ # auth_names
885
+ auth_names = opts[:debug_auth_names] || ['oauth2']
886
+
887
+ new_options = opts.merge(
888
+ :operation => :"LandingPagesApi.detach_from_lang_group",
889
+ :header_params => header_params,
890
+ :query_params => query_params,
891
+ :form_params => form_params,
892
+ :body => post_body,
893
+ :auth_names => auth_names,
894
+ :return_type => return_type
895
+ )
896
+
897
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
898
+ if @api_client.config.debugging
899
+ @api_client.config.logger.debug "API called: LandingPagesApi#detach_from_lang_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
900
+ end
901
+ return data, status_code, headers
902
+ end
903
+
904
+ # End an active A/B test
905
+ # End an active A/B test and designate a winner.
906
+ # @param ab_test_end_request_v_next [AbTestEndRequestVNext] The JSON representation of the AbTestEndRequest object.
907
+ # @param [Hash] opts the optional parameters
908
+ # @return [nil]
909
+ def end_active_ab_test(ab_test_end_request_v_next, opts = {})
910
+ end_active_ab_test_with_http_info(ab_test_end_request_v_next, opts)
911
+ nil
912
+ end
913
+
914
+ # End an active A/B test
915
+ # End an active A/B test and designate a winner.
916
+ # @param ab_test_end_request_v_next [AbTestEndRequestVNext] The JSON representation of the AbTestEndRequest object.
917
+ # @param [Hash] opts the optional parameters
918
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
919
+ def end_active_ab_test_with_http_info(ab_test_end_request_v_next, opts = {})
920
+ if @api_client.config.debugging
921
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.end_active_ab_test ...'
922
+ end
923
+ # verify the required parameter 'ab_test_end_request_v_next' is set
924
+ if @api_client.config.client_side_validation && ab_test_end_request_v_next.nil?
925
+ fail ArgumentError, "Missing the required parameter 'ab_test_end_request_v_next' when calling LandingPagesApi.end_active_ab_test"
926
+ end
927
+ # resource path
928
+ local_var_path = '/cms/v3/pages/landing-pages/ab-test/end'
929
+
930
+ # query parameters
931
+ query_params = opts[:query_params] || {}
932
+
933
+ # header parameters
934
+ header_params = opts[:header_params] || {}
935
+ # HTTP header 'Accept' (if needed)
936
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
937
+ # HTTP header 'Content-Type'
938
+ content_type = @api_client.select_header_content_type(['application/json'])
939
+ if !content_type.nil?
940
+ header_params['Content-Type'] = content_type
941
+ end
942
+
943
+ # form parameters
944
+ form_params = opts[:form_params] || {}
945
+
946
+ # http body (model)
947
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(ab_test_end_request_v_next)
948
+
949
+ # return_type
950
+ return_type = opts[:debug_return_type]
951
+
952
+ # auth_names
953
+ auth_names = opts[:debug_auth_names] || ['oauth2']
954
+
955
+ new_options = opts.merge(
956
+ :operation => :"LandingPagesApi.end_active_ab_test",
957
+ :header_params => header_params,
958
+ :query_params => query_params,
959
+ :form_params => form_params,
960
+ :body => post_body,
961
+ :auth_names => auth_names,
962
+ :return_type => return_type
963
+ )
964
+
965
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
966
+ if @api_client.config.debugging
967
+ @api_client.config.logger.debug "API called: LandingPagesApi#end_active_ab_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
968
+ end
969
+ return data, status_code, headers
970
+ end
971
+
972
+ # Retrieve a Landing Page
973
+ # Retrieve the Landing Page object identified by the id in the path.
974
+ # @param object_id [String] The Landing Page id.
975
+ # @param [Hash] opts the optional parameters
976
+ # @option opts [Boolean] :archived Specifies whether to return deleted Landing Pages. Defaults to &#x60;false&#x60;.
977
+ # @option opts [String] :property
978
+ # @return [Page]
979
+ def get_by_id(object_id, opts = {})
980
+ data, _status_code, _headers = get_by_id_with_http_info(object_id, opts)
981
+ data
982
+ end
983
+
984
+ # Retrieve a Landing Page
985
+ # Retrieve the Landing Page object identified by the id in the path.
986
+ # @param object_id [String] The Landing Page id.
987
+ # @param [Hash] opts the optional parameters
988
+ # @option opts [Boolean] :archived Specifies whether to return deleted Landing Pages. Defaults to &#x60;false&#x60;.
989
+ # @option opts [String] :property
990
+ # @return [Array<(Page, Integer, Hash)>] Page data, response status code and response headers
991
+ def get_by_id_with_http_info(object_id, opts = {})
992
+ if @api_client.config.debugging
993
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.get_by_id ...'
994
+ end
995
+ # verify the required parameter 'object_id' is set
996
+ if @api_client.config.client_side_validation && object_id.nil?
997
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.get_by_id"
998
+ end
999
+ # resource path
1000
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
1001
+
1002
+ # query parameters
1003
+ query_params = opts[:query_params] || {}
1004
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
1005
+ query_params[:'property'] = opts[:'property'] if !opts[:'property'].nil?
1006
+
1007
+ # header parameters
1008
+ header_params = opts[:header_params] || {}
1009
+ # HTTP header 'Accept' (if needed)
1010
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1011
+
1012
+ # form parameters
1013
+ form_params = opts[:form_params] || {}
1014
+
1015
+ # http body (model)
1016
+ post_body = opts[:debug_body]
1017
+
1018
+ # return_type
1019
+ return_type = opts[:debug_return_type] || 'Page'
1020
+
1021
+ # auth_names
1022
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1023
+
1024
+ new_options = opts.merge(
1025
+ :operation => :"LandingPagesApi.get_by_id",
1026
+ :header_params => header_params,
1027
+ :query_params => query_params,
1028
+ :form_params => form_params,
1029
+ :body => post_body,
1030
+ :auth_names => auth_names,
1031
+ :return_type => return_type
1032
+ )
1033
+
1034
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1035
+ if @api_client.config.debugging
1036
+ @api_client.config.logger.debug "API called: LandingPagesApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1037
+ end
1038
+ return data, status_code, headers
1039
+ end
1040
+
1041
+ # Retrieve the full draft version of the Landing Page
1042
+ # Retrieve the full draft version of the Landing Page.
1043
+ # @param object_id [String] The Landing Page id.
1044
+ # @param [Hash] opts the optional parameters
1045
+ # @return [Page]
1046
+ def get_draft_by_id(object_id, opts = {})
1047
+ data, _status_code, _headers = get_draft_by_id_with_http_info(object_id, opts)
1048
+ data
1049
+ end
1050
+
1051
+ # Retrieve the full draft version of the Landing Page
1052
+ # Retrieve the full draft version of the Landing Page.
1053
+ # @param object_id [String] The Landing Page id.
1054
+ # @param [Hash] opts the optional parameters
1055
+ # @return [Array<(Page, Integer, Hash)>] Page data, response status code and response headers
1056
+ def get_draft_by_id_with_http_info(object_id, opts = {})
1057
+ if @api_client.config.debugging
1058
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.get_draft_by_id ...'
1059
+ end
1060
+ # verify the required parameter 'object_id' is set
1061
+ if @api_client.config.client_side_validation && object_id.nil?
1062
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.get_draft_by_id"
1063
+ end
1064
+ # resource path
1065
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}/draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
1066
+
1067
+ # query parameters
1068
+ query_params = opts[:query_params] || {}
1069
+
1070
+ # header parameters
1071
+ header_params = opts[:header_params] || {}
1072
+ # HTTP header 'Accept' (if needed)
1073
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1074
+
1075
+ # form parameters
1076
+ form_params = opts[:form_params] || {}
1077
+
1078
+ # http body (model)
1079
+ post_body = opts[:debug_body]
1080
+
1081
+ # return_type
1082
+ return_type = opts[:debug_return_type] || 'Page'
1083
+
1084
+ # auth_names
1085
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1086
+
1087
+ new_options = opts.merge(
1088
+ :operation => :"LandingPagesApi.get_draft_by_id",
1089
+ :header_params => header_params,
1090
+ :query_params => query_params,
1091
+ :form_params => form_params,
1092
+ :body => post_body,
1093
+ :auth_names => auth_names,
1094
+ :return_type => return_type
1095
+ )
1096
+
1097
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1098
+ if @api_client.config.debugging
1099
+ @api_client.config.logger.debug "API called: LandingPagesApi#get_draft_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1100
+ end
1101
+ return data, status_code, headers
1102
+ end
1103
+
1104
+ # Retrieve a Folder
1105
+ # Retrieve the Folder object identified by the id in the path.
1106
+ # @param object_id [String] The Folder id.
1107
+ # @param [Hash] opts the optional parameters
1108
+ # @option opts [Boolean] :archived Specifies whether to return deleted Folders. Defaults to &#x60;false&#x60;.
1109
+ # @option opts [String] :property
1110
+ # @return [ContentFolder]
1111
+ def get_folder_by_id(object_id, opts = {})
1112
+ data, _status_code, _headers = get_folder_by_id_with_http_info(object_id, opts)
1113
+ data
1114
+ end
1115
+
1116
+ # Retrieve a Folder
1117
+ # Retrieve the Folder object identified by the id in the path.
1118
+ # @param object_id [String] The Folder id.
1119
+ # @param [Hash] opts the optional parameters
1120
+ # @option opts [Boolean] :archived Specifies whether to return deleted Folders. Defaults to &#x60;false&#x60;.
1121
+ # @option opts [String] :property
1122
+ # @return [Array<(ContentFolder, Integer, Hash)>] ContentFolder data, response status code and response headers
1123
+ def get_folder_by_id_with_http_info(object_id, opts = {})
1124
+ if @api_client.config.debugging
1125
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.get_folder_by_id ...'
1126
+ end
1127
+ # verify the required parameter 'object_id' is set
1128
+ if @api_client.config.client_side_validation && object_id.nil?
1129
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.get_folder_by_id"
1130
+ end
1131
+ # resource path
1132
+ local_var_path = '/cms/v3/pages/landing-pages/folders/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
1133
+
1134
+ # query parameters
1135
+ query_params = opts[:query_params] || {}
1136
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
1137
+ query_params[:'property'] = opts[:'property'] if !opts[:'property'].nil?
1138
+
1139
+ # header parameters
1140
+ header_params = opts[:header_params] || {}
1141
+ # HTTP header 'Accept' (if needed)
1142
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1143
+
1144
+ # form parameters
1145
+ form_params = opts[:form_params] || {}
1146
+
1147
+ # http body (model)
1148
+ post_body = opts[:debug_body]
1149
+
1150
+ # return_type
1151
+ return_type = opts[:debug_return_type] || 'ContentFolder'
1152
+
1153
+ # auth_names
1154
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1155
+
1156
+ new_options = opts.merge(
1157
+ :operation => :"LandingPagesApi.get_folder_by_id",
1158
+ :header_params => header_params,
1159
+ :query_params => query_params,
1160
+ :form_params => form_params,
1161
+ :body => post_body,
1162
+ :auth_names => auth_names,
1163
+ :return_type => return_type
1164
+ )
1165
+
1166
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1167
+ if @api_client.config.debugging
1168
+ @api_client.config.logger.debug "API called: LandingPagesApi#get_folder_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1169
+ end
1170
+ return data, status_code, headers
1171
+ end
1172
+
1173
+ # Retrieves a previous version of a Folder
1174
+ # Retrieves a previous version of a Folder
1175
+ # @param object_id [String] The Folder id.
1176
+ # @param revision_id [String] The Folder version id.
1177
+ # @param [Hash] opts the optional parameters
1178
+ # @return [VersionContentFolder]
1179
+ def get_folder_previous_version(object_id, revision_id, opts = {})
1180
+ data, _status_code, _headers = get_folder_previous_version_with_http_info(object_id, revision_id, opts)
1181
+ data
1182
+ end
1183
+
1184
+ # Retrieves a previous version of a Folder
1185
+ # Retrieves a previous version of a Folder
1186
+ # @param object_id [String] The Folder id.
1187
+ # @param revision_id [String] The Folder version id.
1188
+ # @param [Hash] opts the optional parameters
1189
+ # @return [Array<(VersionContentFolder, Integer, Hash)>] VersionContentFolder data, response status code and response headers
1190
+ def get_folder_previous_version_with_http_info(object_id, revision_id, opts = {})
1191
+ if @api_client.config.debugging
1192
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.get_folder_previous_version ...'
1193
+ end
1194
+ # verify the required parameter 'object_id' is set
1195
+ if @api_client.config.client_side_validation && object_id.nil?
1196
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.get_folder_previous_version"
1197
+ end
1198
+ # verify the required parameter 'revision_id' is set
1199
+ if @api_client.config.client_side_validation && revision_id.nil?
1200
+ fail ArgumentError, "Missing the required parameter 'revision_id' when calling LandingPagesApi.get_folder_previous_version"
1201
+ end
1202
+ # resource path
1203
+ local_var_path = '/cms/v3/pages/landing-pages/folders/{objectId}/revisions/{revisionId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
1204
+
1205
+ # query parameters
1206
+ query_params = opts[:query_params] || {}
1207
+
1208
+ # header parameters
1209
+ header_params = opts[:header_params] || {}
1210
+ # HTTP header 'Accept' (if needed)
1211
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1212
+
1213
+ # form parameters
1214
+ form_params = opts[:form_params] || {}
1215
+
1216
+ # http body (model)
1217
+ post_body = opts[:debug_body]
1218
+
1219
+ # return_type
1220
+ return_type = opts[:debug_return_type] || 'VersionContentFolder'
1221
+
1222
+ # auth_names
1223
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1224
+
1225
+ new_options = opts.merge(
1226
+ :operation => :"LandingPagesApi.get_folder_previous_version",
1227
+ :header_params => header_params,
1228
+ :query_params => query_params,
1229
+ :form_params => form_params,
1230
+ :body => post_body,
1231
+ :auth_names => auth_names,
1232
+ :return_type => return_type
1233
+ )
1234
+
1235
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1236
+ if @api_client.config.debugging
1237
+ @api_client.config.logger.debug "API called: LandingPagesApi#get_folder_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1238
+ end
1239
+ return data, status_code, headers
1240
+ end
1241
+
1242
+ # Retrieves all the previous versions of a Folder
1243
+ # Retrieves all the previous versions of a Folder.
1244
+ # @param object_id [String] The Folder id.
1245
+ # @param [Hash] opts the optional parameters
1246
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
1247
+ # @option opts [String] :before
1248
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 100.
1249
+ # @return [CollectionResponseWithTotalVersionContentFolder]
1250
+ def get_folder_previous_versions(object_id, opts = {})
1251
+ data, _status_code, _headers = get_folder_previous_versions_with_http_info(object_id, opts)
1252
+ data
1253
+ end
1254
+
1255
+ # Retrieves all the previous versions of a Folder
1256
+ # Retrieves all the previous versions of a Folder.
1257
+ # @param object_id [String] The Folder id.
1258
+ # @param [Hash] opts the optional parameters
1259
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
1260
+ # @option opts [String] :before
1261
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 100.
1262
+ # @return [Array<(CollectionResponseWithTotalVersionContentFolder, Integer, Hash)>] CollectionResponseWithTotalVersionContentFolder data, response status code and response headers
1263
+ def get_folder_previous_versions_with_http_info(object_id, opts = {})
1264
+ if @api_client.config.debugging
1265
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.get_folder_previous_versions ...'
1266
+ end
1267
+ # verify the required parameter 'object_id' is set
1268
+ if @api_client.config.client_side_validation && object_id.nil?
1269
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.get_folder_previous_versions"
1270
+ end
1271
+ # resource path
1272
+ local_var_path = '/cms/v3/pages/landing-pages/folders/{objectId}/revisions'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
1273
+
1274
+ # query parameters
1275
+ query_params = opts[:query_params] || {}
1276
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1277
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1278
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1279
+
1280
+ # header parameters
1281
+ header_params = opts[:header_params] || {}
1282
+ # HTTP header 'Accept' (if needed)
1283
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1284
+
1285
+ # form parameters
1286
+ form_params = opts[:form_params] || {}
1287
+
1288
+ # http body (model)
1289
+ post_body = opts[:debug_body]
1290
+
1291
+ # return_type
1292
+ return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalVersionContentFolder'
1293
+
1294
+ # auth_names
1295
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1296
+
1297
+ new_options = opts.merge(
1298
+ :operation => :"LandingPagesApi.get_folder_previous_versions",
1299
+ :header_params => header_params,
1300
+ :query_params => query_params,
1301
+ :form_params => form_params,
1302
+ :body => post_body,
1303
+ :auth_names => auth_names,
1304
+ :return_type => return_type
1305
+ )
1306
+
1307
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1308
+ if @api_client.config.debugging
1309
+ @api_client.config.logger.debug "API called: LandingPagesApi#get_folder_previous_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1310
+ end
1311
+ return data, status_code, headers
1312
+ end
1313
+
1314
+ # Get all Landing Page Folders
1315
+ # Get the list of Landing Page Folders. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits.
1316
+ # @param [Hash] opts the optional parameters
1317
+ # @option opts [Time] :created_at Only return Folders created at exactly the specified time.
1318
+ # @option opts [Time] :created_after Only return Folders created after the specified time.
1319
+ # @option opts [Time] :created_before Only return Folders created before the specified time.
1320
+ # @option opts [Time] :updated_at Only return Folders last updated at exactly the specified time.
1321
+ # @option opts [Time] :updated_after Only return Folders last updated after the specified time.
1322
+ # @option opts [Time] :updated_before Only return Folders last updated before the specified time.
1323
+ # @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are &#x60;name&#x60;, &#x60;createdAt&#x60;, &#x60;updatedAt&#x60;, &#x60;createdBy&#x60;, &#x60;updatedBy&#x60;. &#x60;createdAt&#x60; will be used by default.
1324
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
1325
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 100.
1326
+ # @option opts [Boolean] :archived Specifies whether to return deleted Folders. Defaults to &#x60;false&#x60;.
1327
+ # @option opts [String] :property
1328
+ # @return [CollectionResponseWithTotalContentFolderForwardPaging]
1329
+ def get_folders_page(opts = {})
1330
+ data, _status_code, _headers = get_folders_page_with_http_info(opts)
1331
+ data
1332
+ end
1333
+
1334
+ # Get all Landing Page Folders
1335
+ # Get the list of Landing Page Folders. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits.
1336
+ # @param [Hash] opts the optional parameters
1337
+ # @option opts [Time] :created_at Only return Folders created at exactly the specified time.
1338
+ # @option opts [Time] :created_after Only return Folders created after the specified time.
1339
+ # @option opts [Time] :created_before Only return Folders created before the specified time.
1340
+ # @option opts [Time] :updated_at Only return Folders last updated at exactly the specified time.
1341
+ # @option opts [Time] :updated_after Only return Folders last updated after the specified time.
1342
+ # @option opts [Time] :updated_before Only return Folders last updated before the specified time.
1343
+ # @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are &#x60;name&#x60;, &#x60;createdAt&#x60;, &#x60;updatedAt&#x60;, &#x60;createdBy&#x60;, &#x60;updatedBy&#x60;. &#x60;createdAt&#x60; will be used by default.
1344
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
1345
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 100.
1346
+ # @option opts [Boolean] :archived Specifies whether to return deleted Folders. Defaults to &#x60;false&#x60;.
1347
+ # @option opts [String] :property
1348
+ # @return [Array<(CollectionResponseWithTotalContentFolderForwardPaging, Integer, Hash)>] CollectionResponseWithTotalContentFolderForwardPaging data, response status code and response headers
1349
+ def get_folders_page_with_http_info(opts = {})
1350
+ if @api_client.config.debugging
1351
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.get_folders_page ...'
1352
+ end
1353
+ # resource path
1354
+ local_var_path = '/cms/v3/pages/landing-pages/folders'
1355
+
1356
+ # query parameters
1357
+ query_params = opts[:query_params] || {}
1358
+ query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
1359
+ query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil?
1360
+ query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil?
1361
+ query_params[:'updatedAt'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
1362
+ query_params[:'updatedAfter'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
1363
+ query_params[:'updatedBefore'] = opts[:'updated_before'] if !opts[:'updated_before'].nil?
1364
+ query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
1365
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1366
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1367
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
1368
+ query_params[:'property'] = opts[:'property'] if !opts[:'property'].nil?
1369
+
1370
+ # header parameters
1371
+ header_params = opts[:header_params] || {}
1372
+ # HTTP header 'Accept' (if needed)
1373
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1374
+
1375
+ # form parameters
1376
+ form_params = opts[:form_params] || {}
1377
+
1378
+ # http body (model)
1379
+ post_body = opts[:debug_body]
1380
+
1381
+ # return_type
1382
+ return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalContentFolderForwardPaging'
1383
+
1384
+ # auth_names
1385
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1386
+
1387
+ new_options = opts.merge(
1388
+ :operation => :"LandingPagesApi.get_folders_page",
1389
+ :header_params => header_params,
1390
+ :query_params => query_params,
1391
+ :form_params => form_params,
1392
+ :body => post_body,
1393
+ :auth_names => auth_names,
1394
+ :return_type => return_type
1395
+ )
1396
+
1397
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1398
+ if @api_client.config.debugging
1399
+ @api_client.config.logger.debug "API called: LandingPagesApi#get_folders_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1400
+ end
1401
+ return data, status_code, headers
1402
+ end
1403
+
1404
+ # Get all Landing Pages
1405
+ # Get the list of landing pages. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits.
1406
+ # @param [Hash] opts the optional parameters
1407
+ # @option opts [Time] :created_at Only return Landing Pages created at exactly the specified time.
1408
+ # @option opts [Time] :created_after Only return Landing Pages created after the specified time.
1409
+ # @option opts [Time] :created_before Only return Landing Pages created before the specified time.
1410
+ # @option opts [Time] :updated_at Only return Landing Pages last updated at exactly the specified time.
1411
+ # @option opts [Time] :updated_after Only return Landing Pages last updated after the specified time.
1412
+ # @option opts [Time] :updated_before Only return Landing Pages last updated before the specified time.
1413
+ # @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are &#x60;name&#x60;, &#x60;createdAt&#x60;, &#x60;updatedAt&#x60;, &#x60;createdBy&#x60;, &#x60;updatedBy&#x60;. &#x60;createdAt&#x60; will be used by default.
1414
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
1415
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 100.
1416
+ # @option opts [Boolean] :archived Specifies whether to return deleted Landing Pages. Defaults to &#x60;false&#x60;.
1417
+ # @option opts [String] :property
1418
+ # @return [CollectionResponseWithTotalPageForwardPaging]
1419
+ def get_page(opts = {})
1420
+ data, _status_code, _headers = get_page_with_http_info(opts)
1421
+ data
1422
+ end
1423
+
1424
+ # Get all Landing Pages
1425
+ # Get the list of landing pages. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits.
1426
+ # @param [Hash] opts the optional parameters
1427
+ # @option opts [Time] :created_at Only return Landing Pages created at exactly the specified time.
1428
+ # @option opts [Time] :created_after Only return Landing Pages created after the specified time.
1429
+ # @option opts [Time] :created_before Only return Landing Pages created before the specified time.
1430
+ # @option opts [Time] :updated_at Only return Landing Pages last updated at exactly the specified time.
1431
+ # @option opts [Time] :updated_after Only return Landing Pages last updated after the specified time.
1432
+ # @option opts [Time] :updated_before Only return Landing Pages last updated before the specified time.
1433
+ # @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are &#x60;name&#x60;, &#x60;createdAt&#x60;, &#x60;updatedAt&#x60;, &#x60;createdBy&#x60;, &#x60;updatedBy&#x60;. &#x60;createdAt&#x60; will be used by default.
1434
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
1435
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 100.
1436
+ # @option opts [Boolean] :archived Specifies whether to return deleted Landing Pages. Defaults to &#x60;false&#x60;.
1437
+ # @option opts [String] :property
1438
+ # @return [Array<(CollectionResponseWithTotalPageForwardPaging, Integer, Hash)>] CollectionResponseWithTotalPageForwardPaging data, response status code and response headers
1439
+ def get_page_with_http_info(opts = {})
1440
+ if @api_client.config.debugging
1441
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.get_page ...'
1442
+ end
1443
+ # resource path
1444
+ local_var_path = '/cms/v3/pages/landing-pages'
1445
+
1446
+ # query parameters
1447
+ query_params = opts[:query_params] || {}
1448
+ query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
1449
+ query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil?
1450
+ query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil?
1451
+ query_params[:'updatedAt'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
1452
+ query_params[:'updatedAfter'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
1453
+ query_params[:'updatedBefore'] = opts[:'updated_before'] if !opts[:'updated_before'].nil?
1454
+ query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
1455
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1456
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1457
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
1458
+ query_params[:'property'] = opts[:'property'] if !opts[:'property'].nil?
1459
+
1460
+ # header parameters
1461
+ header_params = opts[:header_params] || {}
1462
+ # HTTP header 'Accept' (if needed)
1463
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1464
+
1465
+ # form parameters
1466
+ form_params = opts[:form_params] || {}
1467
+
1468
+ # http body (model)
1469
+ post_body = opts[:debug_body]
1470
+
1471
+ # return_type
1472
+ return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalPageForwardPaging'
1473
+
1474
+ # auth_names
1475
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1476
+
1477
+ new_options = opts.merge(
1478
+ :operation => :"LandingPagesApi.get_page",
1479
+ :header_params => header_params,
1480
+ :query_params => query_params,
1481
+ :form_params => form_params,
1482
+ :body => post_body,
1483
+ :auth_names => auth_names,
1484
+ :return_type => return_type
1485
+ )
1486
+
1487
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1488
+ if @api_client.config.debugging
1489
+ @api_client.config.logger.debug "API called: LandingPagesApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1490
+ end
1491
+ return data, status_code, headers
1492
+ end
1493
+
1494
+ # Retrieves a previous version of a Landing Page
1495
+ # Retrieves a previous version of a Landing Page
1496
+ # @param object_id [String] The Landing Page id.
1497
+ # @param revision_id [String] The Landing Page version id.
1498
+ # @param [Hash] opts the optional parameters
1499
+ # @return [VersionPage]
1500
+ def get_previous_version(object_id, revision_id, opts = {})
1501
+ data, _status_code, _headers = get_previous_version_with_http_info(object_id, revision_id, opts)
1502
+ data
1503
+ end
1504
+
1505
+ # Retrieves a previous version of a Landing Page
1506
+ # Retrieves a previous version of a Landing Page
1507
+ # @param object_id [String] The Landing Page id.
1508
+ # @param revision_id [String] The Landing Page version id.
1509
+ # @param [Hash] opts the optional parameters
1510
+ # @return [Array<(VersionPage, Integer, Hash)>] VersionPage data, response status code and response headers
1511
+ def get_previous_version_with_http_info(object_id, revision_id, opts = {})
1512
+ if @api_client.config.debugging
1513
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.get_previous_version ...'
1514
+ end
1515
+ # verify the required parameter 'object_id' is set
1516
+ if @api_client.config.client_side_validation && object_id.nil?
1517
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.get_previous_version"
1518
+ end
1519
+ # verify the required parameter 'revision_id' is set
1520
+ if @api_client.config.client_side_validation && revision_id.nil?
1521
+ fail ArgumentError, "Missing the required parameter 'revision_id' when calling LandingPagesApi.get_previous_version"
1522
+ end
1523
+ # resource path
1524
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}/revisions/{revisionId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
1525
+
1526
+ # query parameters
1527
+ query_params = opts[:query_params] || {}
1528
+
1529
+ # header parameters
1530
+ header_params = opts[:header_params] || {}
1531
+ # HTTP header 'Accept' (if needed)
1532
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1533
+
1534
+ # form parameters
1535
+ form_params = opts[:form_params] || {}
1536
+
1537
+ # http body (model)
1538
+ post_body = opts[:debug_body]
1539
+
1540
+ # return_type
1541
+ return_type = opts[:debug_return_type] || 'VersionPage'
1542
+
1543
+ # auth_names
1544
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1545
+
1546
+ new_options = opts.merge(
1547
+ :operation => :"LandingPagesApi.get_previous_version",
1548
+ :header_params => header_params,
1549
+ :query_params => query_params,
1550
+ :form_params => form_params,
1551
+ :body => post_body,
1552
+ :auth_names => auth_names,
1553
+ :return_type => return_type
1554
+ )
1555
+
1556
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1557
+ if @api_client.config.debugging
1558
+ @api_client.config.logger.debug "API called: LandingPagesApi#get_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1559
+ end
1560
+ return data, status_code, headers
1561
+ end
1562
+
1563
+ # Retrieves all the previous versions of a Landing Page
1564
+ # Retrieves all the previous versions of a Landing Page.
1565
+ # @param object_id [String] The Landing Page id.
1566
+ # @param [Hash] opts the optional parameters
1567
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
1568
+ # @option opts [String] :before
1569
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 100.
1570
+ # @return [CollectionResponseWithTotalVersionPage]
1571
+ def get_previous_versions(object_id, opts = {})
1572
+ data, _status_code, _headers = get_previous_versions_with_http_info(object_id, opts)
1573
+ data
1574
+ end
1575
+
1576
+ # Retrieves all the previous versions of a Landing Page
1577
+ # Retrieves all the previous versions of a Landing Page.
1578
+ # @param object_id [String] The Landing Page id.
1579
+ # @param [Hash] opts the optional parameters
1580
+ # @option opts [String] :after The cursor token value to get the next set of results. You can get this from the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
1581
+ # @option opts [String] :before
1582
+ # @option opts [Integer] :limit The maximum number of results to return. Default is 100.
1583
+ # @return [Array<(CollectionResponseWithTotalVersionPage, Integer, Hash)>] CollectionResponseWithTotalVersionPage data, response status code and response headers
1584
+ def get_previous_versions_with_http_info(object_id, opts = {})
1585
+ if @api_client.config.debugging
1586
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.get_previous_versions ...'
1587
+ end
1588
+ # verify the required parameter 'object_id' is set
1589
+ if @api_client.config.client_side_validation && object_id.nil?
1590
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.get_previous_versions"
1591
+ end
1592
+ # resource path
1593
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}/revisions'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
1594
+
1595
+ # query parameters
1596
+ query_params = opts[:query_params] || {}
1597
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
1598
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1599
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1600
+
1601
+ # header parameters
1602
+ header_params = opts[:header_params] || {}
1603
+ # HTTP header 'Accept' (if needed)
1604
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1605
+
1606
+ # form parameters
1607
+ form_params = opts[:form_params] || {}
1608
+
1609
+ # http body (model)
1610
+ post_body = opts[:debug_body]
1611
+
1612
+ # return_type
1613
+ return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalVersionPage'
1614
+
1615
+ # auth_names
1616
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1617
+
1618
+ new_options = opts.merge(
1619
+ :operation => :"LandingPagesApi.get_previous_versions",
1620
+ :header_params => header_params,
1621
+ :query_params => query_params,
1622
+ :form_params => form_params,
1623
+ :body => post_body,
1624
+ :auth_names => auth_names,
1625
+ :return_type => return_type
1626
+ )
1627
+
1628
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1629
+ if @api_client.config.debugging
1630
+ @api_client.config.logger.debug "API called: LandingPagesApi#get_previous_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1631
+ end
1632
+ return data, status_code, headers
1633
+ end
1634
+
1635
+ # Push Landing Page draft edits live
1636
+ # Take any changes from the draft version of the Landing Page and apply them to the live version.
1637
+ # @param object_id [String] The id of the Landing Page for which it&#39;s draft will be pushed live.
1638
+ # @param [Hash] opts the optional parameters
1639
+ # @return [nil]
1640
+ def push_live(object_id, opts = {})
1641
+ push_live_with_http_info(object_id, opts)
1642
+ nil
1643
+ end
1644
+
1645
+ # Push Landing Page draft edits live
1646
+ # Take any changes from the draft version of the Landing Page and apply them to the live version.
1647
+ # @param object_id [String] The id of the Landing Page for which it&#39;s draft will be pushed live.
1648
+ # @param [Hash] opts the optional parameters
1649
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1650
+ def push_live_with_http_info(object_id, opts = {})
1651
+ if @api_client.config.debugging
1652
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.push_live ...'
1653
+ end
1654
+ # verify the required parameter 'object_id' is set
1655
+ if @api_client.config.client_side_validation && object_id.nil?
1656
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.push_live"
1657
+ end
1658
+ # resource path
1659
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}/draft/push-live'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
1660
+
1661
+ # query parameters
1662
+ query_params = opts[:query_params] || {}
1663
+
1664
+ # header parameters
1665
+ header_params = opts[:header_params] || {}
1666
+ # HTTP header 'Accept' (if needed)
1667
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1668
+
1669
+ # form parameters
1670
+ form_params = opts[:form_params] || {}
1671
+
1672
+ # http body (model)
1673
+ post_body = opts[:debug_body]
1674
+
1675
+ # return_type
1676
+ return_type = opts[:debug_return_type]
1677
+
1678
+ # auth_names
1679
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1680
+
1681
+ new_options = opts.merge(
1682
+ :operation => :"LandingPagesApi.push_live",
1683
+ :header_params => header_params,
1684
+ :query_params => query_params,
1685
+ :form_params => form_params,
1686
+ :body => post_body,
1687
+ :auth_names => auth_names,
1688
+ :return_type => return_type
1689
+ )
1690
+
1691
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1692
+ if @api_client.config.debugging
1693
+ @api_client.config.logger.debug "API called: LandingPagesApi#push_live\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1694
+ end
1695
+ return data, status_code, headers
1696
+ end
1697
+
1698
+ # Retrieve a batch of Landing Pages
1699
+ # Retrieve the Landing Page objects identified in the request body.
1700
+ # @param batch_input_string [BatchInputString] The JSON array of Landing Page ids.
1701
+ # @param [Hash] opts the optional parameters
1702
+ # @option opts [Boolean] :archived Specifies whether to return deleted Landing Pages. Defaults to &#x60;false&#x60;.
1703
+ # @return [BatchResponsePage]
1704
+ def read_batch(batch_input_string, opts = {})
1705
+ data, _status_code, _headers = read_batch_with_http_info(batch_input_string, opts)
1706
+ data
1707
+ end
1708
+
1709
+ # Retrieve a batch of Landing Pages
1710
+ # Retrieve the Landing Page objects identified in the request body.
1711
+ # @param batch_input_string [BatchInputString] The JSON array of Landing Page ids.
1712
+ # @param [Hash] opts the optional parameters
1713
+ # @option opts [Boolean] :archived Specifies whether to return deleted Landing Pages. Defaults to &#x60;false&#x60;.
1714
+ # @return [Array<(BatchResponsePage, Integer, Hash)>] BatchResponsePage data, response status code and response headers
1715
+ def read_batch_with_http_info(batch_input_string, opts = {})
1716
+ if @api_client.config.debugging
1717
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.read_batch ...'
1718
+ end
1719
+ # verify the required parameter 'batch_input_string' is set
1720
+ if @api_client.config.client_side_validation && batch_input_string.nil?
1721
+ fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling LandingPagesApi.read_batch"
1722
+ end
1723
+ # resource path
1724
+ local_var_path = '/cms/v3/pages/landing-pages/batch/read'
1725
+
1726
+ # query parameters
1727
+ query_params = opts[:query_params] || {}
1728
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
1729
+
1730
+ # header parameters
1731
+ header_params = opts[:header_params] || {}
1732
+ # HTTP header 'Accept' (if needed)
1733
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1734
+ # HTTP header 'Content-Type'
1735
+ content_type = @api_client.select_header_content_type(['application/json'])
1736
+ if !content_type.nil?
1737
+ header_params['Content-Type'] = content_type
1738
+ end
1739
+
1740
+ # form parameters
1741
+ form_params = opts[:form_params] || {}
1742
+
1743
+ # http body (model)
1744
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_string)
1745
+
1746
+ # return_type
1747
+ return_type = opts[:debug_return_type] || 'BatchResponsePage'
1748
+
1749
+ # auth_names
1750
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1751
+
1752
+ new_options = opts.merge(
1753
+ :operation => :"LandingPagesApi.read_batch",
1754
+ :header_params => header_params,
1755
+ :query_params => query_params,
1756
+ :form_params => form_params,
1757
+ :body => post_body,
1758
+ :auth_names => auth_names,
1759
+ :return_type => return_type
1760
+ )
1761
+
1762
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1763
+ if @api_client.config.debugging
1764
+ @api_client.config.logger.debug "API called: LandingPagesApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1765
+ end
1766
+ return data, status_code, headers
1767
+ end
1768
+
1769
+ # Retrieve a batch of Folders
1770
+ # Update the Folder objects identified in the request body.
1771
+ # @param batch_input_string [BatchInputString] The JSON array of Folder ids.
1772
+ # @param [Hash] opts the optional parameters
1773
+ # @option opts [Boolean] :archived Specifies whether to return deleted Folders. Defaults to &#x60;false&#x60;.
1774
+ # @return [BatchResponseContentFolder]
1775
+ def read_folders(batch_input_string, opts = {})
1776
+ data, _status_code, _headers = read_folders_with_http_info(batch_input_string, opts)
1777
+ data
1778
+ end
1779
+
1780
+ # Retrieve a batch of Folders
1781
+ # Update the Folder objects identified in the request body.
1782
+ # @param batch_input_string [BatchInputString] The JSON array of Folder ids.
1783
+ # @param [Hash] opts the optional parameters
1784
+ # @option opts [Boolean] :archived Specifies whether to return deleted Folders. Defaults to &#x60;false&#x60;.
1785
+ # @return [Array<(BatchResponseContentFolder, Integer, Hash)>] BatchResponseContentFolder data, response status code and response headers
1786
+ def read_folders_with_http_info(batch_input_string, opts = {})
1787
+ if @api_client.config.debugging
1788
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.read_folders ...'
1789
+ end
1790
+ # verify the required parameter 'batch_input_string' is set
1791
+ if @api_client.config.client_side_validation && batch_input_string.nil?
1792
+ fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling LandingPagesApi.read_folders"
1793
+ end
1794
+ # resource path
1795
+ local_var_path = '/cms/v3/pages/landing-pages/folders/batch/read'
1796
+
1797
+ # query parameters
1798
+ query_params = opts[:query_params] || {}
1799
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
1800
+
1801
+ # header parameters
1802
+ header_params = opts[:header_params] || {}
1803
+ # HTTP header 'Accept' (if needed)
1804
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
1805
+ # HTTP header 'Content-Type'
1806
+ content_type = @api_client.select_header_content_type(['application/json'])
1807
+ if !content_type.nil?
1808
+ header_params['Content-Type'] = content_type
1809
+ end
1810
+
1811
+ # form parameters
1812
+ form_params = opts[:form_params] || {}
1813
+
1814
+ # http body (model)
1815
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_string)
1816
+
1817
+ # return_type
1818
+ return_type = opts[:debug_return_type] || 'BatchResponseContentFolder'
1819
+
1820
+ # auth_names
1821
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1822
+
1823
+ new_options = opts.merge(
1824
+ :operation => :"LandingPagesApi.read_folders",
1825
+ :header_params => header_params,
1826
+ :query_params => query_params,
1827
+ :form_params => form_params,
1828
+ :body => post_body,
1829
+ :auth_names => auth_names,
1830
+ :return_type => return_type
1831
+ )
1832
+
1833
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1834
+ if @api_client.config.debugging
1835
+ @api_client.config.logger.debug "API called: LandingPagesApi#read_folders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1836
+ end
1837
+ return data, status_code, headers
1838
+ end
1839
+
1840
+ # Rerun a previous A/B test
1841
+ # Rerun a previous A/B test.
1842
+ # @param ab_test_rerun_request_v_next [AbTestRerunRequestVNext] The JSON representation of the AbTestRerunRequest object.
1843
+ # @param [Hash] opts the optional parameters
1844
+ # @return [nil]
1845
+ def rerun_previous_ab_test(ab_test_rerun_request_v_next, opts = {})
1846
+ rerun_previous_ab_test_with_http_info(ab_test_rerun_request_v_next, opts)
1847
+ nil
1848
+ end
1849
+
1850
+ # Rerun a previous A/B test
1851
+ # Rerun a previous A/B test.
1852
+ # @param ab_test_rerun_request_v_next [AbTestRerunRequestVNext] The JSON representation of the AbTestRerunRequest object.
1853
+ # @param [Hash] opts the optional parameters
1854
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1855
+ def rerun_previous_ab_test_with_http_info(ab_test_rerun_request_v_next, opts = {})
1856
+ if @api_client.config.debugging
1857
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.rerun_previous_ab_test ...'
1858
+ end
1859
+ # verify the required parameter 'ab_test_rerun_request_v_next' is set
1860
+ if @api_client.config.client_side_validation && ab_test_rerun_request_v_next.nil?
1861
+ fail ArgumentError, "Missing the required parameter 'ab_test_rerun_request_v_next' when calling LandingPagesApi.rerun_previous_ab_test"
1862
+ end
1863
+ # resource path
1864
+ local_var_path = '/cms/v3/pages/landing-pages/ab-test/rerun'
1865
+
1866
+ # query parameters
1867
+ query_params = opts[:query_params] || {}
1868
+
1869
+ # header parameters
1870
+ header_params = opts[:header_params] || {}
1871
+ # HTTP header 'Accept' (if needed)
1872
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1873
+ # HTTP header 'Content-Type'
1874
+ content_type = @api_client.select_header_content_type(['application/json'])
1875
+ if !content_type.nil?
1876
+ header_params['Content-Type'] = content_type
1877
+ end
1878
+
1879
+ # form parameters
1880
+ form_params = opts[:form_params] || {}
1881
+
1882
+ # http body (model)
1883
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(ab_test_rerun_request_v_next)
1884
+
1885
+ # return_type
1886
+ return_type = opts[:debug_return_type]
1887
+
1888
+ # auth_names
1889
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1890
+
1891
+ new_options = opts.merge(
1892
+ :operation => :"LandingPagesApi.rerun_previous_ab_test",
1893
+ :header_params => header_params,
1894
+ :query_params => query_params,
1895
+ :form_params => form_params,
1896
+ :body => post_body,
1897
+ :auth_names => auth_names,
1898
+ :return_type => return_type
1899
+ )
1900
+
1901
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1902
+ if @api_client.config.debugging
1903
+ @api_client.config.logger.debug "API called: LandingPagesApi#rerun_previous_ab_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1904
+ end
1905
+ return data, status_code, headers
1906
+ end
1907
+
1908
+ # Reset the Landing Page draft to the live version
1909
+ # Discards any edits and resets the draft to the live version.
1910
+ # @param object_id [String] The id of the Landing Page for which it&#39;s draft will be reset.
1911
+ # @param [Hash] opts the optional parameters
1912
+ # @return [nil]
1913
+ def reset_draft(object_id, opts = {})
1914
+ reset_draft_with_http_info(object_id, opts)
1915
+ nil
1916
+ end
1917
+
1918
+ # Reset the Landing Page draft to the live version
1919
+ # Discards any edits and resets the draft to the live version.
1920
+ # @param object_id [String] The id of the Landing Page for which it&#39;s draft will be reset.
1921
+ # @param [Hash] opts the optional parameters
1922
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1923
+ def reset_draft_with_http_info(object_id, opts = {})
1924
+ if @api_client.config.debugging
1925
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.reset_draft ...'
1926
+ end
1927
+ # verify the required parameter 'object_id' is set
1928
+ if @api_client.config.client_side_validation && object_id.nil?
1929
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.reset_draft"
1930
+ end
1931
+ # resource path
1932
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}/draft/reset'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
1933
+
1934
+ # query parameters
1935
+ query_params = opts[:query_params] || {}
1936
+
1937
+ # header parameters
1938
+ header_params = opts[:header_params] || {}
1939
+ # HTTP header 'Accept' (if needed)
1940
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1941
+
1942
+ # form parameters
1943
+ form_params = opts[:form_params] || {}
1944
+
1945
+ # http body (model)
1946
+ post_body = opts[:debug_body]
1947
+
1948
+ # return_type
1949
+ return_type = opts[:debug_return_type]
1950
+
1951
+ # auth_names
1952
+ auth_names = opts[:debug_auth_names] || ['oauth2']
1953
+
1954
+ new_options = opts.merge(
1955
+ :operation => :"LandingPagesApi.reset_draft",
1956
+ :header_params => header_params,
1957
+ :query_params => query_params,
1958
+ :form_params => form_params,
1959
+ :body => post_body,
1960
+ :auth_names => auth_names,
1961
+ :return_type => return_type
1962
+ )
1963
+
1964
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1965
+ if @api_client.config.debugging
1966
+ @api_client.config.logger.debug "API called: LandingPagesApi#reset_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1967
+ end
1968
+ return data, status_code, headers
1969
+ end
1970
+
1971
+ # Restore a previous version of a Folder
1972
+ # Takes a specified version of a Folder and restores it.
1973
+ # @param object_id [String] The Folder id.
1974
+ # @param revision_id [String] The Folder version id to restore.
1975
+ # @param [Hash] opts the optional parameters
1976
+ # @return [ContentFolder]
1977
+ def restore_folder_previous_version(object_id, revision_id, opts = {})
1978
+ data, _status_code, _headers = restore_folder_previous_version_with_http_info(object_id, revision_id, opts)
1979
+ data
1980
+ end
1981
+
1982
+ # Restore a previous version of a Folder
1983
+ # Takes a specified version of a Folder and restores it.
1984
+ # @param object_id [String] The Folder id.
1985
+ # @param revision_id [String] The Folder version id to restore.
1986
+ # @param [Hash] opts the optional parameters
1987
+ # @return [Array<(ContentFolder, Integer, Hash)>] ContentFolder data, response status code and response headers
1988
+ def restore_folder_previous_version_with_http_info(object_id, revision_id, opts = {})
1989
+ if @api_client.config.debugging
1990
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.restore_folder_previous_version ...'
1991
+ end
1992
+ # verify the required parameter 'object_id' is set
1993
+ if @api_client.config.client_side_validation && object_id.nil?
1994
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.restore_folder_previous_version"
1995
+ end
1996
+ # verify the required parameter 'revision_id' is set
1997
+ if @api_client.config.client_side_validation && revision_id.nil?
1998
+ fail ArgumentError, "Missing the required parameter 'revision_id' when calling LandingPagesApi.restore_folder_previous_version"
1999
+ end
2000
+ # resource path
2001
+ local_var_path = '/cms/v3/pages/landing-pages/folders/{objectId}/revisions/{revisionId}/restore'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
2002
+
2003
+ # query parameters
2004
+ query_params = opts[:query_params] || {}
2005
+
2006
+ # header parameters
2007
+ header_params = opts[:header_params] || {}
2008
+ # HTTP header 'Accept' (if needed)
2009
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
2010
+
2011
+ # form parameters
2012
+ form_params = opts[:form_params] || {}
2013
+
2014
+ # http body (model)
2015
+ post_body = opts[:debug_body]
2016
+
2017
+ # return_type
2018
+ return_type = opts[:debug_return_type] || 'ContentFolder'
2019
+
2020
+ # auth_names
2021
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2022
+
2023
+ new_options = opts.merge(
2024
+ :operation => :"LandingPagesApi.restore_folder_previous_version",
2025
+ :header_params => header_params,
2026
+ :query_params => query_params,
2027
+ :form_params => form_params,
2028
+ :body => post_body,
2029
+ :auth_names => auth_names,
2030
+ :return_type => return_type
2031
+ )
2032
+
2033
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2034
+ if @api_client.config.debugging
2035
+ @api_client.config.logger.debug "API called: LandingPagesApi#restore_folder_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2036
+ end
2037
+ return data, status_code, headers
2038
+ end
2039
+
2040
+ # Restore a previous version of a Landing Page
2041
+ # Takes a specified version of a Landing Page and restores it.
2042
+ # @param object_id [String] The Landing Page id.
2043
+ # @param revision_id [String] The Landing Page version id to restore.
2044
+ # @param [Hash] opts the optional parameters
2045
+ # @return [Page]
2046
+ def restore_previous_version(object_id, revision_id, opts = {})
2047
+ data, _status_code, _headers = restore_previous_version_with_http_info(object_id, revision_id, opts)
2048
+ data
2049
+ end
2050
+
2051
+ # Restore a previous version of a Landing Page
2052
+ # Takes a specified version of a Landing Page and restores it.
2053
+ # @param object_id [String] The Landing Page id.
2054
+ # @param revision_id [String] The Landing Page version id to restore.
2055
+ # @param [Hash] opts the optional parameters
2056
+ # @return [Array<(Page, Integer, Hash)>] Page data, response status code and response headers
2057
+ def restore_previous_version_with_http_info(object_id, revision_id, opts = {})
2058
+ if @api_client.config.debugging
2059
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.restore_previous_version ...'
2060
+ end
2061
+ # verify the required parameter 'object_id' is set
2062
+ if @api_client.config.client_side_validation && object_id.nil?
2063
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.restore_previous_version"
2064
+ end
2065
+ # verify the required parameter 'revision_id' is set
2066
+ if @api_client.config.client_side_validation && revision_id.nil?
2067
+ fail ArgumentError, "Missing the required parameter 'revision_id' when calling LandingPagesApi.restore_previous_version"
2068
+ end
2069
+ # resource path
2070
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}/revisions/{revisionId}/restore'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
2071
+
2072
+ # query parameters
2073
+ query_params = opts[:query_params] || {}
2074
+
2075
+ # header parameters
2076
+ header_params = opts[:header_params] || {}
2077
+ # HTTP header 'Accept' (if needed)
2078
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
2079
+
2080
+ # form parameters
2081
+ form_params = opts[:form_params] || {}
2082
+
2083
+ # http body (model)
2084
+ post_body = opts[:debug_body]
2085
+
2086
+ # return_type
2087
+ return_type = opts[:debug_return_type] || 'Page'
2088
+
2089
+ # auth_names
2090
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2091
+
2092
+ new_options = opts.merge(
2093
+ :operation => :"LandingPagesApi.restore_previous_version",
2094
+ :header_params => header_params,
2095
+ :query_params => query_params,
2096
+ :form_params => form_params,
2097
+ :body => post_body,
2098
+ :auth_names => auth_names,
2099
+ :return_type => return_type
2100
+ )
2101
+
2102
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2103
+ if @api_client.config.debugging
2104
+ @api_client.config.logger.debug "API called: LandingPagesApi#restore_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2105
+ end
2106
+ return data, status_code, headers
2107
+ end
2108
+
2109
+ # Restore a previous version of a Landing Page, to the draft version of the Landing Page
2110
+ # Takes a specified version of a Landing Page, sets it as the new draft version of the Landing Page.
2111
+ # @param object_id [String] The Landing Page id.
2112
+ # @param revision_id [Integer] The Landing Page version id to restore.
2113
+ # @param [Hash] opts the optional parameters
2114
+ # @return [Page]
2115
+ def restore_previous_version_to_draft(object_id, revision_id, opts = {})
2116
+ data, _status_code, _headers = restore_previous_version_to_draft_with_http_info(object_id, revision_id, opts)
2117
+ data
2118
+ end
2119
+
2120
+ # Restore a previous version of a Landing Page, to the draft version of the Landing Page
2121
+ # Takes a specified version of a Landing Page, sets it as the new draft version of the Landing Page.
2122
+ # @param object_id [String] The Landing Page id.
2123
+ # @param revision_id [Integer] The Landing Page version id to restore.
2124
+ # @param [Hash] opts the optional parameters
2125
+ # @return [Array<(Page, Integer, Hash)>] Page data, response status code and response headers
2126
+ def restore_previous_version_to_draft_with_http_info(object_id, revision_id, opts = {})
2127
+ if @api_client.config.debugging
2128
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.restore_previous_version_to_draft ...'
2129
+ end
2130
+ # verify the required parameter 'object_id' is set
2131
+ if @api_client.config.client_side_validation && object_id.nil?
2132
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.restore_previous_version_to_draft"
2133
+ end
2134
+ # verify the required parameter 'revision_id' is set
2135
+ if @api_client.config.client_side_validation && revision_id.nil?
2136
+ fail ArgumentError, "Missing the required parameter 'revision_id' when calling LandingPagesApi.restore_previous_version_to_draft"
2137
+ end
2138
+ # resource path
2139
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}/revisions/{revisionId}/restore-to-draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
2140
+
2141
+ # query parameters
2142
+ query_params = opts[:query_params] || {}
2143
+
2144
+ # header parameters
2145
+ header_params = opts[:header_params] || {}
2146
+ # HTTP header 'Accept' (if needed)
2147
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
2148
+
2149
+ # form parameters
2150
+ form_params = opts[:form_params] || {}
2151
+
2152
+ # http body (model)
2153
+ post_body = opts[:debug_body]
2154
+
2155
+ # return_type
2156
+ return_type = opts[:debug_return_type] || 'Page'
2157
+
2158
+ # auth_names
2159
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2160
+
2161
+ new_options = opts.merge(
2162
+ :operation => :"LandingPagesApi.restore_previous_version_to_draft",
2163
+ :header_params => header_params,
2164
+ :query_params => query_params,
2165
+ :form_params => form_params,
2166
+ :body => post_body,
2167
+ :auth_names => auth_names,
2168
+ :return_type => return_type
2169
+ )
2170
+
2171
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2172
+ if @api_client.config.debugging
2173
+ @api_client.config.logger.debug "API called: LandingPagesApi#restore_previous_version_to_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2174
+ end
2175
+ return data, status_code, headers
2176
+ end
2177
+
2178
+ # Schedule a Landing Page to be Published
2179
+ # Schedule a Landing Page to be Published
2180
+ # @param content_schedule_request_v_next [ContentScheduleRequestVNext] The JSON representation of the ContentScheduleRequestVNext object.
2181
+ # @param [Hash] opts the optional parameters
2182
+ # @return [nil]
2183
+ def schedule(content_schedule_request_v_next, opts = {})
2184
+ schedule_with_http_info(content_schedule_request_v_next, opts)
2185
+ nil
2186
+ end
2187
+
2188
+ # Schedule a Landing Page to be Published
2189
+ # Schedule a Landing Page to be Published
2190
+ # @param content_schedule_request_v_next [ContentScheduleRequestVNext] The JSON representation of the ContentScheduleRequestVNext object.
2191
+ # @param [Hash] opts the optional parameters
2192
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2193
+ def schedule_with_http_info(content_schedule_request_v_next, opts = {})
2194
+ if @api_client.config.debugging
2195
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.schedule ...'
2196
+ end
2197
+ # verify the required parameter 'content_schedule_request_v_next' is set
2198
+ if @api_client.config.client_side_validation && content_schedule_request_v_next.nil?
2199
+ fail ArgumentError, "Missing the required parameter 'content_schedule_request_v_next' when calling LandingPagesApi.schedule"
2200
+ end
2201
+ # resource path
2202
+ local_var_path = '/cms/v3/pages/landing-pages/schedule'
2203
+
2204
+ # query parameters
2205
+ query_params = opts[:query_params] || {}
2206
+
2207
+ # header parameters
2208
+ header_params = opts[:header_params] || {}
2209
+ # HTTP header 'Accept' (if needed)
2210
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
2211
+ # HTTP header 'Content-Type'
2212
+ content_type = @api_client.select_header_content_type(['application/json'])
2213
+ if !content_type.nil?
2214
+ header_params['Content-Type'] = content_type
2215
+ end
2216
+
2217
+ # form parameters
2218
+ form_params = opts[:form_params] || {}
2219
+
2220
+ # http body (model)
2221
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(content_schedule_request_v_next)
2222
+
2223
+ # return_type
2224
+ return_type = opts[:debug_return_type]
2225
+
2226
+ # auth_names
2227
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2228
+
2229
+ new_options = opts.merge(
2230
+ :operation => :"LandingPagesApi.schedule",
2231
+ :header_params => header_params,
2232
+ :query_params => query_params,
2233
+ :form_params => form_params,
2234
+ :body => post_body,
2235
+ :auth_names => auth_names,
2236
+ :return_type => return_type
2237
+ )
2238
+
2239
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2240
+ if @api_client.config.debugging
2241
+ @api_client.config.logger.debug "API called: LandingPagesApi#schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2242
+ end
2243
+ return data, status_code, headers
2244
+ end
2245
+
2246
+ # Set a new primary language
2247
+ # Set a landing page as the primary language of a multi-language group.
2248
+ # @param set_new_language_primary_request_v_next [SetNewLanguagePrimaryRequestVNext] The JSON representation of the SetNewLanguagePrimaryRequest object.
2249
+ # @param [Hash] opts the optional parameters
2250
+ # @return [nil]
2251
+ def set_lang_primary(set_new_language_primary_request_v_next, opts = {})
2252
+ set_lang_primary_with_http_info(set_new_language_primary_request_v_next, opts)
2253
+ nil
2254
+ end
2255
+
2256
+ # Set a new primary language
2257
+ # Set a landing page as the primary language of a multi-language group.
2258
+ # @param set_new_language_primary_request_v_next [SetNewLanguagePrimaryRequestVNext] The JSON representation of the SetNewLanguagePrimaryRequest object.
2259
+ # @param [Hash] opts the optional parameters
2260
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2261
+ def set_lang_primary_with_http_info(set_new_language_primary_request_v_next, opts = {})
2262
+ if @api_client.config.debugging
2263
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.set_lang_primary ...'
2264
+ end
2265
+ # verify the required parameter 'set_new_language_primary_request_v_next' is set
2266
+ if @api_client.config.client_side_validation && set_new_language_primary_request_v_next.nil?
2267
+ fail ArgumentError, "Missing the required parameter 'set_new_language_primary_request_v_next' when calling LandingPagesApi.set_lang_primary"
2268
+ end
2269
+ # resource path
2270
+ local_var_path = '/cms/v3/pages/landing-pages/multi-language/set-new-lang-primary'
2271
+
2272
+ # query parameters
2273
+ query_params = opts[:query_params] || {}
2274
+
2275
+ # header parameters
2276
+ header_params = opts[:header_params] || {}
2277
+ # HTTP header 'Accept' (if needed)
2278
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
2279
+ # HTTP header 'Content-Type'
2280
+ content_type = @api_client.select_header_content_type(['application/json'])
2281
+ if !content_type.nil?
2282
+ header_params['Content-Type'] = content_type
2283
+ end
2284
+
2285
+ # form parameters
2286
+ form_params = opts[:form_params] || {}
2287
+
2288
+ # http body (model)
2289
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_new_language_primary_request_v_next)
2290
+
2291
+ # return_type
2292
+ return_type = opts[:debug_return_type]
2293
+
2294
+ # auth_names
2295
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2296
+
2297
+ new_options = opts.merge(
2298
+ :operation => :"LandingPagesApi.set_lang_primary",
2299
+ :header_params => header_params,
2300
+ :query_params => query_params,
2301
+ :form_params => form_params,
2302
+ :body => post_body,
2303
+ :auth_names => auth_names,
2304
+ :return_type => return_type
2305
+ )
2306
+
2307
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2308
+ if @api_client.config.debugging
2309
+ @api_client.config.logger.debug "API called: LandingPagesApi#set_lang_primary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2310
+ end
2311
+ return data, status_code, headers
2312
+ end
2313
+
2314
+ # Update a Landing Page
2315
+ # Sparse updates a single Landing Page object identified by the id in the path. You only need to specify the column values that you are modifying.
2316
+ # @param object_id [String] The Landing Page id.
2317
+ # @param page [Page] The JSON representation of the updated Landing Page.
2318
+ # @param [Hash] opts the optional parameters
2319
+ # @option opts [Boolean] :archived Specifies whether to update deleted Landing Pages. Defaults to &#x60;false&#x60;.
2320
+ # @return [Page]
2321
+ def update(object_id, page, opts = {})
2322
+ data, _status_code, _headers = update_with_http_info(object_id, page, opts)
2323
+ data
2324
+ end
2325
+
2326
+ # Update a Landing Page
2327
+ # Sparse updates a single Landing Page object identified by the id in the path. You only need to specify the column values that you are modifying.
2328
+ # @param object_id [String] The Landing Page id.
2329
+ # @param page [Page] The JSON representation of the updated Landing Page.
2330
+ # @param [Hash] opts the optional parameters
2331
+ # @option opts [Boolean] :archived Specifies whether to update deleted Landing Pages. Defaults to &#x60;false&#x60;.
2332
+ # @return [Array<(Page, Integer, Hash)>] Page data, response status code and response headers
2333
+ def update_with_http_info(object_id, page, opts = {})
2334
+ if @api_client.config.debugging
2335
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.update ...'
2336
+ end
2337
+ # verify the required parameter 'object_id' is set
2338
+ if @api_client.config.client_side_validation && object_id.nil?
2339
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.update"
2340
+ end
2341
+ # verify the required parameter 'page' is set
2342
+ if @api_client.config.client_side_validation && page.nil?
2343
+ fail ArgumentError, "Missing the required parameter 'page' when calling LandingPagesApi.update"
2344
+ end
2345
+ # resource path
2346
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
2347
+
2348
+ # query parameters
2349
+ query_params = opts[:query_params] || {}
2350
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
2351
+
2352
+ # header parameters
2353
+ header_params = opts[:header_params] || {}
2354
+ # HTTP header 'Accept' (if needed)
2355
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
2356
+ # HTTP header 'Content-Type'
2357
+ content_type = @api_client.select_header_content_type(['application/json'])
2358
+ if !content_type.nil?
2359
+ header_params['Content-Type'] = content_type
2360
+ end
2361
+
2362
+ # form parameters
2363
+ form_params = opts[:form_params] || {}
2364
+
2365
+ # http body (model)
2366
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(page)
2367
+
2368
+ # return_type
2369
+ return_type = opts[:debug_return_type] || 'Page'
2370
+
2371
+ # auth_names
2372
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2373
+
2374
+ new_options = opts.merge(
2375
+ :operation => :"LandingPagesApi.update",
2376
+ :header_params => header_params,
2377
+ :query_params => query_params,
2378
+ :form_params => form_params,
2379
+ :body => post_body,
2380
+ :auth_names => auth_names,
2381
+ :return_type => return_type
2382
+ )
2383
+
2384
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2385
+ if @api_client.config.debugging
2386
+ @api_client.config.logger.debug "API called: LandingPagesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2387
+ end
2388
+ return data, status_code, headers
2389
+ end
2390
+
2391
+ # Update a batch of Landing Pages
2392
+ # Update the Landing Page objects identified in the request body.
2393
+ # @param batch_input_json_node [BatchInputJsonNode] The JSON representation of the updated Landing Pages.
2394
+ # @param [Hash] opts the optional parameters
2395
+ # @option opts [Boolean] :archived Specifies whether to update deleted Landing Pages. Defaults to &#x60;false&#x60;.
2396
+ # @return [BatchResponsePage]
2397
+ def update_batch(batch_input_json_node, opts = {})
2398
+ data, _status_code, _headers = update_batch_with_http_info(batch_input_json_node, opts)
2399
+ data
2400
+ end
2401
+
2402
+ # Update a batch of Landing Pages
2403
+ # Update the Landing Page objects identified in the request body.
2404
+ # @param batch_input_json_node [BatchInputJsonNode] The JSON representation of the updated Landing Pages.
2405
+ # @param [Hash] opts the optional parameters
2406
+ # @option opts [Boolean] :archived Specifies whether to update deleted Landing Pages. Defaults to &#x60;false&#x60;.
2407
+ # @return [Array<(BatchResponsePage, Integer, Hash)>] BatchResponsePage data, response status code and response headers
2408
+ def update_batch_with_http_info(batch_input_json_node, opts = {})
2409
+ if @api_client.config.debugging
2410
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.update_batch ...'
2411
+ end
2412
+ # verify the required parameter 'batch_input_json_node' is set
2413
+ if @api_client.config.client_side_validation && batch_input_json_node.nil?
2414
+ fail ArgumentError, "Missing the required parameter 'batch_input_json_node' when calling LandingPagesApi.update_batch"
2415
+ end
2416
+ # resource path
2417
+ local_var_path = '/cms/v3/pages/landing-pages/batch/update'
2418
+
2419
+ # query parameters
2420
+ query_params = opts[:query_params] || {}
2421
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
2422
+
2423
+ # header parameters
2424
+ header_params = opts[:header_params] || {}
2425
+ # HTTP header 'Accept' (if needed)
2426
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
2427
+ # HTTP header 'Content-Type'
2428
+ content_type = @api_client.select_header_content_type(['application/json'])
2429
+ if !content_type.nil?
2430
+ header_params['Content-Type'] = content_type
2431
+ end
2432
+
2433
+ # form parameters
2434
+ form_params = opts[:form_params] || {}
2435
+
2436
+ # http body (model)
2437
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_json_node)
2438
+
2439
+ # return_type
2440
+ return_type = opts[:debug_return_type] || 'BatchResponsePage'
2441
+
2442
+ # auth_names
2443
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2444
+
2445
+ new_options = opts.merge(
2446
+ :operation => :"LandingPagesApi.update_batch",
2447
+ :header_params => header_params,
2448
+ :query_params => query_params,
2449
+ :form_params => form_params,
2450
+ :body => post_body,
2451
+ :auth_names => auth_names,
2452
+ :return_type => return_type
2453
+ )
2454
+
2455
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2456
+ if @api_client.config.debugging
2457
+ @api_client.config.logger.debug "API called: LandingPagesApi#update_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2458
+ end
2459
+ return data, status_code, headers
2460
+ end
2461
+
2462
+ # Update a Landing Page draft
2463
+ # Sparse updates the draft version of a single Landing Page object identified by the id in the path. You only need to specify the column values that you are modifying.
2464
+ # @param object_id [String] The Landing Page id.
2465
+ # @param page [Page] The JSON representation of the updated Landing Page to be applied to the draft.
2466
+ # @param [Hash] opts the optional parameters
2467
+ # @return [Page]
2468
+ def update_draft(object_id, page, opts = {})
2469
+ data, _status_code, _headers = update_draft_with_http_info(object_id, page, opts)
2470
+ data
2471
+ end
2472
+
2473
+ # Update a Landing Page draft
2474
+ # Sparse updates the draft version of a single Landing Page object identified by the id in the path. You only need to specify the column values that you are modifying.
2475
+ # @param object_id [String] The Landing Page id.
2476
+ # @param page [Page] The JSON representation of the updated Landing Page to be applied to the draft.
2477
+ # @param [Hash] opts the optional parameters
2478
+ # @return [Array<(Page, Integer, Hash)>] Page data, response status code and response headers
2479
+ def update_draft_with_http_info(object_id, page, opts = {})
2480
+ if @api_client.config.debugging
2481
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.update_draft ...'
2482
+ end
2483
+ # verify the required parameter 'object_id' is set
2484
+ if @api_client.config.client_side_validation && object_id.nil?
2485
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.update_draft"
2486
+ end
2487
+ # verify the required parameter 'page' is set
2488
+ if @api_client.config.client_side_validation && page.nil?
2489
+ fail ArgumentError, "Missing the required parameter 'page' when calling LandingPagesApi.update_draft"
2490
+ end
2491
+ # resource path
2492
+ local_var_path = '/cms/v3/pages/landing-pages/{objectId}/draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
2493
+
2494
+ # query parameters
2495
+ query_params = opts[:query_params] || {}
2496
+
2497
+ # header parameters
2498
+ header_params = opts[:header_params] || {}
2499
+ # HTTP header 'Accept' (if needed)
2500
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
2501
+ # HTTP header 'Content-Type'
2502
+ content_type = @api_client.select_header_content_type(['application/json'])
2503
+ if !content_type.nil?
2504
+ header_params['Content-Type'] = content_type
2505
+ end
2506
+
2507
+ # form parameters
2508
+ form_params = opts[:form_params] || {}
2509
+
2510
+ # http body (model)
2511
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(page)
2512
+
2513
+ # return_type
2514
+ return_type = opts[:debug_return_type] || 'Page'
2515
+
2516
+ # auth_names
2517
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2518
+
2519
+ new_options = opts.merge(
2520
+ :operation => :"LandingPagesApi.update_draft",
2521
+ :header_params => header_params,
2522
+ :query_params => query_params,
2523
+ :form_params => form_params,
2524
+ :body => post_body,
2525
+ :auth_names => auth_names,
2526
+ :return_type => return_type
2527
+ )
2528
+
2529
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2530
+ if @api_client.config.debugging
2531
+ @api_client.config.logger.debug "API called: LandingPagesApi#update_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2532
+ end
2533
+ return data, status_code, headers
2534
+ end
2535
+
2536
+ # Update a Folder
2537
+ # Sparse updates a single Folder object identified by the id in the path. You only need to specify the column values that you are modifying.
2538
+ # @param object_id [String] The Folder id.
2539
+ # @param content_folder [ContentFolder] The JSON representation of the updated Folder.
2540
+ # @param [Hash] opts the optional parameters
2541
+ # @option opts [Boolean] :archived Specifies whether to update deleted Folders. Defaults to &#x60;false&#x60;.
2542
+ # @return [ContentFolder]
2543
+ def update_folder(object_id, content_folder, opts = {})
2544
+ data, _status_code, _headers = update_folder_with_http_info(object_id, content_folder, opts)
2545
+ data
2546
+ end
2547
+
2548
+ # Update a Folder
2549
+ # Sparse updates a single Folder object identified by the id in the path. You only need to specify the column values that you are modifying.
2550
+ # @param object_id [String] The Folder id.
2551
+ # @param content_folder [ContentFolder] The JSON representation of the updated Folder.
2552
+ # @param [Hash] opts the optional parameters
2553
+ # @option opts [Boolean] :archived Specifies whether to update deleted Folders. Defaults to &#x60;false&#x60;.
2554
+ # @return [Array<(ContentFolder, Integer, Hash)>] ContentFolder data, response status code and response headers
2555
+ def update_folder_with_http_info(object_id, content_folder, opts = {})
2556
+ if @api_client.config.debugging
2557
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.update_folder ...'
2558
+ end
2559
+ # verify the required parameter 'object_id' is set
2560
+ if @api_client.config.client_side_validation && object_id.nil?
2561
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling LandingPagesApi.update_folder"
2562
+ end
2563
+ # verify the required parameter 'content_folder' is set
2564
+ if @api_client.config.client_side_validation && content_folder.nil?
2565
+ fail ArgumentError, "Missing the required parameter 'content_folder' when calling LandingPagesApi.update_folder"
2566
+ end
2567
+ # resource path
2568
+ local_var_path = '/cms/v3/pages/landing-pages/folders/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
2569
+
2570
+ # query parameters
2571
+ query_params = opts[:query_params] || {}
2572
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
2573
+
2574
+ # header parameters
2575
+ header_params = opts[:header_params] || {}
2576
+ # HTTP header 'Accept' (if needed)
2577
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
2578
+ # HTTP header 'Content-Type'
2579
+ content_type = @api_client.select_header_content_type(['application/json'])
2580
+ if !content_type.nil?
2581
+ header_params['Content-Type'] = content_type
2582
+ end
2583
+
2584
+ # form parameters
2585
+ form_params = opts[:form_params] || {}
2586
+
2587
+ # http body (model)
2588
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(content_folder)
2589
+
2590
+ # return_type
2591
+ return_type = opts[:debug_return_type] || 'ContentFolder'
2592
+
2593
+ # auth_names
2594
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2595
+
2596
+ new_options = opts.merge(
2597
+ :operation => :"LandingPagesApi.update_folder",
2598
+ :header_params => header_params,
2599
+ :query_params => query_params,
2600
+ :form_params => form_params,
2601
+ :body => post_body,
2602
+ :auth_names => auth_names,
2603
+ :return_type => return_type
2604
+ )
2605
+
2606
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2607
+ if @api_client.config.debugging
2608
+ @api_client.config.logger.debug "API called: LandingPagesApi#update_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2609
+ end
2610
+ return data, status_code, headers
2611
+ end
2612
+
2613
+ # Update a batch of Folders
2614
+ # Update the Folder objects identified in the request body.
2615
+ # @param batch_input_json_node [BatchInputJsonNode]
2616
+ # @param [Hash] opts the optional parameters
2617
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
2618
+ # @return [BatchResponseContentFolder]
2619
+ def update_folders(batch_input_json_node, opts = {})
2620
+ data, _status_code, _headers = update_folders_with_http_info(batch_input_json_node, opts)
2621
+ data
2622
+ end
2623
+
2624
+ # Update a batch of Folders
2625
+ # Update the Folder objects identified in the request body.
2626
+ # @param batch_input_json_node [BatchInputJsonNode]
2627
+ # @param [Hash] opts the optional parameters
2628
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
2629
+ # @return [Array<(BatchResponseContentFolder, Integer, Hash)>] BatchResponseContentFolder data, response status code and response headers
2630
+ def update_folders_with_http_info(batch_input_json_node, opts = {})
2631
+ if @api_client.config.debugging
2632
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.update_folders ...'
2633
+ end
2634
+ # verify the required parameter 'batch_input_json_node' is set
2635
+ if @api_client.config.client_side_validation && batch_input_json_node.nil?
2636
+ fail ArgumentError, "Missing the required parameter 'batch_input_json_node' when calling LandingPagesApi.update_folders"
2637
+ end
2638
+ # resource path
2639
+ local_var_path = '/cms/v3/pages/landing-pages/folders/batch/update'
2640
+
2641
+ # query parameters
2642
+ query_params = opts[:query_params] || {}
2643
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
2644
+
2645
+ # header parameters
2646
+ header_params = opts[:header_params] || {}
2647
+ # HTTP header 'Accept' (if needed)
2648
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
2649
+ # HTTP header 'Content-Type'
2650
+ content_type = @api_client.select_header_content_type(['application/json'])
2651
+ if !content_type.nil?
2652
+ header_params['Content-Type'] = content_type
2653
+ end
2654
+
2655
+ # form parameters
2656
+ form_params = opts[:form_params] || {}
2657
+
2658
+ # http body (model)
2659
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_json_node)
2660
+
2661
+ # return_type
2662
+ return_type = opts[:debug_return_type] || 'BatchResponseContentFolder'
2663
+
2664
+ # auth_names
2665
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2666
+
2667
+ new_options = opts.merge(
2668
+ :operation => :"LandingPagesApi.update_folders",
2669
+ :header_params => header_params,
2670
+ :query_params => query_params,
2671
+ :form_params => form_params,
2672
+ :body => post_body,
2673
+ :auth_names => auth_names,
2674
+ :return_type => return_type
2675
+ )
2676
+
2677
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2678
+ if @api_client.config.debugging
2679
+ @api_client.config.logger.debug "API called: LandingPagesApi#update_folders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2680
+ end
2681
+ return data, status_code, headers
2682
+ end
2683
+
2684
+ # Update languages of multi-language group
2685
+ # Explicitly set new languages for each landing page in a multi-language group.
2686
+ # @param update_languages_request_v_next [UpdateLanguagesRequestVNext] The JSON representation of the UpdateLanguagesRequest object.
2687
+ # @param [Hash] opts the optional parameters
2688
+ # @return [nil]
2689
+ def update_langs(update_languages_request_v_next, opts = {})
2690
+ update_langs_with_http_info(update_languages_request_v_next, opts)
2691
+ nil
2692
+ end
2693
+
2694
+ # Update languages of multi-language group
2695
+ # Explicitly set new languages for each landing page in a multi-language group.
2696
+ # @param update_languages_request_v_next [UpdateLanguagesRequestVNext] The JSON representation of the UpdateLanguagesRequest object.
2697
+ # @param [Hash] opts the optional parameters
2698
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2699
+ def update_langs_with_http_info(update_languages_request_v_next, opts = {})
2700
+ if @api_client.config.debugging
2701
+ @api_client.config.logger.debug 'Calling API: LandingPagesApi.update_langs ...'
2702
+ end
2703
+ # verify the required parameter 'update_languages_request_v_next' is set
2704
+ if @api_client.config.client_side_validation && update_languages_request_v_next.nil?
2705
+ fail ArgumentError, "Missing the required parameter 'update_languages_request_v_next' when calling LandingPagesApi.update_langs"
2706
+ end
2707
+ # resource path
2708
+ local_var_path = '/cms/v3/pages/landing-pages/multi-language/update-languages'
2709
+
2710
+ # query parameters
2711
+ query_params = opts[:query_params] || {}
2712
+
2713
+ # header parameters
2714
+ header_params = opts[:header_params] || {}
2715
+ # HTTP header 'Accept' (if needed)
2716
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
2717
+ # HTTP header 'Content-Type'
2718
+ content_type = @api_client.select_header_content_type(['application/json'])
2719
+ if !content_type.nil?
2720
+ header_params['Content-Type'] = content_type
2721
+ end
2722
+
2723
+ # form parameters
2724
+ form_params = opts[:form_params] || {}
2725
+
2726
+ # http body (model)
2727
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_languages_request_v_next)
2728
+
2729
+ # return_type
2730
+ return_type = opts[:debug_return_type]
2731
+
2732
+ # auth_names
2733
+ auth_names = opts[:debug_auth_names] || ['oauth2']
2734
+
2735
+ new_options = opts.merge(
2736
+ :operation => :"LandingPagesApi.update_langs",
2737
+ :header_params => header_params,
2738
+ :query_params => query_params,
2739
+ :form_params => form_params,
2740
+ :body => post_body,
2741
+ :auth_names => auth_names,
2742
+ :return_type => return_type
2743
+ )
2744
+
2745
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2746
+ if @api_client.config.debugging
2747
+ @api_client.config.logger.debug "API called: LandingPagesApi#update_langs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2748
+ end
2749
+ return data, status_code, headers
2750
+ end
2751
+ end
2752
+ end
2753
+ end
2754
+ end