hubspot-api-client 18.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 +287 -53
- 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/attach_to_lang_primary_request_v_next.rb +34 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/blog_post.rb +38 -38
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/breakpoint_styles.rb +258 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/content_language_variation.rb +15 -1
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/styles.rb +12 -1
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +52 -31
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +36 -36
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +55 -40
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_batch_clone_request.rb +230 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_batch_update_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/bounded_next_page.rb +237 -0
- data/lib/hubspot/codegen/cms/hubdb/models/bounded_paging.rb +223 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +61 -7
- data/lib/hubspot/codegen/cms/hubdb/models/column_request.rb +3 -3
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +16 -2
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_batch_clone_request.rb +237 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_batch_update_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +2 -2
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_request.rb +2 -2
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +69 -5
- data/lib/hubspot/codegen/cms/hubdb/models/paging.rb +232 -0
- data/lib/hubspot/codegen/cms/hubdb/models/previous_page.rb +237 -0
- data/lib/hubspot/codegen/{crm/lists/models/public_unified_events_in_list_filter.rb → cms/hubdb/models/random_access_collection_response_with_total_hub_db_table_row_v3.rb} +54 -61
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +8 -8
- data/lib/hubspot/codegen/cms/hubdb/models/streaming_collection_response_with_total_hub_db_table_row_v3.rb +303 -0
- data/lib/hubspot/codegen/cms/hubdb/models/unified_collection_response_with_total_base_hub_db_table_row_v3.rb +109 -0
- data/lib/hubspot/codegen/cms/source_code/api/content_api.rb +5 -5
- data/lib/hubspot/codegen/cms/source_code/api/extract_api.rb +89 -26
- data/lib/hubspot/codegen/cms/source_code/api/metadata_api.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/api/validation_api.rb +3 -3
- data/lib/hubspot/codegen/cms/source_code/api_client.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/action_response.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/asset_file_metadata.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/file_extract_request.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/task_locator.rb +1 -1
- data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/api_client.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/api_error.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/configuration.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/error.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +12 -3
- data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +2 -2
- data/lib/hubspot/codegen/conversations/visitor_identification/api/generate_api.rb +1 -1
- 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/{objects/calls/api/public_object_api.rb → associations/v4/api/report_api.rb} +25 -28
- 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/emails/api/public_object_api.rb → commerce/invoices/api/search_api.rb} +24 -22
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/api_client.rb +5 -5
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/api_error.rb +4 -4
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/configuration.rb +4 -4
- data/lib/hubspot/codegen/crm/{objects/tasks/models/public_gdpr_delete_input.rb → commerce/invoices/models/associated_id.rb} +28 -23
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/customer_search_response_external.rb → commerce/invoices/models/association_spec.rb} +35 -40
- 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/commerce/invoices/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/models/error.rb +57 -57
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/models/error_detail.rb +35 -35
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/invoice_search_response.rb → commerce/invoices/models/filter.rb} +66 -36
- 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/commerce/invoices/models/previous_page.rb +239 -0
- 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/{extensions/accounting/models/accounting_extension_customer.rb → commerce/invoices/models/simple_public_object.rb} +68 -41
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions → commerce/invoices}/models/simple_public_object_batch_input.rb +16 -7
- 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/companies/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/companies/api/{public_object_api.rb → merge_api.rb} +5 -5
- data/lib/hubspot/codegen/crm/companies/models/association_spec.rb +0 -10
- data/lib/hubspot/codegen/crm/companies/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_upsert.rb} +15 -22
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/companies/models/public_associations_for_object.rb +0 -10
- data/lib/hubspot/codegen/crm/companies/models/public_object_id.rb +0 -5
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input_upsert.rb +262 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input_for_create.rb +10 -6
- data/lib/hubspot/codegen/crm/companies/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/contacts/api/{public_object_api.rb → merge_api.rb} +5 -5
- data/lib/hubspot/codegen/crm/contacts/models/association_spec.rb +0 -10
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_associations_for_object.rb +0 -10
- data/lib/hubspot/codegen/crm/contacts/models/public_object_id.rb +0 -5
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input_upsert.rb +262 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input_for_create.rb +10 -6
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/deals/api/{public_object_api.rb → merge_api.rb} +7 -7
- data/lib/hubspot/codegen/crm/deals/models/association_spec.rb +0 -10
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/deals/models/public_associations_for_object.rb +0 -10
- data/lib/hubspot/codegen/crm/deals/models/public_object_id.rb +0 -5
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input_upsert.rb +262 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input_for_create.rb +10 -6
- data/lib/hubspot/codegen/crm/deals/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/{cms/source_code/api/source_code_extract_api.rb → crm/exports/api/public_exports_api.rb} +52 -44
- 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 +88 -8
- data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +24 -24
- data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +9 -2
- 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/error.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/mark_recording_as_ready_request.rb +230 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_patch_request.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_request.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_response.rb +3 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +35 -6
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +35 -6
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +50 -6
- 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 +81 -11
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/line_items/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_for_create.rb} +15 -22
- data/lib/hubspot/codegen/crm/line_items/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +15 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +17 -1
- 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 +263 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +5 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input_for_create.rb +3 -3
- 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 +324 -0
- data/lib/hubspot/codegen/crm/lists/api/folders_api.rb +420 -0
- data/lib/hubspot/codegen/crm/lists/api/lists_api.rb +15 -15
- data/lib/hubspot/codegen/crm/lists/api/mapping_api.rb +154 -0
- data/lib/hubspot/codegen/crm/lists/api/memberships_api.rb +169 -28
- data/lib/hubspot/codegen/crm/lists/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/{collection_response_long.rb → api_collection_response_join_time_and_record_id.rb} +15 -7
- data/lib/hubspot/codegen/crm/lists/models/api_collection_response_record_list_membership_no_paging.rb +239 -0
- data/lib/hubspot/codegen/crm/lists/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/{products/models/public_merge_input.rb → lists/models/join_time_and_record_id.rb} +25 -25
- data/lib/hubspot/codegen/crm/lists/models/list_create_request.rb +14 -2
- data/lib/hubspot/codegen/crm/lists/models/list_create_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/list_fetch_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/list_filter_update_request.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/list_folder_create_request.rb +239 -0
- data/lib/hubspot/codegen/crm/{products/models/public_gdpr_delete_input.rb → lists/models/list_folder_create_response.rb} +16 -25
- data/lib/hubspot/codegen/crm/{tickets/models/public_gdpr_delete_input.rb → lists/models/list_folder_fetch_response.rb} +16 -25
- data/lib/hubspot/codegen/crm/lists/models/list_move_request.rb +244 -0
- data/lib/hubspot/codegen/crm/lists/models/list_search_request.rb +38 -15
- data/lib/hubspot/codegen/crm/lists/models/list_search_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/list_update_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/lists_by_id_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/membership_change_request.rb +3 -3
- data/lib/hubspot/codegen/crm/lists/models/memberships_update_response.rb +4 -4
- data/lib/hubspot/codegen/crm/lists/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/public_absolute_comparative_timestamp_refine_by.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_absolute_ranged_timestamp_refine_by.rb +28 -28
- data/lib/hubspot/codegen/crm/lists/models/public_ads_search_filter.rb +39 -39
- data/lib/hubspot/codegen/crm/lists/models/public_ads_time_filter.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_all_history_refine_by.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/public_all_property_types_operation.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_and_filter_branch.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_association_filter_branch.rb +36 -36
- data/lib/hubspot/codegen/crm/lists/models/public_association_in_list_filter.rb +55 -55
- data/lib/hubspot/codegen/crm/lists/models/public_batch_migration_mapping.rb +247 -0
- data/lib/hubspot/codegen/crm/lists/models/public_bool_property_operation.rb +33 -33
- data/lib/hubspot/codegen/crm/lists/models/public_calendar_date_property_operation.rb +54 -54
- data/lib/hubspot/codegen/crm/lists/models/public_campaign_influenced_filter.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_communication_subscription_filter.rb +31 -31
- data/lib/hubspot/codegen/crm/lists/models/public_comparative_date_property_operation.rb +35 -35
- data/lib/hubspot/codegen/crm/lists/models/public_comparative_property_updated_operation.rb +35 -35
- data/lib/hubspot/codegen/crm/lists/models/public_constant_filter.rb +21 -21
- data/lib/hubspot/codegen/crm/lists/models/public_cta_analytics_filter.rb +28 -28
- data/lib/hubspot/codegen/crm/lists/models/public_date_point.rb +56 -56
- data/lib/hubspot/codegen/crm/lists/models/public_date_property_operation.rb +45 -45
- data/lib/hubspot/codegen/crm/lists/models/public_date_time_property_operation.rb +30 -30
- data/lib/hubspot/codegen/crm/lists/models/public_email_event_filter.rb +44 -44
- data/lib/hubspot/codegen/crm/lists/models/public_email_subscription_filter.rb +27 -27
- data/lib/hubspot/codegen/crm/lists/models/public_enumeration_property_operation.rb +35 -35
- data/lib/hubspot/codegen/crm/lists/models/public_event_analytics_filter.rb +28 -28
- data/lib/hubspot/codegen/crm/lists/models/public_event_filter_metadata.rb +2 -2
- data/lib/hubspot/codegen/crm/lists/models/public_fiscal_quarter_reference.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_fiscal_year_reference.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_form_submission_filter.rb +20 -20
- data/lib/hubspot/codegen/crm/lists/models/{public_event_analytics_filter_coalescing_refine_by.rb → public_form_submission_filter_coalescing_refine_by.rb} +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_form_submission_on_page_filter.rb +37 -37
- data/lib/hubspot/codegen/crm/lists/models/public_in_list_filter.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_in_list_filter_metadata.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/public_index_offset.rb +44 -44
- data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point.rb +30 -30
- data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point_index_reference.rb +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_integration_event_filter.rb +22 -22
- data/lib/hubspot/codegen/crm/lists/models/public_list_folder.rb +327 -0
- data/lib/hubspot/codegen/crm/lists/models/public_migration_mapping.rb +244 -0
- data/lib/hubspot/codegen/crm/lists/models/public_month_reference.rb +29 -29
- data/lib/hubspot/codegen/crm/lists/models/public_multi_string_property_operation.rb +35 -35
- data/lib/hubspot/codegen/crm/lists/models/public_not_all_filter_branch.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_not_any_filter_branch.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_now_reference.rb +23 -23
- data/lib/hubspot/codegen/crm/lists/models/public_num_associations_filter.rb +23 -23
- data/lib/hubspot/codegen/crm/lists/models/public_num_occurrences_refine_by.rb +14 -14
- data/lib/hubspot/codegen/crm/lists/models/public_number_property_operation.rb +33 -33
- data/lib/hubspot/codegen/crm/lists/models/public_object_list.rb +14 -5
- data/lib/hubspot/codegen/crm/lists/models/public_object_list_search_result.rb +4 -4
- data/lib/hubspot/codegen/crm/lists/models/public_or_filter_branch.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_page_view_analytics_filter.rb +37 -37
- data/lib/hubspot/codegen/crm/lists/models/public_privacy_analytics_filter.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.rb +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filters_inner.rb +2 -2
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_in_list_filter.rb +39 -39
- data/lib/hubspot/codegen/crm/lists/models/public_property_filter.rb +17 -17
- data/lib/hubspot/codegen/crm/lists/models/public_property_referenced_time.rb +25 -25
- data/lib/hubspot/codegen/crm/lists/models/public_quarter_reference.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_ranged_date_property_operation.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_ranged_number_property_operation.rb +36 -36
- data/lib/hubspot/codegen/crm/lists/models/public_ranged_time_operation.rb +67 -67
- data/lib/hubspot/codegen/crm/lists/models/public_relative_comparative_timestamp_refine_by.rb +22 -22
- data/lib/hubspot/codegen/crm/lists/models/public_relative_ranged_timestamp_refine_by.rb +31 -31
- data/lib/hubspot/codegen/crm/lists/models/public_restricted_filter_branch.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_rolling_date_range_property_operation.rb +36 -36
- data/lib/hubspot/codegen/crm/lists/models/public_rolling_property_updated_operation.rb +33 -33
- data/lib/hubspot/codegen/crm/lists/models/public_set_occurrences_refine_by.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/public_string_property_operation.rb +33 -33
- data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_filter.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_value_filter.rb +26 -26
- data/lib/hubspot/codegen/crm/lists/models/{public_property_filter_operation.rb → public_survey_monkey_value_filter_value_comparison.rb} +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_time_offset.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation.rb +47 -47
- data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation_time_point.rb +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_today_reference.rb +23 -23
- data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter.rb +31 -31
- data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter_branch.rb +41 -32
- data/lib/hubspot/codegen/crm/lists/models/public_webinar_filter.rb +14 -14
- data/lib/hubspot/codegen/crm/lists/models/public_week_reference.rb +48 -48
- data/lib/hubspot/codegen/crm/lists/models/public_year_reference.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/record_list_membership.rb +270 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +85 -9
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +87 -11
- 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_batch_input_for_create.rb +232 -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_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/calls/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/calls/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +39 -13
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input_for_create.rb +0 -5
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/updated_product.rb → objects/calls/models/simple_public_upsert_object.rb} +76 -88
- data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +87 -11
- data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions/models/batch_input_simple_public_object_input_for_create.rb → communications/models/batch_input_simple_public_object_batch_input_for_create.rb} +7 -7
- data/lib/hubspot/codegen/crm/objects/communications/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/communications/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_upsert.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- 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/{extensions/accounting/models/result_id_accounting_response.rb → objects/deal_splits/models/batch_response_deal_to_deal_splits.rb} +85 -38
- 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/{goals/models/public_gdpr_delete_input.rb → deal_splits/models/deal_to_deal_splits.rb} +29 -22
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/objects/{goals/models/public_merge_input.rb → deal_splits/models/error_detail.rb} +56 -27
- data/lib/hubspot/codegen/crm/objects/{emails/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/{postal_mail/models/public_gdpr_delete_input.rb → deal_splits/models/public_deal_splits_create_request.rb} +29 -22
- 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 +81 -11
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/emails/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_upsert.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- 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 +11 -11
- data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +74 -6
- data/lib/hubspot/codegen/crm/objects/goals/api/search_api.rb +1 -1
- 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/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/goals/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input_upsert.rb +264 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_input_for_create.rb +10 -1
- 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 +392 -0
- data/lib/hubspot/codegen/crm/objects/leads/api/batch_api.rb +365 -0
- data/lib/hubspot/codegen/crm/objects/{postal_mail/api/public_object_api.rb → leads/api/search_api.rb} +19 -21
- data/lib/hubspot/codegen/crm/objects/leads/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/objects/leads/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/leads/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/association_spec.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/batch_input_simple_public_object_batch_input.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/batch_input_simple_public_object_id.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_read_input_simple_public_object_id.rb +274 -0
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/action_response.rb → objects/leads/models/batch_response_simple_public_object.rb} +49 -33
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/exchange_rate_response.rb → objects/leads/models/batch_response_simple_public_object_with_errors.rb} +95 -58
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/{communications/models/public_gdpr_delete_input.rb → leads/models/collection_response_associated_id.rb} +24 -22
- data/lib/hubspot/codegen/crm/objects/leads/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/tax.rb → objects/leads/models/error_detail.rb} +49 -38
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/invoice_pdf_response.rb → objects/leads/models/filter.rb} +65 -54
- data/lib/hubspot/codegen/crm/objects/leads/models/filter_group.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/forward_paging.rb +225 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/paging.rb +234 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/previous_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/public_associations_for_object.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/leads/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/public_object_search_request.rb +276 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object.rb +312 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input.rb +266 -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 +265 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/simple_public_object_input.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/simple_public_object_input_for_create.rb +5 -10
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_with_associations.rb +323 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/standard_error.rb +324 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +81 -11
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/meetings/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/meetings/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +39 -13
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- data/lib/hubspot/codegen/crm/objects/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_for_create.rb} +15 -22
- data/lib/hubspot/codegen/crm/objects/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_upsert.rb +263 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +0 -5
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_upsert_object.rb +324 -0
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +81 -11
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/notes/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/notes/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +39 -13
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- 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 +81 -11
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- 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_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/accounting_extension_invoice.rb → objects/postal_mail/models/batch_response_simple_public_upsert_object_with_errors.rb} +68 -91
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_upsert.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +81 -11
- 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_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.rb} +4 -4
- 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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/tasks/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_upsert.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- data/lib/hubspot/codegen/crm/objects/taxes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/taxes/api/batch_api.rb +81 -11
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/taxes/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/taxes/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +39 -13
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +58 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_audits_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stage_audits_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_public_audit_info_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/models/public_audit_info.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +5 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +22 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input_upsert.rb +263 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +15 -2
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input_for_create.rb +10 -2
- data/lib/hubspot/codegen/crm/products/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +81 -11
- data/lib/hubspot/codegen/crm/quotes/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_for_create.rb} +15 -22
- data/lib/hubspot/codegen/crm/quotes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- 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 +263 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input_for_create.rb +0 -5
- 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 +324 -0
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +7 -7
- data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +19 -1
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_patch.rb +10 -1
- data/lib/hubspot/codegen/crm/schemas/models/property.rb +164 -110
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/tickets/api/{public_object_api.rb → merge_api.rb} +5 -5
- data/lib/hubspot/codegen/crm/tickets/models/association_spec.rb +0 -10
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_associations_for_object.rb +0 -10
- data/lib/hubspot/codegen/crm/tickets/models/public_object_id.rb +0 -5
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input_upsert.rb +262 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input_for_create.rb +10 -6
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +6 -6
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +6 -6
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +4 -4
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +1 -1
- data/lib/hubspot/codegen/events/api/events_api.rb +84 -29
- data/lib/hubspot/codegen/events/api_client.rb +2 -2
- data/lib/hubspot/codegen/events/api_error.rb +2 -2
- data/lib/hubspot/codegen/events/configuration.rb +2 -2
- data/lib/hubspot/codegen/events/models/collection_response_external_unified_event.rb +2 -2
- data/lib/hubspot/codegen/events/models/error.rb +2 -2
- data/lib/hubspot/codegen/events/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/events/models/external_unified_event.rb +2 -2
- data/lib/hubspot/codegen/events/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/events/models/paging.rb +2 -2
- data/lib/hubspot/codegen/events/models/previous_page.rb +2 -2
- data/lib/hubspot/codegen/events/models/visible_external_event_type_names.rb +229 -0
- data/lib/hubspot/codegen/events/send/api/{custom_event_data_api.rb → basic_api.rb} +13 -10
- data/lib/hubspot/codegen/{crm/deals/api/gdpr_api.rb → events/send/api/batch_api.rb} +21 -21
- 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/{crm/quotes/models/public_merge_input.rb → marketing/emails/models/ab_test_create_request_v_next.rb} +28 -26
- 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/{cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb → marketing/emails/models/collection_response_with_total_public_email_forward_paging.rb} +12 -11
- 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/{crm/line_items/models/public_merge_input.rb → marketing/emails/models/public_email_from_details.rb} +33 -30
- 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 +294 -100
- data/lib/hubspot/codegen/marketing/events/api/batch_api.rb +156 -20
- 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 +446 -0
- data/lib/hubspot/codegen/marketing/events/api/retrieve_participant_state_api.rb +386 -0
- data/lib/hubspot/codegen/marketing/events/api/settings_api.rb +42 -42
- data/lib/hubspot/codegen/marketing/events/api/subscriber_state_changes_api.rb +45 -45
- data/lib/hubspot/codegen/marketing/events/api_client.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/api_error.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/configuration.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/app_info.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/attendance_counters.rb +270 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_create_request_params.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber.rb +1 -2
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_external_unique_identifier.rb +1 -1
- 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_input_marketing_event_subscriber.rb +1 -2
- data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response.rb +1 -1
- 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/batch_response_subscriber_email_response.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/batch_response_subscriber_vid_response.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/{collection_response_marketing_event_external_unique_identifier_no_paging.rb → collection_response_marketing_event_public_read_response_v2_forward_paging.rb} +15 -6
- data/lib/hubspot/codegen/marketing/events/models/collection_response_search_public_response_wrapper_no_paging.rb +230 -0
- 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/collection_response_with_total_participation_breakdown_forward_paging.rb +253 -0
- data/lib/hubspot/codegen/marketing/events/models/collection_response_with_total_public_list_no_paging.rb +244 -0
- data/lib/hubspot/codegen/marketing/events/models/contact_association.rb +260 -0
- data/lib/hubspot/codegen/marketing/events/models/crm_property_wrapper.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/error.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/event_detail_settings.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/event_detail_settings_url.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/forward_paging.rb +223 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_association.rb +260 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_complete_request_params.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_create_request_params.rb +11 -2
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_default_response.rb +23 -5
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_email_subscriber.rb +2 -2
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_external_unique_identifier.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 +62 -44
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response_v2.rb +367 -0
- data/lib/hubspot/codegen/{crm/deals/models/public_gdpr_delete_input.rb → marketing/events/models/marketing_event_public_object_id_delete_request.rb} +8 -17
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response.rb +20 -2
- 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 +2 -2
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_update_request_params.rb +11 -2
- data/lib/hubspot/codegen/marketing/events/models/next_page.rb +237 -0
- data/lib/hubspot/codegen/marketing/events/models/participation_associations.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/participation_breakdown.rb +270 -0
- data/lib/hubspot/codegen/marketing/events/models/participation_properties.rb +294 -0
- data/lib/hubspot/codegen/marketing/events/models/property_value.rb +58 -4
- data/lib/hubspot/codegen/marketing/events/models/public_list.rb +361 -0
- data/lib/hubspot/codegen/marketing/events/models/search_public_response_wrapper.rb +270 -0
- data/lib/hubspot/codegen/marketing/events/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/subscriber_email_response.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/subscriber_vid_response.rb +1 -1
- data/lib/hubspot/codegen/marketing/forms/models/datepicker_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field_filter.rb +38 -33
- data/lib/hubspot/codegen/marketing/forms/models/dropdown_field.rb +84 -84
- data/lib/hubspot/codegen/marketing/forms/models/email_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/email_field_validation.rb +19 -19
- data/lib/hubspot/codegen/marketing/forms/models/enumerated_field_option.rb +29 -28
- data/lib/hubspot/codegen/marketing/forms/models/file_field.rb +77 -77
- 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/marketing/forms/models/legal_consent_checkbox.rb +20 -19
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_explicit_consent_to_process.rb +42 -35
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_implicit_consent_to_process.rb +27 -22
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_legitimate_interest.rb +33 -29
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_none.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/mobile_phone_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/multi_line_text_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/multiple_checkboxes_field.rb +78 -78
- data/lib/hubspot/codegen/marketing/forms/models/number_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/number_field_validation.rb +2 -0
- data/lib/hubspot/codegen/marketing/forms/models/payment_link_radio_field.rb +72 -72
- data/lib/hubspot/codegen/marketing/forms/models/phone_field.rb +77 -77
- data/lib/hubspot/codegen/marketing/forms/models/phone_field_validation.rb +2 -0
- data/lib/hubspot/codegen/marketing/forms/models/radio_field.rb +84 -84
- data/lib/hubspot/codegen/marketing/forms/models/single_checkbox_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/single_line_text_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/transactional/api/public_smtp_tokens_api.rb +21 -21
- data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/api_client.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/api_error.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/configuration.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/collection_response_smtp_api_token_view_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/error.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -1
- data/lib/hubspot/codegen/settings/users/api/roles_api.rb +1 -1
- data/lib/hubspot/codegen/settings/users/api/teams_api.rb +1 -1
- data/lib/hubspot/codegen/settings/users/api/users_api.rb +13 -1
- data/lib/hubspot/codegen/settings/users/api_client.rb +1 -1
- data/lib/hubspot/codegen/settings/users/api_error.rb +1 -1
- data/lib/hubspot/codegen/settings/users/configuration.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/collection_response_public_permission_set_no_paging.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/collection_response_public_team_no_paging.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/collection_response_public_user_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/error.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/public_permission_set.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/public_team.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/public_user.rb +20 -2
- data/lib/hubspot/codegen/settings/users/models/public_user_update.rb +20 -2
- data/lib/hubspot/codegen/settings/users/models/user_provision_request.rb +20 -2
- 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/{crm/extensions/accounting/api/invoice_api.rb → cms/blogs/blog_posts/api/multi_language_api.rb} +4 -4
- data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +3 -1
- data/lib/hubspot/discovery/cms/source_code/client.rb +0 -1
- data/lib/hubspot/discovery/crm/associations/v4/api/report_api.rb +15 -0
- 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/{extensions/accounting → commerce/invoices}/client.rb +5 -8
- data/lib/hubspot/discovery/crm/companies/api/{public_object_api.rb → merge_api.rb} +1 -1
- data/lib/hubspot/discovery/crm/companies/client.rb +1 -1
- data/lib/hubspot/discovery/crm/contacts/api/{public_object_api.rb → merge_api.rb} +1 -1
- data/lib/hubspot/discovery/crm/contacts/client.rb +1 -1
- data/lib/hubspot/discovery/crm/deals/api/{public_object_api.rb → merge_api.rb} +1 -1
- data/lib/hubspot/discovery/crm/deals/client.rb +1 -1
- data/lib/hubspot/discovery/crm/{line_items/api/gdpr_api.rb → exports/api/public_exports_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/exports/client.rb +19 -0
- data/lib/hubspot/discovery/crm/extensions/{accounting/api/sync_api.rb → calling/api/channel_connection_settings_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/extensions/calling/client.rb +1 -0
- data/lib/hubspot/discovery/crm/extensions/client.rb +0 -1
- data/lib/hubspot/discovery/crm/line_items/client.rb +0 -2
- data/lib/hubspot/discovery/crm/{quotes/api/gdpr_api.rb → lists/api/folders_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/{products/api/gdpr_api.rb → lists/api/mapping_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/lists/client.rb +2 -0
- data/lib/hubspot/discovery/crm/objects/calls/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/client.rb +2 -3
- data/lib/hubspot/discovery/crm/objects/communications/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/{meetings/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/emails/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/goals/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/{emails/api/gdpr_api.rb → leads/api/basic_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/objects/{calls/api/gdpr_api.rb → leads/api/batch_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/objects/{goals/api/gdpr_api.rb → leads/api/search_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/objects/leads/client.rb +23 -0
- data/lib/hubspot/discovery/crm/objects/meetings/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/notes/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/postal_mail/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/tasks/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/taxes/client.rb +0 -2
- data/lib/hubspot/discovery/crm/products/client.rb +0 -3
- data/lib/hubspot/discovery/crm/quotes/client.rb +0 -3
- data/lib/hubspot/discovery/crm/schemas/client.rb +0 -1
- data/lib/hubspot/discovery/crm/tickets/api/{gdpr_api.rb → merge_api.rb} +1 -1
- data/lib/hubspot/discovery/crm/tickets/client.rb +1 -3
- data/lib/hubspot/discovery/events/send/api/{custom_event_data_api.rb → basic_api.rb} +1 -1
- data/lib/hubspot/discovery/{crm/objects/api/gdpr_api.rb → events/send/api/batch_api.rb} +3 -3
- 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/{marketing_events_external_api.rb → add_event_attendees_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/{attendance_subscriber_state_changes_api.rb → change_property_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/{search_api.rb → identifiers_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/list_associations_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 +6 -4
- data/lib/hubspot/discovery/marketing/transactional/api/public_smtp_tokens_api.rb +1 -1
- data/lib/hubspot/helpers/camel_case.rb +2 -0
- 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/cms/source-code/extract_api_spec.rb +2 -1
- 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/companies/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/{deals/public_object_api_spec.rb → companies/merge_api_spec.rb} +2 -2
- data/spec/discovery/crm/contacts/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/{quotes/public_object_api_spec.rb → contacts/merge_api_spec.rb} +2 -2
- data/spec/discovery/crm/deals/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/{objects/public_object_api_spec.rb → deals/merge_api_spec.rb} +2 -2
- 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/extensions/calling/recording_settings_api_spec.rb +1 -0
- data/spec/discovery/crm/extensions/client_spec.rb +0 -1
- data/spec/discovery/crm/line_items/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/lists/folders_api_spec.rb +12 -0
- data/spec/discovery/crm/lists/lists_api_spec.rb +4 -11
- data/spec/discovery/crm/lists/mapping_api_spec.rb +15 -0
- data/spec/discovery/crm/lists/memberships_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/calls/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/client_spec.rb +2 -0
- data/spec/discovery/crm/objects/communications/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/deal_splits/batch_api_spec.rb +8 -0
- data/spec/discovery/crm/objects/emails/batch_api_spec.rb +1 -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/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/leads/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/objects/leads/batch_api_spec.rb +11 -0
- data/spec/discovery/crm/objects/leads/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/meetings/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/notes/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/postal_mail/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/tasks/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/taxes/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/products/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/quotes/basic_api_spec.rb +3 -0
- data/spec/discovery/crm/quotes/batch_api_spec.rb +4 -0
- data/spec/discovery/crm/tickets/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/{objects/goals/public_object_api_spec.rb → tickets/merge_api_spec.rb} +2 -2
- data/spec/discovery/events/events_api_spec.rb +1 -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 +7 -4
- data/spec/discovery/marketing/events/batch_api_spec.rb +4 -2
- 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/list_associations_api_spec.rb +12 -0
- data/spec/discovery/marketing/events/retrieve_participant_state_api_spec.rb +11 -0
- data/spec/discovery/marketing/events/settings_api_spec.rb +1 -1
- data/spec/discovery/marketing/events/subscriber_state_changes_api_spec.rb +2 -2
- data/spec/discovery/marketing/transactional/public_smtp_tokens_api_spec.rb +1 -1
- 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 +457 -291
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/blog_posts_api.rb +0 -1694
- data/lib/hubspot/codegen/crm/companies/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +0 -768
- data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +0 -256
- data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +0 -165
- data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +0 -176
- data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +0 -159
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +0 -255
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +0 -395
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +0 -267
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +0 -262
- data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +0 -267
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +0 -246
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +0 -307
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +0 -262
- data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +0 -232
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_create_payment_request.rb +0 -276
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +0 -469
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +0 -295
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_response.rb +0 -454
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +0 -278
- data/lib/hubspot/codegen/crm/extensions/accounting/models/object_sync_feature.rb +0 -231
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +0 -295
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +0 -278
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +0 -249
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +0 -249
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +0 -278
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +0 -242
- data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +0 -278
- data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +0 -242
- data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +0 -333
- data/lib/hubspot/codegen/crm/line_items/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/crm/line_items/api/public_object_api.rb +0 -92
- data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +0 -100
- data/lib/hubspot/codegen/crm/objects/api/public_object_api.rb +0 -98
- data/lib/hubspot/codegen/crm/objects/calls/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/communications/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/communications/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/emails/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_gdpr_delete_input.rb +0 -239
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_merge_input.rb +0 -244
- data/lib/hubspot/codegen/crm/objects/goals/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/goals/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/meetings/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/meetings/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/notes/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/notes/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/tasks/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/tasks/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/taxes/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/taxes/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/products/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/crm/products/api/public_object_api.rb +0 -92
- data/lib/hubspot/codegen/crm/quotes/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/crm/quotes/api/public_object_api.rb +0 -92
- data/lib/hubspot/codegen/crm/schemas/api/public_object_schemas_api.rb +0 -85
- data/lib/hubspot/codegen/crm/tickets/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/marketing/events/api/attendance_subscriber_state_changes_api.rb +0 -192
- data/lib/hubspot/codegen/marketing/events/api/marketing_events_external_api.rb +0 -103
- data/lib/hubspot/codegen/marketing/events/api/search_api.rb +0 -90
- data/lib/hubspot/discovery/cms/source_code/api/source_code_extract_api.rb +0 -13
- data/lib/hubspot/discovery/crm/extensions/accounting/api/callbacks_api.rb +0 -15
- data/lib/hubspot/discovery/crm/extensions/accounting/api/settings_api.rb +0 -15
- data/lib/hubspot/discovery/crm/extensions/accounting/api/user_accounts_api.rb +0 -15
- data/lib/hubspot/discovery/crm/line_items/api/public_object_api.rb +0 -13
- data/lib/hubspot/discovery/crm/objects/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/objects/api/public_object_api.rb +0 -13
- data/lib/hubspot/discovery/crm/objects/calls/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/communications/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/communications/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/emails/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/goals/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/meetings/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/notes/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/notes/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/postal_mail/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/postal_mail/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/tasks/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/tasks/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/taxes/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/taxes/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/products/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/products/api/public_object_api.rb +0 -13
- data/lib/hubspot/discovery/crm/quotes/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/quotes/api/public_object_api.rb +0 -13
- data/lib/hubspot/discovery/crm/schemas/api/public_object_schemas_api.rb +0 -13
- data/lib/hubspot/discovery/crm/tickets/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/tickets/api/public_object_api.rb +0 -13
- data/spec/discovery/cms/source-code/source_code_extract_api_spec.rb +0 -8
- data/spec/discovery/crm/companies/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/contacts/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/extensions/accounting/callbacks_api_spec.rb +0 -16
- data/spec/discovery/crm/extensions/accounting/invoice_api_spec.rb +0 -9
- data/spec/discovery/crm/extensions/accounting/settings_api_spec.rb +0 -8
- data/spec/discovery/crm/extensions/accounting/sync_api_spec.rb +0 -8
- data/spec/discovery/crm/extensions/accounting/user_accounts_api_spec.rb +0 -8
- data/spec/discovery/crm/line_items/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/line_items/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/objects/calls/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/calls/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/communications/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/communications/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/emails/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/emails/public_object_api_spec.rb +0 -7
- 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/crm/objects/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/goals/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/meetings/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/meetings/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/notes/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/notes/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/postal_mail/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/postal_mail/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/tasks/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/tasks/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/taxes/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/taxes/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/products/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/products/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/quotes/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/schemas/public_object_schemas_api_spec.rb +0 -7
- data/spec/discovery/crm/tickets/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/tickets/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
- data/spec/discovery/marketing/events/marketing_events_external_api_spec.rb +0 -7
- data/spec/discovery/marketing/events/search_api_spec.rb +0 -7
- data/spec/integration/contacts_spec.rb +0 -85
@@ -1,1694 +0,0 @@
|
|
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 BlogPostsApi
|
20
|
-
attr_accessor :api_client
|
21
|
-
|
22
|
-
def initialize(api_client = ApiClient.default)
|
23
|
-
@api_client = api_client
|
24
|
-
end
|
25
|
-
# Delete a Blog Post
|
26
|
-
# Delete the Blog Post object identified by the id in the path.
|
27
|
-
# @param object_id [String] The Blog Post id.
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
30
|
-
# @return [nil]
|
31
|
-
def archive(object_id, opts = {})
|
32
|
-
archive_with_http_info(object_id, opts)
|
33
|
-
nil
|
34
|
-
end
|
35
|
-
|
36
|
-
# Delete a Blog Post
|
37
|
-
# Delete the Blog Post object identified by the id in the path.
|
38
|
-
# @param object_id [String] The Blog Post id.
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
41
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
42
|
-
def archive_with_http_info(object_id, opts = {})
|
43
|
-
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.archive ...'
|
45
|
-
end
|
46
|
-
# verify the required parameter 'object_id' is set
|
47
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
48
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.archive"
|
49
|
-
end
|
50
|
-
# resource path
|
51
|
-
local_var_path = '/cms/v3/blogs/posts/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
52
|
-
|
53
|
-
# query parameters
|
54
|
-
query_params = opts[:query_params] || {}
|
55
|
-
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
56
|
-
|
57
|
-
# header parameters
|
58
|
-
header_params = opts[:header_params] || {}
|
59
|
-
# HTTP header 'Accept' (if needed)
|
60
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
61
|
-
|
62
|
-
# form parameters
|
63
|
-
form_params = opts[:form_params] || {}
|
64
|
-
|
65
|
-
# http body (model)
|
66
|
-
post_body = opts[:debug_body]
|
67
|
-
|
68
|
-
# return_type
|
69
|
-
return_type = opts[:debug_return_type]
|
70
|
-
|
71
|
-
# auth_names
|
72
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
73
|
-
|
74
|
-
new_options = opts.merge(
|
75
|
-
:operation => :"BlogPostsApi.archive",
|
76
|
-
:header_params => header_params,
|
77
|
-
:query_params => query_params,
|
78
|
-
:form_params => form_params,
|
79
|
-
:body => post_body,
|
80
|
-
:auth_names => auth_names,
|
81
|
-
:return_type => return_type
|
82
|
-
)
|
83
|
-
|
84
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
85
|
-
if @api_client.config.debugging
|
86
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
-
end
|
88
|
-
return data, status_code, headers
|
89
|
-
end
|
90
|
-
|
91
|
-
# Delete a batch of Blog Posts
|
92
|
-
# Delete the Blog Post objects identified in the request body. Note: This is not the same as the in-app `archive` function. To perform a dashboard `archive` send an normal update with the `archivedInDashboard` field set to true.
|
93
|
-
# @param batch_input_string [BatchInputString] The JSON array of Blog Post ids.
|
94
|
-
# @param [Hash] opts the optional parameters
|
95
|
-
# @return [nil]
|
96
|
-
def archive_batch(batch_input_string, opts = {})
|
97
|
-
archive_batch_with_http_info(batch_input_string, opts)
|
98
|
-
nil
|
99
|
-
end
|
100
|
-
|
101
|
-
# Delete a batch of Blog Posts
|
102
|
-
# Delete the Blog Post objects identified in the request body. Note: This is not the same as the in-app `archive` function. To perform a dashboard `archive` send an normal update with the `archivedInDashboard` field set to true.
|
103
|
-
# @param batch_input_string [BatchInputString] The JSON array of Blog Post ids.
|
104
|
-
# @param [Hash] opts the optional parameters
|
105
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
106
|
-
def archive_batch_with_http_info(batch_input_string, opts = {})
|
107
|
-
if @api_client.config.debugging
|
108
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.archive_batch ...'
|
109
|
-
end
|
110
|
-
# verify the required parameter 'batch_input_string' is set
|
111
|
-
if @api_client.config.client_side_validation && batch_input_string.nil?
|
112
|
-
fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling BlogPostsApi.archive_batch"
|
113
|
-
end
|
114
|
-
# resource path
|
115
|
-
local_var_path = '/cms/v3/blogs/posts/batch/archive'
|
116
|
-
|
117
|
-
# query parameters
|
118
|
-
query_params = opts[:query_params] || {}
|
119
|
-
|
120
|
-
# header parameters
|
121
|
-
header_params = opts[:header_params] || {}
|
122
|
-
# HTTP header 'Accept' (if needed)
|
123
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
124
|
-
# HTTP header 'Content-Type'
|
125
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
126
|
-
if !content_type.nil?
|
127
|
-
header_params['Content-Type'] = content_type
|
128
|
-
end
|
129
|
-
|
130
|
-
# form parameters
|
131
|
-
form_params = opts[:form_params] || {}
|
132
|
-
|
133
|
-
# http body (model)
|
134
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_string)
|
135
|
-
|
136
|
-
# return_type
|
137
|
-
return_type = opts[:debug_return_type]
|
138
|
-
|
139
|
-
# auth_names
|
140
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
141
|
-
|
142
|
-
new_options = opts.merge(
|
143
|
-
:operation => :"BlogPostsApi.archive_batch",
|
144
|
-
:header_params => header_params,
|
145
|
-
:query_params => query_params,
|
146
|
-
:form_params => form_params,
|
147
|
-
:body => post_body,
|
148
|
-
:auth_names => auth_names,
|
149
|
-
:return_type => return_type
|
150
|
-
)
|
151
|
-
|
152
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
153
|
-
if @api_client.config.debugging
|
154
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
155
|
-
end
|
156
|
-
return data, status_code, headers
|
157
|
-
end
|
158
|
-
|
159
|
-
# Attach a Blog Post to a multi-language group
|
160
|
-
# Attach a Blog Post to a multi-language group.
|
161
|
-
# @param attach_to_lang_primary_request_v_next [AttachToLangPrimaryRequestVNext] The JSON representation of the AttachToLangPrimaryRequest object.
|
162
|
-
# @param [Hash] opts the optional parameters
|
163
|
-
# @return [nil]
|
164
|
-
def attach_to_lang_group(attach_to_lang_primary_request_v_next, opts = {})
|
165
|
-
attach_to_lang_group_with_http_info(attach_to_lang_primary_request_v_next, opts)
|
166
|
-
nil
|
167
|
-
end
|
168
|
-
|
169
|
-
# Attach a Blog Post to a multi-language group
|
170
|
-
# Attach a Blog Post to a multi-language group.
|
171
|
-
# @param attach_to_lang_primary_request_v_next [AttachToLangPrimaryRequestVNext] The JSON representation of the AttachToLangPrimaryRequest object.
|
172
|
-
# @param [Hash] opts the optional parameters
|
173
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
174
|
-
def attach_to_lang_group_with_http_info(attach_to_lang_primary_request_v_next, opts = {})
|
175
|
-
if @api_client.config.debugging
|
176
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.attach_to_lang_group ...'
|
177
|
-
end
|
178
|
-
# verify the required parameter 'attach_to_lang_primary_request_v_next' is set
|
179
|
-
if @api_client.config.client_side_validation && attach_to_lang_primary_request_v_next.nil?
|
180
|
-
fail ArgumentError, "Missing the required parameter 'attach_to_lang_primary_request_v_next' when calling BlogPostsApi.attach_to_lang_group"
|
181
|
-
end
|
182
|
-
# resource path
|
183
|
-
local_var_path = '/cms/v3/blogs/posts/multi-language/attach-to-lang-group'
|
184
|
-
|
185
|
-
# query parameters
|
186
|
-
query_params = opts[:query_params] || {}
|
187
|
-
|
188
|
-
# header parameters
|
189
|
-
header_params = opts[:header_params] || {}
|
190
|
-
# HTTP header 'Accept' (if needed)
|
191
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
192
|
-
# HTTP header 'Content-Type'
|
193
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
194
|
-
if !content_type.nil?
|
195
|
-
header_params['Content-Type'] = content_type
|
196
|
-
end
|
197
|
-
|
198
|
-
# form parameters
|
199
|
-
form_params = opts[:form_params] || {}
|
200
|
-
|
201
|
-
# http body (model)
|
202
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_to_lang_primary_request_v_next)
|
203
|
-
|
204
|
-
# return_type
|
205
|
-
return_type = opts[:debug_return_type]
|
206
|
-
|
207
|
-
# auth_names
|
208
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
209
|
-
|
210
|
-
new_options = opts.merge(
|
211
|
-
:operation => :"BlogPostsApi.attach_to_lang_group",
|
212
|
-
:header_params => header_params,
|
213
|
-
:query_params => query_params,
|
214
|
-
:form_params => form_params,
|
215
|
-
:body => post_body,
|
216
|
-
:auth_names => auth_names,
|
217
|
-
:return_type => return_type
|
218
|
-
)
|
219
|
-
|
220
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
221
|
-
if @api_client.config.debugging
|
222
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#attach_to_lang_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
223
|
-
end
|
224
|
-
return data, status_code, headers
|
225
|
-
end
|
226
|
-
|
227
|
-
# Clone a Blog Post
|
228
|
-
# Clone a Blog Post.
|
229
|
-
# @param content_clone_request_v_next [ContentCloneRequestVNext] The JSON representation of the ContentCloneRequest object.
|
230
|
-
# @param [Hash] opts the optional parameters
|
231
|
-
# @return [BlogPost]
|
232
|
-
def clone(content_clone_request_v_next, opts = {})
|
233
|
-
data, _status_code, _headers = clone_with_http_info(content_clone_request_v_next, opts)
|
234
|
-
data
|
235
|
-
end
|
236
|
-
|
237
|
-
# Clone a Blog Post
|
238
|
-
# Clone a Blog Post.
|
239
|
-
# @param content_clone_request_v_next [ContentCloneRequestVNext] The JSON representation of the ContentCloneRequest object.
|
240
|
-
# @param [Hash] opts the optional parameters
|
241
|
-
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
242
|
-
def clone_with_http_info(content_clone_request_v_next, opts = {})
|
243
|
-
if @api_client.config.debugging
|
244
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.clone ...'
|
245
|
-
end
|
246
|
-
# verify the required parameter 'content_clone_request_v_next' is set
|
247
|
-
if @api_client.config.client_side_validation && content_clone_request_v_next.nil?
|
248
|
-
fail ArgumentError, "Missing the required parameter 'content_clone_request_v_next' when calling BlogPostsApi.clone"
|
249
|
-
end
|
250
|
-
# resource path
|
251
|
-
local_var_path = '/cms/v3/blogs/posts/clone'
|
252
|
-
|
253
|
-
# query parameters
|
254
|
-
query_params = opts[:query_params] || {}
|
255
|
-
|
256
|
-
# header parameters
|
257
|
-
header_params = opts[:header_params] || {}
|
258
|
-
# HTTP header 'Accept' (if needed)
|
259
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
260
|
-
# HTTP header 'Content-Type'
|
261
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
262
|
-
if !content_type.nil?
|
263
|
-
header_params['Content-Type'] = content_type
|
264
|
-
end
|
265
|
-
|
266
|
-
# form parameters
|
267
|
-
form_params = opts[:form_params] || {}
|
268
|
-
|
269
|
-
# http body (model)
|
270
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(content_clone_request_v_next)
|
271
|
-
|
272
|
-
# return_type
|
273
|
-
return_type = opts[:debug_return_type] || 'BlogPost'
|
274
|
-
|
275
|
-
# auth_names
|
276
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
277
|
-
|
278
|
-
new_options = opts.merge(
|
279
|
-
:operation => :"BlogPostsApi.clone",
|
280
|
-
:header_params => header_params,
|
281
|
-
:query_params => query_params,
|
282
|
-
:form_params => form_params,
|
283
|
-
:body => post_body,
|
284
|
-
:auth_names => auth_names,
|
285
|
-
:return_type => return_type
|
286
|
-
)
|
287
|
-
|
288
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
289
|
-
if @api_client.config.debugging
|
290
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#clone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
291
|
-
end
|
292
|
-
return data, status_code, headers
|
293
|
-
end
|
294
|
-
|
295
|
-
# Create a new Blog Post
|
296
|
-
# Create a new Blog Post.
|
297
|
-
# @param blog_post [BlogPost] The JSON representation of a new Blog Post.
|
298
|
-
# @param [Hash] opts the optional parameters
|
299
|
-
# @return [BlogPost]
|
300
|
-
def create(blog_post, opts = {})
|
301
|
-
data, _status_code, _headers = create_with_http_info(blog_post, opts)
|
302
|
-
data
|
303
|
-
end
|
304
|
-
|
305
|
-
# Create a new Blog Post
|
306
|
-
# Create a new Blog Post.
|
307
|
-
# @param blog_post [BlogPost] The JSON representation of a new Blog Post.
|
308
|
-
# @param [Hash] opts the optional parameters
|
309
|
-
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
310
|
-
def create_with_http_info(blog_post, opts = {})
|
311
|
-
if @api_client.config.debugging
|
312
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.create ...'
|
313
|
-
end
|
314
|
-
# verify the required parameter 'blog_post' is set
|
315
|
-
if @api_client.config.client_side_validation && blog_post.nil?
|
316
|
-
fail ArgumentError, "Missing the required parameter 'blog_post' when calling BlogPostsApi.create"
|
317
|
-
end
|
318
|
-
# resource path
|
319
|
-
local_var_path = '/cms/v3/blogs/posts'
|
320
|
-
|
321
|
-
# query parameters
|
322
|
-
query_params = opts[:query_params] || {}
|
323
|
-
|
324
|
-
# header parameters
|
325
|
-
header_params = opts[:header_params] || {}
|
326
|
-
# HTTP header 'Accept' (if needed)
|
327
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
328
|
-
# HTTP header 'Content-Type'
|
329
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
330
|
-
if !content_type.nil?
|
331
|
-
header_params['Content-Type'] = content_type
|
332
|
-
end
|
333
|
-
|
334
|
-
# form parameters
|
335
|
-
form_params = opts[:form_params] || {}
|
336
|
-
|
337
|
-
# http body (model)
|
338
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(blog_post)
|
339
|
-
|
340
|
-
# return_type
|
341
|
-
return_type = opts[:debug_return_type] || 'BlogPost'
|
342
|
-
|
343
|
-
# auth_names
|
344
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
345
|
-
|
346
|
-
new_options = opts.merge(
|
347
|
-
:operation => :"BlogPostsApi.create",
|
348
|
-
:header_params => header_params,
|
349
|
-
:query_params => query_params,
|
350
|
-
:form_params => form_params,
|
351
|
-
:body => post_body,
|
352
|
-
:auth_names => auth_names,
|
353
|
-
:return_type => return_type
|
354
|
-
)
|
355
|
-
|
356
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
357
|
-
if @api_client.config.debugging
|
358
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
359
|
-
end
|
360
|
-
return data, status_code, headers
|
361
|
-
end
|
362
|
-
|
363
|
-
# Create a batch of Blog Posts
|
364
|
-
# Create the Blog Post objects detailed in the request body.
|
365
|
-
# @param batch_input_blog_post [BatchInputBlogPost] The JSON array of new Blog Posts to create.
|
366
|
-
# @param [Hash] opts the optional parameters
|
367
|
-
# @return [BatchResponseBlogPost]
|
368
|
-
def create_batch(batch_input_blog_post, opts = {})
|
369
|
-
data, _status_code, _headers = create_batch_with_http_info(batch_input_blog_post, opts)
|
370
|
-
data
|
371
|
-
end
|
372
|
-
|
373
|
-
# Create a batch of Blog Posts
|
374
|
-
# Create the Blog Post objects detailed in the request body.
|
375
|
-
# @param batch_input_blog_post [BatchInputBlogPost] The JSON array of new Blog Posts to create.
|
376
|
-
# @param [Hash] opts the optional parameters
|
377
|
-
# @return [Array<(BatchResponseBlogPost, Integer, Hash)>] BatchResponseBlogPost data, response status code and response headers
|
378
|
-
def create_batch_with_http_info(batch_input_blog_post, opts = {})
|
379
|
-
if @api_client.config.debugging
|
380
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.create_batch ...'
|
381
|
-
end
|
382
|
-
# verify the required parameter 'batch_input_blog_post' is set
|
383
|
-
if @api_client.config.client_side_validation && batch_input_blog_post.nil?
|
384
|
-
fail ArgumentError, "Missing the required parameter 'batch_input_blog_post' when calling BlogPostsApi.create_batch"
|
385
|
-
end
|
386
|
-
# resource path
|
387
|
-
local_var_path = '/cms/v3/blogs/posts/batch/create'
|
388
|
-
|
389
|
-
# query parameters
|
390
|
-
query_params = opts[:query_params] || {}
|
391
|
-
|
392
|
-
# header parameters
|
393
|
-
header_params = opts[:header_params] || {}
|
394
|
-
# HTTP header 'Accept' (if needed)
|
395
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
396
|
-
# HTTP header 'Content-Type'
|
397
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
398
|
-
if !content_type.nil?
|
399
|
-
header_params['Content-Type'] = content_type
|
400
|
-
end
|
401
|
-
|
402
|
-
# form parameters
|
403
|
-
form_params = opts[:form_params] || {}
|
404
|
-
|
405
|
-
# http body (model)
|
406
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_blog_post)
|
407
|
-
|
408
|
-
# return_type
|
409
|
-
return_type = opts[:debug_return_type] || 'BatchResponseBlogPost'
|
410
|
-
|
411
|
-
# auth_names
|
412
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
413
|
-
|
414
|
-
new_options = opts.merge(
|
415
|
-
:operation => :"BlogPostsApi.create_batch",
|
416
|
-
:header_params => header_params,
|
417
|
-
:query_params => query_params,
|
418
|
-
:form_params => form_params,
|
419
|
-
:body => post_body,
|
420
|
-
:auth_names => auth_names,
|
421
|
-
:return_type => return_type
|
422
|
-
)
|
423
|
-
|
424
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
425
|
-
if @api_client.config.debugging
|
426
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
427
|
-
end
|
428
|
-
return data, status_code, headers
|
429
|
-
end
|
430
|
-
|
431
|
-
# Create a new language variation
|
432
|
-
# Create a new language variation from an existing Blog Post
|
433
|
-
# @param blog_post_language_clone_request_v_next [BlogPostLanguageCloneRequestVNext] The JSON representation of the BlogPostLanguageCloneRequestVNext object.
|
434
|
-
# @param [Hash] opts the optional parameters
|
435
|
-
# @return [BlogPost]
|
436
|
-
def create_lang_variation(blog_post_language_clone_request_v_next, opts = {})
|
437
|
-
data, _status_code, _headers = create_lang_variation_with_http_info(blog_post_language_clone_request_v_next, opts)
|
438
|
-
data
|
439
|
-
end
|
440
|
-
|
441
|
-
# Create a new language variation
|
442
|
-
# Create a new language variation from an existing Blog Post
|
443
|
-
# @param blog_post_language_clone_request_v_next [BlogPostLanguageCloneRequestVNext] The JSON representation of the BlogPostLanguageCloneRequestVNext object.
|
444
|
-
# @param [Hash] opts the optional parameters
|
445
|
-
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
446
|
-
def create_lang_variation_with_http_info(blog_post_language_clone_request_v_next, opts = {})
|
447
|
-
if @api_client.config.debugging
|
448
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.create_lang_variation ...'
|
449
|
-
end
|
450
|
-
# verify the required parameter 'blog_post_language_clone_request_v_next' is set
|
451
|
-
if @api_client.config.client_side_validation && blog_post_language_clone_request_v_next.nil?
|
452
|
-
fail ArgumentError, "Missing the required parameter 'blog_post_language_clone_request_v_next' when calling BlogPostsApi.create_lang_variation"
|
453
|
-
end
|
454
|
-
# resource path
|
455
|
-
local_var_path = '/cms/v3/blogs/posts/multi-language/create-language-variation'
|
456
|
-
|
457
|
-
# query parameters
|
458
|
-
query_params = opts[:query_params] || {}
|
459
|
-
|
460
|
-
# header parameters
|
461
|
-
header_params = opts[:header_params] || {}
|
462
|
-
# HTTP header 'Accept' (if needed)
|
463
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
464
|
-
# HTTP header 'Content-Type'
|
465
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
466
|
-
if !content_type.nil?
|
467
|
-
header_params['Content-Type'] = content_type
|
468
|
-
end
|
469
|
-
|
470
|
-
# form parameters
|
471
|
-
form_params = opts[:form_params] || {}
|
472
|
-
|
473
|
-
# http body (model)
|
474
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(blog_post_language_clone_request_v_next)
|
475
|
-
|
476
|
-
# return_type
|
477
|
-
return_type = opts[:debug_return_type] || 'BlogPost'
|
478
|
-
|
479
|
-
# auth_names
|
480
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
481
|
-
|
482
|
-
new_options = opts.merge(
|
483
|
-
:operation => :"BlogPostsApi.create_lang_variation",
|
484
|
-
:header_params => header_params,
|
485
|
-
:query_params => query_params,
|
486
|
-
:form_params => form_params,
|
487
|
-
:body => post_body,
|
488
|
-
:auth_names => auth_names,
|
489
|
-
:return_type => return_type
|
490
|
-
)
|
491
|
-
|
492
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
493
|
-
if @api_client.config.debugging
|
494
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#create_lang_variation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
495
|
-
end
|
496
|
-
return data, status_code, headers
|
497
|
-
end
|
498
|
-
|
499
|
-
# Detach a Blog Post from a multi-language group
|
500
|
-
# Detach a Blog Post from a multi-language group.
|
501
|
-
# @param detach_from_lang_group_request_v_next [DetachFromLangGroupRequestVNext] The JSON representation of the DetachFromLangGroupRequest object.
|
502
|
-
# @param [Hash] opts the optional parameters
|
503
|
-
# @return [nil]
|
504
|
-
def detach_from_lang_group(detach_from_lang_group_request_v_next, opts = {})
|
505
|
-
detach_from_lang_group_with_http_info(detach_from_lang_group_request_v_next, opts)
|
506
|
-
nil
|
507
|
-
end
|
508
|
-
|
509
|
-
# Detach a Blog Post from a multi-language group
|
510
|
-
# Detach a Blog Post from a multi-language group.
|
511
|
-
# @param detach_from_lang_group_request_v_next [DetachFromLangGroupRequestVNext] The JSON representation of the DetachFromLangGroupRequest object.
|
512
|
-
# @param [Hash] opts the optional parameters
|
513
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
514
|
-
def detach_from_lang_group_with_http_info(detach_from_lang_group_request_v_next, opts = {})
|
515
|
-
if @api_client.config.debugging
|
516
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.detach_from_lang_group ...'
|
517
|
-
end
|
518
|
-
# verify the required parameter 'detach_from_lang_group_request_v_next' is set
|
519
|
-
if @api_client.config.client_side_validation && detach_from_lang_group_request_v_next.nil?
|
520
|
-
fail ArgumentError, "Missing the required parameter 'detach_from_lang_group_request_v_next' when calling BlogPostsApi.detach_from_lang_group"
|
521
|
-
end
|
522
|
-
# resource path
|
523
|
-
local_var_path = '/cms/v3/blogs/posts/multi-language/detach-from-lang-group'
|
524
|
-
|
525
|
-
# query parameters
|
526
|
-
query_params = opts[:query_params] || {}
|
527
|
-
|
528
|
-
# header parameters
|
529
|
-
header_params = opts[:header_params] || {}
|
530
|
-
# HTTP header 'Accept' (if needed)
|
531
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
532
|
-
# HTTP header 'Content-Type'
|
533
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
534
|
-
if !content_type.nil?
|
535
|
-
header_params['Content-Type'] = content_type
|
536
|
-
end
|
537
|
-
|
538
|
-
# form parameters
|
539
|
-
form_params = opts[:form_params] || {}
|
540
|
-
|
541
|
-
# http body (model)
|
542
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(detach_from_lang_group_request_v_next)
|
543
|
-
|
544
|
-
# return_type
|
545
|
-
return_type = opts[:debug_return_type]
|
546
|
-
|
547
|
-
# auth_names
|
548
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
549
|
-
|
550
|
-
new_options = opts.merge(
|
551
|
-
:operation => :"BlogPostsApi.detach_from_lang_group",
|
552
|
-
:header_params => header_params,
|
553
|
-
:query_params => query_params,
|
554
|
-
:form_params => form_params,
|
555
|
-
:body => post_body,
|
556
|
-
:auth_names => auth_names,
|
557
|
-
:return_type => return_type
|
558
|
-
)
|
559
|
-
|
560
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
561
|
-
if @api_client.config.debugging
|
562
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#detach_from_lang_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
563
|
-
end
|
564
|
-
return data, status_code, headers
|
565
|
-
end
|
566
|
-
|
567
|
-
# Retrieve a Blog Post
|
568
|
-
# Retrieve the Blog Post object identified by the id in the path.
|
569
|
-
# @param object_id [String] The Blog Post id.
|
570
|
-
# @param [Hash] opts the optional parameters
|
571
|
-
# @option opts [Boolean] :archived Specifies whether to return deleted Blog Posts. Defaults to `false`.
|
572
|
-
# @option opts [String] :property
|
573
|
-
# @return [BlogPost]
|
574
|
-
def get_by_id(object_id, opts = {})
|
575
|
-
data, _status_code, _headers = get_by_id_with_http_info(object_id, opts)
|
576
|
-
data
|
577
|
-
end
|
578
|
-
|
579
|
-
# Retrieve a Blog Post
|
580
|
-
# Retrieve the Blog Post object identified by the id in the path.
|
581
|
-
# @param object_id [String] The Blog Post id.
|
582
|
-
# @param [Hash] opts the optional parameters
|
583
|
-
# @option opts [Boolean] :archived Specifies whether to return deleted Blog Posts. Defaults to `false`.
|
584
|
-
# @option opts [String] :property
|
585
|
-
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
586
|
-
def get_by_id_with_http_info(object_id, opts = {})
|
587
|
-
if @api_client.config.debugging
|
588
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.get_by_id ...'
|
589
|
-
end
|
590
|
-
# verify the required parameter 'object_id' is set
|
591
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
592
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.get_by_id"
|
593
|
-
end
|
594
|
-
# resource path
|
595
|
-
local_var_path = '/cms/v3/blogs/posts/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
596
|
-
|
597
|
-
# query parameters
|
598
|
-
query_params = opts[:query_params] || {}
|
599
|
-
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
600
|
-
query_params[:'property'] = opts[:'property'] if !opts[:'property'].nil?
|
601
|
-
|
602
|
-
# header parameters
|
603
|
-
header_params = opts[:header_params] || {}
|
604
|
-
# HTTP header 'Accept' (if needed)
|
605
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
606
|
-
|
607
|
-
# form parameters
|
608
|
-
form_params = opts[:form_params] || {}
|
609
|
-
|
610
|
-
# http body (model)
|
611
|
-
post_body = opts[:debug_body]
|
612
|
-
|
613
|
-
# return_type
|
614
|
-
return_type = opts[:debug_return_type] || 'BlogPost'
|
615
|
-
|
616
|
-
# auth_names
|
617
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
618
|
-
|
619
|
-
new_options = opts.merge(
|
620
|
-
:operation => :"BlogPostsApi.get_by_id",
|
621
|
-
:header_params => header_params,
|
622
|
-
:query_params => query_params,
|
623
|
-
:form_params => form_params,
|
624
|
-
:body => post_body,
|
625
|
-
:auth_names => auth_names,
|
626
|
-
:return_type => return_type
|
627
|
-
)
|
628
|
-
|
629
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
630
|
-
if @api_client.config.debugging
|
631
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
632
|
-
end
|
633
|
-
return data, status_code, headers
|
634
|
-
end
|
635
|
-
|
636
|
-
# Retrieve the full draft version of the Blog Post
|
637
|
-
# Retrieve the full draft version of the Blog Post.
|
638
|
-
# @param object_id [String] The Blog Post id.
|
639
|
-
# @param [Hash] opts the optional parameters
|
640
|
-
# @return [BlogPost]
|
641
|
-
def get_draft_by_id(object_id, opts = {})
|
642
|
-
data, _status_code, _headers = get_draft_by_id_with_http_info(object_id, opts)
|
643
|
-
data
|
644
|
-
end
|
645
|
-
|
646
|
-
# Retrieve the full draft version of the Blog Post
|
647
|
-
# Retrieve the full draft version of the Blog Post.
|
648
|
-
# @param object_id [String] The Blog Post id.
|
649
|
-
# @param [Hash] opts the optional parameters
|
650
|
-
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
651
|
-
def get_draft_by_id_with_http_info(object_id, opts = {})
|
652
|
-
if @api_client.config.debugging
|
653
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.get_draft_by_id ...'
|
654
|
-
end
|
655
|
-
# verify the required parameter 'object_id' is set
|
656
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
657
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.get_draft_by_id"
|
658
|
-
end
|
659
|
-
# resource path
|
660
|
-
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
661
|
-
|
662
|
-
# query parameters
|
663
|
-
query_params = opts[:query_params] || {}
|
664
|
-
|
665
|
-
# header parameters
|
666
|
-
header_params = opts[:header_params] || {}
|
667
|
-
# HTTP header 'Accept' (if needed)
|
668
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
669
|
-
|
670
|
-
# form parameters
|
671
|
-
form_params = opts[:form_params] || {}
|
672
|
-
|
673
|
-
# http body (model)
|
674
|
-
post_body = opts[:debug_body]
|
675
|
-
|
676
|
-
# return_type
|
677
|
-
return_type = opts[:debug_return_type] || 'BlogPost'
|
678
|
-
|
679
|
-
# auth_names
|
680
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
681
|
-
|
682
|
-
new_options = opts.merge(
|
683
|
-
:operation => :"BlogPostsApi.get_draft_by_id",
|
684
|
-
:header_params => header_params,
|
685
|
-
:query_params => query_params,
|
686
|
-
:form_params => form_params,
|
687
|
-
:body => post_body,
|
688
|
-
:auth_names => auth_names,
|
689
|
-
:return_type => return_type
|
690
|
-
)
|
691
|
-
|
692
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
693
|
-
if @api_client.config.debugging
|
694
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#get_draft_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
695
|
-
end
|
696
|
-
return data, status_code, headers
|
697
|
-
end
|
698
|
-
|
699
|
-
# Get all Blog Posts
|
700
|
-
# Get the list of blog posts. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits.
|
701
|
-
# @param [Hash] opts the optional parameters
|
702
|
-
# @option opts [Time] :created_at Only return Blog Posts created at exactly the specified time.
|
703
|
-
# @option opts [Time] :created_after Only return Blog Posts created after the specified time.
|
704
|
-
# @option opts [Time] :created_before Only return Blog Posts created before the specified time.
|
705
|
-
# @option opts [Time] :updated_at Only return Blog Posts last updated at exactly the specified time.
|
706
|
-
# @option opts [Time] :updated_after Only return Blog Posts last updated after the specified time.
|
707
|
-
# @option opts [Time] :updated_before Only return Blog Posts last updated before the specified time.
|
708
|
-
# @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
|
709
|
-
# @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.
|
710
|
-
# @option opts [Integer] :limit The maximum number of results to return. Default is 20.
|
711
|
-
# @option opts [Boolean] :archived Specifies whether to return deleted Blog Posts. Defaults to `false`.
|
712
|
-
# @option opts [String] :property
|
713
|
-
# @return [CollectionResponseWithTotalBlogPostForwardPaging]
|
714
|
-
def get_page(opts = {})
|
715
|
-
data, _status_code, _headers = get_page_with_http_info(opts)
|
716
|
-
data
|
717
|
-
end
|
718
|
-
|
719
|
-
# Get all Blog Posts
|
720
|
-
# Get the list of blog posts. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits.
|
721
|
-
# @param [Hash] opts the optional parameters
|
722
|
-
# @option opts [Time] :created_at Only return Blog Posts created at exactly the specified time.
|
723
|
-
# @option opts [Time] :created_after Only return Blog Posts created after the specified time.
|
724
|
-
# @option opts [Time] :created_before Only return Blog Posts created before the specified time.
|
725
|
-
# @option opts [Time] :updated_at Only return Blog Posts last updated at exactly the specified time.
|
726
|
-
# @option opts [Time] :updated_after Only return Blog Posts last updated after the specified time.
|
727
|
-
# @option opts [Time] :updated_before Only return Blog Posts last updated before the specified time.
|
728
|
-
# @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
|
729
|
-
# @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.
|
730
|
-
# @option opts [Integer] :limit The maximum number of results to return. Default is 20.
|
731
|
-
# @option opts [Boolean] :archived Specifies whether to return deleted Blog Posts. Defaults to `false`.
|
732
|
-
# @option opts [String] :property
|
733
|
-
# @return [Array<(CollectionResponseWithTotalBlogPostForwardPaging, Integer, Hash)>] CollectionResponseWithTotalBlogPostForwardPaging data, response status code and response headers
|
734
|
-
def get_page_with_http_info(opts = {})
|
735
|
-
if @api_client.config.debugging
|
736
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.get_page ...'
|
737
|
-
end
|
738
|
-
# resource path
|
739
|
-
local_var_path = '/cms/v3/blogs/posts'
|
740
|
-
|
741
|
-
# query parameters
|
742
|
-
query_params = opts[:query_params] || {}
|
743
|
-
query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
|
744
|
-
query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
745
|
-
query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
746
|
-
query_params[:'updatedAt'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
|
747
|
-
query_params[:'updatedAfter'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
|
748
|
-
query_params[:'updatedBefore'] = opts[:'updated_before'] if !opts[:'updated_before'].nil?
|
749
|
-
query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
|
750
|
-
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
751
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
752
|
-
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
753
|
-
query_params[:'property'] = opts[:'property'] if !opts[:'property'].nil?
|
754
|
-
|
755
|
-
# header parameters
|
756
|
-
header_params = opts[:header_params] || {}
|
757
|
-
# HTTP header 'Accept' (if needed)
|
758
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
759
|
-
|
760
|
-
# form parameters
|
761
|
-
form_params = opts[:form_params] || {}
|
762
|
-
|
763
|
-
# http body (model)
|
764
|
-
post_body = opts[:debug_body]
|
765
|
-
|
766
|
-
# return_type
|
767
|
-
return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalBlogPostForwardPaging'
|
768
|
-
|
769
|
-
# auth_names
|
770
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
771
|
-
|
772
|
-
new_options = opts.merge(
|
773
|
-
:operation => :"BlogPostsApi.get_page",
|
774
|
-
:header_params => header_params,
|
775
|
-
:query_params => query_params,
|
776
|
-
:form_params => form_params,
|
777
|
-
:body => post_body,
|
778
|
-
:auth_names => auth_names,
|
779
|
-
:return_type => return_type
|
780
|
-
)
|
781
|
-
|
782
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
783
|
-
if @api_client.config.debugging
|
784
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
785
|
-
end
|
786
|
-
return data, status_code, headers
|
787
|
-
end
|
788
|
-
|
789
|
-
# Retrieves a previous version of a blog post
|
790
|
-
# Retrieves a previous version of a blog post.
|
791
|
-
# @param object_id [String] The Blog Post id.
|
792
|
-
# @param revision_id [String] The Blog Post version id.
|
793
|
-
# @param [Hash] opts the optional parameters
|
794
|
-
# @return [VersionBlogPost]
|
795
|
-
def get_previous_version(object_id, revision_id, opts = {})
|
796
|
-
data, _status_code, _headers = get_previous_version_with_http_info(object_id, revision_id, opts)
|
797
|
-
data
|
798
|
-
end
|
799
|
-
|
800
|
-
# Retrieves a previous version of a blog post
|
801
|
-
# Retrieves a previous version of a blog post.
|
802
|
-
# @param object_id [String] The Blog Post id.
|
803
|
-
# @param revision_id [String] The Blog Post version id.
|
804
|
-
# @param [Hash] opts the optional parameters
|
805
|
-
# @return [Array<(VersionBlogPost, Integer, Hash)>] VersionBlogPost data, response status code and response headers
|
806
|
-
def get_previous_version_with_http_info(object_id, revision_id, opts = {})
|
807
|
-
if @api_client.config.debugging
|
808
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.get_previous_version ...'
|
809
|
-
end
|
810
|
-
# verify the required parameter 'object_id' is set
|
811
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
812
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.get_previous_version"
|
813
|
-
end
|
814
|
-
# verify the required parameter 'revision_id' is set
|
815
|
-
if @api_client.config.client_side_validation && revision_id.nil?
|
816
|
-
fail ArgumentError, "Missing the required parameter 'revision_id' when calling BlogPostsApi.get_previous_version"
|
817
|
-
end
|
818
|
-
# resource path
|
819
|
-
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))
|
820
|
-
|
821
|
-
# query parameters
|
822
|
-
query_params = opts[:query_params] || {}
|
823
|
-
|
824
|
-
# header parameters
|
825
|
-
header_params = opts[:header_params] || {}
|
826
|
-
# HTTP header 'Accept' (if needed)
|
827
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
828
|
-
|
829
|
-
# form parameters
|
830
|
-
form_params = opts[:form_params] || {}
|
831
|
-
|
832
|
-
# http body (model)
|
833
|
-
post_body = opts[:debug_body]
|
834
|
-
|
835
|
-
# return_type
|
836
|
-
return_type = opts[:debug_return_type] || 'VersionBlogPost'
|
837
|
-
|
838
|
-
# auth_names
|
839
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
840
|
-
|
841
|
-
new_options = opts.merge(
|
842
|
-
:operation => :"BlogPostsApi.get_previous_version",
|
843
|
-
:header_params => header_params,
|
844
|
-
:query_params => query_params,
|
845
|
-
:form_params => form_params,
|
846
|
-
:body => post_body,
|
847
|
-
:auth_names => auth_names,
|
848
|
-
:return_type => return_type
|
849
|
-
)
|
850
|
-
|
851
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
852
|
-
if @api_client.config.debugging
|
853
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#get_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
854
|
-
end
|
855
|
-
return data, status_code, headers
|
856
|
-
end
|
857
|
-
|
858
|
-
# Retrieves all the previous versions of a blog post
|
859
|
-
# Retrieves all the previous versions of a blog post.
|
860
|
-
# @param object_id [String] The Blog Post id.
|
861
|
-
# @param [Hash] opts the optional parameters
|
862
|
-
# @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.
|
863
|
-
# @option opts [String] :before
|
864
|
-
# @option opts [Integer] :limit The maximum number of results to return. Default is 100.
|
865
|
-
# @return [CollectionResponseWithTotalVersionBlogPost]
|
866
|
-
def get_previous_versions(object_id, opts = {})
|
867
|
-
data, _status_code, _headers = get_previous_versions_with_http_info(object_id, opts)
|
868
|
-
data
|
869
|
-
end
|
870
|
-
|
871
|
-
# Retrieves all the previous versions of a blog post
|
872
|
-
# Retrieves all the previous versions of a blog post.
|
873
|
-
# @param object_id [String] The Blog Post id.
|
874
|
-
# @param [Hash] opts the optional parameters
|
875
|
-
# @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.
|
876
|
-
# @option opts [String] :before
|
877
|
-
# @option opts [Integer] :limit The maximum number of results to return. Default is 100.
|
878
|
-
# @return [Array<(CollectionResponseWithTotalVersionBlogPost, Integer, Hash)>] CollectionResponseWithTotalVersionBlogPost data, response status code and response headers
|
879
|
-
def get_previous_versions_with_http_info(object_id, opts = {})
|
880
|
-
if @api_client.config.debugging
|
881
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.get_previous_versions ...'
|
882
|
-
end
|
883
|
-
# verify the required parameter 'object_id' is set
|
884
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
885
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.get_previous_versions"
|
886
|
-
end
|
887
|
-
# resource path
|
888
|
-
local_var_path = '/cms/v3/blogs/posts/{objectId}/revisions'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
889
|
-
|
890
|
-
# query parameters
|
891
|
-
query_params = opts[:query_params] || {}
|
892
|
-
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
893
|
-
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
894
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
895
|
-
|
896
|
-
# header parameters
|
897
|
-
header_params = opts[:header_params] || {}
|
898
|
-
# HTTP header 'Accept' (if needed)
|
899
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
900
|
-
|
901
|
-
# form parameters
|
902
|
-
form_params = opts[:form_params] || {}
|
903
|
-
|
904
|
-
# http body (model)
|
905
|
-
post_body = opts[:debug_body]
|
906
|
-
|
907
|
-
# return_type
|
908
|
-
return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalVersionBlogPost'
|
909
|
-
|
910
|
-
# auth_names
|
911
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
912
|
-
|
913
|
-
new_options = opts.merge(
|
914
|
-
:operation => :"BlogPostsApi.get_previous_versions",
|
915
|
-
:header_params => header_params,
|
916
|
-
:query_params => query_params,
|
917
|
-
:form_params => form_params,
|
918
|
-
:body => post_body,
|
919
|
-
:auth_names => auth_names,
|
920
|
-
:return_type => return_type
|
921
|
-
)
|
922
|
-
|
923
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
924
|
-
if @api_client.config.debugging
|
925
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#get_previous_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
926
|
-
end
|
927
|
-
return data, status_code, headers
|
928
|
-
end
|
929
|
-
|
930
|
-
# Push Blog Post draft edits live
|
931
|
-
# Take any changes from the draft version of the Blog Post and apply them to the live version.
|
932
|
-
# @param object_id [String] The id of the Blog Post for which it's draft will be pushed live.
|
933
|
-
# @param [Hash] opts the optional parameters
|
934
|
-
# @return [nil]
|
935
|
-
def push_live(object_id, opts = {})
|
936
|
-
push_live_with_http_info(object_id, opts)
|
937
|
-
nil
|
938
|
-
end
|
939
|
-
|
940
|
-
# Push Blog Post draft edits live
|
941
|
-
# Take any changes from the draft version of the Blog Post and apply them to the live version.
|
942
|
-
# @param object_id [String] The id of the Blog Post for which it's draft will be pushed live.
|
943
|
-
# @param [Hash] opts the optional parameters
|
944
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
945
|
-
def push_live_with_http_info(object_id, opts = {})
|
946
|
-
if @api_client.config.debugging
|
947
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.push_live ...'
|
948
|
-
end
|
949
|
-
# verify the required parameter 'object_id' is set
|
950
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
951
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.push_live"
|
952
|
-
end
|
953
|
-
# resource path
|
954
|
-
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft/push-live'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
955
|
-
|
956
|
-
# query parameters
|
957
|
-
query_params = opts[:query_params] || {}
|
958
|
-
|
959
|
-
# header parameters
|
960
|
-
header_params = opts[:header_params] || {}
|
961
|
-
# HTTP header 'Accept' (if needed)
|
962
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
963
|
-
|
964
|
-
# form parameters
|
965
|
-
form_params = opts[:form_params] || {}
|
966
|
-
|
967
|
-
# http body (model)
|
968
|
-
post_body = opts[:debug_body]
|
969
|
-
|
970
|
-
# return_type
|
971
|
-
return_type = opts[:debug_return_type]
|
972
|
-
|
973
|
-
# auth_names
|
974
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
975
|
-
|
976
|
-
new_options = opts.merge(
|
977
|
-
:operation => :"BlogPostsApi.push_live",
|
978
|
-
:header_params => header_params,
|
979
|
-
:query_params => query_params,
|
980
|
-
:form_params => form_params,
|
981
|
-
:body => post_body,
|
982
|
-
:auth_names => auth_names,
|
983
|
-
:return_type => return_type
|
984
|
-
)
|
985
|
-
|
986
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
987
|
-
if @api_client.config.debugging
|
988
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#push_live\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
989
|
-
end
|
990
|
-
return data, status_code, headers
|
991
|
-
end
|
992
|
-
|
993
|
-
# Retrieve a batch of Blog Posts
|
994
|
-
# Retrieve the Blog Post objects identified in the request body.
|
995
|
-
# @param batch_input_string [BatchInputString] The JSON array of Blog Post ids.
|
996
|
-
# @param [Hash] opts the optional parameters
|
997
|
-
# @option opts [Boolean] :archived Specifies whether to return deleted Blog Posts. Defaults to `false`.
|
998
|
-
# @return [BatchResponseBlogPost]
|
999
|
-
def read_batch(batch_input_string, opts = {})
|
1000
|
-
data, _status_code, _headers = read_batch_with_http_info(batch_input_string, opts)
|
1001
|
-
data
|
1002
|
-
end
|
1003
|
-
|
1004
|
-
# Retrieve a batch of Blog Posts
|
1005
|
-
# Retrieve the Blog Post objects identified in the request body.
|
1006
|
-
# @param batch_input_string [BatchInputString] The JSON array of Blog Post ids.
|
1007
|
-
# @param [Hash] opts the optional parameters
|
1008
|
-
# @option opts [Boolean] :archived Specifies whether to return deleted Blog Posts. Defaults to `false`.
|
1009
|
-
# @return [Array<(BatchResponseBlogPost, Integer, Hash)>] BatchResponseBlogPost data, response status code and response headers
|
1010
|
-
def read_batch_with_http_info(batch_input_string, opts = {})
|
1011
|
-
if @api_client.config.debugging
|
1012
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.read_batch ...'
|
1013
|
-
end
|
1014
|
-
# verify the required parameter 'batch_input_string' is set
|
1015
|
-
if @api_client.config.client_side_validation && batch_input_string.nil?
|
1016
|
-
fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling BlogPostsApi.read_batch"
|
1017
|
-
end
|
1018
|
-
# resource path
|
1019
|
-
local_var_path = '/cms/v3/blogs/posts/batch/read'
|
1020
|
-
|
1021
|
-
# query parameters
|
1022
|
-
query_params = opts[:query_params] || {}
|
1023
|
-
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
1024
|
-
|
1025
|
-
# header parameters
|
1026
|
-
header_params = opts[:header_params] || {}
|
1027
|
-
# HTTP header 'Accept' (if needed)
|
1028
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
1029
|
-
# HTTP header 'Content-Type'
|
1030
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1031
|
-
if !content_type.nil?
|
1032
|
-
header_params['Content-Type'] = content_type
|
1033
|
-
end
|
1034
|
-
|
1035
|
-
# form parameters
|
1036
|
-
form_params = opts[:form_params] || {}
|
1037
|
-
|
1038
|
-
# http body (model)
|
1039
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_string)
|
1040
|
-
|
1041
|
-
# return_type
|
1042
|
-
return_type = opts[:debug_return_type] || 'BatchResponseBlogPost'
|
1043
|
-
|
1044
|
-
# auth_names
|
1045
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1046
|
-
|
1047
|
-
new_options = opts.merge(
|
1048
|
-
:operation => :"BlogPostsApi.read_batch",
|
1049
|
-
:header_params => header_params,
|
1050
|
-
:query_params => query_params,
|
1051
|
-
:form_params => form_params,
|
1052
|
-
:body => post_body,
|
1053
|
-
:auth_names => auth_names,
|
1054
|
-
:return_type => return_type
|
1055
|
-
)
|
1056
|
-
|
1057
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1058
|
-
if @api_client.config.debugging
|
1059
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1060
|
-
end
|
1061
|
-
return data, status_code, headers
|
1062
|
-
end
|
1063
|
-
|
1064
|
-
# Reset the Blog Post draft to the live version
|
1065
|
-
# Discards any edits and resets the draft to the live version.
|
1066
|
-
# @param object_id [String] The id of the Blog Post for which it's draft will be reset.
|
1067
|
-
# @param [Hash] opts the optional parameters
|
1068
|
-
# @return [nil]
|
1069
|
-
def reset_draft(object_id, opts = {})
|
1070
|
-
reset_draft_with_http_info(object_id, opts)
|
1071
|
-
nil
|
1072
|
-
end
|
1073
|
-
|
1074
|
-
# Reset the Blog Post draft to the live version
|
1075
|
-
# Discards any edits and resets the draft to the live version.
|
1076
|
-
# @param object_id [String] The id of the Blog Post for which it's draft will be reset.
|
1077
|
-
# @param [Hash] opts the optional parameters
|
1078
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1079
|
-
def reset_draft_with_http_info(object_id, opts = {})
|
1080
|
-
if @api_client.config.debugging
|
1081
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.reset_draft ...'
|
1082
|
-
end
|
1083
|
-
# verify the required parameter 'object_id' is set
|
1084
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
1085
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.reset_draft"
|
1086
|
-
end
|
1087
|
-
# resource path
|
1088
|
-
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft/reset'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
1089
|
-
|
1090
|
-
# query parameters
|
1091
|
-
query_params = opts[:query_params] || {}
|
1092
|
-
|
1093
|
-
# header parameters
|
1094
|
-
header_params = opts[:header_params] || {}
|
1095
|
-
# HTTP header 'Accept' (if needed)
|
1096
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1097
|
-
|
1098
|
-
# form parameters
|
1099
|
-
form_params = opts[:form_params] || {}
|
1100
|
-
|
1101
|
-
# http body (model)
|
1102
|
-
post_body = opts[:debug_body]
|
1103
|
-
|
1104
|
-
# return_type
|
1105
|
-
return_type = opts[:debug_return_type]
|
1106
|
-
|
1107
|
-
# auth_names
|
1108
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1109
|
-
|
1110
|
-
new_options = opts.merge(
|
1111
|
-
:operation => :"BlogPostsApi.reset_draft",
|
1112
|
-
:header_params => header_params,
|
1113
|
-
:query_params => query_params,
|
1114
|
-
:form_params => form_params,
|
1115
|
-
:body => post_body,
|
1116
|
-
:auth_names => auth_names,
|
1117
|
-
:return_type => return_type
|
1118
|
-
)
|
1119
|
-
|
1120
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1121
|
-
if @api_client.config.debugging
|
1122
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#reset_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1123
|
-
end
|
1124
|
-
return data, status_code, headers
|
1125
|
-
end
|
1126
|
-
|
1127
|
-
# Restore a previous version of a blog post
|
1128
|
-
# Takes a specified version of a blog post and restores it.
|
1129
|
-
# @param object_id [String] The Blog Post id.
|
1130
|
-
# @param revision_id [String] The Blog Post version id to restore.
|
1131
|
-
# @param [Hash] opts the optional parameters
|
1132
|
-
# @return [BlogPost]
|
1133
|
-
def restore_previous_version(object_id, revision_id, opts = {})
|
1134
|
-
data, _status_code, _headers = restore_previous_version_with_http_info(object_id, revision_id, opts)
|
1135
|
-
data
|
1136
|
-
end
|
1137
|
-
|
1138
|
-
# Restore a previous version of a blog post
|
1139
|
-
# Takes a specified version of a blog post and restores it.
|
1140
|
-
# @param object_id [String] The Blog Post id.
|
1141
|
-
# @param revision_id [String] The Blog Post version id to restore.
|
1142
|
-
# @param [Hash] opts the optional parameters
|
1143
|
-
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
1144
|
-
def restore_previous_version_with_http_info(object_id, revision_id, opts = {})
|
1145
|
-
if @api_client.config.debugging
|
1146
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.restore_previous_version ...'
|
1147
|
-
end
|
1148
|
-
# verify the required parameter 'object_id' is set
|
1149
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
1150
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.restore_previous_version"
|
1151
|
-
end
|
1152
|
-
# verify the required parameter 'revision_id' is set
|
1153
|
-
if @api_client.config.client_side_validation && revision_id.nil?
|
1154
|
-
fail ArgumentError, "Missing the required parameter 'revision_id' when calling BlogPostsApi.restore_previous_version"
|
1155
|
-
end
|
1156
|
-
# resource path
|
1157
|
-
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))
|
1158
|
-
|
1159
|
-
# query parameters
|
1160
|
-
query_params = opts[:query_params] || {}
|
1161
|
-
|
1162
|
-
# header parameters
|
1163
|
-
header_params = opts[:header_params] || {}
|
1164
|
-
# HTTP header 'Accept' (if needed)
|
1165
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
1166
|
-
|
1167
|
-
# form parameters
|
1168
|
-
form_params = opts[:form_params] || {}
|
1169
|
-
|
1170
|
-
# http body (model)
|
1171
|
-
post_body = opts[:debug_body]
|
1172
|
-
|
1173
|
-
# return_type
|
1174
|
-
return_type = opts[:debug_return_type] || 'BlogPost'
|
1175
|
-
|
1176
|
-
# auth_names
|
1177
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1178
|
-
|
1179
|
-
new_options = opts.merge(
|
1180
|
-
:operation => :"BlogPostsApi.restore_previous_version",
|
1181
|
-
:header_params => header_params,
|
1182
|
-
:query_params => query_params,
|
1183
|
-
:form_params => form_params,
|
1184
|
-
:body => post_body,
|
1185
|
-
:auth_names => auth_names,
|
1186
|
-
:return_type => return_type
|
1187
|
-
)
|
1188
|
-
|
1189
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1190
|
-
if @api_client.config.debugging
|
1191
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#restore_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1192
|
-
end
|
1193
|
-
return data, status_code, headers
|
1194
|
-
end
|
1195
|
-
|
1196
|
-
# Restore a previous version of a blog post, to the draft version of the blog post
|
1197
|
-
# Takes a specified version of a blog post, sets it as the new draft version of the blog post.
|
1198
|
-
# @param object_id [String] The Blog Post id.
|
1199
|
-
# @param revision_id [Integer] The Blog Post version id to restore.
|
1200
|
-
# @param [Hash] opts the optional parameters
|
1201
|
-
# @return [BlogPost]
|
1202
|
-
def restore_previous_version_to_draft(object_id, revision_id, opts = {})
|
1203
|
-
data, _status_code, _headers = restore_previous_version_to_draft_with_http_info(object_id, revision_id, opts)
|
1204
|
-
data
|
1205
|
-
end
|
1206
|
-
|
1207
|
-
# Restore a previous version of a blog post, to the draft version of the blog post
|
1208
|
-
# Takes a specified version of a blog post, sets it as the new draft version of the blog post.
|
1209
|
-
# @param object_id [String] The Blog Post id.
|
1210
|
-
# @param revision_id [Integer] The Blog Post version id to restore.
|
1211
|
-
# @param [Hash] opts the optional parameters
|
1212
|
-
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
1213
|
-
def restore_previous_version_to_draft_with_http_info(object_id, revision_id, opts = {})
|
1214
|
-
if @api_client.config.debugging
|
1215
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.restore_previous_version_to_draft ...'
|
1216
|
-
end
|
1217
|
-
# verify the required parameter 'object_id' is set
|
1218
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
1219
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.restore_previous_version_to_draft"
|
1220
|
-
end
|
1221
|
-
# verify the required parameter 'revision_id' is set
|
1222
|
-
if @api_client.config.client_side_validation && revision_id.nil?
|
1223
|
-
fail ArgumentError, "Missing the required parameter 'revision_id' when calling BlogPostsApi.restore_previous_version_to_draft"
|
1224
|
-
end
|
1225
|
-
# resource path
|
1226
|
-
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))
|
1227
|
-
|
1228
|
-
# query parameters
|
1229
|
-
query_params = opts[:query_params] || {}
|
1230
|
-
|
1231
|
-
# header parameters
|
1232
|
-
header_params = opts[:header_params] || {}
|
1233
|
-
# HTTP header 'Accept' (if needed)
|
1234
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
1235
|
-
|
1236
|
-
# form parameters
|
1237
|
-
form_params = opts[:form_params] || {}
|
1238
|
-
|
1239
|
-
# http body (model)
|
1240
|
-
post_body = opts[:debug_body]
|
1241
|
-
|
1242
|
-
# return_type
|
1243
|
-
return_type = opts[:debug_return_type] || 'BlogPost'
|
1244
|
-
|
1245
|
-
# auth_names
|
1246
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1247
|
-
|
1248
|
-
new_options = opts.merge(
|
1249
|
-
:operation => :"BlogPostsApi.restore_previous_version_to_draft",
|
1250
|
-
:header_params => header_params,
|
1251
|
-
:query_params => query_params,
|
1252
|
-
:form_params => form_params,
|
1253
|
-
:body => post_body,
|
1254
|
-
:auth_names => auth_names,
|
1255
|
-
:return_type => return_type
|
1256
|
-
)
|
1257
|
-
|
1258
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1259
|
-
if @api_client.config.debugging
|
1260
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#restore_previous_version_to_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1261
|
-
end
|
1262
|
-
return data, status_code, headers
|
1263
|
-
end
|
1264
|
-
|
1265
|
-
# Schedule a Blog Post to be Published
|
1266
|
-
# Schedule a Blog Post to be Published.
|
1267
|
-
# @param content_schedule_request_v_next [ContentScheduleRequestVNext] The JSON representation of the ContentScheduleRequestVNext object.
|
1268
|
-
# @param [Hash] opts the optional parameters
|
1269
|
-
# @return [nil]
|
1270
|
-
def schedule(content_schedule_request_v_next, opts = {})
|
1271
|
-
schedule_with_http_info(content_schedule_request_v_next, opts)
|
1272
|
-
nil
|
1273
|
-
end
|
1274
|
-
|
1275
|
-
# Schedule a Blog Post to be Published
|
1276
|
-
# Schedule a Blog Post to be Published.
|
1277
|
-
# @param content_schedule_request_v_next [ContentScheduleRequestVNext] The JSON representation of the ContentScheduleRequestVNext object.
|
1278
|
-
# @param [Hash] opts the optional parameters
|
1279
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1280
|
-
def schedule_with_http_info(content_schedule_request_v_next, opts = {})
|
1281
|
-
if @api_client.config.debugging
|
1282
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.schedule ...'
|
1283
|
-
end
|
1284
|
-
# verify the required parameter 'content_schedule_request_v_next' is set
|
1285
|
-
if @api_client.config.client_side_validation && content_schedule_request_v_next.nil?
|
1286
|
-
fail ArgumentError, "Missing the required parameter 'content_schedule_request_v_next' when calling BlogPostsApi.schedule"
|
1287
|
-
end
|
1288
|
-
# resource path
|
1289
|
-
local_var_path = '/cms/v3/blogs/posts/schedule'
|
1290
|
-
|
1291
|
-
# query parameters
|
1292
|
-
query_params = opts[:query_params] || {}
|
1293
|
-
|
1294
|
-
# header parameters
|
1295
|
-
header_params = opts[:header_params] || {}
|
1296
|
-
# HTTP header 'Accept' (if needed)
|
1297
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1298
|
-
# HTTP header 'Content-Type'
|
1299
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1300
|
-
if !content_type.nil?
|
1301
|
-
header_params['Content-Type'] = content_type
|
1302
|
-
end
|
1303
|
-
|
1304
|
-
# form parameters
|
1305
|
-
form_params = opts[:form_params] || {}
|
1306
|
-
|
1307
|
-
# http body (model)
|
1308
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(content_schedule_request_v_next)
|
1309
|
-
|
1310
|
-
# return_type
|
1311
|
-
return_type = opts[:debug_return_type]
|
1312
|
-
|
1313
|
-
# auth_names
|
1314
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1315
|
-
|
1316
|
-
new_options = opts.merge(
|
1317
|
-
:operation => :"BlogPostsApi.schedule",
|
1318
|
-
:header_params => header_params,
|
1319
|
-
:query_params => query_params,
|
1320
|
-
:form_params => form_params,
|
1321
|
-
:body => post_body,
|
1322
|
-
:auth_names => auth_names,
|
1323
|
-
:return_type => return_type
|
1324
|
-
)
|
1325
|
-
|
1326
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1327
|
-
if @api_client.config.debugging
|
1328
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1329
|
-
end
|
1330
|
-
return data, status_code, headers
|
1331
|
-
end
|
1332
|
-
|
1333
|
-
# Set a new primary language
|
1334
|
-
# Set a Blog Post as the primary language of a multi-language group.
|
1335
|
-
# @param set_new_language_primary_request_v_next [SetNewLanguagePrimaryRequestVNext] The JSON representation of the SetNewLanguagePrimaryRequest object.
|
1336
|
-
# @param [Hash] opts the optional parameters
|
1337
|
-
# @return [nil]
|
1338
|
-
def set_lang_primary(set_new_language_primary_request_v_next, opts = {})
|
1339
|
-
set_lang_primary_with_http_info(set_new_language_primary_request_v_next, opts)
|
1340
|
-
nil
|
1341
|
-
end
|
1342
|
-
|
1343
|
-
# Set a new primary language
|
1344
|
-
# Set a Blog Post as the primary language of a multi-language group.
|
1345
|
-
# @param set_new_language_primary_request_v_next [SetNewLanguagePrimaryRequestVNext] The JSON representation of the SetNewLanguagePrimaryRequest object.
|
1346
|
-
# @param [Hash] opts the optional parameters
|
1347
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1348
|
-
def set_lang_primary_with_http_info(set_new_language_primary_request_v_next, opts = {})
|
1349
|
-
if @api_client.config.debugging
|
1350
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.set_lang_primary ...'
|
1351
|
-
end
|
1352
|
-
# verify the required parameter 'set_new_language_primary_request_v_next' is set
|
1353
|
-
if @api_client.config.client_side_validation && set_new_language_primary_request_v_next.nil?
|
1354
|
-
fail ArgumentError, "Missing the required parameter 'set_new_language_primary_request_v_next' when calling BlogPostsApi.set_lang_primary"
|
1355
|
-
end
|
1356
|
-
# resource path
|
1357
|
-
local_var_path = '/cms/v3/blogs/posts/multi-language/set-new-lang-primary'
|
1358
|
-
|
1359
|
-
# query parameters
|
1360
|
-
query_params = opts[:query_params] || {}
|
1361
|
-
|
1362
|
-
# header parameters
|
1363
|
-
header_params = opts[:header_params] || {}
|
1364
|
-
# HTTP header 'Accept' (if needed)
|
1365
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1366
|
-
# HTTP header 'Content-Type'
|
1367
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1368
|
-
if !content_type.nil?
|
1369
|
-
header_params['Content-Type'] = content_type
|
1370
|
-
end
|
1371
|
-
|
1372
|
-
# form parameters
|
1373
|
-
form_params = opts[:form_params] || {}
|
1374
|
-
|
1375
|
-
# http body (model)
|
1376
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_new_language_primary_request_v_next)
|
1377
|
-
|
1378
|
-
# return_type
|
1379
|
-
return_type = opts[:debug_return_type]
|
1380
|
-
|
1381
|
-
# auth_names
|
1382
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1383
|
-
|
1384
|
-
new_options = opts.merge(
|
1385
|
-
:operation => :"BlogPostsApi.set_lang_primary",
|
1386
|
-
:header_params => header_params,
|
1387
|
-
:query_params => query_params,
|
1388
|
-
:form_params => form_params,
|
1389
|
-
:body => post_body,
|
1390
|
-
:auth_names => auth_names,
|
1391
|
-
:return_type => return_type
|
1392
|
-
)
|
1393
|
-
|
1394
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1395
|
-
if @api_client.config.debugging
|
1396
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#set_lang_primary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1397
|
-
end
|
1398
|
-
return data, status_code, headers
|
1399
|
-
end
|
1400
|
-
|
1401
|
-
# Update a Blog Post
|
1402
|
-
# Sparse updates a single Blog Post object identified by the id in the path. All the column values need not be specified. Only the that need to be modified can be specified.
|
1403
|
-
# @param object_id [String] The Blog Post id.
|
1404
|
-
# @param blog_post [BlogPost] The JSON representation of the updated Blog Post.
|
1405
|
-
# @param [Hash] opts the optional parameters
|
1406
|
-
# @option opts [Boolean] :archived Specifies whether to update deleted Blog Posts. Defaults to `false`.
|
1407
|
-
# @return [BlogPost]
|
1408
|
-
def update(object_id, blog_post, opts = {})
|
1409
|
-
data, _status_code, _headers = update_with_http_info(object_id, blog_post, opts)
|
1410
|
-
data
|
1411
|
-
end
|
1412
|
-
|
1413
|
-
# Update a Blog Post
|
1414
|
-
# Sparse updates a single Blog Post object identified by the id in the path. All the column values need not be specified. Only the that need to be modified can be specified.
|
1415
|
-
# @param object_id [String] The Blog Post id.
|
1416
|
-
# @param blog_post [BlogPost] The JSON representation of the updated Blog Post.
|
1417
|
-
# @param [Hash] opts the optional parameters
|
1418
|
-
# @option opts [Boolean] :archived Specifies whether to update deleted Blog Posts. Defaults to `false`.
|
1419
|
-
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
1420
|
-
def update_with_http_info(object_id, blog_post, opts = {})
|
1421
|
-
if @api_client.config.debugging
|
1422
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.update ...'
|
1423
|
-
end
|
1424
|
-
# verify the required parameter 'object_id' is set
|
1425
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
1426
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.update"
|
1427
|
-
end
|
1428
|
-
# verify the required parameter 'blog_post' is set
|
1429
|
-
if @api_client.config.client_side_validation && blog_post.nil?
|
1430
|
-
fail ArgumentError, "Missing the required parameter 'blog_post' when calling BlogPostsApi.update"
|
1431
|
-
end
|
1432
|
-
# resource path
|
1433
|
-
local_var_path = '/cms/v3/blogs/posts/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
1434
|
-
|
1435
|
-
# query parameters
|
1436
|
-
query_params = opts[:query_params] || {}
|
1437
|
-
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
1438
|
-
|
1439
|
-
# header parameters
|
1440
|
-
header_params = opts[:header_params] || {}
|
1441
|
-
# HTTP header 'Accept' (if needed)
|
1442
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
1443
|
-
# HTTP header 'Content-Type'
|
1444
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1445
|
-
if !content_type.nil?
|
1446
|
-
header_params['Content-Type'] = content_type
|
1447
|
-
end
|
1448
|
-
|
1449
|
-
# form parameters
|
1450
|
-
form_params = opts[:form_params] || {}
|
1451
|
-
|
1452
|
-
# http body (model)
|
1453
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(blog_post)
|
1454
|
-
|
1455
|
-
# return_type
|
1456
|
-
return_type = opts[:debug_return_type] || 'BlogPost'
|
1457
|
-
|
1458
|
-
# auth_names
|
1459
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1460
|
-
|
1461
|
-
new_options = opts.merge(
|
1462
|
-
:operation => :"BlogPostsApi.update",
|
1463
|
-
:header_params => header_params,
|
1464
|
-
:query_params => query_params,
|
1465
|
-
:form_params => form_params,
|
1466
|
-
:body => post_body,
|
1467
|
-
:auth_names => auth_names,
|
1468
|
-
:return_type => return_type
|
1469
|
-
)
|
1470
|
-
|
1471
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1472
|
-
if @api_client.config.debugging
|
1473
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1474
|
-
end
|
1475
|
-
return data, status_code, headers
|
1476
|
-
end
|
1477
|
-
|
1478
|
-
# Update a batch of Blog Posts
|
1479
|
-
# Update the Blog Post objects identified in the request body.
|
1480
|
-
# @param batch_input_json_node [BatchInputJsonNode] A JSON array of the JSON representations of the updated Blog Posts.
|
1481
|
-
# @param [Hash] opts the optional parameters
|
1482
|
-
# @option opts [Boolean] :archived Specifies whether to update deleted Blog Posts. Defaults to `false`.
|
1483
|
-
# @return [BatchResponseBlogPost]
|
1484
|
-
def update_batch(batch_input_json_node, opts = {})
|
1485
|
-
data, _status_code, _headers = update_batch_with_http_info(batch_input_json_node, opts)
|
1486
|
-
data
|
1487
|
-
end
|
1488
|
-
|
1489
|
-
# Update a batch of Blog Posts
|
1490
|
-
# Update the Blog Post objects identified in the request body.
|
1491
|
-
# @param batch_input_json_node [BatchInputJsonNode] A JSON array of the JSON representations of the updated Blog Posts.
|
1492
|
-
# @param [Hash] opts the optional parameters
|
1493
|
-
# @option opts [Boolean] :archived Specifies whether to update deleted Blog Posts. Defaults to `false`.
|
1494
|
-
# @return [Array<(BatchResponseBlogPost, Integer, Hash)>] BatchResponseBlogPost data, response status code and response headers
|
1495
|
-
def update_batch_with_http_info(batch_input_json_node, opts = {})
|
1496
|
-
if @api_client.config.debugging
|
1497
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.update_batch ...'
|
1498
|
-
end
|
1499
|
-
# verify the required parameter 'batch_input_json_node' is set
|
1500
|
-
if @api_client.config.client_side_validation && batch_input_json_node.nil?
|
1501
|
-
fail ArgumentError, "Missing the required parameter 'batch_input_json_node' when calling BlogPostsApi.update_batch"
|
1502
|
-
end
|
1503
|
-
# resource path
|
1504
|
-
local_var_path = '/cms/v3/blogs/posts/batch/update'
|
1505
|
-
|
1506
|
-
# query parameters
|
1507
|
-
query_params = opts[:query_params] || {}
|
1508
|
-
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
1509
|
-
|
1510
|
-
# header parameters
|
1511
|
-
header_params = opts[:header_params] || {}
|
1512
|
-
# HTTP header 'Accept' (if needed)
|
1513
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
1514
|
-
# HTTP header 'Content-Type'
|
1515
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1516
|
-
if !content_type.nil?
|
1517
|
-
header_params['Content-Type'] = content_type
|
1518
|
-
end
|
1519
|
-
|
1520
|
-
# form parameters
|
1521
|
-
form_params = opts[:form_params] || {}
|
1522
|
-
|
1523
|
-
# http body (model)
|
1524
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_json_node)
|
1525
|
-
|
1526
|
-
# return_type
|
1527
|
-
return_type = opts[:debug_return_type] || 'BatchResponseBlogPost'
|
1528
|
-
|
1529
|
-
# auth_names
|
1530
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1531
|
-
|
1532
|
-
new_options = opts.merge(
|
1533
|
-
:operation => :"BlogPostsApi.update_batch",
|
1534
|
-
:header_params => header_params,
|
1535
|
-
:query_params => query_params,
|
1536
|
-
:form_params => form_params,
|
1537
|
-
:body => post_body,
|
1538
|
-
:auth_names => auth_names,
|
1539
|
-
:return_type => return_type
|
1540
|
-
)
|
1541
|
-
|
1542
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1543
|
-
if @api_client.config.debugging
|
1544
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#update_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1545
|
-
end
|
1546
|
-
return data, status_code, headers
|
1547
|
-
end
|
1548
|
-
|
1549
|
-
# Update a Blog Post draft
|
1550
|
-
# Sparse updates the draft version of a single Blog Post object identified by the id in the path. All the column values need not be specified. Only the that need to be modified can be specified.
|
1551
|
-
# @param object_id [String] The Blog Post id.
|
1552
|
-
# @param blog_post [BlogPost] The JSON representation of the updated Blog Post to be applied to the draft.
|
1553
|
-
# @param [Hash] opts the optional parameters
|
1554
|
-
# @return [BlogPost]
|
1555
|
-
def update_draft(object_id, blog_post, opts = {})
|
1556
|
-
data, _status_code, _headers = update_draft_with_http_info(object_id, blog_post, opts)
|
1557
|
-
data
|
1558
|
-
end
|
1559
|
-
|
1560
|
-
# Update a Blog Post draft
|
1561
|
-
# Sparse updates the draft version of a single Blog Post object identified by the id in the path. All the column values need not be specified. Only the that need to be modified can be specified.
|
1562
|
-
# @param object_id [String] The Blog Post id.
|
1563
|
-
# @param blog_post [BlogPost] The JSON representation of the updated Blog Post to be applied to the draft.
|
1564
|
-
# @param [Hash] opts the optional parameters
|
1565
|
-
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
1566
|
-
def update_draft_with_http_info(object_id, blog_post, opts = {})
|
1567
|
-
if @api_client.config.debugging
|
1568
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.update_draft ...'
|
1569
|
-
end
|
1570
|
-
# verify the required parameter 'object_id' is set
|
1571
|
-
if @api_client.config.client_side_validation && object_id.nil?
|
1572
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostsApi.update_draft"
|
1573
|
-
end
|
1574
|
-
# verify the required parameter 'blog_post' is set
|
1575
|
-
if @api_client.config.client_side_validation && blog_post.nil?
|
1576
|
-
fail ArgumentError, "Missing the required parameter 'blog_post' when calling BlogPostsApi.update_draft"
|
1577
|
-
end
|
1578
|
-
# resource path
|
1579
|
-
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
1580
|
-
|
1581
|
-
# query parameters
|
1582
|
-
query_params = opts[:query_params] || {}
|
1583
|
-
|
1584
|
-
# header parameters
|
1585
|
-
header_params = opts[:header_params] || {}
|
1586
|
-
# HTTP header 'Accept' (if needed)
|
1587
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
1588
|
-
# HTTP header 'Content-Type'
|
1589
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1590
|
-
if !content_type.nil?
|
1591
|
-
header_params['Content-Type'] = content_type
|
1592
|
-
end
|
1593
|
-
|
1594
|
-
# form parameters
|
1595
|
-
form_params = opts[:form_params] || {}
|
1596
|
-
|
1597
|
-
# http body (model)
|
1598
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(blog_post)
|
1599
|
-
|
1600
|
-
# return_type
|
1601
|
-
return_type = opts[:debug_return_type] || 'BlogPost'
|
1602
|
-
|
1603
|
-
# auth_names
|
1604
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1605
|
-
|
1606
|
-
new_options = opts.merge(
|
1607
|
-
:operation => :"BlogPostsApi.update_draft",
|
1608
|
-
:header_params => header_params,
|
1609
|
-
:query_params => query_params,
|
1610
|
-
:form_params => form_params,
|
1611
|
-
:body => post_body,
|
1612
|
-
:auth_names => auth_names,
|
1613
|
-
:return_type => return_type
|
1614
|
-
)
|
1615
|
-
|
1616
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1617
|
-
if @api_client.config.debugging
|
1618
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#update_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1619
|
-
end
|
1620
|
-
return data, status_code, headers
|
1621
|
-
end
|
1622
|
-
|
1623
|
-
# Update languages of multi-language group
|
1624
|
-
# Explicitly set new languages for each Blog Post in a multi-language group.
|
1625
|
-
# @param update_languages_request_v_next [UpdateLanguagesRequestVNext] The JSON representation of the SetNewLanguagePrimaryRequest object.
|
1626
|
-
# @param [Hash] opts the optional parameters
|
1627
|
-
# @return [nil]
|
1628
|
-
def update_langs(update_languages_request_v_next, opts = {})
|
1629
|
-
update_langs_with_http_info(update_languages_request_v_next, opts)
|
1630
|
-
nil
|
1631
|
-
end
|
1632
|
-
|
1633
|
-
# Update languages of multi-language group
|
1634
|
-
# Explicitly set new languages for each Blog Post in a multi-language group.
|
1635
|
-
# @param update_languages_request_v_next [UpdateLanguagesRequestVNext] The JSON representation of the SetNewLanguagePrimaryRequest object.
|
1636
|
-
# @param [Hash] opts the optional parameters
|
1637
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1638
|
-
def update_langs_with_http_info(update_languages_request_v_next, opts = {})
|
1639
|
-
if @api_client.config.debugging
|
1640
|
-
@api_client.config.logger.debug 'Calling API: BlogPostsApi.update_langs ...'
|
1641
|
-
end
|
1642
|
-
# verify the required parameter 'update_languages_request_v_next' is set
|
1643
|
-
if @api_client.config.client_side_validation && update_languages_request_v_next.nil?
|
1644
|
-
fail ArgumentError, "Missing the required parameter 'update_languages_request_v_next' when calling BlogPostsApi.update_langs"
|
1645
|
-
end
|
1646
|
-
# resource path
|
1647
|
-
local_var_path = '/cms/v3/blogs/posts/multi-language/update-languages'
|
1648
|
-
|
1649
|
-
# query parameters
|
1650
|
-
query_params = opts[:query_params] || {}
|
1651
|
-
|
1652
|
-
# header parameters
|
1653
|
-
header_params = opts[:header_params] || {}
|
1654
|
-
# HTTP header 'Accept' (if needed)
|
1655
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1656
|
-
# HTTP header 'Content-Type'
|
1657
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1658
|
-
if !content_type.nil?
|
1659
|
-
header_params['Content-Type'] = content_type
|
1660
|
-
end
|
1661
|
-
|
1662
|
-
# form parameters
|
1663
|
-
form_params = opts[:form_params] || {}
|
1664
|
-
|
1665
|
-
# http body (model)
|
1666
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_languages_request_v_next)
|
1667
|
-
|
1668
|
-
# return_type
|
1669
|
-
return_type = opts[:debug_return_type]
|
1670
|
-
|
1671
|
-
# auth_names
|
1672
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1673
|
-
|
1674
|
-
new_options = opts.merge(
|
1675
|
-
:operation => :"BlogPostsApi.update_langs",
|
1676
|
-
:header_params => header_params,
|
1677
|
-
:query_params => query_params,
|
1678
|
-
:form_params => form_params,
|
1679
|
-
:body => post_body,
|
1680
|
-
:auth_names => auth_names,
|
1681
|
-
:return_type => return_type
|
1682
|
-
)
|
1683
|
-
|
1684
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1685
|
-
if @api_client.config.debugging
|
1686
|
-
@api_client.config.logger.debug "API called: BlogPostsApi#update_langs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1687
|
-
end
|
1688
|
-
return data, status_code, headers
|
1689
|
-
end
|
1690
|
-
end
|
1691
|
-
end
|
1692
|
-
end
|
1693
|
-
end
|
1694
|
-
end
|