hubspot-api-client 19.0.0 → 20.0.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -1
- data/Gemfile.lock +1 -1
- data/README.md +83 -8
- data/lib/hubspot/client.rb +7 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/basic_api.rb +1079 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/batch_api.rb +306 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/multi_language_api.rb +368 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/blog_post.rb +18 -18
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +7 -7
- data/lib/hubspot/codegen/cms/hubdb/models/unified_collection_response_with_total_base_hub_db_table_row_v3.rb +1 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/collection_response_public_association_definition_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/public_association_definition.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/v4/api/report_api.rb +91 -0
- data/lib/hubspot/codegen/crm/associations/v4/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_archive.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_default_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_fetch_associations_batch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/date_time.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_archive.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_fetch_associations_batch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/report_creation_response.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/schema/api/definition_configurations_api.rb +396 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +69 -69
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_definition_configuration_create_request.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_definition_configuration_update_request.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_spec.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_configuration_update_result.rb +330 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_configuration_update_result_with_errors.rb +350 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_user_configuration.rb +330 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_user_configuration_with_errors.rb +350 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/collection_response_public_association_definition_user_configuration_no_paging.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_create_request.rb +294 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_update_request.rb +294 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_update_result.rb +289 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_user_configuration.rb +298 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_spec.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/standard_error.rb +326 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/api/basic_api.rb +391 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/api/batch_api.rb +363 -0
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions/api/public_object_api.rb → commerce/invoices/api/search_api.rb} +24 -22
- data/lib/hubspot/codegen/crm/commerce/invoices/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/association_spec.rb +278 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_batch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_read_input_simple_public_object_id.rb +273 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_object.rb +328 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/collection_response_associated_id.rb +241 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions/models/public_merge_input.rb → commerce/invoices/models/collection_response_with_total_simple_public_object_forward_paging.rb} +37 -26
- data/lib/hubspot/codegen/crm/commerce/invoices/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/filter.rb +308 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/filter_group.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/forward_paging.rb +225 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/paging.rb +234 -0
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions/models/batch_input_simple_public_object_input_for_create.rb → commerce/invoices/models/previous_page.rb} +26 -19
- data/lib/hubspot/codegen/crm/commerce/invoices/models/public_associations_for_object.rb +246 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/public_object_search_request.rb +276 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_batch_input.rb +264 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_batch_input_upsert.rb +264 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_input.rb +241 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_input_for_create.rb +257 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_with_associations.rb +314 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_upsert_object.rb +317 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/standard_error.rb +324 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/exports/api/public_exports_api.rb +157 -0
- data/lib/hubspot/codegen/crm/exports/api_client.rb +410 -0
- data/lib/hubspot/codegen/crm/exports/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/exports/configuration.rb +287 -0
- data/lib/hubspot/codegen/crm/exports/models/action_response_with_single_result_uri.rb +339 -0
- data/lib/hubspot/codegen/crm/exports/models/error.rb +305 -0
- data/lib/hubspot/codegen/crm/exports/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/crm/exports/models/filter.rb +305 -0
- data/lib/hubspot/codegen/crm/exports/models/public_crm_search_request.rb +260 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_list_request.rb +420 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_list_request_all_of.rb +413 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_request.rb +109 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_view_request.rb +415 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_view_request_all_of.rb +408 -0
- data/lib/hubspot/codegen/crm/exports/models/standard_error.rb +322 -0
- data/lib/hubspot/codegen/crm/exports/models/task_locator.rb +239 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api/channel_connection_settings_api.rb +302 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api/recording_settings_api.rb +12 -12
- data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +10 -10
- data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_patch_request.rb +236 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_request.rb +246 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_response.rb +276 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +21 -1
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +21 -1
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +31 -1
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
- data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +6 -0
- data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +15 -1
- data/lib/hubspot/codegen/crm/imports/models/property_value.rb +514 -0
- data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +32 -5
- data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +17 -1
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/line_items/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/lists/models/public_form_submission_filter_coalescing_refine_by.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point_index_reference.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filters_inner.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_value_filter_value_comparison.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation_time_point.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +2 -1
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +12 -10
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +17 -9
- data/lib/hubspot/codegen/crm/objects/calls/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +17 -9
- data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/deal_splits/api/batch_api.rb +160 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_input_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_response_deal_to_deal_splits.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_response_deal_to_deal_splits_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/deal_to_deal_splits.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions/models/public_gdpr_delete_input.rb → deal_splits/models/public_deal_split_input.rb} +27 -22
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/public_deal_splits_batch_create_request.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/public_deal_splits_create_request.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → deal_splits}/models/public_object_id.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/standard_error.rb +331 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/emails/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +0 -208
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -198
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/objects/goals/api/basic_api.rb +208 -0
- data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +266 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/association_spec.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/batch_input_simple_public_object_batch_input.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/batch_input_simple_public_object_id.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{tasks → goals}/models/batch_input_simple_public_object_input_for_create.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/public_associations_for_object.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/goals/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_batch_input.rb +15 -6
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input_upsert.rb +264 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_input.rb +15 -6
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_input_for_create.rb +15 -6
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_upsert_object.rb +317 -0
- data/lib/hubspot/codegen/crm/objects/leads/api/basic_api.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/leads/api/batch_api.rb +13 -11
- data/lib/hubspot/codegen/crm/objects/leads/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/meetings/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/association_spec.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +5 -5
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input_upsert.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_with_associations_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/public_associations_for_object.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_upsert.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +2 -11
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +2 -16
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/simple_public_upsert_object.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/value_with_timestamp.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/notes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/taxes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/taxes/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/taxes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +58 -1
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/quotes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/events/api/events_api.rb +22 -22
- data/lib/hubspot/codegen/events/send/api/{custom_event_data_api.rb → basic_api.rb} +13 -10
- data/lib/hubspot/codegen/events/send/api/batch_api.rb +94 -0
- data/lib/hubspot/codegen/events/send/api_client.rb +1 -1
- data/lib/hubspot/codegen/events/send/api_error.rb +1 -1
- data/lib/hubspot/codegen/events/send/configuration.rb +1 -1
- data/lib/hubspot/codegen/events/send/models/batched_behavioral_event_http_completion_request.rb +230 -0
- data/lib/hubspot/codegen/events/send/models/behavioral_event_http_completion_request.rb +8 -7
- data/lib/hubspot/codegen/events/send/models/error.rb +1 -1
- data/lib/hubspot/codegen/events/send/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/marketing/emails/api/marketing_emails_api.rb +1226 -0
- data/lib/hubspot/codegen/marketing/emails/api/statistics_api.rb +168 -0
- data/lib/hubspot/codegen/marketing/emails/api_client.rb +410 -0
- data/lib/hubspot/codegen/marketing/emails/api_error.rb +61 -0
- data/lib/hubspot/codegen/marketing/emails/configuration.rb +287 -0
- data/lib/hubspot/codegen/marketing/emails/models/ab_test_create_request_v_next.rb +244 -0
- data/lib/hubspot/codegen/marketing/emails/models/aggregate_email_statistics.rb +248 -0
- data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_email_statistic_interval_no_paging.rb +247 -0
- data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_public_email_forward_paging.rb +256 -0
- data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_version_public_email.rb +256 -0
- data/lib/hubspot/codegen/marketing/emails/models/content_clone_request_v_next.rb +240 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_create_request.rb +468 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_statistic_interval.rb +232 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_statistics_data.rb +282 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_update_request.rb +453 -0
- data/lib/hubspot/codegen/marketing/emails/models/error.rb +305 -0
- data/lib/hubspot/codegen/marketing/emails/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/marketing/emails/models/forward_paging.rb +223 -0
- data/lib/hubspot/codegen/marketing/emails/models/interval.rb +242 -0
- data/lib/hubspot/codegen/marketing/emails/models/next_page.rb +240 -0
- data/lib/hubspot/codegen/marketing/emails/models/paging.rb +238 -0
- data/lib/hubspot/codegen/marketing/emails/models/previous_page.rb +240 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_button_style_settings.rb +241 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_divider_style_settings.rb +241 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email.rb +654 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_content.rb +304 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_from_details.rb +245 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_recipients.rb +239 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_style_settings.rb +484 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_subscription_details.rb +245 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_testing_details.rb +355 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_to_details.rb +262 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_font_style.rb +268 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_rss_email_details.rb +307 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_webversion_details.rb +311 -0
- data/lib/hubspot/codegen/marketing/emails/models/version_public_email.rb +272 -0
- data/lib/hubspot/codegen/marketing/emails/models/version_user.rb +260 -0
- data/lib/hubspot/codegen/marketing/events/api/add_event_attendees_api.rb +352 -0
- data/lib/hubspot/codegen/marketing/events/api/basic_api.rb +177 -264
- data/lib/hubspot/codegen/marketing/events/api/batch_api.rb +298 -0
- data/lib/hubspot/codegen/marketing/events/api/change_property_api.rb +177 -0
- data/lib/hubspot/codegen/marketing/events/api/identifiers_api.rb +153 -0
- data/lib/hubspot/codegen/marketing/events/api/list_associations_api.rb +2 -2
- data/lib/hubspot/codegen/marketing/events/api/{participant_state_api.rb → retrieve_participant_state_api.rb} +23 -23
- data/lib/hubspot/codegen/marketing/events/api/subscriber_state_changes_api.rb +8 -8
- data/lib/hubspot/codegen/marketing/events/models/app_info.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_public_object_id_delete_request.rb +230 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_public_update_request_full_v2.rb +230 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response_v2.rb +326 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response_v2_with_errors.rb +346 -0
- data/lib/hubspot/codegen/marketing/events/models/collection_response_marketing_event_public_read_response_v2_forward_paging.rb +239 -0
- data/lib/hubspot/codegen/marketing/events/models/{collection_response_marketing_event_external_unique_identifier_no_paging.rb → collection_response_search_public_response_wrapper_no_paging.rb} +4 -4
- data/lib/hubspot/codegen/marketing/events/models/collection_response_with_total_marketing_event_identifiers_response_no_paging.rb +244 -0
- data/lib/hubspot/codegen/marketing/events/models/crm_property_wrapper.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_default_response.rb +13 -4
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_email_subscriber.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_identifiers_response.rb +274 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response.rb +10 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response_v2.rb +367 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_object_id_delete_request.rb +228 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response.rb +10 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response_v2.rb +421 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_update_request_full_v2.rb +316 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_update_request_v2.rb +302 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_subscriber.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/property_value.rb +2 -2
- data/lib/hubspot/codegen/marketing/events/models/search_public_response_wrapper.rb +270 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition.rb +0 -1
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_create_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +18 -6
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +42 -18
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +13 -3
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +13 -3
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +2 -50
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/{blog_posts_api.rb → basic_api.rb} +1 -1
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/multi_language_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +3 -1
- data/lib/hubspot/discovery/crm/{objects/feedback_submissions/api/public_object_api.rb → associations/v4/api/report_api.rb} +3 -3
- data/lib/hubspot/discovery/crm/associations/v4/client.rb +1 -0
- data/lib/hubspot/discovery/crm/associations/v4/schema/api/definition_configurations_api.rb +17 -0
- data/lib/hubspot/discovery/crm/associations/v4/schema/client.rb +1 -0
- data/lib/hubspot/discovery/crm/client.rb +2 -0
- data/lib/hubspot/discovery/crm/commerce/client.rb +19 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/client.rb +23 -0
- data/lib/hubspot/discovery/crm/exports/api/public_exports_api.rb +13 -0
- data/lib/hubspot/discovery/crm/exports/client.rb +19 -0
- data/lib/hubspot/discovery/crm/extensions/calling/api/channel_connection_settings_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/calling/client.rb +1 -0
- data/lib/hubspot/discovery/crm/objects/client.rb +1 -3
- data/lib/hubspot/discovery/crm/objects/{feedback_submissions/api/gdpr_api.rb → deal_splits/api/batch_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/objects/deal_splits/client.rb +21 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +0 -2
- data/lib/hubspot/discovery/events/send/api/{custom_event_data_api.rb → basic_api.rb} +1 -1
- data/lib/hubspot/discovery/events/send/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/events/send/client.rb +2 -1
- data/lib/hubspot/discovery/marketing/client.rb +1 -0
- data/lib/hubspot/discovery/marketing/emails/api/marketing_emails_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/emails/api/statistics_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/emails/client.rb +20 -0
- data/lib/hubspot/discovery/marketing/events/api/{attendance_subscriber_state_changes_api.rb → add_event_attendees_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/{participant_state_api.rb → batch_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/change_property_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/identifiers_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/retrieve_participant_state_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/client.rb +5 -2
- data/lib/hubspot/helpers/requests/http_auth.rb +33 -0
- data/lib/hubspot/helpers/requests/http_request_builder.rb +120 -0
- data/lib/hubspot/helpers/signature.rb +54 -26
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/client_spec.rb +1 -0
- data/spec/discovery/cms/blogs/blog-posts/{blog_posts_api_spec.rb → basic_api_spec.rb} +2 -6
- data/spec/discovery/cms/blogs/blog-posts/batch_api_spec.rb +11 -0
- data/spec/discovery/cms/blogs/blog-posts/multi_language_api_spec.rb +11 -0
- data/spec/discovery/crm/associations/v4/report_api_spec.rb +7 -0
- data/spec/discovery/crm/associations/v4/schema/definition_configurations_api_spec.rb +11 -0
- data/spec/discovery/crm/associations/v4/schema/definitions_api_spec.rb +2 -2
- data/spec/discovery/crm/commerce/client_spec.rb +7 -0
- data/spec/discovery/crm/commerce/invoices/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/commerce/invoices/batch_api_spec.rb +11 -0
- data/spec/discovery/crm/commerce/invoices/search_api_spec.rb +7 -0
- data/spec/discovery/crm/exports/public_exports_api_spec.rb +8 -0
- data/spec/discovery/crm/extensions/calling/channel_connection_settings_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/deal_splits/batch_api_spec.rb +8 -0
- data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +0 -3
- data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +0 -3
- data/spec/discovery/crm/objects/goals/basic_api_spec.rb +3 -0
- data/spec/discovery/crm/objects/goals/batch_api_spec.rb +4 -0
- data/spec/discovery/events/send/basic_api_spec.rb +7 -0
- data/spec/discovery/events/send/batch_api_spec.rb +7 -0
- data/spec/discovery/marketing/emails/marketing_emails_api_spec.rb +24 -0
- data/spec/discovery/marketing/emails/statistics_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/add_event_attendees_api_spec.rb +10 -0
- data/spec/discovery/marketing/events/basic_api_spec.rb +5 -6
- data/spec/discovery/marketing/events/batch_api_spec.rb +10 -0
- data/spec/discovery/marketing/events/change_property_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/identifiers_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/{participant_state_api_spec.rb → retrieve_participant_state_api_spec.rb} +2 -2
- data/spec/helpers/requests/http_auth_spec.rb +58 -0
- data/spec/helpers/requests/http_request_spec.rb +71 -0
- data/spec/helpers/signature_spec.rb +15 -5
- metadata +276 -52
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/blog_posts_api.rb +0 -1694
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/marketing/events/api/attendance_subscriber_state_changes_api.rb +0 -192
- data/spec/discovery/crm/objects/feedback_submissions/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/feedback_submissions/public_object_api_spec.rb +0 -7
- data/spec/discovery/events/send/custom_event_data_api_spec.rb +0 -7
- data/spec/discovery/marketing/events/attendance_subscriber_state_changes_api_spec.rb +0 -8
@@ -0,0 +1,1079 @@
|
|
1
|
+
=begin
|
2
|
+
#Posts
|
3
|
+
|
4
|
+
#Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags
|
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 Blogs
|
18
|
+
module BlogPosts
|
19
|
+
class BasicApi
|
20
|
+
require 'hubspot/helpers/get_all_helper'
|
21
|
+
include Hubspot::Helpers::GetAllHelper
|
22
|
+
|
23
|
+
attr_accessor :api_client
|
24
|
+
|
25
|
+
def initialize(api_client = ApiClient.default)
|
26
|
+
@api_client = api_client
|
27
|
+
end
|
28
|
+
# Delete a blog post
|
29
|
+
# Delete a blog post by ID.
|
30
|
+
# @param object_id [String] The ID of the blog post to delete.
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @option opts [Boolean] :archived Whether to return only results that have been deleted.
|
33
|
+
# @return [nil]
|
34
|
+
def archive(object_id, opts = {})
|
35
|
+
archive_with_http_info(object_id, opts)
|
36
|
+
nil
|
37
|
+
end
|
38
|
+
|
39
|
+
# Delete a blog post
|
40
|
+
# Delete a blog post by ID.
|
41
|
+
# @param object_id [String] The ID of the blog post to delete.
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @option opts [Boolean] :archived Whether to return only results that have been deleted.
|
44
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
45
|
+
def archive_with_http_info(object_id, opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.archive ...'
|
48
|
+
end
|
49
|
+
# verify the required parameter 'object_id' is set
|
50
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.archive"
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = opts[:query_params] || {}
|
58
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = opts[:header_params] || {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
64
|
+
|
65
|
+
# form parameters
|
66
|
+
form_params = opts[:form_params] || {}
|
67
|
+
|
68
|
+
# http body (model)
|
69
|
+
post_body = opts[:debug_body]
|
70
|
+
|
71
|
+
# return_type
|
72
|
+
return_type = opts[:debug_return_type]
|
73
|
+
|
74
|
+
# auth_names
|
75
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
76
|
+
|
77
|
+
new_options = opts.merge(
|
78
|
+
:operation => :"BasicApi.archive",
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => return_type
|
85
|
+
)
|
86
|
+
|
87
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
88
|
+
if @api_client.config.debugging
|
89
|
+
@api_client.config.logger.debug "API called: BasicApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
end
|
91
|
+
return data, status_code, headers
|
92
|
+
end
|
93
|
+
|
94
|
+
# Clone a blog post
|
95
|
+
# Clone a blog post, making a copy of it in a new blog post.
|
96
|
+
# @param content_clone_request_v_next [ContentCloneRequestVNext] The JSON representation of the ContentCloneRequest object.
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [BlogPost]
|
99
|
+
def clone(content_clone_request_v_next, opts = {})
|
100
|
+
data, _status_code, _headers = clone_with_http_info(content_clone_request_v_next, opts)
|
101
|
+
data
|
102
|
+
end
|
103
|
+
|
104
|
+
# Clone a blog post
|
105
|
+
# Clone a blog post, making a copy of it in a new blog post.
|
106
|
+
# @param content_clone_request_v_next [ContentCloneRequestVNext] The JSON representation of the ContentCloneRequest object.
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
109
|
+
def clone_with_http_info(content_clone_request_v_next, opts = {})
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.clone ...'
|
112
|
+
end
|
113
|
+
# verify the required parameter 'content_clone_request_v_next' is set
|
114
|
+
if @api_client.config.client_side_validation && content_clone_request_v_next.nil?
|
115
|
+
fail ArgumentError, "Missing the required parameter 'content_clone_request_v_next' when calling BasicApi.clone"
|
116
|
+
end
|
117
|
+
# resource path
|
118
|
+
local_var_path = '/cms/v3/blogs/posts/clone'
|
119
|
+
|
120
|
+
# query parameters
|
121
|
+
query_params = opts[:query_params] || {}
|
122
|
+
|
123
|
+
# header parameters
|
124
|
+
header_params = opts[:header_params] || {}
|
125
|
+
# HTTP header 'Accept' (if needed)
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
127
|
+
# HTTP header 'Content-Type'
|
128
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
129
|
+
if !content_type.nil?
|
130
|
+
header_params['Content-Type'] = content_type
|
131
|
+
end
|
132
|
+
|
133
|
+
# form parameters
|
134
|
+
form_params = opts[:form_params] || {}
|
135
|
+
|
136
|
+
# http body (model)
|
137
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(content_clone_request_v_next)
|
138
|
+
|
139
|
+
# return_type
|
140
|
+
return_type = opts[:debug_return_type] || 'BlogPost'
|
141
|
+
|
142
|
+
# auth_names
|
143
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
144
|
+
|
145
|
+
new_options = opts.merge(
|
146
|
+
:operation => :"BasicApi.clone",
|
147
|
+
:header_params => header_params,
|
148
|
+
:query_params => query_params,
|
149
|
+
:form_params => form_params,
|
150
|
+
:body => post_body,
|
151
|
+
:auth_names => auth_names,
|
152
|
+
:return_type => return_type
|
153
|
+
)
|
154
|
+
|
155
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
156
|
+
if @api_client.config.debugging
|
157
|
+
@api_client.config.logger.debug "API called: BasicApi#clone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
158
|
+
end
|
159
|
+
return data, status_code, headers
|
160
|
+
end
|
161
|
+
|
162
|
+
# Create a new post
|
163
|
+
# Create a new blog post, specifying its content in the request body.
|
164
|
+
# @param blog_post [BlogPost] The JSON representation of a new Blog Post.
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @return [BlogPost]
|
167
|
+
def create(blog_post, opts = {})
|
168
|
+
data, _status_code, _headers = create_with_http_info(blog_post, opts)
|
169
|
+
data
|
170
|
+
end
|
171
|
+
|
172
|
+
# Create a new post
|
173
|
+
# Create a new blog post, specifying its content in the request body.
|
174
|
+
# @param blog_post [BlogPost] The JSON representation of a new Blog Post.
|
175
|
+
# @param [Hash] opts the optional parameters
|
176
|
+
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
177
|
+
def create_with_http_info(blog_post, opts = {})
|
178
|
+
if @api_client.config.debugging
|
179
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.create ...'
|
180
|
+
end
|
181
|
+
# verify the required parameter 'blog_post' is set
|
182
|
+
if @api_client.config.client_side_validation && blog_post.nil?
|
183
|
+
fail ArgumentError, "Missing the required parameter 'blog_post' when calling BasicApi.create"
|
184
|
+
end
|
185
|
+
# resource path
|
186
|
+
local_var_path = '/cms/v3/blogs/posts'
|
187
|
+
|
188
|
+
# query parameters
|
189
|
+
query_params = opts[:query_params] || {}
|
190
|
+
|
191
|
+
# header parameters
|
192
|
+
header_params = opts[:header_params] || {}
|
193
|
+
# HTTP header 'Accept' (if needed)
|
194
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
195
|
+
# HTTP header 'Content-Type'
|
196
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
197
|
+
if !content_type.nil?
|
198
|
+
header_params['Content-Type'] = content_type
|
199
|
+
end
|
200
|
+
|
201
|
+
# form parameters
|
202
|
+
form_params = opts[:form_params] || {}
|
203
|
+
|
204
|
+
# http body (model)
|
205
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(blog_post)
|
206
|
+
|
207
|
+
# return_type
|
208
|
+
return_type = opts[:debug_return_type] || 'BlogPost'
|
209
|
+
|
210
|
+
# auth_names
|
211
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
212
|
+
|
213
|
+
new_options = opts.merge(
|
214
|
+
:operation => :"BasicApi.create",
|
215
|
+
:header_params => header_params,
|
216
|
+
:query_params => query_params,
|
217
|
+
:form_params => form_params,
|
218
|
+
:body => post_body,
|
219
|
+
:auth_names => auth_names,
|
220
|
+
:return_type => return_type
|
221
|
+
)
|
222
|
+
|
223
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
224
|
+
if @api_client.config.debugging
|
225
|
+
@api_client.config.logger.debug "API called: BasicApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
226
|
+
end
|
227
|
+
return data, status_code, headers
|
228
|
+
end
|
229
|
+
|
230
|
+
# Retrieve a blog post
|
231
|
+
# Retrieve a blog post by the post ID.
|
232
|
+
# @param object_id [String] The ID of the blog post to retrieve.
|
233
|
+
# @param [Hash] opts the optional parameters
|
234
|
+
# @option opts [Boolean] :archived Specifies whether to return deleted blog posts. Defaults to `false`.
|
235
|
+
# @option opts [String] :property Specific properties to return.
|
236
|
+
# @return [BlogPost]
|
237
|
+
def get_by_id(object_id, opts = {})
|
238
|
+
data, _status_code, _headers = get_by_id_with_http_info(object_id, opts)
|
239
|
+
data
|
240
|
+
end
|
241
|
+
|
242
|
+
# Retrieve a blog post
|
243
|
+
# Retrieve a blog post by the post ID.
|
244
|
+
# @param object_id [String] The ID of the blog post to retrieve.
|
245
|
+
# @param [Hash] opts the optional parameters
|
246
|
+
# @option opts [Boolean] :archived Specifies whether to return deleted blog posts. Defaults to `false`.
|
247
|
+
# @option opts [String] :property Specific properties to return.
|
248
|
+
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
249
|
+
def get_by_id_with_http_info(object_id, opts = {})
|
250
|
+
if @api_client.config.debugging
|
251
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
|
252
|
+
end
|
253
|
+
# verify the required parameter 'object_id' is set
|
254
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
255
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.get_by_id"
|
256
|
+
end
|
257
|
+
# resource path
|
258
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
259
|
+
|
260
|
+
# query parameters
|
261
|
+
query_params = opts[:query_params] || {}
|
262
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
263
|
+
query_params[:'property'] = opts[:'property'] if !opts[:'property'].nil?
|
264
|
+
|
265
|
+
# header parameters
|
266
|
+
header_params = opts[:header_params] || {}
|
267
|
+
# HTTP header 'Accept' (if needed)
|
268
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
269
|
+
|
270
|
+
# form parameters
|
271
|
+
form_params = opts[:form_params] || {}
|
272
|
+
|
273
|
+
# http body (model)
|
274
|
+
post_body = opts[:debug_body]
|
275
|
+
|
276
|
+
# return_type
|
277
|
+
return_type = opts[:debug_return_type] || 'BlogPost'
|
278
|
+
|
279
|
+
# auth_names
|
280
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
281
|
+
|
282
|
+
new_options = opts.merge(
|
283
|
+
:operation => :"BasicApi.get_by_id",
|
284
|
+
:header_params => header_params,
|
285
|
+
:query_params => query_params,
|
286
|
+
:form_params => form_params,
|
287
|
+
:body => post_body,
|
288
|
+
:auth_names => auth_names,
|
289
|
+
:return_type => return_type
|
290
|
+
)
|
291
|
+
|
292
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
293
|
+
if @api_client.config.debugging
|
294
|
+
@api_client.config.logger.debug "API called: BasicApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
295
|
+
end
|
296
|
+
return data, status_code, headers
|
297
|
+
end
|
298
|
+
|
299
|
+
# Retrieve the full draft version of the Blog Post
|
300
|
+
# Retrieve the full draft version of a blog post.
|
301
|
+
# @param object_id [String] The ID of the blog post to retrieve the draft of.
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @return [BlogPost]
|
304
|
+
def get_draft_by_id(object_id, opts = {})
|
305
|
+
data, _status_code, _headers = get_draft_by_id_with_http_info(object_id, opts)
|
306
|
+
data
|
307
|
+
end
|
308
|
+
|
309
|
+
# Retrieve the full draft version of the Blog Post
|
310
|
+
# Retrieve the full draft version of a blog post.
|
311
|
+
# @param object_id [String] The ID of the blog post to retrieve the draft of.
|
312
|
+
# @param [Hash] opts the optional parameters
|
313
|
+
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
314
|
+
def get_draft_by_id_with_http_info(object_id, opts = {})
|
315
|
+
if @api_client.config.debugging
|
316
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_draft_by_id ...'
|
317
|
+
end
|
318
|
+
# verify the required parameter 'object_id' is set
|
319
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
320
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.get_draft_by_id"
|
321
|
+
end
|
322
|
+
# resource path
|
323
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
324
|
+
|
325
|
+
# query parameters
|
326
|
+
query_params = opts[:query_params] || {}
|
327
|
+
|
328
|
+
# header parameters
|
329
|
+
header_params = opts[:header_params] || {}
|
330
|
+
# HTTP header 'Accept' (if needed)
|
331
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
332
|
+
|
333
|
+
# form parameters
|
334
|
+
form_params = opts[:form_params] || {}
|
335
|
+
|
336
|
+
# http body (model)
|
337
|
+
post_body = opts[:debug_body]
|
338
|
+
|
339
|
+
# return_type
|
340
|
+
return_type = opts[:debug_return_type] || 'BlogPost'
|
341
|
+
|
342
|
+
# auth_names
|
343
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
344
|
+
|
345
|
+
new_options = opts.merge(
|
346
|
+
:operation => :"BasicApi.get_draft_by_id",
|
347
|
+
:header_params => header_params,
|
348
|
+
:query_params => query_params,
|
349
|
+
:form_params => form_params,
|
350
|
+
:body => post_body,
|
351
|
+
:auth_names => auth_names,
|
352
|
+
:return_type => return_type
|
353
|
+
)
|
354
|
+
|
355
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
356
|
+
if @api_client.config.debugging
|
357
|
+
@api_client.config.logger.debug "API called: BasicApi#get_draft_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
358
|
+
end
|
359
|
+
return data, status_code, headers
|
360
|
+
end
|
361
|
+
|
362
|
+
# Get all posts
|
363
|
+
# Retrieve all blog posts, with paging and filtering options. This method would be useful for an integration that ingests posts and suggests edits.
|
364
|
+
# @param [Hash] opts the optional parameters
|
365
|
+
# @option opts [Time] :created_at Only return blog posts created at exactly the specified time.
|
366
|
+
# @option opts [Time] :created_after Only return blog posts created after the specified time.
|
367
|
+
# @option opts [Time] :created_before Only return blog posts created before the specified time.
|
368
|
+
# @option opts [Time] :updated_at Only return blog posts last updated at exactly the specified time.
|
369
|
+
# @option opts [Time] :updated_after Only return blog posts last updated after the specified time.
|
370
|
+
# @option opts [Time] :updated_before Only return blog posts last updated before the specified time.
|
371
|
+
# @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are `createdAt` (default), `name`, `updatedAt`, `createdBy`, `updatedBy`.
|
372
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
373
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 20.
|
374
|
+
# @option opts [Boolean] :archived Specifies whether to return deleted blog posts. Defaults to `false`.
|
375
|
+
# @option opts [String] :property
|
376
|
+
# @return [CollectionResponseWithTotalBlogPostForwardPaging]
|
377
|
+
def get_page(opts = {})
|
378
|
+
data, _status_code, _headers = get_page_with_http_info(opts)
|
379
|
+
data
|
380
|
+
end
|
381
|
+
|
382
|
+
# Get all posts
|
383
|
+
# Retrieve all blog posts, with paging and filtering options. This method would be useful for an integration that ingests posts and suggests edits.
|
384
|
+
# @param [Hash] opts the optional parameters
|
385
|
+
# @option opts [Time] :created_at Only return blog posts created at exactly the specified time.
|
386
|
+
# @option opts [Time] :created_after Only return blog posts created after the specified time.
|
387
|
+
# @option opts [Time] :created_before Only return blog posts created before the specified time.
|
388
|
+
# @option opts [Time] :updated_at Only return blog posts last updated at exactly the specified time.
|
389
|
+
# @option opts [Time] :updated_after Only return blog posts last updated after the specified time.
|
390
|
+
# @option opts [Time] :updated_before Only return blog posts last updated before the specified time.
|
391
|
+
# @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are `createdAt` (default), `name`, `updatedAt`, `createdBy`, `updatedBy`.
|
392
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
393
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 20.
|
394
|
+
# @option opts [Boolean] :archived Specifies whether to return deleted blog posts. Defaults to `false`.
|
395
|
+
# @option opts [String] :property
|
396
|
+
# @return [Array<(CollectionResponseWithTotalBlogPostForwardPaging, Integer, Hash)>] CollectionResponseWithTotalBlogPostForwardPaging data, response status code and response headers
|
397
|
+
def get_page_with_http_info(opts = {})
|
398
|
+
if @api_client.config.debugging
|
399
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
|
400
|
+
end
|
401
|
+
# resource path
|
402
|
+
local_var_path = '/cms/v3/blogs/posts'
|
403
|
+
|
404
|
+
# query parameters
|
405
|
+
query_params = opts[:query_params] || {}
|
406
|
+
query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
|
407
|
+
query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
408
|
+
query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
409
|
+
query_params[:'updatedAt'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
|
410
|
+
query_params[:'updatedAfter'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
|
411
|
+
query_params[:'updatedBefore'] = opts[:'updated_before'] if !opts[:'updated_before'].nil?
|
412
|
+
query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
|
413
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
414
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
415
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
416
|
+
query_params[:'property'] = opts[:'property'] if !opts[:'property'].nil?
|
417
|
+
|
418
|
+
# header parameters
|
419
|
+
header_params = opts[:header_params] || {}
|
420
|
+
# HTTP header 'Accept' (if needed)
|
421
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
422
|
+
|
423
|
+
# form parameters
|
424
|
+
form_params = opts[:form_params] || {}
|
425
|
+
|
426
|
+
# http body (model)
|
427
|
+
post_body = opts[:debug_body]
|
428
|
+
|
429
|
+
# return_type
|
430
|
+
return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalBlogPostForwardPaging'
|
431
|
+
|
432
|
+
# auth_names
|
433
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
434
|
+
|
435
|
+
new_options = opts.merge(
|
436
|
+
:operation => :"BasicApi.get_page",
|
437
|
+
:header_params => header_params,
|
438
|
+
:query_params => query_params,
|
439
|
+
:form_params => form_params,
|
440
|
+
:body => post_body,
|
441
|
+
:auth_names => auth_names,
|
442
|
+
:return_type => return_type
|
443
|
+
)
|
444
|
+
|
445
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
446
|
+
if @api_client.config.debugging
|
447
|
+
@api_client.config.logger.debug "API called: BasicApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
448
|
+
end
|
449
|
+
return data, status_code, headers
|
450
|
+
end
|
451
|
+
|
452
|
+
# Retrieve a previous version of a blog post
|
453
|
+
# Retrieve a previous version of a blog post.
|
454
|
+
# @param object_id [String] The ID of the blog post.
|
455
|
+
# @param revision_id [String] The ID of the version to retrieve.
|
456
|
+
# @param [Hash] opts the optional parameters
|
457
|
+
# @return [VersionBlogPost]
|
458
|
+
def get_previous_version(object_id, revision_id, opts = {})
|
459
|
+
data, _status_code, _headers = get_previous_version_with_http_info(object_id, revision_id, opts)
|
460
|
+
data
|
461
|
+
end
|
462
|
+
|
463
|
+
# Retrieve a previous version of a blog post
|
464
|
+
# Retrieve a previous version of a blog post.
|
465
|
+
# @param object_id [String] The ID of the blog post.
|
466
|
+
# @param revision_id [String] The ID of the version to retrieve.
|
467
|
+
# @param [Hash] opts the optional parameters
|
468
|
+
# @return [Array<(VersionBlogPost, Integer, Hash)>] VersionBlogPost data, response status code and response headers
|
469
|
+
def get_previous_version_with_http_info(object_id, revision_id, opts = {})
|
470
|
+
if @api_client.config.debugging
|
471
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_previous_version ...'
|
472
|
+
end
|
473
|
+
# verify the required parameter 'object_id' is set
|
474
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
475
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.get_previous_version"
|
476
|
+
end
|
477
|
+
# verify the required parameter 'revision_id' is set
|
478
|
+
if @api_client.config.client_side_validation && revision_id.nil?
|
479
|
+
fail ArgumentError, "Missing the required parameter 'revision_id' when calling BasicApi.get_previous_version"
|
480
|
+
end
|
481
|
+
# resource path
|
482
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}/revisions/{revisionId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
|
483
|
+
|
484
|
+
# query parameters
|
485
|
+
query_params = opts[:query_params] || {}
|
486
|
+
|
487
|
+
# header parameters
|
488
|
+
header_params = opts[:header_params] || {}
|
489
|
+
# HTTP header 'Accept' (if needed)
|
490
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
491
|
+
|
492
|
+
# form parameters
|
493
|
+
form_params = opts[:form_params] || {}
|
494
|
+
|
495
|
+
# http body (model)
|
496
|
+
post_body = opts[:debug_body]
|
497
|
+
|
498
|
+
# return_type
|
499
|
+
return_type = opts[:debug_return_type] || 'VersionBlogPost'
|
500
|
+
|
501
|
+
# auth_names
|
502
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
503
|
+
|
504
|
+
new_options = opts.merge(
|
505
|
+
:operation => :"BasicApi.get_previous_version",
|
506
|
+
:header_params => header_params,
|
507
|
+
:query_params => query_params,
|
508
|
+
:form_params => form_params,
|
509
|
+
:body => post_body,
|
510
|
+
:auth_names => auth_names,
|
511
|
+
:return_type => return_type
|
512
|
+
)
|
513
|
+
|
514
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
515
|
+
if @api_client.config.debugging
|
516
|
+
@api_client.config.logger.debug "API called: BasicApi#get_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
517
|
+
end
|
518
|
+
return data, status_code, headers
|
519
|
+
end
|
520
|
+
|
521
|
+
# Retrieves all previous versions of a post
|
522
|
+
# Retrieve all the previous versions of a blog post.
|
523
|
+
# @param object_id [String] The ID of the blog post to retrieve previous versions of.
|
524
|
+
# @param [Hash] opts the optional parameters
|
525
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
526
|
+
# @option opts [String] :before
|
527
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 100.
|
528
|
+
# @return [CollectionResponseWithTotalVersionBlogPost]
|
529
|
+
def get_previous_versions(object_id, opts = {})
|
530
|
+
data, _status_code, _headers = get_previous_versions_with_http_info(object_id, opts)
|
531
|
+
data
|
532
|
+
end
|
533
|
+
|
534
|
+
# Retrieves all previous versions of a post
|
535
|
+
# Retrieve all the previous versions of a blog post.
|
536
|
+
# @param object_id [String] The ID of the blog post to retrieve previous versions of.
|
537
|
+
# @param [Hash] opts the optional parameters
|
538
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
539
|
+
# @option opts [String] :before
|
540
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 100.
|
541
|
+
# @return [Array<(CollectionResponseWithTotalVersionBlogPost, Integer, Hash)>] CollectionResponseWithTotalVersionBlogPost data, response status code and response headers
|
542
|
+
def get_previous_versions_with_http_info(object_id, opts = {})
|
543
|
+
if @api_client.config.debugging
|
544
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_previous_versions ...'
|
545
|
+
end
|
546
|
+
# verify the required parameter 'object_id' is set
|
547
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
548
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.get_previous_versions"
|
549
|
+
end
|
550
|
+
# resource path
|
551
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}/revisions'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
552
|
+
|
553
|
+
# query parameters
|
554
|
+
query_params = opts[:query_params] || {}
|
555
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
556
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
557
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
558
|
+
|
559
|
+
# header parameters
|
560
|
+
header_params = opts[:header_params] || {}
|
561
|
+
# HTTP header 'Accept' (if needed)
|
562
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
563
|
+
|
564
|
+
# form parameters
|
565
|
+
form_params = opts[:form_params] || {}
|
566
|
+
|
567
|
+
# http body (model)
|
568
|
+
post_body = opts[:debug_body]
|
569
|
+
|
570
|
+
# return_type
|
571
|
+
return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalVersionBlogPost'
|
572
|
+
|
573
|
+
# auth_names
|
574
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
575
|
+
|
576
|
+
new_options = opts.merge(
|
577
|
+
:operation => :"BasicApi.get_previous_versions",
|
578
|
+
:header_params => header_params,
|
579
|
+
:query_params => query_params,
|
580
|
+
:form_params => form_params,
|
581
|
+
:body => post_body,
|
582
|
+
:auth_names => auth_names,
|
583
|
+
:return_type => return_type
|
584
|
+
)
|
585
|
+
|
586
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
587
|
+
if @api_client.config.debugging
|
588
|
+
@api_client.config.logger.debug "API called: BasicApi#get_previous_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
589
|
+
end
|
590
|
+
return data, status_code, headers
|
591
|
+
end
|
592
|
+
|
593
|
+
# Publish blog post draft
|
594
|
+
# Publish the draft version of the blog post, sending its content to the live page.
|
595
|
+
# @param object_id [String] The ID of the post to publish.
|
596
|
+
# @param [Hash] opts the optional parameters
|
597
|
+
# @return [nil]
|
598
|
+
def push_live(object_id, opts = {})
|
599
|
+
push_live_with_http_info(object_id, opts)
|
600
|
+
nil
|
601
|
+
end
|
602
|
+
|
603
|
+
# Publish blog post draft
|
604
|
+
# Publish the draft version of the blog post, sending its content to the live page.
|
605
|
+
# @param object_id [String] The ID of the post to publish.
|
606
|
+
# @param [Hash] opts the optional parameters
|
607
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
608
|
+
def push_live_with_http_info(object_id, opts = {})
|
609
|
+
if @api_client.config.debugging
|
610
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.push_live ...'
|
611
|
+
end
|
612
|
+
# verify the required parameter 'object_id' is set
|
613
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
614
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.push_live"
|
615
|
+
end
|
616
|
+
# resource path
|
617
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft/push-live'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
618
|
+
|
619
|
+
# query parameters
|
620
|
+
query_params = opts[:query_params] || {}
|
621
|
+
|
622
|
+
# header parameters
|
623
|
+
header_params = opts[:header_params] || {}
|
624
|
+
# HTTP header 'Accept' (if needed)
|
625
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
626
|
+
|
627
|
+
# form parameters
|
628
|
+
form_params = opts[:form_params] || {}
|
629
|
+
|
630
|
+
# http body (model)
|
631
|
+
post_body = opts[:debug_body]
|
632
|
+
|
633
|
+
# return_type
|
634
|
+
return_type = opts[:debug_return_type]
|
635
|
+
|
636
|
+
# auth_names
|
637
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
638
|
+
|
639
|
+
new_options = opts.merge(
|
640
|
+
:operation => :"BasicApi.push_live",
|
641
|
+
:header_params => header_params,
|
642
|
+
:query_params => query_params,
|
643
|
+
:form_params => form_params,
|
644
|
+
:body => post_body,
|
645
|
+
:auth_names => auth_names,
|
646
|
+
:return_type => return_type
|
647
|
+
)
|
648
|
+
|
649
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
650
|
+
if @api_client.config.debugging
|
651
|
+
@api_client.config.logger.debug "API called: BasicApi#push_live\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
652
|
+
end
|
653
|
+
return data, status_code, headers
|
654
|
+
end
|
655
|
+
|
656
|
+
# Reset post draft to the live version
|
657
|
+
# Discard all drafted content, resetting the draft to contain the content in the currently published version.
|
658
|
+
# @param object_id [String] The ID of the blog post to reset.
|
659
|
+
# @param [Hash] opts the optional parameters
|
660
|
+
# @return [nil]
|
661
|
+
def reset_draft(object_id, opts = {})
|
662
|
+
reset_draft_with_http_info(object_id, opts)
|
663
|
+
nil
|
664
|
+
end
|
665
|
+
|
666
|
+
# Reset post draft to the live version
|
667
|
+
# Discard all drafted content, resetting the draft to contain the content in the currently published version.
|
668
|
+
# @param object_id [String] The ID of the blog post to reset.
|
669
|
+
# @param [Hash] opts the optional parameters
|
670
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
671
|
+
def reset_draft_with_http_info(object_id, opts = {})
|
672
|
+
if @api_client.config.debugging
|
673
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.reset_draft ...'
|
674
|
+
end
|
675
|
+
# verify the required parameter 'object_id' is set
|
676
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
677
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.reset_draft"
|
678
|
+
end
|
679
|
+
# resource path
|
680
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft/reset'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
681
|
+
|
682
|
+
# query parameters
|
683
|
+
query_params = opts[:query_params] || {}
|
684
|
+
|
685
|
+
# header parameters
|
686
|
+
header_params = opts[:header_params] || {}
|
687
|
+
# HTTP header 'Accept' (if needed)
|
688
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
689
|
+
|
690
|
+
# form parameters
|
691
|
+
form_params = opts[:form_params] || {}
|
692
|
+
|
693
|
+
# http body (model)
|
694
|
+
post_body = opts[:debug_body]
|
695
|
+
|
696
|
+
# return_type
|
697
|
+
return_type = opts[:debug_return_type]
|
698
|
+
|
699
|
+
# auth_names
|
700
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
701
|
+
|
702
|
+
new_options = opts.merge(
|
703
|
+
:operation => :"BasicApi.reset_draft",
|
704
|
+
:header_params => header_params,
|
705
|
+
:query_params => query_params,
|
706
|
+
:form_params => form_params,
|
707
|
+
:body => post_body,
|
708
|
+
:auth_names => auth_names,
|
709
|
+
:return_type => return_type
|
710
|
+
)
|
711
|
+
|
712
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
713
|
+
if @api_client.config.debugging
|
714
|
+
@api_client.config.logger.debug "API called: BasicApi#reset_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
715
|
+
end
|
716
|
+
return data, status_code, headers
|
717
|
+
end
|
718
|
+
|
719
|
+
# Restore a previous version
|
720
|
+
# Restores a blog post to one of its previous versions.
|
721
|
+
# @param object_id [String] The ID of the blog post.
|
722
|
+
# @param revision_id [String] The ID of the version to restore the blog post to.
|
723
|
+
# @param [Hash] opts the optional parameters
|
724
|
+
# @return [BlogPost]
|
725
|
+
def restore_previous_version(object_id, revision_id, opts = {})
|
726
|
+
data, _status_code, _headers = restore_previous_version_with_http_info(object_id, revision_id, opts)
|
727
|
+
data
|
728
|
+
end
|
729
|
+
|
730
|
+
# Restore a previous version
|
731
|
+
# Restores a blog post to one of its previous versions.
|
732
|
+
# @param object_id [String] The ID of the blog post.
|
733
|
+
# @param revision_id [String] The ID of the version to restore the blog post to.
|
734
|
+
# @param [Hash] opts the optional parameters
|
735
|
+
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
736
|
+
def restore_previous_version_with_http_info(object_id, revision_id, opts = {})
|
737
|
+
if @api_client.config.debugging
|
738
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.restore_previous_version ...'
|
739
|
+
end
|
740
|
+
# verify the required parameter 'object_id' is set
|
741
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
742
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.restore_previous_version"
|
743
|
+
end
|
744
|
+
# verify the required parameter 'revision_id' is set
|
745
|
+
if @api_client.config.client_side_validation && revision_id.nil?
|
746
|
+
fail ArgumentError, "Missing the required parameter 'revision_id' when calling BasicApi.restore_previous_version"
|
747
|
+
end
|
748
|
+
# resource path
|
749
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}/revisions/{revisionId}/restore'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
|
750
|
+
|
751
|
+
# query parameters
|
752
|
+
query_params = opts[:query_params] || {}
|
753
|
+
|
754
|
+
# header parameters
|
755
|
+
header_params = opts[:header_params] || {}
|
756
|
+
# HTTP header 'Accept' (if needed)
|
757
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
758
|
+
|
759
|
+
# form parameters
|
760
|
+
form_params = opts[:form_params] || {}
|
761
|
+
|
762
|
+
# http body (model)
|
763
|
+
post_body = opts[:debug_body]
|
764
|
+
|
765
|
+
# return_type
|
766
|
+
return_type = opts[:debug_return_type] || 'BlogPost'
|
767
|
+
|
768
|
+
# auth_names
|
769
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
770
|
+
|
771
|
+
new_options = opts.merge(
|
772
|
+
:operation => :"BasicApi.restore_previous_version",
|
773
|
+
:header_params => header_params,
|
774
|
+
:query_params => query_params,
|
775
|
+
:form_params => form_params,
|
776
|
+
:body => post_body,
|
777
|
+
:auth_names => auth_names,
|
778
|
+
:return_type => return_type
|
779
|
+
)
|
780
|
+
|
781
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
782
|
+
if @api_client.config.debugging
|
783
|
+
@api_client.config.logger.debug "API called: BasicApi#restore_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
784
|
+
end
|
785
|
+
return data, status_code, headers
|
786
|
+
end
|
787
|
+
|
788
|
+
# Restore a draft to a previous version
|
789
|
+
# Takes a specified version of a blog post, sets it as the new draft version of the blog post.
|
790
|
+
# @param object_id [String] The ID of the blog post.
|
791
|
+
# @param revision_id [Integer] The ID of the version to restore the blog post to.
|
792
|
+
# @param [Hash] opts the optional parameters
|
793
|
+
# @return [BlogPost]
|
794
|
+
def restore_previous_version_to_draft(object_id, revision_id, opts = {})
|
795
|
+
data, _status_code, _headers = restore_previous_version_to_draft_with_http_info(object_id, revision_id, opts)
|
796
|
+
data
|
797
|
+
end
|
798
|
+
|
799
|
+
# Restore a draft to a previous version
|
800
|
+
# Takes a specified version of a blog post, sets it as the new draft version of the blog post.
|
801
|
+
# @param object_id [String] The ID of the blog post.
|
802
|
+
# @param revision_id [Integer] The ID of the version to restore the blog post to.
|
803
|
+
# @param [Hash] opts the optional parameters
|
804
|
+
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
805
|
+
def restore_previous_version_to_draft_with_http_info(object_id, revision_id, opts = {})
|
806
|
+
if @api_client.config.debugging
|
807
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.restore_previous_version_to_draft ...'
|
808
|
+
end
|
809
|
+
# verify the required parameter 'object_id' is set
|
810
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
811
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.restore_previous_version_to_draft"
|
812
|
+
end
|
813
|
+
# verify the required parameter 'revision_id' is set
|
814
|
+
if @api_client.config.client_side_validation && revision_id.nil?
|
815
|
+
fail ArgumentError, "Missing the required parameter 'revision_id' when calling BasicApi.restore_previous_version_to_draft"
|
816
|
+
end
|
817
|
+
# resource path
|
818
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}/revisions/{revisionId}/restore-to-draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
|
819
|
+
|
820
|
+
# query parameters
|
821
|
+
query_params = opts[:query_params] || {}
|
822
|
+
|
823
|
+
# header parameters
|
824
|
+
header_params = opts[:header_params] || {}
|
825
|
+
# HTTP header 'Accept' (if needed)
|
826
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
827
|
+
|
828
|
+
# form parameters
|
829
|
+
form_params = opts[:form_params] || {}
|
830
|
+
|
831
|
+
# http body (model)
|
832
|
+
post_body = opts[:debug_body]
|
833
|
+
|
834
|
+
# return_type
|
835
|
+
return_type = opts[:debug_return_type] || 'BlogPost'
|
836
|
+
|
837
|
+
# auth_names
|
838
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
839
|
+
|
840
|
+
new_options = opts.merge(
|
841
|
+
:operation => :"BasicApi.restore_previous_version_to_draft",
|
842
|
+
:header_params => header_params,
|
843
|
+
:query_params => query_params,
|
844
|
+
:form_params => form_params,
|
845
|
+
:body => post_body,
|
846
|
+
:auth_names => auth_names,
|
847
|
+
:return_type => return_type
|
848
|
+
)
|
849
|
+
|
850
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
851
|
+
if @api_client.config.debugging
|
852
|
+
@api_client.config.logger.debug "API called: BasicApi#restore_previous_version_to_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
853
|
+
end
|
854
|
+
return data, status_code, headers
|
855
|
+
end
|
856
|
+
|
857
|
+
# Schedule a post to be published
|
858
|
+
# Schedule a blog post to be published at a specified time.
|
859
|
+
# @param content_schedule_request_v_next [ContentScheduleRequestVNext] The JSON representation of the ContentScheduleRequestVNext object.
|
860
|
+
# @param [Hash] opts the optional parameters
|
861
|
+
# @return [nil]
|
862
|
+
def schedule(content_schedule_request_v_next, opts = {})
|
863
|
+
schedule_with_http_info(content_schedule_request_v_next, opts)
|
864
|
+
nil
|
865
|
+
end
|
866
|
+
|
867
|
+
# Schedule a post to be published
|
868
|
+
# Schedule a blog post to be published at a specified time.
|
869
|
+
# @param content_schedule_request_v_next [ContentScheduleRequestVNext] The JSON representation of the ContentScheduleRequestVNext object.
|
870
|
+
# @param [Hash] opts the optional parameters
|
871
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
872
|
+
def schedule_with_http_info(content_schedule_request_v_next, opts = {})
|
873
|
+
if @api_client.config.debugging
|
874
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.schedule ...'
|
875
|
+
end
|
876
|
+
# verify the required parameter 'content_schedule_request_v_next' is set
|
877
|
+
if @api_client.config.client_side_validation && content_schedule_request_v_next.nil?
|
878
|
+
fail ArgumentError, "Missing the required parameter 'content_schedule_request_v_next' when calling BasicApi.schedule"
|
879
|
+
end
|
880
|
+
# resource path
|
881
|
+
local_var_path = '/cms/v3/blogs/posts/schedule'
|
882
|
+
|
883
|
+
# query parameters
|
884
|
+
query_params = opts[:query_params] || {}
|
885
|
+
|
886
|
+
# header parameters
|
887
|
+
header_params = opts[:header_params] || {}
|
888
|
+
# HTTP header 'Accept' (if needed)
|
889
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
890
|
+
# HTTP header 'Content-Type'
|
891
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
892
|
+
if !content_type.nil?
|
893
|
+
header_params['Content-Type'] = content_type
|
894
|
+
end
|
895
|
+
|
896
|
+
# form parameters
|
897
|
+
form_params = opts[:form_params] || {}
|
898
|
+
|
899
|
+
# http body (model)
|
900
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(content_schedule_request_v_next)
|
901
|
+
|
902
|
+
# return_type
|
903
|
+
return_type = opts[:debug_return_type]
|
904
|
+
|
905
|
+
# auth_names
|
906
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
907
|
+
|
908
|
+
new_options = opts.merge(
|
909
|
+
:operation => :"BasicApi.schedule",
|
910
|
+
:header_params => header_params,
|
911
|
+
:query_params => query_params,
|
912
|
+
:form_params => form_params,
|
913
|
+
:body => post_body,
|
914
|
+
:auth_names => auth_names,
|
915
|
+
:return_type => return_type
|
916
|
+
)
|
917
|
+
|
918
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
919
|
+
if @api_client.config.debugging
|
920
|
+
@api_client.config.logger.debug "API called: BasicApi#schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
921
|
+
end
|
922
|
+
return data, status_code, headers
|
923
|
+
end
|
924
|
+
|
925
|
+
# Update a post
|
926
|
+
# Partially updates a single blog post by ID. You only need to specify the values that you want to update.
|
927
|
+
# @param object_id [String] The ID of the blog post to update.
|
928
|
+
# @param blog_post [BlogPost] The JSON representation of the updated Blog Post.
|
929
|
+
# @param [Hash] opts the optional parameters
|
930
|
+
# @option opts [Boolean] :archived Specifies whether to update deleted blog posts. Defaults to `false`.
|
931
|
+
# @return [BlogPost]
|
932
|
+
def update(object_id, blog_post, opts = {})
|
933
|
+
data, _status_code, _headers = update_with_http_info(object_id, blog_post, opts)
|
934
|
+
data
|
935
|
+
end
|
936
|
+
|
937
|
+
# Update a post
|
938
|
+
# Partially updates a single blog post by ID. You only need to specify the values that you want to update.
|
939
|
+
# @param object_id [String] The ID of the blog post to update.
|
940
|
+
# @param blog_post [BlogPost] The JSON representation of the updated Blog Post.
|
941
|
+
# @param [Hash] opts the optional parameters
|
942
|
+
# @option opts [Boolean] :archived Specifies whether to update deleted blog posts. Defaults to `false`.
|
943
|
+
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
944
|
+
def update_with_http_info(object_id, blog_post, opts = {})
|
945
|
+
if @api_client.config.debugging
|
946
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.update ...'
|
947
|
+
end
|
948
|
+
# verify the required parameter 'object_id' is set
|
949
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
950
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.update"
|
951
|
+
end
|
952
|
+
# verify the required parameter 'blog_post' is set
|
953
|
+
if @api_client.config.client_side_validation && blog_post.nil?
|
954
|
+
fail ArgumentError, "Missing the required parameter 'blog_post' when calling BasicApi.update"
|
955
|
+
end
|
956
|
+
# resource path
|
957
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
958
|
+
|
959
|
+
# query parameters
|
960
|
+
query_params = opts[:query_params] || {}
|
961
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
962
|
+
|
963
|
+
# header parameters
|
964
|
+
header_params = opts[:header_params] || {}
|
965
|
+
# HTTP header 'Accept' (if needed)
|
966
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
967
|
+
# HTTP header 'Content-Type'
|
968
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
969
|
+
if !content_type.nil?
|
970
|
+
header_params['Content-Type'] = content_type
|
971
|
+
end
|
972
|
+
|
973
|
+
# form parameters
|
974
|
+
form_params = opts[:form_params] || {}
|
975
|
+
|
976
|
+
# http body (model)
|
977
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(blog_post)
|
978
|
+
|
979
|
+
# return_type
|
980
|
+
return_type = opts[:debug_return_type] || 'BlogPost'
|
981
|
+
|
982
|
+
# auth_names
|
983
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
984
|
+
|
985
|
+
new_options = opts.merge(
|
986
|
+
:operation => :"BasicApi.update",
|
987
|
+
:header_params => header_params,
|
988
|
+
:query_params => query_params,
|
989
|
+
:form_params => form_params,
|
990
|
+
:body => post_body,
|
991
|
+
:auth_names => auth_names,
|
992
|
+
:return_type => return_type
|
993
|
+
)
|
994
|
+
|
995
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
996
|
+
if @api_client.config.debugging
|
997
|
+
@api_client.config.logger.debug "API called: BasicApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
998
|
+
end
|
999
|
+
return data, status_code, headers
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
# Update the draft of a post
|
1003
|
+
# Partially updates the draft version of a single blog post by ID. You only need to specify the values that you want to update.
|
1004
|
+
# @param object_id [String] The ID of the blog post to update the draft of.
|
1005
|
+
# @param blog_post [BlogPost] The JSON representation of the updated Blog Post to be applied to the draft.
|
1006
|
+
# @param [Hash] opts the optional parameters
|
1007
|
+
# @return [BlogPost]
|
1008
|
+
def update_draft(object_id, blog_post, opts = {})
|
1009
|
+
data, _status_code, _headers = update_draft_with_http_info(object_id, blog_post, opts)
|
1010
|
+
data
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
# Update the draft of a post
|
1014
|
+
# Partially updates the draft version of a single blog post by ID. You only need to specify the values that you want to update.
|
1015
|
+
# @param object_id [String] The ID of the blog post to update the draft of.
|
1016
|
+
# @param blog_post [BlogPost] The JSON representation of the updated Blog Post to be applied to the draft.
|
1017
|
+
# @param [Hash] opts the optional parameters
|
1018
|
+
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
1019
|
+
def update_draft_with_http_info(object_id, blog_post, opts = {})
|
1020
|
+
if @api_client.config.debugging
|
1021
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.update_draft ...'
|
1022
|
+
end
|
1023
|
+
# verify the required parameter 'object_id' is set
|
1024
|
+
if @api_client.config.client_side_validation && object_id.nil?
|
1025
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.update_draft"
|
1026
|
+
end
|
1027
|
+
# verify the required parameter 'blog_post' is set
|
1028
|
+
if @api_client.config.client_side_validation && blog_post.nil?
|
1029
|
+
fail ArgumentError, "Missing the required parameter 'blog_post' when calling BasicApi.update_draft"
|
1030
|
+
end
|
1031
|
+
# resource path
|
1032
|
+
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
1033
|
+
|
1034
|
+
# query parameters
|
1035
|
+
query_params = opts[:query_params] || {}
|
1036
|
+
|
1037
|
+
# header parameters
|
1038
|
+
header_params = opts[:header_params] || {}
|
1039
|
+
# HTTP header 'Accept' (if needed)
|
1040
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
1041
|
+
# HTTP header 'Content-Type'
|
1042
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1043
|
+
if !content_type.nil?
|
1044
|
+
header_params['Content-Type'] = content_type
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
# form parameters
|
1048
|
+
form_params = opts[:form_params] || {}
|
1049
|
+
|
1050
|
+
# http body (model)
|
1051
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(blog_post)
|
1052
|
+
|
1053
|
+
# return_type
|
1054
|
+
return_type = opts[:debug_return_type] || 'BlogPost'
|
1055
|
+
|
1056
|
+
# auth_names
|
1057
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1058
|
+
|
1059
|
+
new_options = opts.merge(
|
1060
|
+
:operation => :"BasicApi.update_draft",
|
1061
|
+
:header_params => header_params,
|
1062
|
+
:query_params => query_params,
|
1063
|
+
:form_params => form_params,
|
1064
|
+
:body => post_body,
|
1065
|
+
:auth_names => auth_names,
|
1066
|
+
:return_type => return_type
|
1067
|
+
)
|
1068
|
+
|
1069
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1070
|
+
if @api_client.config.debugging
|
1071
|
+
@api_client.config.logger.debug "API called: BasicApi#update_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1072
|
+
end
|
1073
|
+
return data, status_code, headers
|
1074
|
+
end
|
1075
|
+
end
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
end
|
1079
|
+
end
|