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
@@ -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
|
@@ -16,38 +16,55 @@ module Hubspot
|
|
16
16
|
module Cms
|
17
17
|
module SiteSearch
|
18
18
|
class ContentSearchResult
|
19
|
+
# The ID of the content.
|
19
20
|
attr_accessor :id
|
20
21
|
|
22
|
+
# The matching score of the document.
|
21
23
|
attr_accessor :score
|
22
24
|
|
25
|
+
# The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`.
|
23
26
|
attr_accessor :type
|
24
27
|
|
28
|
+
# The domain the document is hosted on.
|
25
29
|
attr_accessor :domain
|
26
30
|
|
31
|
+
# The url of the document.
|
27
32
|
attr_accessor :url
|
28
33
|
|
34
|
+
# URL of the featured image.
|
29
35
|
attr_accessor :featured_image_url
|
30
36
|
|
37
|
+
# The document's language.
|
31
38
|
attr_accessor :language
|
32
39
|
|
40
|
+
# The title of the returned document.
|
33
41
|
attr_accessor :title
|
34
42
|
|
43
|
+
# The result's description. The content will be determined by the value of `length` in the request.
|
35
44
|
attr_accessor :description
|
36
45
|
|
46
|
+
# For knowledge articles, the category of the article.
|
37
47
|
attr_accessor :category
|
38
48
|
|
49
|
+
# For knowledge articles, the subcategory of the article.
|
39
50
|
attr_accessor :subcategory
|
40
51
|
|
52
|
+
# Name of the author.
|
41
53
|
attr_accessor :author_full_name
|
42
54
|
|
55
|
+
# If a blog post, the tags associated with it.
|
43
56
|
attr_accessor :tags
|
44
57
|
|
58
|
+
# If a dynamic page, the ID of the HubDB table.
|
45
59
|
attr_accessor :table_id
|
46
60
|
|
61
|
+
# If a dynamic page, the row ID in the HubDB table.
|
47
62
|
attr_accessor :row_id
|
48
63
|
|
64
|
+
# The date the content was published.
|
49
65
|
attr_accessor :published_date
|
50
66
|
|
67
|
+
# The ID of the document in HubSpot.
|
51
68
|
attr_accessor :combined_id
|
52
69
|
|
53
70
|
class EnumAttributeValidator
|
@@ -243,7 +260,7 @@ module Hubspot
|
|
243
260
|
return false if @id.nil?
|
244
261
|
return false if @score.nil?
|
245
262
|
return false if @type.nil?
|
246
|
-
type_validator = EnumAttributeValidator.new('String', ["LANDING_PAGE", "BLOG_POST", "SITE_PAGE", "
|
263
|
+
type_validator = EnumAttributeValidator.new('String', ["LANDING_PAGE", "BLOG_POST", "SITE_PAGE", "KNOWLEDGE_ARTICLE", "LISTING_PAGE"])
|
247
264
|
return false unless type_validator.valid?(@type)
|
248
265
|
return false if @domain.nil?
|
249
266
|
return false if @url.nil?
|
@@ -255,7 +272,7 @@ module Hubspot
|
|
255
272
|
# Custom attribute writer method checking allowed values (enum).
|
256
273
|
# @param [Object] type Object to be assigned
|
257
274
|
def type=(type)
|
258
|
-
validator = EnumAttributeValidator.new('String', ["LANDING_PAGE", "BLOG_POST", "SITE_PAGE", "
|
275
|
+
validator = EnumAttributeValidator.new('String', ["LANDING_PAGE", "BLOG_POST", "SITE_PAGE", "KNOWLEDGE_ARTICLE", "LISTING_PAGE"])
|
259
276
|
unless validator.valid?(type)
|
260
277
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
261
278
|
end
|
@@ -16,10 +16,13 @@ module Hubspot
|
|
16
16
|
module Cms
|
17
17
|
module SiteSearch
|
18
18
|
class IndexedData
|
19
|
+
# The ID of the document in HubSpot.
|
19
20
|
attr_accessor :id
|
20
21
|
|
22
|
+
# The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`.
|
21
23
|
attr_accessor :type
|
22
24
|
|
25
|
+
# The indexed fields in HubSpot.
|
23
26
|
attr_accessor :fields
|
24
27
|
|
25
28
|
class EnumAttributeValidator
|
@@ -122,7 +125,7 @@ module Hubspot
|
|
122
125
|
def valid?
|
123
126
|
return false if @id.nil?
|
124
127
|
return false if @type.nil?
|
125
|
-
type_validator = EnumAttributeValidator.new('String', ["LANDING_PAGE", "BLOG_POST", "SITE_PAGE", "
|
128
|
+
type_validator = EnumAttributeValidator.new('String', ["LANDING_PAGE", "BLOG_POST", "SITE_PAGE", "KNOWLEDGE_ARTICLE", "LISTING_PAGE"])
|
126
129
|
return false unless type_validator.valid?(@type)
|
127
130
|
return false if @fields.nil?
|
128
131
|
true
|
@@ -131,7 +134,7 @@ module Hubspot
|
|
131
134
|
# Custom attribute writer method checking allowed values (enum).
|
132
135
|
# @param [Object] type Object to be assigned
|
133
136
|
def type=(type)
|
134
|
-
validator = EnumAttributeValidator.new('String', ["LANDING_PAGE", "BLOG_POST", "SITE_PAGE", "
|
137
|
+
validator = EnumAttributeValidator.new('String', ["LANDING_PAGE", "BLOG_POST", "SITE_PAGE", "KNOWLEDGE_ARTICLE", "LISTING_PAGE"])
|
135
138
|
unless validator.valid?(type)
|
136
139
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
137
140
|
end
|
@@ -16,10 +16,10 @@ module Hubspot
|
|
16
16
|
module Cms
|
17
17
|
module SiteSearch
|
18
18
|
class SearchHitField
|
19
|
-
attr_accessor :metadata_field
|
20
|
-
|
21
19
|
attr_accessor :values
|
22
20
|
|
21
|
+
attr_accessor :metadata_field
|
22
|
+
|
23
23
|
attr_accessor :name
|
24
24
|
|
25
25
|
attr_accessor :value
|
@@ -27,8 +27,8 @@ module Hubspot
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
-
:'metadata_field' => :'metadataField',
|
31
30
|
:'values' => :'values',
|
31
|
+
:'metadata_field' => :'metadataField',
|
32
32
|
:'name' => :'name',
|
33
33
|
:'value' => :'value'
|
34
34
|
}
|
@@ -37,8 +37,8 @@ module Hubspot
|
|
37
37
|
# Attribute type mapping.
|
38
38
|
def self.openapi_types
|
39
39
|
{
|
40
|
+
:'values' => :'Array<Object>',
|
40
41
|
:'metadata_field' => :'Boolean',
|
41
|
-
:'values' => :'Array',
|
42
42
|
:'name' => :'String',
|
43
43
|
:'value' => :'Object'
|
44
44
|
}
|
@@ -65,12 +65,14 @@ module Hubspot
|
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
67
67
|
|
68
|
-
if attributes.key?(:'
|
69
|
-
|
68
|
+
if attributes.key?(:'values')
|
69
|
+
if (value = attributes[:'values']).is_a?(Array)
|
70
|
+
self.values = value
|
71
|
+
end
|
70
72
|
end
|
71
73
|
|
72
|
-
if attributes.key?(:'
|
73
|
-
self.
|
74
|
+
if attributes.key?(:'metadata_field')
|
75
|
+
self.metadata_field = attributes[:'metadata_field']
|
74
76
|
end
|
75
77
|
|
76
78
|
if attributes.key?(:'name')
|
@@ -86,14 +88,14 @@ module Hubspot
|
|
86
88
|
# @return Array for valid properties with the reasons
|
87
89
|
def list_invalid_properties
|
88
90
|
invalid_properties = Array.new
|
89
|
-
if @metadata_field.nil?
|
90
|
-
invalid_properties.push('invalid value for "metadata_field", metadata_field cannot be nil.')
|
91
|
-
end
|
92
|
-
|
93
91
|
if @values.nil?
|
94
92
|
invalid_properties.push('invalid value for "values", values cannot be nil.')
|
95
93
|
end
|
96
94
|
|
95
|
+
if @metadata_field.nil?
|
96
|
+
invalid_properties.push('invalid value for "metadata_field", metadata_field cannot be nil.')
|
97
|
+
end
|
98
|
+
|
97
99
|
if @name.nil?
|
98
100
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
99
101
|
end
|
@@ -108,8 +110,8 @@ module Hubspot
|
|
108
110
|
# Check to see if the all the properties in the model are valid
|
109
111
|
# @return true if the model is valid
|
110
112
|
def valid?
|
111
|
-
return false if @metadata_field.nil?
|
112
113
|
return false if @values.nil?
|
114
|
+
return false if @metadata_field.nil?
|
113
115
|
return false if @name.nil?
|
114
116
|
return false if @value.nil?
|
115
117
|
true
|
@@ -120,8 +122,8 @@ module Hubspot
|
|
120
122
|
def ==(o)
|
121
123
|
return true if self.equal?(o)
|
122
124
|
self.class == o.class &&
|
123
|
-
metadata_field == o.metadata_field &&
|
124
125
|
values == o.values &&
|
126
|
+
metadata_field == o.metadata_field &&
|
125
127
|
name == o.name &&
|
126
128
|
value == o.value
|
127
129
|
end
|
@@ -135,7 +137,7 @@ module Hubspot
|
|
135
137
|
# Calculates hash code according to all attributes.
|
136
138
|
# @return [Integer] Hash code
|
137
139
|
def hash
|
138
|
-
[
|
140
|
+
[values, metadata_field, name, value].hash
|
139
141
|
end
|
140
142
|
|
141
143
|
# Builds the object from hash
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -105,8 +105,7 @@ module Hubspot
|
|
105
105
|
# @param to_object_id [String]
|
106
106
|
# @param association_type [String]
|
107
107
|
# @param [Hash] opts the optional parameters
|
108
|
-
# @
|
109
|
-
# @return [SimplePublicObject]
|
108
|
+
# @return [SimplePublicObjectWithAssociations]
|
110
109
|
def create(company_id, to_object_type, to_object_id, association_type, opts = {})
|
111
110
|
data, _status_code, _headers = create_with_http_info(company_id, to_object_type, to_object_id, association_type, opts)
|
112
111
|
data
|
@@ -118,8 +117,7 @@ module Hubspot
|
|
118
117
|
# @param to_object_id [String]
|
119
118
|
# @param association_type [String]
|
120
119
|
# @param [Hash] opts the optional parameters
|
121
|
-
# @
|
122
|
-
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
120
|
+
# @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
|
123
121
|
def create_with_http_info(company_id, to_object_type, to_object_id, association_type, opts = {})
|
124
122
|
if @api_client.config.debugging
|
125
123
|
@api_client.config.logger.debug 'Calling API: AssociationsApi.create ...'
|
@@ -145,7 +143,6 @@ module Hubspot
|
|
145
143
|
|
146
144
|
# query parameters
|
147
145
|
query_params = opts[:query_params] || {}
|
148
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
149
146
|
|
150
147
|
# header parameters
|
151
148
|
header_params = opts[:header_params] || {}
|
@@ -159,7 +156,7 @@ module Hubspot
|
|
159
156
|
post_body = opts[:body]
|
160
157
|
|
161
158
|
# return_type
|
162
|
-
return_type = opts[:return_type] || '
|
159
|
+
return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations'
|
163
160
|
|
164
161
|
# auth_names
|
165
162
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -184,10 +181,9 @@ module Hubspot
|
|
184
181
|
# @param company_id [String]
|
185
182
|
# @param to_object_type [String]
|
186
183
|
# @param [Hash] opts the optional parameters
|
187
|
-
# @option opts [Boolean] :paginate_associations (default to false)
|
188
184
|
# @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.
|
189
185
|
# @option opts [Integer] :limit The maximum number of results to display per page. (default to 500)
|
190
|
-
# @return [
|
186
|
+
# @return [CollectionResponseAssociatedIdForwardPaging]
|
191
187
|
def get_all(company_id, to_object_type, opts = {})
|
192
188
|
data, _status_code, _headers = get_all_with_http_info(company_id, to_object_type, opts)
|
193
189
|
data
|
@@ -197,10 +193,9 @@ module Hubspot
|
|
197
193
|
# @param company_id [String]
|
198
194
|
# @param to_object_type [String]
|
199
195
|
# @param [Hash] opts the optional parameters
|
200
|
-
# @option opts [Boolean] :paginate_associations
|
201
196
|
# @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
197
|
# @option opts [Integer] :limit The maximum number of results to display per page.
|
203
|
-
# @return [Array<(
|
198
|
+
# @return [Array<(CollectionResponseAssociatedIdForwardPaging, Integer, Hash)>] CollectionResponseAssociatedIdForwardPaging data, response status code and response headers
|
204
199
|
def get_all_with_http_info(company_id, to_object_type, opts = {})
|
205
200
|
if @api_client.config.debugging
|
206
201
|
@api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...'
|
@@ -218,7 +213,6 @@ module Hubspot
|
|
218
213
|
|
219
214
|
# query parameters
|
220
215
|
query_params = opts[:query_params] || {}
|
221
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
222
216
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
223
217
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
224
218
|
|
@@ -234,7 +228,7 @@ module Hubspot
|
|
234
228
|
post_body = opts[:body]
|
235
229
|
|
236
230
|
# return_type
|
237
|
-
return_type = opts[:return_type] || '
|
231
|
+
return_type = opts[:return_type] || 'CollectionResponseAssociatedIdForwardPaging'
|
238
232
|
|
239
233
|
# auth_names
|
240
234
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -155,10 +155,9 @@ module Hubspot
|
|
155
155
|
# @param [Hash] opts the optional parameters
|
156
156
|
# @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.
|
157
157
|
# @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.
|
158
|
-
# @option opts [Boolean] :paginate_associations (default to false)
|
159
158
|
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
160
159
|
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
161
|
-
# @return [
|
160
|
+
# @return [SimplePublicObjectWithAssociations]
|
162
161
|
def get_by_id(company_id, opts = {})
|
163
162
|
data, _status_code, _headers = get_by_id_with_http_info(company_id, opts)
|
164
163
|
data
|
@@ -170,10 +169,9 @@ module Hubspot
|
|
170
169
|
# @param [Hash] opts the optional parameters
|
171
170
|
# @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.
|
172
171
|
# @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.
|
173
|
-
# @option opts [Boolean] :paginate_associations
|
174
172
|
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
175
173
|
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
176
|
-
# @return [Array<(
|
174
|
+
# @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
|
177
175
|
def get_by_id_with_http_info(company_id, opts = {})
|
178
176
|
if @api_client.config.debugging
|
179
177
|
@api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
|
@@ -189,7 +187,6 @@ module Hubspot
|
|
189
187
|
query_params = opts[:query_params] || {}
|
190
188
|
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
|
191
189
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
192
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
193
190
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
194
191
|
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
195
192
|
|
@@ -205,7 +202,7 @@ module Hubspot
|
|
205
202
|
post_body = opts[:body]
|
206
203
|
|
207
204
|
# return_type
|
208
|
-
return_type = opts[:return_type] || '
|
205
|
+
return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations'
|
209
206
|
|
210
207
|
# auth_names
|
211
208
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -233,9 +230,8 @@ module Hubspot
|
|
233
230
|
# @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.
|
234
231
|
# @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.
|
235
232
|
# @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.
|
236
|
-
# @option opts [Boolean] :paginate_associations (default to false)
|
237
233
|
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
238
|
-
# @return [
|
234
|
+
# @return [CollectionResponseSimplePublicObjectWithAssociationsForwardPaging]
|
239
235
|
def get_page(opts = {})
|
240
236
|
data, _status_code, _headers = get_page_with_http_info(opts)
|
241
237
|
data
|
@@ -248,9 +244,8 @@ module Hubspot
|
|
248
244
|
# @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.
|
249
245
|
# @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.
|
250
246
|
# @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.
|
251
|
-
# @option opts [Boolean] :paginate_associations
|
252
247
|
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
253
|
-
# @return [Array<(
|
248
|
+
# @return [Array<(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, Integer, Hash)>] CollectionResponseSimplePublicObjectWithAssociationsForwardPaging data, response status code and response headers
|
254
249
|
def get_page_with_http_info(opts = {})
|
255
250
|
if @api_client.config.debugging
|
256
251
|
@api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
|
@@ -264,7 +259,6 @@ module Hubspot
|
|
264
259
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
265
260
|
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
|
266
261
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
267
|
-
query_params[:'paginateAssociations'] = opts[:'paginate_associations'] if !opts[:'paginate_associations'].nil?
|
268
262
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
269
263
|
|
270
264
|
# header parameters
|
@@ -279,7 +273,7 @@ module Hubspot
|
|
279
273
|
post_body = opts[:body]
|
280
274
|
|
281
275
|
# return_type
|
282
|
-
return_type = opts[:return_type] || '
|
276
|
+
return_type = opts[:return_type] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
|
283
277
|
|
284
278
|
# auth_names
|
285
279
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -301,10 +295,11 @@ module Hubspot
|
|
301
295
|
end
|
302
296
|
|
303
297
|
# Update
|
304
|
-
# Perform a partial update of an Object identified by `{companyId}`. 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.
|
298
|
+
# Perform a partial update of an Object identified by `{companyId}`. `{companyId}` 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.
|
305
299
|
# @param company_id [String]
|
306
300
|
# @param simple_public_object_input [SimplePublicObjectInput]
|
307
301
|
# @param [Hash] opts the optional parameters
|
302
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
308
303
|
# @return [SimplePublicObject]
|
309
304
|
def update(company_id, simple_public_object_input, opts = {})
|
310
305
|
data, _status_code, _headers = update_with_http_info(company_id, simple_public_object_input, opts)
|
@@ -312,10 +307,11 @@ module Hubspot
|
|
312
307
|
end
|
313
308
|
|
314
309
|
# Update
|
315
|
-
# Perform a partial update of an Object identified by `{companyId}`. 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.
|
310
|
+
# Perform a partial update of an Object identified by `{companyId}`. `{companyId}` 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.
|
316
311
|
# @param company_id [String]
|
317
312
|
# @param simple_public_object_input [SimplePublicObjectInput]
|
318
313
|
# @param [Hash] opts the optional parameters
|
314
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
319
315
|
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
320
316
|
def update_with_http_info(company_id, simple_public_object_input, opts = {})
|
321
317
|
if @api_client.config.debugging
|
@@ -334,6 +330,7 @@ module Hubspot
|
|
334
330
|
|
335
331
|
# query parameters
|
336
332
|
query_params = opts[:query_params] || {}
|
333
|
+
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
337
334
|
|
338
335
|
# header parameters
|
339
336
|
header_params = opts[:header_params] || {}
|