hubspot-api-client 9.6.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +3 -3
- data/lib/hubspot/codegen/automation/actions/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/blogs/authors/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +108 -102
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/layout_section.rb +4 -2
- data/lib/hubspot/codegen/cms/blogs/tags/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/domains/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +15 -1
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/column_input.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +5 -3
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_input.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_input.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +2 -5
- data/lib/hubspot/codegen/cms/site-search/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +19 -2
- data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +5 -2
- data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +17 -15
- data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +14 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/companies/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/companies/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/companies/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/companies/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/contacts/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/contacts/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/contacts/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/deals/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/deals/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/deals/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/deals/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/imports/api/default_api.rb +90 -0
- data/lib/hubspot/codegen/crm/imports/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/imports/models/collection_response_public_import_error_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/{schemas/models/paging.rb → imports/models/forward_paging.rb} +11 -20
- data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +238 -0
- data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +353 -0
- data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/line_items/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/line_items/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/line_items/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +10 -10
- data/lib/hubspot/codegen/crm/objects/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +3 -6
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +6 -12
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_simple_public_object.rb → collection_response_associated_id_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/forward_paging.rb +212 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations.rb +290 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/objects/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +9 -3
- data/lib/hubspot/codegen/crm/owners/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/owners/models/{collection_response_public_owner.rb → collection_response_public_owner_forward_paging.rb} +4 -4
- data/lib/hubspot/codegen/crm/owners/models/{paging.rb → forward_paging.rb} +3 -3
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/products/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/products/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/products/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/products/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/properties/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +3 -6
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +6 -12
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/quotes/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/quotes/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/{schemas/models/previous_page.rb → quotes/models/forward_paging.rb} +14 -28
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +23 -17
- data/lib/hubspot/codegen/crm/schemas/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +1 -75
- data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +4 -78
- data/lib/hubspot/codegen/crm/schemas/models/{collection_response_object_schema.rb → collection_response_object_schema_no_paging.rb} +7 -16
- data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +15 -1
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +15 -1
- data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/tickets/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/tickets/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/tickets/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +14 -0
- data/lib/hubspot/codegen/events/api_client.rb +14 -0
- data/lib/hubspot/codegen/files/files/api_client.rb +14 -0
- data/lib/hubspot/codegen/marketing/transactional/api/default_api.rb +60 -60
- data/lib/hubspot/codegen/marketing/transactional/api_client.rb +14 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +14 -0
- data/lib/hubspot/codegen/webhooks/api_client.rb +14 -0
- data/lib/hubspot/version.rb +1 -1
- data/spec/codegen/cms/blogs/authors/api/default_api_spec.rb +24 -24
- data/spec/codegen/cms/blogs/blog-posts/api/default_api_spec.rb +26 -26
- data/spec/codegen/cms/blogs/blog-posts/models/blog_post_spec.rb +14 -14
- data/spec/codegen/cms/blogs/tags/api/default_api_spec.rb +24 -24
- data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/column_input_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_input_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_input_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
- data/spec/codegen/cms/site-search/api/default_api_spec.rb +0 -1
- data/spec/codegen/cms/site-search/models/content_search_result_spec.rb +1 -1
- data/spec/codegen/cms/site-search/models/indexed_data_spec.rb +1 -1
- data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
- data/spec/codegen/crm/companies/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/companies/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/companies/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/companies/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/companies/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/companies/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/companies/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/companies/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/companies/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/companies/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/contacts/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/contacts/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/contacts/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/contacts/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/contacts/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/contacts/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/contacts/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/contacts/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/contacts/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/contacts/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/deals/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/deals/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/deals/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/deals/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/deals/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/deals/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/deals/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/deals/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/deals/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/deals/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/imports/api/default_api_spec.rb +47 -0
- data/spec/codegen/crm/imports/models/collection_response_public_import_error_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/imports/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/imports/models/import_row_core_spec.rb +53 -0
- data/spec/codegen/crm/imports/models/public_import_error_spec.rb +97 -0
- data/spec/codegen/crm/imports/models/public_import_response_spec.rb +1 -1
- data/spec/codegen/crm/line_items/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/line_items/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/line_items/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/line_items/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/line_items/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/line_items/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/line_items/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/line_items/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/line_items/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/line_items/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/objects/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/objects/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/objects/api/search_api_spec.rb +3 -3
- data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +1 -2
- data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +2 -4
- data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/objects/feedback_submissions/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/objects/feedback_submissions/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/objects/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/objects/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/objects/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/objects/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/objects/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/objects/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/owners/api/default_api_spec.rb +3 -1
- data/spec/codegen/crm/owners/models/{collection_response_public_owner_spec.rb → collection_response_public_owner_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/owners/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/products/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/products/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/products/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/products/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/products/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/products/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/products/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/products/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/products/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/products/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/quotes/api/associations_api_spec.rb +1 -2
- data/spec/codegen/crm/quotes/api/basic_api_spec.rb +2 -4
- data/spec/codegen/crm/quotes/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/quotes/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/quotes/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/quotes/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/quotes/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/quotes/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/quotes/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/quotes/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/schemas/api/core_api_spec.rb +10 -8
- data/spec/codegen/crm/schemas/models/association_definition_egg_spec.rb +0 -20
- data/spec/codegen/crm/schemas/models/association_definition_spec.rb +0 -20
- data/spec/codegen/crm/schemas/models/{collection_response_object_schema_spec.rb → collection_response_object_schema_no_paging_spec.rb} +6 -12
- data/spec/codegen/crm/schemas/models/object_schema_spec.rb +6 -0
- data/spec/codegen/crm/schemas/models/object_type_definition_spec.rb +6 -0
- data/spec/codegen/crm/schemas/models/object_type_property_create_spec.rb +1 -1
- data/spec/codegen/crm/tickets/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/tickets/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/tickets/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/tickets/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/tickets/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/tickets/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/tickets/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/tickets/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/tickets/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/tickets/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/files/files/api/files_api_spec.rb +2 -2
- data/spec/codegen/files/files/models/file_update_input_spec.rb +1 -1
- data/spec/codegen/files/files/models/import_from_url_input_spec.rb +1 -1
- data/spec/codegen/marketing/transactional/api/default_api_spec.rb +12 -12
- data/spec/features/crm/objects/search_api_spec.rb +1 -1
- metadata +161 -74
- data/lib/hubspot/codegen/crm/schemas/models/next_page.rb +0 -224
- data/spec/codegen/crm/schemas/models/next_page_spec.rb +0 -47
- data/spec/codegen/crm/schemas/models/paging_spec.rb +0 -47
- data/spec/codegen/crm/schemas/models/previous_page_spec.rb +0 -47
@@ -112,8 +112,7 @@ module Hubspot
|
|
112
112
|
# @param to_object_id [String]
|
113
113
|
# @param association_type [String]
|
114
114
|
# @param [Hash] opts the optional parameters
|
115
|
-
# @
|
116
|
-
# @return [SimplePublicObject]
|
115
|
+
# @return [SimplePublicObjectWithAssociations]
|
117
116
|
def create(object_type, object_id, to_object_type, to_object_id, association_type, opts = {})
|
118
117
|
data, _status_code, _headers = create_with_http_info(object_type, object_id, to_object_type, to_object_id, association_type, opts)
|
119
118
|
data
|
@@ -126,8 +125,7 @@ module Hubspot
|
|
126
125
|
# @param to_object_id [String]
|
127
126
|
# @param association_type [String]
|
128
127
|
# @param [Hash] opts the optional parameters
|
129
|
-
# @
|
130
|
-
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
128
|
+
# @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
|
131
129
|
def create_with_http_info(object_type, object_id, to_object_type, to_object_id, association_type, opts = {})
|
132
130
|
if @api_client.config.debugging
|
133
131
|
@api_client.config.logger.debug 'Calling API: AssociationsApi.create ...'
|
@@ -157,7 +155,6 @@ module Hubspot
|
|
157
155
|
|
158
156
|
# query parameters
|
159
157
|
query_params = opts[:query_params] || {}
|
160
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
161
158
|
|
162
159
|
# header parameters
|
163
160
|
header_params = opts[:header_params] || {}
|
@@ -171,7 +168,7 @@ module Hubspot
|
|
171
168
|
post_body = opts[:body]
|
172
169
|
|
173
170
|
# return_type
|
174
|
-
return_type = opts[:return_type] || '
|
171
|
+
return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations'
|
175
172
|
|
176
173
|
# auth_names
|
177
174
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -197,10 +194,9 @@ module Hubspot
|
|
197
194
|
# @param object_id [String]
|
198
195
|
# @param to_object_type [String]
|
199
196
|
# @param [Hash] opts the optional parameters
|
200
|
-
# @option opts [Boolean] :paginate_associations (default to false)
|
201
197
|
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
202
198
|
# @option opts [Integer] :limit The maximum number of results to display per page. (default to 500)
|
203
|
-
# @return [
|
199
|
+
# @return [CollectionResponseAssociatedIdForwardPaging]
|
204
200
|
def get_all(object_type, object_id, to_object_type, opts = {})
|
205
201
|
data, _status_code, _headers = get_all_with_http_info(object_type, object_id, to_object_type, opts)
|
206
202
|
data
|
@@ -211,10 +207,9 @@ module Hubspot
|
|
211
207
|
# @param object_id [String]
|
212
208
|
# @param to_object_type [String]
|
213
209
|
# @param [Hash] opts the optional parameters
|
214
|
-
# @option opts [Boolean] :paginate_associations
|
215
210
|
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
216
211
|
# @option opts [Integer] :limit The maximum number of results to display per page.
|
217
|
-
# @return [Array<(
|
212
|
+
# @return [Array<(CollectionResponseAssociatedIdForwardPaging, Integer, Hash)>] CollectionResponseAssociatedIdForwardPaging data, response status code and response headers
|
218
213
|
def get_all_with_http_info(object_type, object_id, to_object_type, opts = {})
|
219
214
|
if @api_client.config.debugging
|
220
215
|
@api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...'
|
@@ -236,7 +231,6 @@ module Hubspot
|
|
236
231
|
|
237
232
|
# query parameters
|
238
233
|
query_params = opts[:query_params] || {}
|
239
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
240
234
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
241
235
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
242
236
|
|
@@ -252,7 +246,7 @@ module Hubspot
|
|
252
246
|
post_body = opts[:body]
|
253
247
|
|
254
248
|
# return_type
|
255
|
-
return_type = opts[:return_type] || '
|
249
|
+
return_type = opts[:return_type] || 'CollectionResponseAssociatedIdForwardPaging'
|
256
250
|
|
257
251
|
# auth_names
|
258
252
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -168,10 +168,9 @@ module Hubspot
|
|
168
168
|
# @param [Hash] opts the optional parameters
|
169
169
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
170
170
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
171
|
-
# @option opts [Boolean] :paginate_associations (default to false)
|
172
171
|
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
173
172
|
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
174
|
-
# @return [
|
173
|
+
# @return [SimplePublicObjectWithAssociations]
|
175
174
|
def get_by_id(object_type, object_id, opts = {})
|
176
175
|
data, _status_code, _headers = get_by_id_with_http_info(object_type, object_id, opts)
|
177
176
|
data
|
@@ -184,10 +183,9 @@ module Hubspot
|
|
184
183
|
# @param [Hash] opts the optional parameters
|
185
184
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
186
185
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
187
|
-
# @option opts [Boolean] :paginate_associations
|
188
186
|
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
189
187
|
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
190
|
-
# @return [Array<(
|
188
|
+
# @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
|
191
189
|
def get_by_id_with_http_info(object_type, object_id, opts = {})
|
192
190
|
if @api_client.config.debugging
|
193
191
|
@api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
|
@@ -207,7 +205,6 @@ module Hubspot
|
|
207
205
|
query_params = opts[:query_params] || {}
|
208
206
|
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
|
209
207
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
210
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
211
208
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
212
209
|
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
213
210
|
|
@@ -223,7 +220,7 @@ module Hubspot
|
|
223
220
|
post_body = opts[:body]
|
224
221
|
|
225
222
|
# return_type
|
226
|
-
return_type = opts[:return_type] || '
|
223
|
+
return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations'
|
227
224
|
|
228
225
|
# auth_names
|
229
226
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -252,9 +249,8 @@ module Hubspot
|
|
252
249
|
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
253
250
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
254
251
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
255
|
-
# @option opts [Boolean] :paginate_associations (default to false)
|
256
252
|
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
257
|
-
# @return [
|
253
|
+
# @return [CollectionResponseSimplePublicObjectWithAssociationsForwardPaging]
|
258
254
|
def get_page(object_type, opts = {})
|
259
255
|
data, _status_code, _headers = get_page_with_http_info(object_type, opts)
|
260
256
|
data
|
@@ -268,9 +264,8 @@ module Hubspot
|
|
268
264
|
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
269
265
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
270
266
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
271
|
-
# @option opts [Boolean] :paginate_associations
|
272
267
|
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
273
|
-
# @return [Array<(
|
268
|
+
# @return [Array<(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, Integer, Hash)>] CollectionResponseSimplePublicObjectWithAssociationsForwardPaging data, response status code and response headers
|
274
269
|
def get_page_with_http_info(object_type, opts = {})
|
275
270
|
if @api_client.config.debugging
|
276
271
|
@api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
|
@@ -288,7 +283,6 @@ module Hubspot
|
|
288
283
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
289
284
|
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
|
290
285
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
291
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
292
286
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
293
287
|
|
294
288
|
# header parameters
|
@@ -303,7 +297,7 @@ module Hubspot
|
|
303
297
|
post_body = opts[:body]
|
304
298
|
|
305
299
|
# return_type
|
306
|
-
return_type = opts[:return_type] || '
|
300
|
+
return_type = opts[:return_type] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
|
307
301
|
|
308
302
|
# auth_names
|
309
303
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -325,11 +319,12 @@ module Hubspot
|
|
325
319
|
end
|
326
320
|
|
327
321
|
# Update
|
328
|
-
# Perform a partial update of an Object identified by `{objectId}`. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
322
|
+
# Perform a partial update of an Object identified by `{objectId}`. `{objectId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
329
323
|
# @param object_type [String]
|
330
324
|
# @param object_id [String]
|
331
325
|
# @param simple_public_object_input [SimplePublicObjectInput]
|
332
326
|
# @param [Hash] opts the optional parameters
|
327
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
333
328
|
# @return [SimplePublicObject]
|
334
329
|
def update(object_type, object_id, simple_public_object_input, opts = {})
|
335
330
|
data, _status_code, _headers = update_with_http_info(object_type, object_id, simple_public_object_input, opts)
|
@@ -337,11 +332,12 @@ module Hubspot
|
|
337
332
|
end
|
338
333
|
|
339
334
|
# Update
|
340
|
-
# Perform a partial update of an Object identified by `{objectId}`. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
335
|
+
# Perform a partial update of an Object identified by `{objectId}`. `{objectId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
341
336
|
# @param object_type [String]
|
342
337
|
# @param object_id [String]
|
343
338
|
# @param simple_public_object_input [SimplePublicObjectInput]
|
344
339
|
# @param [Hash] opts the optional parameters
|
340
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
345
341
|
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
346
342
|
def update_with_http_info(object_type, object_id, simple_public_object_input, opts = {})
|
347
343
|
if @api_client.config.debugging
|
@@ -364,6 +360,7 @@ module Hubspot
|
|
364
360
|
|
365
361
|
# query parameters
|
366
362
|
query_params = opts[:query_params] || {}
|
363
|
+
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
367
364
|
|
368
365
|
# header parameters
|
369
366
|
header_params = opts[:header_params] || {}
|
@@ -26,9 +26,9 @@ module Hubspot
|
|
26
26
|
# @param object_type [String]
|
27
27
|
# @param public_object_search_request [PublicObjectSearchRequest]
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [
|
30
|
-
def
|
31
|
-
data, _status_code, _headers =
|
29
|
+
# @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
|
30
|
+
def do_search(object_type, public_object_search_request, opts = {})
|
31
|
+
data, _status_code, _headers = do_search_with_http_info(object_type, public_object_search_request, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
@@ -37,18 +37,18 @@ module Hubspot
|
|
37
37
|
# @param object_type [String]
|
38
38
|
# @param public_object_search_request [PublicObjectSearchRequest]
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [Array<(
|
41
|
-
def
|
40
|
+
# @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
|
41
|
+
def do_search_with_http_info(object_type, public_object_search_request, opts = {})
|
42
42
|
if @api_client.config.debugging
|
43
|
-
@api_client.config.logger.debug 'Calling API: SearchApi.
|
43
|
+
@api_client.config.logger.debug 'Calling API: SearchApi.do_search ...'
|
44
44
|
end
|
45
45
|
# verify the required parameter 'object_type' is set
|
46
46
|
if @api_client.config.client_side_validation && object_type.nil?
|
47
|
-
fail ArgumentError, "Missing the required parameter 'object_type' when calling SearchApi.
|
47
|
+
fail ArgumentError, "Missing the required parameter 'object_type' when calling SearchApi.do_search"
|
48
48
|
end
|
49
49
|
# verify the required parameter 'public_object_search_request' is set
|
50
50
|
if @api_client.config.client_side_validation && public_object_search_request.nil?
|
51
|
-
fail ArgumentError, "Missing the required parameter 'public_object_search_request' when calling SearchApi.
|
51
|
+
fail ArgumentError, "Missing the required parameter 'public_object_search_request' when calling SearchApi.do_search"
|
52
52
|
end
|
53
53
|
# resource path
|
54
54
|
local_var_path = '/crm/v3/objects/{objectType}/search'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s))
|
@@ -70,7 +70,7 @@ module Hubspot
|
|
70
70
|
post_body = opts[:body] || @api_client.object_to_http_body(public_object_search_request)
|
71
71
|
|
72
72
|
# return_type
|
73
|
-
return_type = opts[:return_type] || '
|
73
|
+
return_type = opts[:return_type] || 'CollectionResponseWithTotalSimplePublicObjectForwardPaging'
|
74
74
|
|
75
75
|
# auth_names
|
76
76
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -86,7 +86,7 @@ module Hubspot
|
|
86
86
|
|
87
87
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
88
88
|
if @api_client.config.debugging
|
89
|
-
@api_client.config.logger.debug "API called: SearchApi#
|
89
|
+
@api_client.config.logger.debug "API called: SearchApi#do_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
90
|
end
|
91
91
|
return data, status_code, headers
|
92
92
|
end
|
@@ -56,6 +56,20 @@ module Hubspot
|
|
56
56
|
end
|
57
57
|
|
58
58
|
unless response.success?
|
59
|
+
if 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
|
+
|
59
73
|
if response.timed_out?
|
60
74
|
fail ApiError.new('Connection timed out')
|
61
75
|
elsif response.code == 0
|
@@ -26,10 +26,9 @@ module Hubspot
|
|
26
26
|
# @param feedback_submission_id [String]
|
27
27
|
# @param to_object_type [String]
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
|
-
# @option opts [Boolean] :paginate_associations (default to false)
|
30
29
|
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
31
30
|
# @option opts [Integer] :limit The maximum number of results to display per page. (default to 500)
|
32
|
-
# @return [
|
31
|
+
# @return [CollectionResponseAssociatedIdForwardPaging]
|
33
32
|
def get_all(feedback_submission_id, to_object_type, opts = {})
|
34
33
|
data, _status_code, _headers = get_all_with_http_info(feedback_submission_id, to_object_type, opts)
|
35
34
|
data
|
@@ -39,10 +38,9 @@ module Hubspot
|
|
39
38
|
# @param feedback_submission_id [String]
|
40
39
|
# @param to_object_type [String]
|
41
40
|
# @param [Hash] opts the optional parameters
|
42
|
-
# @option opts [Boolean] :paginate_associations
|
43
41
|
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
44
42
|
# @option opts [Integer] :limit The maximum number of results to display per page.
|
45
|
-
# @return [Array<(
|
43
|
+
# @return [Array<(CollectionResponseAssociatedIdForwardPaging, Integer, Hash)>] CollectionResponseAssociatedIdForwardPaging data, response status code and response headers
|
46
44
|
def get_all_with_http_info(feedback_submission_id, to_object_type, opts = {})
|
47
45
|
if @api_client.config.debugging
|
48
46
|
@api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...'
|
@@ -60,7 +58,6 @@ module Hubspot
|
|
60
58
|
|
61
59
|
# query parameters
|
62
60
|
query_params = opts[:query_params] || {}
|
63
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
64
61
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
65
62
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
66
63
|
|
@@ -76,7 +73,7 @@ module Hubspot
|
|
76
73
|
post_body = opts[:body]
|
77
74
|
|
78
75
|
# return_type
|
79
|
-
return_type = opts[:return_type] || '
|
76
|
+
return_type = opts[:return_type] || 'CollectionResponseAssociatedIdForwardPaging'
|
80
77
|
|
81
78
|
# auth_names
|
82
79
|
auth_names = opts[:auth_names] || ['hapikey']
|
@@ -30,10 +30,9 @@ module Hubspot
|
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
31
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
32
32
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
33
|
-
# @option opts [Boolean] :paginate_associations (default to false)
|
34
33
|
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
35
34
|
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
36
|
-
# @return [
|
35
|
+
# @return [SimplePublicObjectWithAssociations]
|
37
36
|
def get_by_id(feedback_submission_id, opts = {})
|
38
37
|
data, _status_code, _headers = get_by_id_with_http_info(feedback_submission_id, opts)
|
39
38
|
data
|
@@ -45,10 +44,9 @@ module Hubspot
|
|
45
44
|
# @param [Hash] opts the optional parameters
|
46
45
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
47
46
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
48
|
-
# @option opts [Boolean] :paginate_associations
|
49
47
|
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
50
48
|
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
51
|
-
# @return [Array<(
|
49
|
+
# @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
|
52
50
|
def get_by_id_with_http_info(feedback_submission_id, opts = {})
|
53
51
|
if @api_client.config.debugging
|
54
52
|
@api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
|
@@ -64,7 +62,6 @@ module Hubspot
|
|
64
62
|
query_params = opts[:query_params] || {}
|
65
63
|
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
|
66
64
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
67
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
68
65
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
69
66
|
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
70
67
|
|
@@ -80,7 +77,7 @@ module Hubspot
|
|
80
77
|
post_body = opts[:body]
|
81
78
|
|
82
79
|
# return_type
|
83
|
-
return_type = opts[:return_type] || '
|
80
|
+
return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations'
|
84
81
|
|
85
82
|
# auth_names
|
86
83
|
auth_names = opts[:auth_names] || ['hapikey']
|
@@ -108,9 +105,8 @@ module Hubspot
|
|
108
105
|
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
109
106
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
110
107
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
111
|
-
# @option opts [Boolean] :paginate_associations (default to false)
|
112
108
|
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
113
|
-
# @return [
|
109
|
+
# @return [CollectionResponseSimplePublicObjectWithAssociationsForwardPaging]
|
114
110
|
def get_page(opts = {})
|
115
111
|
data, _status_code, _headers = get_page_with_http_info(opts)
|
116
112
|
data
|
@@ -123,9 +119,8 @@ module Hubspot
|
|
123
119
|
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
124
120
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
125
121
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
126
|
-
# @option opts [Boolean] :paginate_associations
|
127
122
|
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
128
|
-
# @return [Array<(
|
123
|
+
# @return [Array<(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, Integer, Hash)>] CollectionResponseSimplePublicObjectWithAssociationsForwardPaging data, response status code and response headers
|
129
124
|
def get_page_with_http_info(opts = {})
|
130
125
|
if @api_client.config.debugging
|
131
126
|
@api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
|
@@ -139,7 +134,6 @@ module Hubspot
|
|
139
134
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
140
135
|
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
|
141
136
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
142
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
143
137
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
144
138
|
|
145
139
|
# header parameters
|
@@ -154,7 +148,7 @@ module Hubspot
|
|
154
148
|
post_body = opts[:body]
|
155
149
|
|
156
150
|
# return_type
|
157
|
-
return_type = opts[:return_type] || '
|
151
|
+
return_type = opts[:return_type] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
|
158
152
|
|
159
153
|
# auth_names
|
160
154
|
auth_names = opts[:auth_names] || ['hapikey']
|
@@ -26,7 +26,7 @@ module Hubspot
|
|
26
26
|
# Filter, Sort, and Search CRM Objects
|
27
27
|
# @param public_object_search_request [PublicObjectSearchRequest]
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [
|
29
|
+
# @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
|
30
30
|
def do_search(public_object_search_request, opts = {})
|
31
31
|
data, _status_code, _headers = do_search_with_http_info(public_object_search_request, opts)
|
32
32
|
data
|
@@ -36,7 +36,7 @@ module Hubspot
|
|
36
36
|
# Filter, Sort, and Search CRM Objects
|
37
37
|
# @param public_object_search_request [PublicObjectSearchRequest]
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [Array<(
|
39
|
+
# @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
|
40
40
|
def do_search_with_http_info(public_object_search_request, opts = {})
|
41
41
|
if @api_client.config.debugging
|
42
42
|
@api_client.config.logger.debug 'Calling API: SearchApi.do_search ...'
|
@@ -65,7 +65,7 @@ module Hubspot
|
|
65
65
|
post_body = opts[:body] || @api_client.object_to_http_body(public_object_search_request)
|
66
66
|
|
67
67
|
# return_type
|
68
|
-
return_type = opts[:return_type] || '
|
68
|
+
return_type = opts[:return_type] || 'CollectionResponseWithTotalSimplePublicObjectForwardPaging'
|
69
69
|
|
70
70
|
# auth_names
|
71
71
|
auth_names = opts[:auth_names] || ['hapikey']
|
@@ -57,6 +57,20 @@ module Hubspot
|
|
57
57
|
end
|
58
58
|
|
59
59
|
unless response.success?
|
60
|
+
if config.error_handler.any?
|
61
|
+
config.error_handler.each do |statuses, opts|
|
62
|
+
statuses = statuses.is_a?(Integer) ? [statuses] : statuses
|
63
|
+
|
64
|
+
retries = opts[:max_retries] || 5
|
65
|
+
while retries > 0 && statuses.include?(response.code)
|
66
|
+
sleep opts[:seconds_delay] if opts[:seconds_delay]
|
67
|
+
response = request.run
|
68
|
+
opts[:retry_block].call if opts[:retry_block]
|
69
|
+
retries -= 1
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
60
74
|
if response.timed_out?
|
61
75
|
fail ApiError.new('Connection timed out')
|
62
76
|
elsif response.code == 0
|
@@ -17,27 +17,27 @@ module Hubspot
|
|
17
17
|
module Objects
|
18
18
|
module FeedbackSubmissions
|
19
19
|
class BatchReadInputSimplePublicObjectId
|
20
|
-
attr_accessor :inputs
|
21
|
-
|
22
20
|
attr_accessor :properties
|
23
21
|
|
24
22
|
attr_accessor :id_property
|
25
23
|
|
24
|
+
attr_accessor :inputs
|
25
|
+
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
:'inputs' => :'inputs',
|
30
29
|
:'properties' => :'properties',
|
31
|
-
:'id_property' => :'idProperty'
|
30
|
+
:'id_property' => :'idProperty',
|
31
|
+
:'inputs' => :'inputs'
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
35
35
|
# Attribute type mapping.
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
|
-
:'inputs' => :'Array<SimplePublicObjectId>',
|
39
38
|
:'properties' => :'Array<String>',
|
40
|
-
:'id_property' => :'String'
|
39
|
+
:'id_property' => :'String',
|
40
|
+
:'inputs' => :'Array<SimplePublicObjectId>'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
@@ -62,12 +62,6 @@ module Hubspot
|
|
62
62
|
h[k.to_sym] = v
|
63
63
|
}
|
64
64
|
|
65
|
-
if attributes.key?(:'inputs')
|
66
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
67
|
-
self.inputs = value
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
65
|
if attributes.key?(:'properties')
|
72
66
|
if (value = attributes[:'properties']).is_a?(Array)
|
73
67
|
self.properties = value
|
@@ -77,28 +71,34 @@ module Hubspot
|
|
77
71
|
if attributes.key?(:'id_property')
|
78
72
|
self.id_property = attributes[:'id_property']
|
79
73
|
end
|
74
|
+
|
75
|
+
if attributes.key?(:'inputs')
|
76
|
+
if (value = attributes[:'inputs']).is_a?(Array)
|
77
|
+
self.inputs = value
|
78
|
+
end
|
79
|
+
end
|
80
80
|
end
|
81
81
|
|
82
82
|
# Show invalid properties with the reasons. Usually used together with valid?
|
83
83
|
# @return Array for valid properties with the reasons
|
84
84
|
def list_invalid_properties
|
85
85
|
invalid_properties = Array.new
|
86
|
-
if @inputs.nil?
|
87
|
-
invalid_properties.push('invalid value for "inputs", inputs cannot be nil.')
|
88
|
-
end
|
89
|
-
|
90
86
|
if @properties.nil?
|
91
87
|
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
92
88
|
end
|
93
89
|
|
90
|
+
if @inputs.nil?
|
91
|
+
invalid_properties.push('invalid value for "inputs", inputs cannot be nil.')
|
92
|
+
end
|
93
|
+
|
94
94
|
invalid_properties
|
95
95
|
end
|
96
96
|
|
97
97
|
# Check to see if the all the properties in the model are valid
|
98
98
|
# @return true if the model is valid
|
99
99
|
def valid?
|
100
|
-
return false if @inputs.nil?
|
101
100
|
return false if @properties.nil?
|
101
|
+
return false if @inputs.nil?
|
102
102
|
true
|
103
103
|
end
|
104
104
|
|
@@ -107,9 +107,9 @@ module Hubspot
|
|
107
107
|
def ==(o)
|
108
108
|
return true if self.equal?(o)
|
109
109
|
self.class == o.class &&
|
110
|
-
inputs == o.inputs &&
|
111
110
|
properties == o.properties &&
|
112
|
-
id_property == o.id_property
|
111
|
+
id_property == o.id_property &&
|
112
|
+
inputs == o.inputs
|
113
113
|
end
|
114
114
|
|
115
115
|
# @see the `==` method
|
@@ -121,7 +121,7 @@ module Hubspot
|
|
121
121
|
# Calculates hash code according to all attributes.
|
122
122
|
# @return [Integer] Hash code
|
123
123
|
def hash
|
124
|
-
[
|
124
|
+
[properties, id_property, inputs].hash
|
125
125
|
end
|
126
126
|
|
127
127
|
# Builds the object from hash
|