hubspot-api-client 11.2.0 → 12.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +2 -2
- data/lib/hubspot/client.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/api/{author_api.rb → blog_authors_api.rb} +372 -52
- data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/authors/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/authors/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/attach_to_lang_primary_request_v_next.rb +304 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_blog_author.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_json_node.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_string.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author.rb +321 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author_with_errors.rb +9 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author.rb +147 -43
- data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author_clone_request_v_next.rb +252 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/collection_response_with_total_blog_author_forward_paging.rb +3 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/detach_from_lang_group_request_v_next.rb +218 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/set_new_language_primary_request_v_next.rb +218 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/standard_error.rb +9 -1
- data/lib/hubspot/codegen/cms/blogs/authors/models/update_languages_request_v_next.rb +257 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{blog_post_api.rb → blog_posts_api.rb} +414 -94
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api_client.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/angle.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/attach_to_lang_primary_request_v_next.rb +304 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/background_image.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_blog_post.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_json_node.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_string.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post.rb +321 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post_with_errors.rb +9 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +271 -272
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post_language_clone_request_v_next.rb +228 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_blog_post_forward_paging.rb +3 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_version_blog_post.rb +3 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/color_stop.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_clone_request_v_next.rb +3 -3
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_language_variation.rb +398 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_schedule_request_v_next.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/detach_from_lang_group_request_v_next.rb +218 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/gradient.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/layout_section.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/paging.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/rgba_color.rb +5 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/row_meta_data.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/set_new_language_primary_request_v_next.rb +218 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/side_or_corner.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/standard_error.rb +9 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/styles.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/update_languages_request_v_next.rb +257 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_blog_post.rb +11 -12
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_user.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/tags/api/{tag_api.rb → blog_tags_api.rb} +372 -52
- data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/tags/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/tags/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/attach_to_lang_primary_request_v_next.rb +304 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_json_node.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_string.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_tag.rb +2 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag.rb +321 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag_with_errors.rb +9 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/collection_response_with_total_tag_forward_paging.rb +3 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/detach_from_lang_group_request_v_next.rb +218 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/set_new_language_primary_request_v_next.rb +218 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/standard_error.rb +9 -1
- data/lib/hubspot/codegen/cms/blogs/tags/models/tag.rb +91 -29
- data/lib/hubspot/codegen/cms/blogs/tags/models/tag_clone_request_v_next.rb +253 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/update_languages_request_v_next.rb +257 -0
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +18 -18
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3.rb +293 -0
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +13 -13
- data/lib/hubspot/codegen/cms/hubdb/models/column_request.rb +24 -4
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +11 -11
- data/lib/hubspot/codegen/cms/source-code/api/content_api.rb +328 -0
- data/lib/hubspot/codegen/cms/source-code/api/extract_api.rb +93 -0
- data/lib/hubspot/codegen/cms/source-code/api/metadata_api.rb +99 -0
- data/lib/hubspot/codegen/cms/source-code/api/source_code_extract_api.rb +142 -0
- data/lib/hubspot/codegen/cms/source-code/api/validation_api.rb +98 -0
- data/lib/hubspot/codegen/cms/source-code/api_client.rb +406 -0
- data/lib/hubspot/codegen/cms/source-code/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/source-code/configuration.rb +263 -0
- data/lib/hubspot/codegen/cms/source-code/models/action_response.rb +297 -0
- data/lib/hubspot/codegen/cms/source-code/models/asset_file_metadata.rb +298 -0
- data/lib/hubspot/codegen/cms/source-code/models/error.rb +292 -0
- data/lib/hubspot/codegen/cms/source-code/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/cms/source-code/models/file_extract_request.rb +215 -0
- data/lib/hubspot/codegen/cms/source-code/models/task_locator.rb +226 -0
- data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +1 -1
- data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +3 -3
- data/lib/hubspot/codegen/communication_preferences/configuration.rb +7 -0
- data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +6 -0
- data/lib/hubspot/codegen/crm/companies/api/public_object_api.rb +88 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +17 -1
- data/lib/hubspot/codegen/crm/companies/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +12 -1
- data/lib/hubspot/codegen/crm/companies/models/public_merge_input.rb +229 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +12 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_with_associations.rb +12 -1
- data/lib/hubspot/codegen/crm/companies/models/value_with_timestamp.rb +270 -0
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +10 -10
- data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +20 -80
- data/lib/hubspot/codegen/crm/contacts/api/public_object_api.rb +88 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +17 -1
- data/lib/hubspot/codegen/crm/contacts/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +12 -1
- data/lib/hubspot/codegen/crm/contacts/models/public_gdpr_delete_input.rb +224 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_merge_input.rb +229 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +12 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_with_associations.rb +12 -1
- data/lib/hubspot/codegen/crm/contacts/models/value_with_timestamp.rb +270 -0
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +6 -0
- data/lib/hubspot/codegen/crm/deals/api/public_object_api.rb +88 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +17 -1
- data/lib/hubspot/codegen/crm/deals/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +12 -1
- data/lib/hubspot/codegen/crm/deals/models/public_merge_input.rb +229 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +12 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_with_associations.rb +12 -1
- data/lib/hubspot/codegen/crm/deals/models/value_with_timestamp.rb +270 -0
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +6 -0
- data/lib/hubspot/codegen/crm/line_items/api/public_object_api.rb +88 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +17 -1
- data/lib/hubspot/codegen/crm/line_items/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +12 -1
- data/lib/hubspot/codegen/crm/line_items/models/public_merge_input.rb +229 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +12 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +12 -1
- data/lib/hubspot/codegen/crm/line_items/models/value_with_timestamp.rb +270 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +6 -0
- data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +21 -87
- data/lib/hubspot/codegen/crm/objects/api/public_object_api.rb +94 -0
- data/lib/hubspot/codegen/crm/objects/calls/api/associations_api.rb +256 -0
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +380 -0
- data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +279 -0
- data/lib/hubspot/codegen/crm/objects/calls/api/public_object_api.rb +90 -0
- data/lib/hubspot/codegen/crm/objects/calls/api/search_api.rb +88 -0
- data/lib/hubspot/codegen/crm/objects/calls/api_client.rb +408 -0
- data/lib/hubspot/codegen/crm/objects/calls/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/calls/configuration.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/associated_id.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_input_simple_public_object_batch_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_input_simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_input_simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_read_input_simple_public_object_id.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_response_simple_public_object.rb +315 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_response_simple_public_object_with_errors.rb +335 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/collection_response_associated_id.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/collection_response_associated_id_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/collection_response_with_total_simple_public_object_forward_paging.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/error_category.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/filter.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/filter_group.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/forward_paging.rb +212 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/next_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/paging.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/previous_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/public_merge_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/public_object_search_request.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object.rb +290 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input.rb +233 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_with_associations.rb +301 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/standard_error.rb +311 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/value_with_timestamp.rb +272 -0
- data/lib/hubspot/codegen/crm/objects/emails/api/associations_api.rb +256 -0
- data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +380 -0
- data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +279 -0
- data/lib/hubspot/codegen/crm/objects/emails/api/public_object_api.rb +90 -0
- data/lib/hubspot/codegen/crm/objects/emails/api/search_api.rb +88 -0
- data/lib/hubspot/codegen/crm/objects/emails/api_client.rb +408 -0
- data/lib/hubspot/codegen/crm/objects/emails/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/emails/configuration.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/associated_id.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_input_simple_public_object_batch_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_input_simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_input_simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_read_input_simple_public_object_id.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_response_simple_public_object.rb +315 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_response_simple_public_object_with_errors.rb +335 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/collection_response_associated_id.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/collection_response_associated_id_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/collection_response_with_total_simple_public_object_forward_paging.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/error_category.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/filter.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/filter_group.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/forward_paging.rb +212 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/next_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/paging.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/previous_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/public_merge_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/public_object_search_request.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object.rb +290 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input.rb +233 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_with_associations.rb +301 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/standard_error.rb +311 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/value_with_timestamp.rb +272 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +156 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +205 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +186 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/public_object_api.rb +90 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +17 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +12 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_merge_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +12 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations.rb +12 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/value_with_timestamp.rb +272 -0
- data/lib/hubspot/codegen/crm/objects/meetings/api/associations_api.rb +256 -0
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +380 -0
- data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +279 -0
- data/lib/hubspot/codegen/crm/objects/meetings/api/public_object_api.rb +90 -0
- data/lib/hubspot/codegen/crm/objects/meetings/api/search_api.rb +88 -0
- data/lib/hubspot/codegen/crm/objects/meetings/api_client.rb +408 -0
- data/lib/hubspot/codegen/crm/objects/meetings/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/meetings/configuration.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/associated_id.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_input_simple_public_object_batch_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_input_simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_input_simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_read_input_simple_public_object_id.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_response_simple_public_object.rb +315 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_response_simple_public_object_with_errors.rb +335 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/collection_response_associated_id.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/collection_response_associated_id_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/collection_response_with_total_simple_public_object_forward_paging.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/error_category.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/filter.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/filter_group.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/forward_paging.rb +212 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/next_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/paging.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/previous_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/public_merge_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/public_object_search_request.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object.rb +290 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input.rb +233 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_with_associations.rb +301 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/standard_error.rb +311 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/value_with_timestamp.rb +272 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +17 -1
- data/lib/hubspot/codegen/crm/objects/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +12 -1
- data/lib/hubspot/codegen/crm/objects/models/public_gdpr_delete_input.rb +224 -0
- data/lib/hubspot/codegen/crm/objects/models/public_merge_input.rb +229 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +12 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +12 -1
- data/lib/hubspot/codegen/crm/objects/models/value_with_timestamp.rb +270 -0
- data/lib/hubspot/codegen/crm/objects/notes/api/associations_api.rb +256 -0
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +380 -0
- data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +279 -0
- data/lib/hubspot/codegen/crm/objects/notes/api/public_object_api.rb +90 -0
- data/lib/hubspot/codegen/crm/objects/notes/api/search_api.rb +88 -0
- data/lib/hubspot/codegen/crm/objects/notes/api_client.rb +408 -0
- data/lib/hubspot/codegen/crm/objects/notes/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/notes/configuration.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/associated_id.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_input_simple_public_object_batch_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_input_simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_input_simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_read_input_simple_public_object_id.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_response_simple_public_object.rb +315 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_response_simple_public_object_with_errors.rb +335 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/collection_response_associated_id.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/collection_response_associated_id_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/collection_response_with_total_simple_public_object_forward_paging.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/error_category.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/filter.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/filter_group.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/forward_paging.rb +212 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/next_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/paging.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/previous_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/public_merge_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/public_object_search_request.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object.rb +290 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input.rb +233 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_with_associations.rb +301 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/standard_error.rb +311 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/value_with_timestamp.rb +272 -0
- data/lib/hubspot/codegen/crm/objects/tasks/api/associations_api.rb +256 -0
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +380 -0
- data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +279 -0
- data/lib/hubspot/codegen/crm/objects/tasks/api/public_object_api.rb +90 -0
- data/lib/hubspot/codegen/crm/objects/tasks/api/search_api.rb +88 -0
- data/lib/hubspot/codegen/crm/objects/tasks/api_client.rb +408 -0
- data/lib/hubspot/codegen/crm/objects/tasks/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/tasks/configuration.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/associated_id.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_input_simple_public_object_batch_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_input_simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_input_simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_read_input_simple_public_object_id.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_response_simple_public_object.rb +315 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_response_simple_public_object_with_errors.rb +335 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/collection_response_associated_id.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/collection_response_associated_id_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/collection_response_with_total_simple_public_object_forward_paging.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/error_category.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/filter.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/filter_group.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/forward_paging.rb +212 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/next_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/paging.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/previous_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/public_merge_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/public_object_search_request.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object.rb +290 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input.rb +233 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_with_associations.rb +301 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/standard_error.rb +311 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/value_with_timestamp.rb +272 -0
- data/lib/hubspot/codegen/crm/owners/api/owners_api.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +13 -42
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_audits_api.rb +94 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stage_audits_api.rb +94 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +37 -34
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +46 -34
- data/lib/hubspot/codegen/crm/pipelines/models/{collection_response_pipeline.rb → collection_response_pipeline_no_paging.rb} +7 -16
- data/lib/hubspot/codegen/crm/pipelines/models/{collection_response_pipeline_stage.rb → collection_response_pipeline_stage_no_paging.rb} +7 -16
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_public_audit_info_no_paging.rb +217 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +48 -48
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +21 -21
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +58 -58
- data/lib/hubspot/codegen/crm/pipelines/models/public_audit_info.rb +279 -0
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +6 -0
- data/lib/hubspot/codegen/crm/products/api/public_object_api.rb +88 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +17 -1
- data/lib/hubspot/codegen/crm/products/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/products/models/filter.rb +12 -1
- data/lib/hubspot/codegen/crm/products/models/public_merge_input.rb +229 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +12 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_with_associations.rb +12 -1
- data/lib/hubspot/codegen/crm/products/models/value_with_timestamp.rb +270 -0
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +157 -1
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +207 -2
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +187 -1
- data/lib/hubspot/codegen/crm/quotes/api/public_object_api.rb +88 -0
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +17 -1
- data/lib/hubspot/codegen/crm/quotes/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +12 -1
- data/lib/hubspot/codegen/crm/quotes/models/public_merge_input.rb +229 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +12 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +12 -1
- data/lib/hubspot/codegen/crm/quotes/models/value_with_timestamp.rb +270 -0
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +6 -0
- data/lib/hubspot/codegen/crm/tickets/api/public_object_api.rb +88 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +17 -1
- data/lib/hubspot/codegen/crm/tickets/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +12 -1
- data/lib/hubspot/codegen/crm/tickets/models/public_merge_input.rb +229 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +12 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_with_associations.rb +12 -1
- data/lib/hubspot/codegen/crm/tickets/models/value_with_timestamp.rb +270 -0
- data/lib/hubspot/codegen/crm/timeline/models/error_category.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +0 -5
- data/lib/hubspot/codegen/marketing/events/api/basic_api.rb +446 -0
- data/lib/hubspot/codegen/marketing/events/api/batch_api.rb +154 -0
- data/lib/hubspot/codegen/marketing/events/api/search_api.rb +89 -0
- data/lib/hubspot/codegen/marketing/events/api/settings_api.rb +158 -0
- data/lib/hubspot/codegen/marketing/events/api/subscriber_state_changes_api.rb +192 -0
- data/lib/hubspot/codegen/marketing/events/api_client.rb +406 -0
- data/lib/hubspot/codegen/marketing/events/api_error.rb +61 -0
- data/lib/hubspot/codegen/marketing/events/configuration.rb +270 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_create_request_params.rb +217 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber.rb +218 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_external_unique_identifier.rb +217 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_subscriber.rb +218 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response.rb +333 -0
- data/lib/hubspot/codegen/marketing/events/models/collection_response_marketing_event_external_unique_identifier_no_paging.rb +217 -0
- data/lib/hubspot/codegen/marketing/events/models/error.rb +292 -0
- data/lib/hubspot/codegen/marketing/events/models/error_category.rb +263 -0
- data/lib/hubspot/codegen/marketing/events/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/marketing/events/models/event_detail_settings.rb +231 -0
- data/lib/hubspot/codegen/marketing/events/models/event_detail_settings_url.rb +216 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_create_request_params.rb +333 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_default_response.rb +303 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_email_subscriber.rb +231 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_external_unique_identifier.rb +246 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response.rb +345 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response.rb +420 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_subscriber.rb +225 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_update_request_params.rb +293 -0
- data/lib/hubspot/codegen/marketing/events/models/property_value.rb +401 -0
- data/lib/hubspot/codegen/marketing/events/models/standard_error.rb +309 -0
- data/lib/hubspot/codegen/marketing/forms/api/forms_api.rb +429 -0
- data/lib/hubspot/codegen/marketing/forms/api_client.rb +406 -0
- data/lib/hubspot/codegen/marketing/forms/api_error.rb +61 -0
- data/lib/hubspot/codegen/marketing/forms/configuration.rb +263 -0
- data/lib/hubspot/codegen/marketing/forms/models/collection_response_form_definition_base_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/marketing/forms/models/datepicker_field.rb +344 -0
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field.rb +224 -0
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field_filter.rb +307 -0
- data/lib/hubspot/codegen/marketing/forms/models/dropdown_field.rb +358 -0
- data/lib/hubspot/codegen/marketing/forms/models/email_field.rb +353 -0
- data/lib/hubspot/codegen/marketing/forms/models/email_field_validation.rb +233 -0
- data/lib/hubspot/codegen/marketing/forms/models/enumerated_field_option.rb +255 -0
- data/lib/hubspot/codegen/marketing/forms/models/error.rb +292 -0
- data/lib/hubspot/codegen/marketing/forms/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/marketing/forms/models/field_group.rb +293 -0
- data/lib/hubspot/codegen/marketing/forms/models/file_field.rb +354 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_definition_base.rb +246 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_definition_create_request_base.rb +246 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_display_options.rb +303 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_post_submit_action.rb +265 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_style.rb +403 -0
- data/lib/hubspot/codegen/{crm/pipelines/models/paging.rb → marketing/forms/models/forward_paging.rb} +8 -8
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_configuration.rb +401 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition.rb +235 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_all_of.rb +388 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_create_request.rb +235 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_create_request_all_of.rb +374 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_patch_request.rb +260 -0
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_checkbox.rb +245 -0
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_explicit_consent_to_process.rb +317 -0
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_implicit_consent_to_process.rb +299 -0
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_legitimate_interest.rb +307 -0
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_none.rb +251 -0
- data/lib/hubspot/codegen/marketing/forms/models/mobile_phone_field.rb +353 -0
- data/lib/hubspot/codegen/marketing/forms/models/multi_line_text_field.rb +344 -0
- data/lib/hubspot/codegen/marketing/forms/models/multiple_checkboxes_field.rb +348 -0
- data/lib/hubspot/codegen/{crm/pipelines → marketing/forms}/models/next_page.rb +7 -7
- data/lib/hubspot/codegen/marketing/forms/models/number_field.rb +353 -0
- data/lib/hubspot/codegen/marketing/forms/models/number_field_validation.rb +229 -0
- data/lib/hubspot/codegen/marketing/forms/models/phone_field.rb +363 -0
- data/lib/hubspot/codegen/marketing/forms/models/phone_field_validation.rb +229 -0
- data/lib/hubspot/codegen/marketing/forms/models/radio_field.rb +358 -0
- data/lib/hubspot/codegen/marketing/forms/models/single_checkbox_field.rb +334 -0
- data/lib/hubspot/codegen/marketing/forms/models/single_line_text_field.rb +344 -0
- data/lib/hubspot/codegen/settings/users/api/roles_api.rb +82 -0
- data/lib/hubspot/codegen/settings/users/api/teams_api.rb +82 -0
- data/lib/hubspot/codegen/settings/users/api/users_api.rb +355 -0
- data/lib/hubspot/codegen/settings/users/api_client.rb +406 -0
- data/lib/hubspot/codegen/settings/users/api_error.rb +61 -0
- data/lib/hubspot/codegen/settings/users/configuration.rb +256 -0
- data/lib/hubspot/codegen/settings/users/models/collection_response_public_permission_set_no_paging.rb +217 -0
- data/lib/hubspot/codegen/settings/users/models/collection_response_public_team_no_paging.rb +217 -0
- data/lib/hubspot/codegen/settings/users/models/collection_response_public_user_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/settings/users/models/error.rb +292 -0
- data/lib/hubspot/codegen/settings/users/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/settings/users/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/settings/users/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/settings/users/models/public_permission_set.rb +246 -0
- data/lib/hubspot/codegen/settings/users/models/public_team.rb +265 -0
- data/lib/hubspot/codegen/settings/users/models/public_user.rb +263 -0
- data/lib/hubspot/codegen/settings/users/models/public_user_update.rb +233 -0
- data/lib/hubspot/codegen/settings/users/models/user_provision_request.rb +263 -0
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +11 -23
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +38 -62
- data/lib/hubspot/codegen/webhooks/configuration.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/error_category.rb +2 -2
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +2 -4
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +2 -2
- data/lib/hubspot/discovery/cms/blogs/authors/api/{author_api.rb → blog_authors_api.rb} +1 -1
- data/lib/hubspot/discovery/cms/blogs/authors/client.rb +1 -1
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/{blog_post_api.rb → blog_posts_api.rb} +1 -1
- data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +1 -1
- data/lib/hubspot/discovery/cms/blogs/tags/api/{tag_api.rb → blog_tags_api.rb} +1 -1
- data/lib/hubspot/discovery/cms/blogs/tags/client.rb +1 -1
- data/lib/hubspot/discovery/cms/client.rb +1 -0
- data/lib/hubspot/discovery/cms/source_code/api/content_api.rb +13 -0
- data/lib/hubspot/discovery/cms/source_code/api/extract_api.rb +13 -0
- data/lib/hubspot/discovery/cms/source_code/api/metadata_api.rb +13 -0
- data/lib/hubspot/discovery/cms/source_code/api/source_code_extract_api.rb +13 -0
- data/lib/hubspot/discovery/cms/source_code/api/validation_api.rb +13 -0
- data/lib/hubspot/discovery/cms/source_code/client.rb +23 -0
- data/lib/hubspot/discovery/crm/contacts/api/gdpr_api.rb +1 -1
- data/lib/hubspot/discovery/crm/contacts/client.rb +1 -1
- data/lib/hubspot/discovery/crm/objects/api/gdpr_api.rb +1 -1
- data/lib/hubspot/discovery/crm/objects/calls/api/associations_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/calls/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/calls/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/calls/api/public_object_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/calls/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/calls/client.rb +25 -0
- data/lib/hubspot/discovery/crm/objects/client.rb +6 -1
- data/lib/hubspot/discovery/crm/objects/emails/api/associations_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/emails/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/emails/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/emails/api/public_object_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/emails/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/emails/client.rb +25 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/public_object_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +1 -0
- data/lib/hubspot/discovery/crm/objects/meetings/api/associations_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/meetings/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/meetings/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/meetings/api/public_object_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/meetings/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/meetings/client.rb +25 -0
- data/lib/hubspot/discovery/crm/objects/notes/api/associations_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/notes/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/notes/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/notes/api/public_object_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/notes/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/notes/client.rb +25 -0
- data/lib/hubspot/discovery/crm/objects/tasks/api/associations_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/tasks/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/tasks/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/tasks/api/public_object_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/tasks/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/tasks/client.rb +25 -0
- data/lib/hubspot/discovery/marketing/client.rb +2 -0
- data/lib/hubspot/discovery/marketing/events/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/settings_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/subscriber_state_changes_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/client.rb +23 -0
- data/lib/hubspot/discovery/marketing/forms/api/forms_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/forms/client.rb +19 -0
- data/lib/hubspot/discovery/settings/client.rb +17 -0
- data/lib/hubspot/discovery/settings/users/api/roles_api.rb +13 -0
- data/lib/hubspot/discovery/settings/users/api/teams_api.rb +13 -0
- data/lib/hubspot/discovery/settings/users/api/users_api.rb +13 -0
- data/lib/hubspot/discovery/settings/users/client.rb +21 -0
- data/lib/hubspot/version.rb +1 -1
- data/lib/hubspot-api-client.rb +9 -0
- data/spec/codegen/cms/blogs/authors/api/{author_api_spec.rb → blog_authors_api_spec.rb} +77 -17
- data/spec/codegen/cms/blogs/authors/models/attach_to_lang_primary_request_v_next_spec.rb +67 -0
- data/spec/codegen/cms/blogs/authors/models/batch_input_blog_author_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/batch_input_json_node_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/batch_input_string_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/batch_response_blog_author_spec.rb +75 -0
- data/spec/codegen/cms/blogs/authors/models/batch_response_blog_author_with_errors_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/blog_author_clone_request_v_next_spec.rb +59 -0
- data/spec/codegen/cms/blogs/authors/models/blog_author_spec.rb +44 -10
- data/spec/codegen/cms/blogs/authors/models/collection_response_with_total_blog_author_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/detach_from_lang_group_request_v_next_spec.rb +41 -0
- data/spec/codegen/cms/blogs/authors/models/error_detail_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/error_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/next_page_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/set_new_language_primary_request_v_next_spec.rb +41 -0
- data/spec/codegen/cms/blogs/authors/models/standard_error_spec.rb +1 -1
- data/spec/codegen/cms/blogs/authors/models/update_languages_request_v_next_spec.rb +51 -0
- data/spec/codegen/cms/blogs/blog-posts/api/{blog_post_api_spec.rb → blog_posts_api_spec.rb} +81 -21
- data/spec/codegen/cms/blogs/blog-posts/models/angle_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/attach_to_lang_primary_request_v_next_spec.rb +67 -0
- data/spec/codegen/cms/blogs/blog-posts/models/background_image_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/batch_input_blog_post_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/batch_input_json_node_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/batch_input_string_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/batch_response_blog_post_spec.rb +75 -0
- data/spec/codegen/cms/blogs/blog-posts/models/batch_response_blog_post_with_errors_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/blog_post_language_clone_request_v_next_spec.rb +47 -0
- data/spec/codegen/cms/blogs/blog-posts/models/blog_post_spec.rb +51 -51
- data/spec/codegen/cms/blogs/blog-posts/models/collection_response_with_total_blog_post_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/collection_response_with_total_version_blog_post_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/color_stop_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/content_clone_request_v_next_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/content_language_variation_spec.rb +119 -0
- data/spec/codegen/cms/blogs/blog-posts/models/content_schedule_request_v_next_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/detach_from_lang_group_request_v_next_spec.rb +41 -0
- data/spec/codegen/cms/blogs/blog-posts/models/error_detail_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/error_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/gradient_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/layout_section_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/next_page_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/paging_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/previous_page_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/rgba_color_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/row_meta_data_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/set_new_language_primary_request_v_next_spec.rb +41 -0
- data/spec/codegen/cms/blogs/blog-posts/models/side_or_corner_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/standard_error_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/styles_spec.rb +1 -1
- data/spec/codegen/cms/blogs/blog-posts/models/update_languages_request_v_next_spec.rb +51 -0
- data/spec/codegen/cms/blogs/blog-posts/models/version_blog_post_spec.rb +2 -2
- data/spec/codegen/cms/blogs/blog-posts/models/version_user_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/api/{tag_api_spec.rb → blog_tags_api_spec.rb} +77 -17
- data/spec/codegen/cms/blogs/tags/models/attach_to_lang_primary_request_v_next_spec.rb +67 -0
- data/spec/codegen/cms/blogs/tags/models/batch_input_json_node_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/batch_input_string_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/batch_input_tag_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/batch_response_tag_spec.rb +75 -0
- data/spec/codegen/cms/blogs/tags/models/batch_response_tag_with_errors_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/collection_response_with_total_tag_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/detach_from_lang_group_request_v_next_spec.rb +41 -0
- data/spec/codegen/cms/blogs/tags/models/error_detail_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/error_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/next_page_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/set_new_language_primary_request_v_next_spec.rb +41 -0
- data/spec/codegen/cms/blogs/tags/models/standard_error_spec.rb +1 -1
- data/spec/codegen/cms/blogs/tags/models/tag_clone_request_v_next_spec.rb +59 -0
- data/spec/codegen/cms/blogs/tags/models/tag_spec.rb +20 -4
- data/spec/codegen/cms/blogs/tags/models/update_languages_request_v_next_spec.rb +51 -0
- data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +6 -6
- data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_spec.rb +75 -0
- data/spec/codegen/cms/hubdb/models/column_request_spec.rb +12 -0
- data/spec/codegen/cms/hubdb/models/column_spec.rb +2 -2
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +6 -6
- data/spec/codegen/cms/source-code/api/content_api_spec.rb +89 -0
- data/spec/codegen/cms/source-code/api/extract_api_spec.rb +47 -0
- data/spec/codegen/cms/source-code/api/metadata_api_spec.rb +48 -0
- data/spec/codegen/cms/source-code/api/source_code_extract_api_spec.rb +55 -0
- data/spec/codegen/cms/source-code/api/validation_api_spec.rb +48 -0
- data/spec/codegen/cms/source-code/models/action_response_spec.rb +69 -0
- data/spec/codegen/cms/source-code/models/asset_file_metadata_spec.rb +77 -0
- data/spec/codegen/cms/source-code/models/error_detail_spec.rb +65 -0
- data/spec/codegen/cms/source-code/models/error_spec.rb +77 -0
- data/spec/codegen/cms/source-code/models/file_extract_request_spec.rb +41 -0
- data/spec/codegen/cms/source-code/models/task_locator_spec.rb +47 -0
- data/spec/codegen/crm/companies/api/basic_api_spec.rb +2 -0
- data/spec/codegen/crm/companies/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/companies/models/batch_read_input_simple_public_object_id_spec.rb +6 -0
- data/spec/codegen/crm/companies/models/error_category_spec.rb +6 -6
- data/spec/codegen/crm/companies/models/filter_spec.rb +6 -0
- data/spec/codegen/crm/companies/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/companies/models/simple_public_object_spec.rb +6 -0
- data/spec/codegen/crm/companies/models/simple_public_object_with_associations_spec.rb +6 -0
- data/spec/codegen/crm/companies/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/contacts/api/basic_api_spec.rb +4 -4
- data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +10 -22
- data/spec/codegen/crm/contacts/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/contacts/models/batch_read_input_simple_public_object_id_spec.rb +6 -0
- data/spec/codegen/crm/contacts/models/error_category_spec.rb +6 -6
- data/spec/codegen/crm/contacts/models/filter_spec.rb +6 -0
- data/spec/codegen/crm/contacts/models/public_gdpr_delete_input_spec.rb +47 -0
- data/spec/codegen/crm/contacts/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/contacts/models/simple_public_object_spec.rb +6 -0
- data/spec/codegen/crm/contacts/models/simple_public_object_with_associations_spec.rb +6 -0
- data/spec/codegen/crm/contacts/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/deals/api/basic_api_spec.rb +2 -0
- data/spec/codegen/crm/deals/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/deals/models/batch_read_input_simple_public_object_id_spec.rb +6 -0
- data/spec/codegen/crm/deals/models/error_category_spec.rb +6 -6
- data/spec/codegen/crm/deals/models/filter_spec.rb +6 -0
- data/spec/codegen/crm/deals/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/deals/models/simple_public_object_spec.rb +6 -0
- data/spec/codegen/crm/deals/models/simple_public_object_with_associations_spec.rb +6 -0
- data/spec/codegen/crm/deals/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/line_items/api/basic_api_spec.rb +2 -0
- data/spec/codegen/crm/line_items/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/line_items/models/batch_read_input_simple_public_object_id_spec.rb +6 -0
- data/spec/codegen/crm/line_items/models/error_category_spec.rb +6 -6
- data/spec/codegen/crm/line_items/models/filter_spec.rb +6 -0
- data/spec/codegen/crm/line_items/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/line_items/models/simple_public_object_spec.rb +6 -0
- data/spec/codegen/crm/line_items/models/simple_public_object_with_associations_spec.rb +6 -0
- data/spec/codegen/crm/line_items/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/objects/api/basic_api_spec.rb +2 -0
- data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +10 -23
- data/spec/codegen/crm/objects/api/public_object_api_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/api/associations_api_spec.rb +77 -0
- data/spec/codegen/crm/objects/calls/api/basic_api_spec.rb +107 -0
- data/spec/codegen/crm/objects/calls/api/batch_api_spec.rb +80 -0
- data/spec/codegen/crm/objects/calls/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/objects/calls/api/search_api_spec.rb +45 -0
- data/spec/codegen/crm/objects/calls/models/associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/calls/models/batch_input_simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/calls/models/batch_input_simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/calls/models/batch_read_input_simple_public_object_id_spec.rb +59 -0
- data/spec/codegen/crm/objects/calls/models/batch_response_simple_public_object_spec.rb +75 -0
- data/spec/codegen/crm/objects/calls/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
- data/spec/codegen/crm/objects/calls/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/models/collection_response_associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/models/collection_response_simple_public_object_with_associations_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/models/collection_response_with_total_simple_public_object_forward_paging_spec.rb +53 -0
- data/spec/codegen/crm/objects/calls/models/error_category_spec.rb +51 -0
- data/spec/codegen/crm/objects/calls/models/error_detail_spec.rb +65 -0
- data/spec/codegen/crm/objects/calls/models/error_spec.rb +77 -0
- data/spec/codegen/crm/objects/calls/models/filter_group_spec.rb +41 -0
- data/spec/codegen/crm/objects/calls/models/filter_spec.rb +63 -0
- data/spec/codegen/crm/objects/calls/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/objects/calls/models/next_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/models/paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/models/previous_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/models/public_object_search_request_spec.rb +71 -0
- data/spec/codegen/crm/objects/calls/models/simple_public_object_batch_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/calls/models/simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/calls/models/simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/calls/models/simple_public_object_spec.rb +77 -0
- data/spec/codegen/crm/objects/calls/models/simple_public_object_with_associations_spec.rb +83 -0
- data/spec/codegen/crm/objects/calls/models/standard_error_spec.rb +83 -0
- data/spec/codegen/crm/objects/calls/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/objects/emails/api/associations_api_spec.rb +77 -0
- data/spec/codegen/crm/objects/emails/api/basic_api_spec.rb +107 -0
- data/spec/codegen/crm/objects/emails/api/batch_api_spec.rb +80 -0
- data/spec/codegen/crm/objects/emails/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/objects/emails/api/search_api_spec.rb +45 -0
- data/spec/codegen/crm/objects/emails/models/associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/emails/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/emails/models/batch_input_simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/emails/models/batch_input_simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/emails/models/batch_read_input_simple_public_object_id_spec.rb +59 -0
- data/spec/codegen/crm/objects/emails/models/batch_response_simple_public_object_spec.rb +75 -0
- data/spec/codegen/crm/objects/emails/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
- data/spec/codegen/crm/objects/emails/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/emails/models/collection_response_associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/emails/models/collection_response_simple_public_object_with_associations_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/emails/models/collection_response_with_total_simple_public_object_forward_paging_spec.rb +53 -0
- data/spec/codegen/crm/objects/emails/models/error_category_spec.rb +51 -0
- data/spec/codegen/crm/objects/emails/models/error_detail_spec.rb +65 -0
- data/spec/codegen/crm/objects/emails/models/error_spec.rb +77 -0
- data/spec/codegen/crm/objects/emails/models/filter_group_spec.rb +41 -0
- data/spec/codegen/crm/objects/emails/models/filter_spec.rb +63 -0
- data/spec/codegen/crm/objects/emails/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/objects/emails/models/next_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/emails/models/paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/emails/models/previous_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/emails/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/emails/models/public_object_search_request_spec.rb +71 -0
- data/spec/codegen/crm/objects/emails/models/simple_public_object_batch_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/emails/models/simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/emails/models/simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/emails/models/simple_public_object_spec.rb +77 -0
- data/spec/codegen/crm/objects/emails/models/simple_public_object_with_associations_spec.rb +83 -0
- data/spec/codegen/crm/objects/emails/models/standard_error_spec.rb +83 -0
- data/spec/codegen/crm/objects/emails/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +28 -0
- data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +40 -0
- data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +33 -0
- data/spec/codegen/crm/objects/feedback_submissions/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id_spec.rb +6 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/error_category_spec.rb +6 -6
- data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +6 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_spec.rb +6 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations_spec.rb +6 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/objects/meetings/api/associations_api_spec.rb +77 -0
- data/spec/codegen/crm/objects/meetings/api/basic_api_spec.rb +107 -0
- data/spec/codegen/crm/objects/meetings/api/batch_api_spec.rb +80 -0
- data/spec/codegen/crm/objects/meetings/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/objects/meetings/api/search_api_spec.rb +45 -0
- data/spec/codegen/crm/objects/meetings/models/associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/meetings/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/meetings/models/batch_input_simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/meetings/models/batch_input_simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/meetings/models/batch_read_input_simple_public_object_id_spec.rb +59 -0
- data/spec/codegen/crm/objects/meetings/models/batch_response_simple_public_object_spec.rb +75 -0
- data/spec/codegen/crm/objects/meetings/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
- data/spec/codegen/crm/objects/meetings/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/meetings/models/collection_response_associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/meetings/models/collection_response_simple_public_object_with_associations_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/meetings/models/collection_response_with_total_simple_public_object_forward_paging_spec.rb +53 -0
- data/spec/codegen/crm/objects/meetings/models/error_category_spec.rb +51 -0
- data/spec/codegen/crm/objects/meetings/models/error_detail_spec.rb +65 -0
- data/spec/codegen/crm/objects/meetings/models/error_spec.rb +77 -0
- data/spec/codegen/crm/objects/meetings/models/filter_group_spec.rb +41 -0
- data/spec/codegen/crm/objects/meetings/models/filter_spec.rb +63 -0
- data/spec/codegen/crm/objects/meetings/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/objects/meetings/models/next_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/meetings/models/paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/meetings/models/previous_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/meetings/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/meetings/models/public_object_search_request_spec.rb +71 -0
- data/spec/codegen/crm/objects/meetings/models/simple_public_object_batch_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/meetings/models/simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/meetings/models/simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/meetings/models/simple_public_object_spec.rb +77 -0
- data/spec/codegen/crm/objects/meetings/models/simple_public_object_with_associations_spec.rb +83 -0
- data/spec/codegen/crm/objects/meetings/models/standard_error_spec.rb +83 -0
- data/spec/codegen/crm/objects/meetings/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/objects/models/batch_read_input_simple_public_object_id_spec.rb +6 -0
- data/spec/codegen/crm/objects/models/error_category_spec.rb +6 -6
- data/spec/codegen/crm/objects/models/filter_spec.rb +6 -0
- data/spec/codegen/crm/objects/models/public_gdpr_delete_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/models/simple_public_object_spec.rb +6 -0
- data/spec/codegen/crm/objects/models/simple_public_object_with_associations_spec.rb +6 -0
- data/spec/codegen/crm/objects/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/objects/notes/api/associations_api_spec.rb +77 -0
- data/spec/codegen/crm/objects/notes/api/basic_api_spec.rb +107 -0
- data/spec/codegen/crm/objects/notes/api/batch_api_spec.rb +80 -0
- data/spec/codegen/crm/objects/notes/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/objects/notes/api/search_api_spec.rb +45 -0
- data/spec/codegen/crm/objects/notes/models/associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/notes/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/notes/models/batch_input_simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/notes/models/batch_input_simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/notes/models/batch_read_input_simple_public_object_id_spec.rb +59 -0
- data/spec/codegen/crm/objects/notes/models/batch_response_simple_public_object_spec.rb +75 -0
- data/spec/codegen/crm/objects/notes/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
- data/spec/codegen/crm/objects/notes/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/notes/models/collection_response_associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/notes/models/collection_response_simple_public_object_with_associations_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/notes/models/collection_response_with_total_simple_public_object_forward_paging_spec.rb +53 -0
- data/spec/codegen/crm/objects/notes/models/error_category_spec.rb +51 -0
- data/spec/codegen/crm/objects/notes/models/error_detail_spec.rb +65 -0
- data/spec/codegen/crm/objects/notes/models/error_spec.rb +77 -0
- data/spec/codegen/crm/objects/notes/models/filter_group_spec.rb +41 -0
- data/spec/codegen/crm/objects/notes/models/filter_spec.rb +63 -0
- data/spec/codegen/crm/objects/notes/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/objects/notes/models/next_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/notes/models/paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/notes/models/previous_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/notes/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/notes/models/public_object_search_request_spec.rb +71 -0
- data/spec/codegen/crm/objects/notes/models/simple_public_object_batch_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/notes/models/simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/notes/models/simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/notes/models/simple_public_object_spec.rb +77 -0
- data/spec/codegen/crm/objects/notes/models/simple_public_object_with_associations_spec.rb +83 -0
- data/spec/codegen/crm/objects/notes/models/standard_error_spec.rb +83 -0
- data/spec/codegen/crm/objects/notes/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/objects/tasks/api/associations_api_spec.rb +77 -0
- data/spec/codegen/crm/objects/tasks/api/basic_api_spec.rb +107 -0
- data/spec/codegen/crm/objects/tasks/api/batch_api_spec.rb +80 -0
- data/spec/codegen/crm/objects/tasks/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/objects/tasks/api/search_api_spec.rb +45 -0
- data/spec/codegen/crm/objects/tasks/models/associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/tasks/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/tasks/models/batch_input_simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/tasks/models/batch_input_simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/tasks/models/batch_read_input_simple_public_object_id_spec.rb +59 -0
- data/spec/codegen/crm/objects/tasks/models/batch_response_simple_public_object_spec.rb +75 -0
- data/spec/codegen/crm/objects/tasks/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
- data/spec/codegen/crm/objects/tasks/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/tasks/models/collection_response_associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/tasks/models/collection_response_simple_public_object_with_associations_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/tasks/models/collection_response_with_total_simple_public_object_forward_paging_spec.rb +53 -0
- data/spec/codegen/crm/objects/tasks/models/error_category_spec.rb +51 -0
- data/spec/codegen/crm/objects/tasks/models/error_detail_spec.rb +65 -0
- data/spec/codegen/crm/objects/tasks/models/error_spec.rb +77 -0
- data/spec/codegen/crm/objects/tasks/models/filter_group_spec.rb +41 -0
- data/spec/codegen/crm/objects/tasks/models/filter_spec.rb +63 -0
- data/spec/codegen/crm/objects/tasks/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/objects/tasks/models/next_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/tasks/models/paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/tasks/models/previous_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/tasks/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/tasks/models/public_object_search_request_spec.rb +71 -0
- data/spec/codegen/crm/objects/tasks/models/simple_public_object_batch_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/tasks/models/simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/tasks/models/simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/tasks/models/simple_public_object_spec.rb +77 -0
- data/spec/codegen/crm/objects/tasks/models/simple_public_object_with_associations_spec.rb +83 -0
- data/spec/codegen/crm/objects/tasks/models/standard_error_spec.rb +83 -0
- data/spec/codegen/crm/objects/tasks/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/owners/api/owners_api_spec.rb +1 -1
- data/spec/codegen/crm/owners/models/collection_response_public_owner_forward_paging_spec.rb +1 -1
- data/spec/codegen/crm/owners/models/error_detail_spec.rb +1 -1
- data/spec/codegen/crm/owners/models/error_spec.rb +1 -1
- data/spec/codegen/crm/owners/models/forward_paging_spec.rb +1 -1
- data/spec/codegen/crm/owners/models/next_page_spec.rb +1 -1
- data/spec/codegen/crm/owners/models/public_owner_spec.rb +1 -1
- data/spec/codegen/crm/owners/models/public_team_spec.rb +2 -6
- data/spec/codegen/crm/pipelines/{models/paging_spec.rb → api/pipeline_audits_api_spec.rb} +15 -8
- data/spec/codegen/crm/pipelines/api/pipeline_stage_audits_api_spec.rb +48 -0
- data/spec/codegen/crm/pipelines/api/pipeline_stages_api_spec.rb +6 -9
- data/spec/codegen/crm/pipelines/api/pipelines_api_spec.rb +9 -9
- data/spec/codegen/crm/pipelines/models/{collection_response_pipeline_spec.rb → collection_response_pipeline_no_paging_spec.rb} +6 -12
- data/spec/codegen/crm/pipelines/models/{collection_response_pipeline_stage_spec.rb → collection_response_pipeline_stage_no_paging_spec.rb} +6 -12
- data/spec/codegen/crm/pipelines/models/{next_page_spec.rb → collection_response_public_audit_info_no_paging_spec.rb} +7 -13
- data/spec/codegen/crm/pipelines/models/pipeline_input_spec.rb +3 -3
- data/spec/codegen/crm/pipelines/models/pipeline_spec.rb +8 -8
- data/spec/codegen/crm/pipelines/models/pipeline_stage_spec.rb +8 -8
- data/spec/codegen/crm/pipelines/models/public_audit_info_spec.rb +77 -0
- data/spec/codegen/crm/products/api/basic_api_spec.rb +2 -0
- data/spec/codegen/crm/products/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/products/models/batch_read_input_simple_public_object_id_spec.rb +6 -0
- data/spec/codegen/crm/products/models/error_category_spec.rb +6 -6
- data/spec/codegen/crm/products/models/filter_spec.rb +6 -0
- data/spec/codegen/crm/products/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/products/models/simple_public_object_spec.rb +6 -0
- data/spec/codegen/crm/products/models/simple_public_object_with_associations_spec.rb +6 -0
- data/spec/codegen/crm/products/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/quotes/api/associations_api_spec.rb +28 -0
- data/spec/codegen/crm/quotes/api/basic_api_spec.rb +40 -0
- data/spec/codegen/crm/quotes/api/batch_api_spec.rb +33 -0
- data/spec/codegen/crm/quotes/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/quotes/models/batch_read_input_simple_public_object_id_spec.rb +6 -0
- data/spec/codegen/crm/quotes/models/error_category_spec.rb +6 -6
- data/spec/codegen/crm/quotes/models/filter_spec.rb +6 -0
- data/spec/codegen/crm/quotes/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/quotes/models/simple_public_object_spec.rb +6 -0
- data/spec/codegen/crm/quotes/models/simple_public_object_with_associations_spec.rb +6 -0
- data/spec/codegen/crm/quotes/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/tickets/api/basic_api_spec.rb +2 -0
- data/spec/codegen/crm/tickets/api/public_object_api_spec.rb +46 -0
- data/spec/codegen/crm/tickets/models/batch_read_input_simple_public_object_id_spec.rb +6 -0
- data/spec/codegen/crm/tickets/models/error_category_spec.rb +6 -6
- data/spec/codegen/crm/tickets/models/filter_spec.rb +6 -0
- data/spec/codegen/crm/tickets/models/public_merge_input_spec.rb +47 -0
- data/spec/codegen/crm/tickets/models/simple_public_object_spec.rb +6 -0
- data/spec/codegen/crm/tickets/models/simple_public_object_with_associations_spec.rb +6 -0
- data/spec/codegen/crm/tickets/models/value_with_timestamp_spec.rb +71 -0
- data/spec/codegen/crm/timeline/models/error_category_spec.rb +1 -1
- data/spec/codegen/marketing/events/api/basic_api_spec.rb +113 -0
- data/spec/codegen/marketing/events/api/batch_api_spec.rb +59 -0
- data/spec/codegen/marketing/events/api/search_api_spec.rb +47 -0
- data/spec/codegen/marketing/events/api/settings_api_spec.rb +60 -0
- data/spec/codegen/marketing/events/api/subscriber_state_changes_api_spec.rb +65 -0
- data/spec/codegen/marketing/events/models/batch_input_marketing_event_create_request_params_spec.rb +41 -0
- data/spec/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber_spec.rb +41 -0
- data/spec/codegen/marketing/events/models/batch_input_marketing_event_external_unique_identifier_spec.rb +41 -0
- data/spec/codegen/marketing/events/models/batch_input_marketing_event_subscriber_spec.rb +41 -0
- data/spec/codegen/marketing/events/models/batch_response_marketing_event_public_default_response_spec.rb +87 -0
- data/spec/codegen/marketing/events/models/collection_response_marketing_event_external_unique_identifier_no_paging_spec.rb +41 -0
- data/spec/codegen/marketing/events/models/error_category_spec.rb +51 -0
- data/spec/codegen/marketing/events/models/error_detail_spec.rb +65 -0
- data/spec/codegen/marketing/events/models/error_spec.rb +77 -0
- data/spec/codegen/marketing/events/models/event_detail_settings_spec.rb +47 -0
- data/spec/codegen/marketing/events/models/event_detail_settings_url_spec.rb +41 -0
- data/spec/codegen/marketing/events/models/marketing_event_create_request_params_spec.rb +101 -0
- data/spec/codegen/marketing/events/models/marketing_event_default_response_spec.rb +89 -0
- data/spec/codegen/marketing/events/models/marketing_event_email_subscriber_spec.rb +47 -0
- data/spec/codegen/marketing/events/models/marketing_event_external_unique_identifier_spec.rb +53 -0
- data/spec/codegen/marketing/events/models/marketing_event_public_default_response_spec.rb +107 -0
- data/spec/codegen/marketing/events/models/marketing_event_public_read_response_spec.rb +137 -0
- data/spec/codegen/marketing/events/models/marketing_event_subscriber_spec.rb +47 -0
- data/spec/codegen/marketing/events/models/marketing_event_update_request_params_spec.rb +89 -0
- data/spec/codegen/marketing/events/models/property_value_spec.rb +111 -0
- data/spec/codegen/marketing/events/models/standard_error_spec.rb +83 -0
- data/spec/codegen/marketing/forms/api/forms_api_spec.rb +113 -0
- data/spec/codegen/marketing/forms/models/collection_response_form_definition_base_forward_paging_spec.rb +47 -0
- data/spec/codegen/marketing/forms/models/datepicker_field_spec.rb +99 -0
- data/spec/codegen/marketing/forms/models/dependent_field_filter_spec.rb +69 -0
- data/spec/codegen/marketing/forms/models/dependent_field_spec.rb +47 -0
- data/spec/codegen/marketing/forms/models/dropdown_field_spec.rb +105 -0
- data/spec/codegen/marketing/forms/models/email_field_spec.rb +105 -0
- data/spec/codegen/marketing/forms/models/email_field_validation_spec.rb +47 -0
- data/spec/codegen/marketing/forms/models/enumerated_field_option_spec.rb +59 -0
- data/spec/codegen/marketing/forms/models/error_detail_spec.rb +65 -0
- data/spec/codegen/marketing/forms/models/error_spec.rb +77 -0
- data/spec/codegen/marketing/forms/models/field_group_spec.rb +67 -0
- data/spec/codegen/marketing/forms/models/file_field_spec.rb +105 -0
- data/spec/codegen/marketing/forms/models/form_definition_base_spec.rb +35 -0
- data/spec/codegen/marketing/forms/models/form_definition_create_request_base_spec.rb +35 -0
- data/spec/codegen/marketing/forms/models/form_display_options_spec.rb +69 -0
- data/spec/codegen/marketing/forms/models/form_post_submit_action_spec.rb +51 -0
- data/spec/codegen/marketing/forms/models/form_style_spec.rb +111 -0
- data/spec/codegen/marketing/forms/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/marketing/forms/models/hub_spot_form_configuration_spec.rb +105 -0
- data/spec/codegen/marketing/forms/models/hub_spot_form_definition_all_of_spec.rb +105 -0
- data/spec/codegen/marketing/forms/models/hub_spot_form_definition_create_request_all_of_spec.rb +99 -0
- data/spec/codegen/marketing/forms/models/hub_spot_form_definition_create_request_spec.rb +35 -0
- data/spec/codegen/marketing/forms/models/hub_spot_form_definition_patch_request_spec.rb +71 -0
- data/spec/codegen/marketing/forms/models/hub_spot_form_definition_spec.rb +35 -0
- data/spec/codegen/marketing/forms/models/legal_consent_checkbox_spec.rb +53 -0
- data/spec/codegen/marketing/forms/models/legal_consent_options_explicit_consent_to_process_spec.rb +81 -0
- data/spec/codegen/marketing/forms/models/legal_consent_options_implicit_consent_to_process_spec.rb +69 -0
- data/spec/codegen/marketing/forms/models/legal_consent_options_legitimate_interest_spec.rb +67 -0
- data/spec/codegen/marketing/forms/models/legal_consent_options_none_spec.rb +45 -0
- data/spec/codegen/marketing/forms/models/mobile_phone_field_spec.rb +105 -0
- data/spec/codegen/marketing/forms/models/multi_line_text_field_spec.rb +99 -0
- data/spec/codegen/marketing/forms/models/multiple_checkboxes_field_spec.rb +99 -0
- data/spec/codegen/marketing/forms/models/next_page_spec.rb +47 -0
- data/spec/codegen/marketing/forms/models/number_field_spec.rb +105 -0
- data/spec/codegen/marketing/forms/models/number_field_validation_spec.rb +47 -0
- data/spec/codegen/marketing/forms/models/phone_field_spec.rb +111 -0
- data/spec/codegen/marketing/forms/models/phone_field_validation_spec.rb +47 -0
- data/spec/codegen/marketing/forms/models/radio_field_spec.rb +105 -0
- data/spec/codegen/marketing/forms/models/single_checkbox_field_spec.rb +93 -0
- data/spec/codegen/marketing/forms/models/single_line_text_field_spec.rb +99 -0
- data/spec/codegen/settings/users/api/roles_api_spec.rb +46 -0
- data/spec/codegen/settings/users/api/teams_api_spec.rb +46 -0
- data/spec/codegen/settings/users/api/users_api_spec.rb +100 -0
- data/spec/codegen/settings/users/models/collection_response_public_permission_set_no_paging_spec.rb +41 -0
- data/spec/codegen/settings/users/models/collection_response_public_team_no_paging_spec.rb +41 -0
- data/spec/codegen/settings/users/models/collection_response_public_user_forward_paging_spec.rb +47 -0
- data/spec/codegen/settings/users/models/error_detail_spec.rb +65 -0
- data/spec/codegen/settings/users/models/error_spec.rb +77 -0
- data/spec/codegen/settings/users/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/settings/users/models/next_page_spec.rb +47 -0
- data/spec/codegen/settings/users/models/public_permission_set_spec.rb +53 -0
- data/spec/codegen/settings/users/models/public_team_spec.rb +59 -0
- data/spec/codegen/settings/users/models/public_user_spec.rb +65 -0
- data/spec/codegen/settings/users/models/public_user_update_spec.rb +53 -0
- data/spec/codegen/settings/users/models/user_provision_request_spec.rb +65 -0
- data/spec/codegen/webhooks/api/settings_api_spec.rb +4 -10
- data/spec/codegen/webhooks/api/subscriptions_api_spec.rb +12 -24
- data/spec/codegen/webhooks/models/error_category_spec.rb +1 -1
- data/spec/codegen/webhooks/models/subscription_create_request_spec.rb +1 -1
- data/spec/codegen/webhooks/models/subscription_response_spec.rb +1 -1
- data/spec/discovery/automation/actions/callbacks_api_spec.rb +1 -1
- data/spec/discovery/automation/actions/definitions_api_spec.rb +1 -1
- data/spec/discovery/automation/actions/functions_api_spec.rb +1 -1
- data/spec/discovery/automation/actions/revisions_api_spec.rb +1 -1
- data/spec/discovery/base_api_client_spec.rb +6 -6
- data/spec/discovery/base_module_client_spec.rb +1 -1
- data/spec/discovery/client_spec.rb +1 -1
- data/spec/discovery/cms/audit-logs/audit_logs_api_spec.rb +1 -1
- data/spec/discovery/cms/blogs/{tags/tag_api_spec.rb → authors/blog_authors_api_spec.rb} +2 -2
- data/spec/discovery/cms/blogs/blog-posts/{blog_post_api_spec.rb → blog_posts_api_spec.rb} +2 -2
- data/spec/discovery/cms/blogs/{authors/author_api_spec.rb → tags/blog_tags_api_spec.rb} +2 -2
- data/spec/discovery/cms/domains/domains_api_spec.rb +1 -1
- data/spec/discovery/cms/hubdb/rows_api_spec.rb +1 -1
- data/spec/discovery/cms/hubdb/rows_batch_api_spec.rb +1 -1
- data/spec/discovery/cms/hubdb/tables_api_spec.rb +1 -1
- data/spec/discovery/cms/performance/public_performance_api_spec.rb +1 -1
- data/spec/discovery/cms/site-search/public_api_spec.rb +1 -1
- data/spec/discovery/cms/source-code/content_api_spec.rb +10 -0
- data/spec/discovery/cms/source-code/extract_api_spec.rb +7 -0
- data/spec/discovery/cms/source-code/metadata_api_spec.rb +7 -0
- data/spec/discovery/cms/source-code/source_code_extract_api_spec.rb +8 -0
- data/spec/discovery/cms/source-code/validation_api_spec.rb +7 -0
- data/spec/discovery/cms/url-redirects/redirects_api_spec.rb +1 -1
- data/spec/discovery/communication_preferences/definition_api_spec.rb +1 -1
- data/spec/discovery/communication_preferences/status_api_spec.rb +1 -1
- data/spec/discovery/conversations/visitor-identification/generate_api_spec.rb +1 -1
- data/spec/discovery/crm/associations/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/associations/types_api_spec.rb +1 -1
- data/spec/discovery/crm/companies/associations_api_spec.rb +1 -1
- data/spec/discovery/crm/companies/basic_api_spec.rb +1 -1
- data/spec/discovery/crm/companies/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/companies/search_api_spec.rb +1 -1
- data/spec/discovery/crm/contacts/associations_api_spec.rb +1 -1
- data/spec/discovery/crm/contacts/basic_api_spec.rb +1 -1
- data/spec/discovery/crm/contacts/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/contacts/gdpr_api_spec.rb +3 -4
- data/spec/discovery/crm/contacts/search_api_spec.rb +1 -1
- data/spec/discovery/crm/deals/associations_api_spec.rb +1 -1
- data/spec/discovery/crm/deals/basic_api_spec.rb +1 -1
- data/spec/discovery/crm/deals/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/deals/search_api_spec.rb +1 -1
- data/spec/discovery/crm/extensions/accounting/callbacks_api_spec.rb +1 -1
- data/spec/discovery/crm/extensions/accounting/invoice_api_spec.rb +1 -1
- data/spec/discovery/crm/extensions/accounting/settings_api_spec.rb +1 -1
- data/spec/discovery/crm/extensions/accounting/sync_api_spec.rb +1 -1
- data/spec/discovery/crm/extensions/accounting/user_accounts_api_spec.rb +1 -1
- data/spec/discovery/crm/extensions/calling/settings_api_spec.rb +1 -1
- data/spec/discovery/crm/extensions/cards/cards_api_spec.rb +1 -1
- data/spec/discovery/crm/extensions/cards/sample_response_api_spec.rb +1 -1
- data/spec/discovery/crm/extensions/videoconferencing/settings_api_spec.rb +1 -1
- data/spec/discovery/crm/imports/core_api_spec.rb +1 -1
- data/spec/discovery/crm/imports/public_imports_api_spec.rb +1 -1
- data/spec/discovery/crm/line_items/associations_api_spec.rb +1 -1
- data/spec/discovery/crm/line_items/basic_api_spec.rb +1 -1
- data/spec/discovery/crm/line_items/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/line_items/search_api_spec.rb +1 -1
- data/spec/discovery/crm/objects/associations_api_spec.rb +1 -1
- data/spec/discovery/crm/objects/basic_api_spec.rb +1 -1
- data/spec/discovery/crm/objects/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/objects/calls/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/objects/calls/basic_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/calls/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/calls/public_object_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/calls/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/emails/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/objects/emails/basic_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/emails/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/emails/public_object_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/emails/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/feedback_submissions/associations_api_spec.rb +1 -1
- data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +1 -1
- data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/objects/feedback_submissions/public_object_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/feedback_submissions/search_api_spec.rb +1 -1
- data/spec/discovery/crm/objects/gdpr_api_spec.rb +3 -4
- data/spec/discovery/crm/objects/meetings/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/objects/meetings/basic_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/meetings/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/meetings/public_object_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/meetings/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/notes/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/objects/notes/basic_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/notes/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/notes/public_object_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/notes/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/search_api_spec.rb +1 -1
- data/spec/discovery/crm/objects/tasks/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/objects/tasks/basic_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/tasks/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/tasks/public_object_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/tasks/search_api_spec.rb +7 -0
- data/spec/discovery/crm/owners/owners_api_spec.rb +1 -1
- data/spec/discovery/crm/pipelines/pipeline_stages_api_spec.rb +1 -1
- data/spec/discovery/crm/pipelines/pipelines_api_spec.rb +1 -1
- data/spec/discovery/crm/products/associations_api_spec.rb +1 -1
- data/spec/discovery/crm/products/basic_api_spec.rb +1 -1
- data/spec/discovery/crm/products/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/products/search_api_spec.rb +1 -1
- data/spec/discovery/crm/properties/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/properties/core_api_spec.rb +1 -1
- data/spec/discovery/crm/properties/groups_api_spec.rb +1 -1
- data/spec/discovery/crm/quotes/associations_api_spec.rb +1 -1
- data/spec/discovery/crm/quotes/basic_api_spec.rb +1 -1
- data/spec/discovery/crm/quotes/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/quotes/search_api_spec.rb +1 -1
- data/spec/discovery/crm/schemas/core_api_spec.rb +1 -1
- data/spec/discovery/crm/schemas/public_object_schemas_api_spec.rb +1 -1
- data/spec/discovery/crm/tickets/associations_api_spec.rb +1 -1
- data/spec/discovery/crm/tickets/basic_api_spec.rb +1 -1
- data/spec/discovery/crm/tickets/batch_api_spec.rb +1 -1
- data/spec/discovery/crm/tickets/search_api_spec.rb +1 -1
- data/spec/discovery/crm/timeline/events_api_spec.rb +1 -1
- data/spec/discovery/crm/timeline/templates_api_spec.rb +1 -1
- data/spec/discovery/crm/timeline/tokens_api_spec.rb +1 -1
- data/spec/discovery/events/events_api_spec.rb +1 -1
- data/spec/discovery/files/files/files_api_spec.rb +1 -1
- data/spec/discovery/files/files/folders_api_spec.rb +1 -1
- data/spec/discovery/marketing/events/basic_api_spec.rb +12 -0
- data/spec/discovery/marketing/events/batch_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/search_api_spec.rb +7 -0
- data/spec/discovery/marketing/events/settings_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/subscriber_state_changes_api_spec.rb +8 -0
- data/spec/discovery/marketing/forms/forms_api_spec.rb +12 -0
- data/spec/discovery/marketing/transactional/public_smtp_tokens_api_spec.rb +1 -1
- data/spec/discovery/marketing/transactional/single_send_api_spec.rb +1 -1
- data/spec/discovery/oauth/access_tokens_api_spec.rb +1 -1
- data/spec/discovery/oauth/refresh_tokens_api_spec.rb +1 -1
- data/spec/discovery/oauth/tokens_api_spec.rb +1 -1
- data/spec/discovery/settings/users/roles_api_spec.rb +7 -0
- data/spec/discovery/settings/users/teams_api_spec.rb +7 -0
- data/spec/discovery/settings/users/users_api_spec.rb +11 -0
- data/spec/discovery/webhooks/settings_api_spec.rb +1 -1
- data/spec/discovery/webhooks/subscriptions_api_spec.rb +1 -1
- data/spec/features/cms/blogs/authors/{author_api_spec.rb → blog_authors_api_spec.rb} +2 -2
- data/spec/features/cms/blogs/blog-posts/{blog_post_api_spec.rb → blog_posts_api_spec.rb} +2 -2
- data/spec/features/cms/blogs/tags/{tag_api_spec.rb → blog_tags_api_spec.rb} +2 -2
- data/spec/features/cms/source-code/content_api_spec.rb +10 -0
- data/spec/features/cms/source-code/extract_api_spec.rb +7 -0
- data/spec/features/cms/source-code/metadata_api_spec.rb +7 -0
- data/spec/features/cms/source-code/source_code_extract_api_spec.rb +8 -0
- data/spec/features/cms/source-code/validation_api_spec.rb +7 -0
- data/spec/features/crm/contacts/gdpr_api_spec.rb +3 -4
- data/spec/features/crm/objects/calls/associations_api_spec.rb +9 -0
- data/spec/features/crm/objects/calls/basic_api_spec.rb +10 -0
- data/spec/features/crm/objects/calls/batch_api_spec.rb +10 -0
- data/spec/features/crm/objects/calls/public_object_api_spec.rb +7 -0
- data/spec/features/crm/objects/calls/search_api_spec.rb +7 -0
- data/spec/features/crm/objects/emails/associations_api_spec.rb +9 -0
- data/spec/features/crm/objects/emails/basic_api_spec.rb +10 -0
- data/spec/features/crm/objects/emails/batch_api_spec.rb +10 -0
- data/spec/features/crm/objects/emails/public_object_api_spec.rb +7 -0
- data/spec/features/crm/objects/emails/search_api_spec.rb +7 -0
- data/spec/features/crm/objects/feedback_submissions/public_object_api_spec.rb +7 -0
- data/spec/features/crm/objects/gdpr_api_spec.rb +3 -4
- data/spec/features/crm/objects/meetings/associations_api_spec.rb +9 -0
- data/spec/features/crm/objects/meetings/basic_api_spec.rb +10 -0
- data/spec/features/crm/objects/meetings/batch_api_spec.rb +10 -0
- data/spec/features/crm/objects/meetings/public_object_api_spec.rb +7 -0
- data/spec/features/crm/objects/meetings/search_api_spec.rb +7 -0
- data/spec/features/crm/objects/notes/associations_api_spec.rb +9 -0
- data/spec/features/crm/objects/notes/basic_api_spec.rb +10 -0
- data/spec/features/crm/objects/notes/batch_api_spec.rb +10 -0
- data/spec/features/crm/objects/notes/public_object_api_spec.rb +7 -0
- data/spec/features/crm/objects/notes/search_api_spec.rb +7 -0
- data/spec/features/crm/objects/tasks/associations_api_spec.rb +9 -0
- data/spec/features/crm/objects/tasks/basic_api_spec.rb +10 -0
- data/spec/features/crm/objects/tasks/batch_api_spec.rb +10 -0
- data/spec/features/crm/objects/tasks/public_object_api_spec.rb +7 -0
- data/spec/features/crm/objects/tasks/search_api_spec.rb +7 -0
- data/spec/features/marketing/events/basic_api_spec.rb +12 -0
- data/spec/features/marketing/events/batch_api_spec.rb +8 -0
- data/spec/features/marketing/events/search_api_spec.rb +7 -0
- data/spec/features/marketing/events/settings_api_spec.rb +8 -0
- data/spec/features/marketing/events/subscriber_state_changes_api_spec.rb +8 -0
- data/spec/features/marketing/forms/forms_api_spec.rb +12 -0
- data/spec/features/settings/users/roles_api_spec.rb +7 -0
- data/spec/features/settings/users/teams_api_spec.rb +7 -0
- data/spec/features/settings/users/users_api_spec.rb +11 -0
- metadata +1217 -38
@@ -0,0 +1,90 @@
|
|
1
|
+
=begin
|
2
|
+
#Calls
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Objects
|
18
|
+
module Calls
|
19
|
+
class PublicObjectApi
|
20
|
+
attr_accessor :api_client
|
21
|
+
|
22
|
+
def initialize(api_client = ApiClient.default)
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# Merge two calls with same type
|
26
|
+
# @param public_merge_input [PublicMergeInput]
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [SimplePublicObject]
|
29
|
+
def merge(public_merge_input, opts = {})
|
30
|
+
data, _status_code, _headers = merge_with_http_info(public_merge_input, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Merge two calls with same type
|
35
|
+
# @param public_merge_input [PublicMergeInput]
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
38
|
+
def merge_with_http_info(public_merge_input, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug 'Calling API: PublicObjectApi.merge ...'
|
41
|
+
end
|
42
|
+
# verify the required parameter 'public_merge_input' is set
|
43
|
+
if @api_client.config.client_side_validation && public_merge_input.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'public_merge_input' when calling PublicObjectApi.merge"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = '/crm/v3/objects/calls/merge'
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = opts[:query_params] || {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = opts[:header_params] || {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = opts[:form_params] || {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = opts[:body] || @api_client.object_to_http_body(public_merge_input)
|
64
|
+
|
65
|
+
# return_type
|
66
|
+
return_type = opts[:return_type] || 'SimplePublicObject'
|
67
|
+
|
68
|
+
# auth_names
|
69
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
70
|
+
|
71
|
+
new_options = opts.merge(
|
72
|
+
:header_params => header_params,
|
73
|
+
:query_params => query_params,
|
74
|
+
:form_params => form_params,
|
75
|
+
:body => post_body,
|
76
|
+
:auth_names => auth_names,
|
77
|
+
:return_type => return_type
|
78
|
+
)
|
79
|
+
|
80
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
81
|
+
if @api_client.config.debugging
|
82
|
+
@api_client.config.logger.debug "API called: PublicObjectApi#merge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
83
|
+
end
|
84
|
+
return data, status_code, headers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
=begin
|
2
|
+
#Calls
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Objects
|
18
|
+
module Calls
|
19
|
+
class SearchApi
|
20
|
+
attr_accessor :api_client
|
21
|
+
|
22
|
+
def initialize(api_client = ApiClient.default)
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# @param public_object_search_request [PublicObjectSearchRequest]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
|
28
|
+
def do_search(public_object_search_request, opts = {})
|
29
|
+
data, _status_code, _headers = do_search_with_http_info(public_object_search_request, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# @param public_object_search_request [PublicObjectSearchRequest]
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
|
36
|
+
def do_search_with_http_info(public_object_search_request, opts = {})
|
37
|
+
if @api_client.config.debugging
|
38
|
+
@api_client.config.logger.debug 'Calling API: SearchApi.do_search ...'
|
39
|
+
end
|
40
|
+
# verify the required parameter 'public_object_search_request' is set
|
41
|
+
if @api_client.config.client_side_validation && public_object_search_request.nil?
|
42
|
+
fail ArgumentError, "Missing the required parameter 'public_object_search_request' when calling SearchApi.do_search"
|
43
|
+
end
|
44
|
+
# resource path
|
45
|
+
local_var_path = '/crm/v3/objects/calls/search'
|
46
|
+
|
47
|
+
# query parameters
|
48
|
+
query_params = opts[:query_params] || {}
|
49
|
+
|
50
|
+
# header parameters
|
51
|
+
header_params = opts[:header_params] || {}
|
52
|
+
# HTTP header 'Accept' (if needed)
|
53
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
54
|
+
# HTTP header 'Content-Type'
|
55
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:body] || @api_client.object_to_http_body(public_object_search_request)
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:return_type] || 'CollectionResponseWithTotalSimplePublicObjectForwardPaging'
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:header_params => header_params,
|
71
|
+
:query_params => query_params,
|
72
|
+
:form_params => form_params,
|
73
|
+
:body => post_body,
|
74
|
+
:auth_names => auth_names,
|
75
|
+
:return_type => return_type
|
76
|
+
)
|
77
|
+
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: SearchApi#do_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,408 @@
|
|
1
|
+
=begin
|
2
|
+
#Calls
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'json'
|
15
|
+
require 'logger'
|
16
|
+
require 'tempfile'
|
17
|
+
require 'typhoeus'
|
18
|
+
|
19
|
+
module Hubspot
|
20
|
+
module Crm
|
21
|
+
module Objects
|
22
|
+
module Calls
|
23
|
+
class ApiClient
|
24
|
+
# The Configuration object holding settings to be used in the API client.
|
25
|
+
attr_accessor :config
|
26
|
+
|
27
|
+
# Defines the headers to be used in HTTP requests of all API calls by default.
|
28
|
+
#
|
29
|
+
# @return [Hash]
|
30
|
+
attr_accessor :default_headers
|
31
|
+
|
32
|
+
# Initializes the ApiClient
|
33
|
+
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
34
|
+
def initialize(config = Configuration.default)
|
35
|
+
@config = config
|
36
|
+
@user_agent = "hubspot-api-client-ruby; #{VERSION}"
|
37
|
+
@default_headers = {
|
38
|
+
'Content-Type' => 'application/json',
|
39
|
+
'User-Agent' => @user_agent
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.default
|
44
|
+
@@default ||= ApiClient.new
|
45
|
+
end
|
46
|
+
|
47
|
+
# Call an API with given options.
|
48
|
+
#
|
49
|
+
# @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
|
50
|
+
# the data deserialized from response body (could be nil), response status code and response headers.
|
51
|
+
def call_api(http_method, path, opts = {})
|
52
|
+
request = build_request(http_method, path, opts)
|
53
|
+
response = request.run
|
54
|
+
|
55
|
+
if @config.debugging
|
56
|
+
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
57
|
+
end
|
58
|
+
|
59
|
+
if !response.success? && config.error_handler.any?
|
60
|
+
config.error_handler.each do |statuses, opts|
|
61
|
+
statuses = statuses.is_a?(Integer) ? [statuses] : statuses
|
62
|
+
|
63
|
+
retries = opts[:max_retries] || 5
|
64
|
+
while retries > 0 && statuses.include?(response.code)
|
65
|
+
sleep opts[:seconds_delay] if opts[:seconds_delay]
|
66
|
+
response = request.run
|
67
|
+
opts[:retry_block].call if opts[:retry_block]
|
68
|
+
retries -= 1
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
unless response.success?
|
74
|
+
if response.timed_out?
|
75
|
+
fail ApiError.new('Connection timed out')
|
76
|
+
elsif response.code == 0
|
77
|
+
# Errors from libcurl will be made visible here
|
78
|
+
fail ApiError.new(:code => 0,
|
79
|
+
:message => response.return_message)
|
80
|
+
else
|
81
|
+
fail ApiError.new(:code => response.code,
|
82
|
+
:response_headers => response.headers,
|
83
|
+
:response_body => response.body),
|
84
|
+
response.status_message
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
if opts[:return_type]
|
89
|
+
data = deserialize(response, opts[:return_type])
|
90
|
+
else
|
91
|
+
data = nil
|
92
|
+
end
|
93
|
+
return data, response.code, response.headers
|
94
|
+
end
|
95
|
+
|
96
|
+
# Builds the HTTP request
|
97
|
+
#
|
98
|
+
# @param [String] http_method HTTP method/verb (e.g. POST)
|
99
|
+
# @param [String] path URL path (e.g. /account/new)
|
100
|
+
# @option opts [Hash] :header_params Header parameters
|
101
|
+
# @option opts [Hash] :query_params Query parameters
|
102
|
+
# @option opts [Hash] :form_params Query parameters
|
103
|
+
# @option opts [Object] :body HTTP body (JSON/XML)
|
104
|
+
# @return [Typhoeus::Request] A Typhoeus Request
|
105
|
+
def build_request(http_method, path, opts = {})
|
106
|
+
url = build_request_url(path)
|
107
|
+
http_method = http_method.to_sym.downcase
|
108
|
+
|
109
|
+
header_params = @default_headers.merge(opts[:header_params] || {})
|
110
|
+
query_params = opts[:query_params] || {}
|
111
|
+
form_params = opts[:form_params] || {}
|
112
|
+
|
113
|
+
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
114
|
+
|
115
|
+
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
|
116
|
+
_verify_ssl_host = @config.verify_ssl_host ? 2 : 0
|
117
|
+
|
118
|
+
req_opts = {
|
119
|
+
:method => http_method,
|
120
|
+
:headers => header_params,
|
121
|
+
:params => query_params,
|
122
|
+
:params_encoding => @config.params_encoding,
|
123
|
+
:timeout => @config.timeout,
|
124
|
+
:ssl_verifypeer => @config.verify_ssl,
|
125
|
+
:ssl_verifyhost => _verify_ssl_host,
|
126
|
+
:sslcert => @config.cert_file,
|
127
|
+
:sslkey => @config.key_file,
|
128
|
+
:verbose => @config.debugging
|
129
|
+
}
|
130
|
+
|
131
|
+
# set custom cert, if provided
|
132
|
+
req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
|
133
|
+
|
134
|
+
if [:post, :patch, :put, :delete].include?(http_method)
|
135
|
+
req_body = build_request_body(header_params, form_params, opts[:body])
|
136
|
+
req_opts.update :body => req_body
|
137
|
+
if @config.debugging
|
138
|
+
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
request = Typhoeus::Request.new(url, req_opts)
|
143
|
+
download_file(request) if opts[:return_type] == 'File'
|
144
|
+
request
|
145
|
+
end
|
146
|
+
|
147
|
+
# Builds the HTTP request body
|
148
|
+
#
|
149
|
+
# @param [Hash] header_params Header parameters
|
150
|
+
# @param [Hash] form_params Query parameters
|
151
|
+
# @param [Object] body HTTP body (JSON/XML)
|
152
|
+
# @return [String] HTTP body data in the form of string
|
153
|
+
def build_request_body(header_params, form_params, body)
|
154
|
+
# http form
|
155
|
+
if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
|
156
|
+
header_params['Content-Type'] == 'multipart/form-data'
|
157
|
+
data = {}
|
158
|
+
form_params.each do |key, value|
|
159
|
+
case value
|
160
|
+
when ::File, ::Array, nil
|
161
|
+
# let typhoeus handle File, Array and nil parameters
|
162
|
+
data[key] = value
|
163
|
+
else
|
164
|
+
data[key] = value.to_s
|
165
|
+
end
|
166
|
+
end
|
167
|
+
elsif body
|
168
|
+
data = body.is_a?(String) ? body : body.to_json
|
169
|
+
else
|
170
|
+
data = nil
|
171
|
+
end
|
172
|
+
data
|
173
|
+
end
|
174
|
+
|
175
|
+
# Check if the given MIME is a JSON MIME.
|
176
|
+
# JSON MIME examples:
|
177
|
+
# application/json
|
178
|
+
# application/json; charset=UTF8
|
179
|
+
# APPLICATION/JSON
|
180
|
+
# */*
|
181
|
+
# @param [String] mime MIME
|
182
|
+
# @return [Boolean] True if the MIME is application/json
|
183
|
+
def json_mime?(mime)
|
184
|
+
(mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
|
185
|
+
end
|
186
|
+
|
187
|
+
# Deserialize the response to the given return type.
|
188
|
+
#
|
189
|
+
# @param [Response] response HTTP response
|
190
|
+
# @param [String] return_type some examples: "User", "Array<User>", "Hash<String, Integer>"
|
191
|
+
def deserialize(response, return_type)
|
192
|
+
body = response.body
|
193
|
+
|
194
|
+
# handle file downloading - return the File instance processed in request callbacks
|
195
|
+
# note that response body is empty when the file is written in chunks in request on_body callback
|
196
|
+
return @tempfile if return_type == 'File'
|
197
|
+
|
198
|
+
return nil if body.nil? || body.empty?
|
199
|
+
|
200
|
+
# return response body directly for String return type
|
201
|
+
return body if return_type == 'String'
|
202
|
+
|
203
|
+
# ensuring a default content type
|
204
|
+
content_type = response.headers['Content-Type'] || 'application/json'
|
205
|
+
|
206
|
+
fail "Content-Type is not supported: #{content_type}" unless json_mime?(content_type)
|
207
|
+
|
208
|
+
begin
|
209
|
+
data = JSON.parse("[#{body}]", :symbolize_names => true)[0]
|
210
|
+
rescue JSON::ParserError => e
|
211
|
+
if %w(String Date DateTime).include?(return_type)
|
212
|
+
data = body
|
213
|
+
else
|
214
|
+
raise e
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
convert_to_type data, return_type
|
219
|
+
end
|
220
|
+
|
221
|
+
# Convert data to the given return type.
|
222
|
+
# @param [Object] data Data to be converted
|
223
|
+
# @param [String] return_type Return type
|
224
|
+
# @return [Mixed] Data in a particular type
|
225
|
+
def convert_to_type(data, return_type)
|
226
|
+
return nil if data.nil?
|
227
|
+
case return_type
|
228
|
+
when 'String'
|
229
|
+
data.to_s
|
230
|
+
when 'Integer'
|
231
|
+
data.to_i
|
232
|
+
when 'Float'
|
233
|
+
data.to_f
|
234
|
+
when 'Boolean'
|
235
|
+
data == true
|
236
|
+
when 'DateTime'
|
237
|
+
# parse date time (expecting ISO 8601 format)
|
238
|
+
DateTime.parse data
|
239
|
+
when 'Date'
|
240
|
+
# parse date time (expecting ISO 8601 format)
|
241
|
+
Date.parse data
|
242
|
+
when 'Object'
|
243
|
+
# generic object (usually a Hash), return directly
|
244
|
+
data
|
245
|
+
when /\AArray<(.+)>\z/
|
246
|
+
# e.g. Array<Pet>
|
247
|
+
sub_type = $1
|
248
|
+
data.map { |item| convert_to_type(item, sub_type) }
|
249
|
+
when /\AHash\<String, (.+)\>\z/
|
250
|
+
# e.g. Hash<String, Integer>
|
251
|
+
sub_type = $1
|
252
|
+
{}.tap do |hash|
|
253
|
+
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
254
|
+
end
|
255
|
+
else
|
256
|
+
# models, e.g. Pet
|
257
|
+
Hubspot::Crm::Objects::Calls.const_get(return_type).build_from_hash(data)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# Save response body into a file in (the defined) temporary folder, using the filename
|
262
|
+
# from the "Content-Disposition" header if provided, otherwise a random filename.
|
263
|
+
# The response body is written to the file in chunks in order to handle files which
|
264
|
+
# size is larger than maximum Ruby String or even larger than the maximum memory a Ruby
|
265
|
+
# process can use.
|
266
|
+
#
|
267
|
+
# @see Configuration#temp_folder_path
|
268
|
+
def download_file(request)
|
269
|
+
tempfile = nil
|
270
|
+
encoding = nil
|
271
|
+
request.on_headers do |response|
|
272
|
+
content_disposition = response.headers['Content-Disposition']
|
273
|
+
if content_disposition && content_disposition =~ /filename=/i
|
274
|
+
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
275
|
+
prefix = sanitize_filename(filename)
|
276
|
+
else
|
277
|
+
prefix = 'download-'
|
278
|
+
end
|
279
|
+
prefix = prefix + '-' unless prefix.end_with?('-')
|
280
|
+
encoding = response.body.encoding
|
281
|
+
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
282
|
+
@tempfile = tempfile
|
283
|
+
end
|
284
|
+
request.on_body do |chunk|
|
285
|
+
chunk.force_encoding(encoding)
|
286
|
+
tempfile.write(chunk)
|
287
|
+
end
|
288
|
+
request.on_complete do |response|
|
289
|
+
if tempfile
|
290
|
+
tempfile.close
|
291
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
292
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
293
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
294
|
+
"explicitly with `tempfile.delete`"
|
295
|
+
end
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
# Sanitize filename by removing path.
|
300
|
+
# e.g. ../../sun.gif becomes sun.gif
|
301
|
+
#
|
302
|
+
# @param [String] filename the filename to be sanitized
|
303
|
+
# @return [String] the sanitized filename
|
304
|
+
def sanitize_filename(filename)
|
305
|
+
filename.gsub(/.*[\/\\]/, '')
|
306
|
+
end
|
307
|
+
|
308
|
+
def build_request_url(path)
|
309
|
+
# Add leading and trailing slashes to path
|
310
|
+
path = "/#{path}".gsub(/\/+/, '/')
|
311
|
+
@config.base_url + path
|
312
|
+
end
|
313
|
+
|
314
|
+
# Update hearder and query params based on authentication settings.
|
315
|
+
#
|
316
|
+
# @param [Hash] header_params Header parameters
|
317
|
+
# @param [Hash] query_params Query parameters
|
318
|
+
# @param [String] auth_names Authentication scheme name
|
319
|
+
def update_params_for_auth!(header_params, query_params, auth_names)
|
320
|
+
Array(auth_names).each do |auth_name|
|
321
|
+
auth_setting = @config.auth_settings[auth_name]
|
322
|
+
next unless auth_setting
|
323
|
+
case auth_setting[:in]
|
324
|
+
when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
|
325
|
+
when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
|
326
|
+
else fail ArgumentError, 'Authentication token must be in `query` of `header`'
|
327
|
+
end
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
# Sets user agent in HTTP header
|
332
|
+
#
|
333
|
+
# @param [String] user_agent User agent (e.g. openapi-generator/ruby/1.0.0)
|
334
|
+
def user_agent=(user_agent)
|
335
|
+
@user_agent = user_agent
|
336
|
+
@default_headers['User-Agent'] = @user_agent
|
337
|
+
end
|
338
|
+
|
339
|
+
# Return Accept header based on an array of accepts provided.
|
340
|
+
# @param [Array] accepts array for Accept
|
341
|
+
# @return [String] the Accept header (e.g. application/json)
|
342
|
+
def select_header_accept(accepts)
|
343
|
+
return nil if accepts.nil? || accepts.empty?
|
344
|
+
# use JSON when present, otherwise use all of the provided
|
345
|
+
json_accept = accepts.find { |s| json_mime?(s) }
|
346
|
+
json_accept || accepts.join(',')
|
347
|
+
end
|
348
|
+
|
349
|
+
# Return Content-Type header based on an array of content types provided.
|
350
|
+
# @param [Array] content_types array for Content-Type
|
351
|
+
# @return [String] the Content-Type header (e.g. application/json)
|
352
|
+
def select_header_content_type(content_types)
|
353
|
+
# use application/json by default
|
354
|
+
return 'application/json' if content_types.nil? || content_types.empty?
|
355
|
+
# use JSON when present, otherwise use the first one
|
356
|
+
json_content_type = content_types.find { |s| json_mime?(s) }
|
357
|
+
json_content_type || content_types.first
|
358
|
+
end
|
359
|
+
|
360
|
+
# Convert object (array, hash, object, etc) to JSON string.
|
361
|
+
# @param [Object] model object to be converted into JSON string
|
362
|
+
# @return [String] JSON string representation of the object
|
363
|
+
def object_to_http_body(model)
|
364
|
+
return model if model.nil? || model.is_a?(String)
|
365
|
+
local_body = nil
|
366
|
+
if model.is_a?(Array)
|
367
|
+
local_body = model.map { |m| object_to_hash(m) }
|
368
|
+
else
|
369
|
+
local_body = object_to_hash(model)
|
370
|
+
end
|
371
|
+
local_body.to_json
|
372
|
+
end
|
373
|
+
|
374
|
+
# Convert object(non-array) to hash.
|
375
|
+
# @param [Object] obj object to be converted into JSON string
|
376
|
+
# @return [String] JSON string representation of the object
|
377
|
+
def object_to_hash(obj)
|
378
|
+
if obj.respond_to?(:to_hash)
|
379
|
+
obj.to_hash
|
380
|
+
else
|
381
|
+
obj
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
385
|
+
# Build parameter value according to the given collection format.
|
386
|
+
# @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi
|
387
|
+
def build_collection_param(param, collection_format)
|
388
|
+
case collection_format
|
389
|
+
when :csv
|
390
|
+
param.join(',')
|
391
|
+
when :ssv
|
392
|
+
param.join(' ')
|
393
|
+
when :tsv
|
394
|
+
param.join("\t")
|
395
|
+
when :pipes
|
396
|
+
param.join('|')
|
397
|
+
when :multi
|
398
|
+
# return the array directly as typhoeus will handle it as expected
|
399
|
+
param
|
400
|
+
else
|
401
|
+
fail "unknown collection format: #{collection_format.inspect}"
|
402
|
+
end
|
403
|
+
end
|
404
|
+
end
|
405
|
+
end
|
406
|
+
end
|
407
|
+
end
|
408
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
=begin
|
2
|
+
#Calls
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module Hubspot
|
14
|
+
module Crm
|
15
|
+
module Objects
|
16
|
+
module Calls
|
17
|
+
class ApiError < StandardError
|
18
|
+
attr_reader :code, :response_headers, :response_body
|
19
|
+
|
20
|
+
# Usage examples:
|
21
|
+
# ApiError.new
|
22
|
+
# ApiError.new("message")
|
23
|
+
# ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
|
24
|
+
# ApiError.new(:code => 404, :message => "Not Found")
|
25
|
+
def initialize(arg = nil)
|
26
|
+
if arg.is_a? Hash
|
27
|
+
if arg.key?(:message) || arg.key?('message')
|
28
|
+
super(arg[:message] || arg['message'])
|
29
|
+
else
|
30
|
+
super arg
|
31
|
+
end
|
32
|
+
|
33
|
+
arg.each do |k, v|
|
34
|
+
instance_variable_set "@#{k}", v
|
35
|
+
end
|
36
|
+
else
|
37
|
+
super arg
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# Override to_s to display a friendly error message
|
42
|
+
def to_s
|
43
|
+
message
|
44
|
+
end
|
45
|
+
|
46
|
+
def message
|
47
|
+
if @message.nil?
|
48
|
+
msg = "Error message: the server returns an error"
|
49
|
+
else
|
50
|
+
msg = @message
|
51
|
+
end
|
52
|
+
|
53
|
+
msg += "\nHTTP status code: #{code}" if code
|
54
|
+
msg += "\nResponse headers: #{response_headers}" if response_headers
|
55
|
+
msg += "\nResponse body: #{response_body}" if response_body
|
56
|
+
|
57
|
+
msg
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|