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