hubspot-api-client 9.6.0 → 10.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +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
@@ -23,8 +23,9 @@ module Hubspot
|
|
23
23
|
end
|
24
24
|
# Delete a schema
|
25
25
|
# Deletes a schema. Any existing records of this schema must be deleted **first**. Otherwise this call will fail.
|
26
|
-
# @param object_type [String] Fully qualified name or object type ID
|
26
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
28
29
|
# @return [nil]
|
29
30
|
def archive(object_type, opts = {})
|
30
31
|
archive_with_http_info(object_type, opts)
|
@@ -33,8 +34,9 @@ module Hubspot
|
|
33
34
|
|
34
35
|
# Delete a schema
|
35
36
|
# Deletes a schema. Any existing records of this schema must be deleted **first**. Otherwise this call will fail.
|
36
|
-
# @param object_type [String] Fully qualified name or object type ID
|
37
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
37
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
38
40
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
39
41
|
def archive_with_http_info(object_type, opts = {})
|
40
42
|
if @api_client.config.debugging
|
@@ -49,6 +51,7 @@ module Hubspot
|
|
49
51
|
|
50
52
|
# query parameters
|
51
53
|
query_params = opts[:query_params] || {}
|
54
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
52
55
|
|
53
56
|
# header parameters
|
54
57
|
header_params = opts[:header_params] || {}
|
@@ -85,7 +88,7 @@ module Hubspot
|
|
85
88
|
|
86
89
|
# Remove an association
|
87
90
|
# Removes an existing association from a schema.
|
88
|
-
# @param object_type [String] Fully qualified name or object type ID
|
91
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
89
92
|
# @param association_identifier [String] Unique ID of the association to remove.
|
90
93
|
# @param [Hash] opts the optional parameters
|
91
94
|
# @return [nil]
|
@@ -96,7 +99,7 @@ module Hubspot
|
|
96
99
|
|
97
100
|
# Remove an association
|
98
101
|
# Removes an existing association from a schema.
|
99
|
-
# @param object_type [String] Fully qualified name or object type ID
|
102
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
100
103
|
# @param association_identifier [String] Unique ID of the association to remove.
|
101
104
|
# @param [Hash] opts the optional parameters
|
102
105
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -217,7 +220,7 @@ module Hubspot
|
|
217
220
|
|
218
221
|
# Create an association
|
219
222
|
# Defines a new association between the primary schema's object type and other object types.
|
220
|
-
# @param object_type [String] Fully qualified name or object type ID
|
223
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
221
224
|
# @param association_definition_egg [AssociationDefinitionEgg] Attributes that define the association.
|
222
225
|
# @param [Hash] opts the optional parameters
|
223
226
|
# @return [AssociationDefinition]
|
@@ -228,7 +231,7 @@ module Hubspot
|
|
228
231
|
|
229
232
|
# Create an association
|
230
233
|
# Defines a new association between the primary schema's object type and other object types.
|
231
|
-
# @param object_type [String] Fully qualified name or object type ID
|
234
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
232
235
|
# @param association_definition_egg [AssociationDefinitionEgg] Attributes that define the association.
|
233
236
|
# @param [Hash] opts the optional parameters
|
234
237
|
# @return [Array<(AssociationDefinition, Integer, Hash)>] AssociationDefinition data, response status code and response headers
|
@@ -286,18 +289,20 @@ module Hubspot
|
|
286
289
|
end
|
287
290
|
|
288
291
|
# Get all schemas
|
289
|
-
# Returns all object schemas that have been defined for
|
292
|
+
# Returns all object schemas that have been defined for your account.
|
290
293
|
# @param [Hash] opts the optional parameters
|
291
|
-
# @
|
294
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
295
|
+
# @return [CollectionResponseObjectSchemaNoPaging]
|
292
296
|
def get_all(opts = {})
|
293
297
|
data, _status_code, _headers = get_all_with_http_info(opts)
|
294
298
|
data
|
295
299
|
end
|
296
300
|
|
297
301
|
# Get all schemas
|
298
|
-
# Returns all object schemas that have been defined for
|
302
|
+
# Returns all object schemas that have been defined for your account.
|
299
303
|
# @param [Hash] opts the optional parameters
|
300
|
-
# @
|
304
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
305
|
+
# @return [Array<(CollectionResponseObjectSchemaNoPaging, Integer, Hash)>] CollectionResponseObjectSchemaNoPaging data, response status code and response headers
|
301
306
|
def get_all_with_http_info(opts = {})
|
302
307
|
if @api_client.config.debugging
|
303
308
|
@api_client.config.logger.debug 'Calling API: CoreApi.get_all ...'
|
@@ -307,6 +312,7 @@ module Hubspot
|
|
307
312
|
|
308
313
|
# query parameters
|
309
314
|
query_params = opts[:query_params] || {}
|
315
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
310
316
|
|
311
317
|
# header parameters
|
312
318
|
header_params = opts[:header_params] || {}
|
@@ -320,7 +326,7 @@ module Hubspot
|
|
320
326
|
post_body = opts[:body]
|
321
327
|
|
322
328
|
# return_type
|
323
|
-
return_type = opts[:return_type] || '
|
329
|
+
return_type = opts[:return_type] || 'CollectionResponseObjectSchemaNoPaging'
|
324
330
|
|
325
331
|
# auth_names
|
326
332
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
@@ -343,7 +349,7 @@ module Hubspot
|
|
343
349
|
|
344
350
|
# Get an existing schema
|
345
351
|
# Returns an existing object schema.
|
346
|
-
# @param object_type [String] Fully qualified name or object type ID of
|
352
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
347
353
|
# @param [Hash] opts the optional parameters
|
348
354
|
# @return [ObjectSchema]
|
349
355
|
def get_by_id(object_type, opts = {})
|
@@ -353,7 +359,7 @@ module Hubspot
|
|
353
359
|
|
354
360
|
# Get an existing schema
|
355
361
|
# Returns an existing object schema.
|
356
|
-
# @param object_type [String] Fully qualified name or object type ID of
|
362
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
357
363
|
# @param [Hash] opts the optional parameters
|
358
364
|
# @return [Array<(ObjectSchema, Integer, Hash)>] ObjectSchema data, response status code and response headers
|
359
365
|
def get_by_id_with_http_info(object_type, opts = {})
|
@@ -405,8 +411,8 @@ module Hubspot
|
|
405
411
|
|
406
412
|
# Update a schema
|
407
413
|
# Update the details for an existing object schema.
|
408
|
-
# @param object_type [String] Fully qualified name or object type ID
|
409
|
-
# @param object_type_definition_patch [ObjectTypeDefinitionPatch] Attributes to update in
|
414
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
415
|
+
# @param object_type_definition_patch [ObjectTypeDefinitionPatch] Attributes to update in your schema.
|
410
416
|
# @param [Hash] opts the optional parameters
|
411
417
|
# @return [ObjectTypeDefinition]
|
412
418
|
def update(object_type, object_type_definition_patch, opts = {})
|
@@ -416,8 +422,8 @@ module Hubspot
|
|
416
422
|
|
417
423
|
# Update a schema
|
418
424
|
# Update the details for an existing object schema.
|
419
|
-
# @param object_type [String] Fully qualified name or object type ID
|
420
|
-
# @param object_type_definition_patch [ObjectTypeDefinitionPatch] Attributes to update in
|
425
|
+
# @param object_type [String] Fully qualified name or object type ID of your schema.
|
426
|
+
# @param object_type_definition_patch [ObjectTypeDefinitionPatch] Attributes to update in your schema.
|
421
427
|
# @param [Hash] opts the optional parameters
|
422
428
|
# @return [Array<(ObjectTypeDefinition, Integer, Hash)>] ObjectTypeDefinition data, response status code and response headers
|
423
429
|
def update_with_http_info(object_type, object_type_definition_patch, opts = {})
|
@@ -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
|
@@ -25,10 +25,6 @@ module Hubspot
|
|
25
25
|
# A unique name for this association.
|
26
26
|
attr_accessor :name
|
27
27
|
|
28
|
-
attr_accessor :cardinality
|
29
|
-
|
30
|
-
attr_accessor :inverse_cardinality
|
31
|
-
|
32
28
|
# A unique ID for this association.
|
33
29
|
attr_accessor :id
|
34
30
|
|
@@ -38,36 +34,12 @@ module Hubspot
|
|
38
34
|
# When the association was last updated.
|
39
35
|
attr_accessor :updated_at
|
40
36
|
|
41
|
-
class EnumAttributeValidator
|
42
|
-
attr_reader :datatype
|
43
|
-
attr_reader :allowable_values
|
44
|
-
|
45
|
-
def initialize(datatype, allowable_values)
|
46
|
-
@allowable_values = allowable_values.map do |value|
|
47
|
-
case datatype.to_s
|
48
|
-
when /Integer/i
|
49
|
-
value.to_i
|
50
|
-
when /Float/i
|
51
|
-
value.to_f
|
52
|
-
else
|
53
|
-
value
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
def valid?(value)
|
59
|
-
!value || allowable_values.include?(value)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
64
38
|
def self.attribute_map
|
65
39
|
{
|
66
40
|
:'from_object_type_id' => :'fromObjectTypeId',
|
67
41
|
:'to_object_type_id' => :'toObjectTypeId',
|
68
42
|
:'name' => :'name',
|
69
|
-
:'cardinality' => :'cardinality',
|
70
|
-
:'inverse_cardinality' => :'inverseCardinality',
|
71
43
|
:'id' => :'id',
|
72
44
|
:'created_at' => :'createdAt',
|
73
45
|
:'updated_at' => :'updatedAt'
|
@@ -80,8 +52,6 @@ module Hubspot
|
|
80
52
|
:'from_object_type_id' => :'String',
|
81
53
|
:'to_object_type_id' => :'String',
|
82
54
|
:'name' => :'String',
|
83
|
-
:'cardinality' => :'String',
|
84
|
-
:'inverse_cardinality' => :'String',
|
85
55
|
:'id' => :'String',
|
86
56
|
:'created_at' => :'DateTime',
|
87
57
|
:'updated_at' => :'DateTime'
|
@@ -121,14 +91,6 @@ module Hubspot
|
|
121
91
|
self.name = attributes[:'name']
|
122
92
|
end
|
123
93
|
|
124
|
-
if attributes.key?(:'cardinality')
|
125
|
-
self.cardinality = attributes[:'cardinality']
|
126
|
-
end
|
127
|
-
|
128
|
-
if attributes.key?(:'inverse_cardinality')
|
129
|
-
self.inverse_cardinality = attributes[:'inverse_cardinality']
|
130
|
-
end
|
131
|
-
|
132
94
|
if attributes.key?(:'id')
|
133
95
|
self.id = attributes[:'id']
|
134
96
|
end
|
@@ -154,14 +116,6 @@ module Hubspot
|
|
154
116
|
invalid_properties.push('invalid value for "to_object_type_id", to_object_type_id cannot be nil.')
|
155
117
|
end
|
156
118
|
|
157
|
-
if @cardinality.nil?
|
158
|
-
invalid_properties.push('invalid value for "cardinality", cardinality cannot be nil.')
|
159
|
-
end
|
160
|
-
|
161
|
-
if @inverse_cardinality.nil?
|
162
|
-
invalid_properties.push('invalid value for "inverse_cardinality", inverse_cardinality cannot be nil.')
|
163
|
-
end
|
164
|
-
|
165
119
|
if @id.nil?
|
166
120
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
167
121
|
end
|
@@ -174,36 +128,10 @@ module Hubspot
|
|
174
128
|
def valid?
|
175
129
|
return false if @from_object_type_id.nil?
|
176
130
|
return false if @to_object_type_id.nil?
|
177
|
-
return false if @cardinality.nil?
|
178
|
-
cardinality_validator = EnumAttributeValidator.new('String', ["ONE_TO_ONE", "ONE_TO_MANY"])
|
179
|
-
return false unless cardinality_validator.valid?(@cardinality)
|
180
|
-
return false if @inverse_cardinality.nil?
|
181
|
-
inverse_cardinality_validator = EnumAttributeValidator.new('String', ["ONE_TO_ONE", "ONE_TO_MANY"])
|
182
|
-
return false unless inverse_cardinality_validator.valid?(@inverse_cardinality)
|
183
131
|
return false if @id.nil?
|
184
132
|
true
|
185
133
|
end
|
186
134
|
|
187
|
-
# Custom attribute writer method checking allowed values (enum).
|
188
|
-
# @param [Object] cardinality Object to be assigned
|
189
|
-
def cardinality=(cardinality)
|
190
|
-
validator = EnumAttributeValidator.new('String', ["ONE_TO_ONE", "ONE_TO_MANY"])
|
191
|
-
unless validator.valid?(cardinality)
|
192
|
-
fail ArgumentError, "invalid value for \"cardinality\", must be one of #{validator.allowable_values}."
|
193
|
-
end
|
194
|
-
@cardinality = cardinality
|
195
|
-
end
|
196
|
-
|
197
|
-
# Custom attribute writer method checking allowed values (enum).
|
198
|
-
# @param [Object] inverse_cardinality Object to be assigned
|
199
|
-
def inverse_cardinality=(inverse_cardinality)
|
200
|
-
validator = EnumAttributeValidator.new('String', ["ONE_TO_ONE", "ONE_TO_MANY"])
|
201
|
-
unless validator.valid?(inverse_cardinality)
|
202
|
-
fail ArgumentError, "invalid value for \"inverse_cardinality\", must be one of #{validator.allowable_values}."
|
203
|
-
end
|
204
|
-
@inverse_cardinality = inverse_cardinality
|
205
|
-
end
|
206
|
-
|
207
135
|
# Checks equality by comparing each attribute.
|
208
136
|
# @param [Object] Object to be compared
|
209
137
|
def ==(o)
|
@@ -212,8 +140,6 @@ module Hubspot
|
|
212
140
|
from_object_type_id == o.from_object_type_id &&
|
213
141
|
to_object_type_id == o.to_object_type_id &&
|
214
142
|
name == o.name &&
|
215
|
-
cardinality == o.cardinality &&
|
216
|
-
inverse_cardinality == o.inverse_cardinality &&
|
217
143
|
id == o.id &&
|
218
144
|
created_at == o.created_at &&
|
219
145
|
updated_at == o.updated_at
|
@@ -228,7 +154,7 @@ module Hubspot
|
|
228
154
|
# Calculates hash code according to all attributes.
|
229
155
|
# @return [Integer] Hash code
|
230
156
|
def hash
|
231
|
-
[from_object_type_id, to_object_type_id, name,
|
157
|
+
[from_object_type_id, to_object_type_id, name, id, created_at, updated_at].hash
|
232
158
|
end
|
233
159
|
|
234
160
|
# Builds the object from hash
|
@@ -25,40 +25,12 @@ module Hubspot
|
|
25
25
|
# A unique name for this association.
|
26
26
|
attr_accessor :name
|
27
27
|
|
28
|
-
attr_accessor :cardinality
|
29
|
-
|
30
|
-
attr_accessor :inverse_cardinality
|
31
|
-
|
32
|
-
class EnumAttributeValidator
|
33
|
-
attr_reader :datatype
|
34
|
-
attr_reader :allowable_values
|
35
|
-
|
36
|
-
def initialize(datatype, allowable_values)
|
37
|
-
@allowable_values = allowable_values.map do |value|
|
38
|
-
case datatype.to_s
|
39
|
-
when /Integer/i
|
40
|
-
value.to_i
|
41
|
-
when /Float/i
|
42
|
-
value.to_f
|
43
|
-
else
|
44
|
-
value
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
def valid?(value)
|
50
|
-
!value || allowable_values.include?(value)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
29
|
def self.attribute_map
|
56
30
|
{
|
57
31
|
:'from_object_type_id' => :'fromObjectTypeId',
|
58
32
|
:'to_object_type_id' => :'toObjectTypeId',
|
59
|
-
:'name' => :'name'
|
60
|
-
:'cardinality' => :'cardinality',
|
61
|
-
:'inverse_cardinality' => :'inverseCardinality'
|
33
|
+
:'name' => :'name'
|
62
34
|
}
|
63
35
|
end
|
64
36
|
|
@@ -67,9 +39,7 @@ module Hubspot
|
|
67
39
|
{
|
68
40
|
:'from_object_type_id' => :'String',
|
69
41
|
:'to_object_type_id' => :'String',
|
70
|
-
:'name' => :'String'
|
71
|
-
:'cardinality' => :'String',
|
72
|
-
:'inverse_cardinality' => :'String'
|
42
|
+
:'name' => :'String'
|
73
43
|
}
|
74
44
|
end
|
75
45
|
|
@@ -105,14 +75,6 @@ module Hubspot
|
|
105
75
|
if attributes.key?(:'name')
|
106
76
|
self.name = attributes[:'name']
|
107
77
|
end
|
108
|
-
|
109
|
-
if attributes.key?(:'cardinality')
|
110
|
-
self.cardinality = attributes[:'cardinality']
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.key?(:'inverse_cardinality')
|
114
|
-
self.inverse_cardinality = attributes[:'inverse_cardinality']
|
115
|
-
end
|
116
78
|
end
|
117
79
|
|
118
80
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -127,14 +89,6 @@ module Hubspot
|
|
127
89
|
invalid_properties.push('invalid value for "to_object_type_id", to_object_type_id cannot be nil.')
|
128
90
|
end
|
129
91
|
|
130
|
-
if @cardinality.nil?
|
131
|
-
invalid_properties.push('invalid value for "cardinality", cardinality cannot be nil.')
|
132
|
-
end
|
133
|
-
|
134
|
-
if @inverse_cardinality.nil?
|
135
|
-
invalid_properties.push('invalid value for "inverse_cardinality", inverse_cardinality cannot be nil.')
|
136
|
-
end
|
137
|
-
|
138
92
|
invalid_properties
|
139
93
|
end
|
140
94
|
|
@@ -143,35 +97,9 @@ module Hubspot
|
|
143
97
|
def valid?
|
144
98
|
return false if @from_object_type_id.nil?
|
145
99
|
return false if @to_object_type_id.nil?
|
146
|
-
return false if @cardinality.nil?
|
147
|
-
cardinality_validator = EnumAttributeValidator.new('String', ["ONE_TO_ONE", "ONE_TO_MANY"])
|
148
|
-
return false unless cardinality_validator.valid?(@cardinality)
|
149
|
-
return false if @inverse_cardinality.nil?
|
150
|
-
inverse_cardinality_validator = EnumAttributeValidator.new('String', ["ONE_TO_ONE", "ONE_TO_MANY"])
|
151
|
-
return false unless inverse_cardinality_validator.valid?(@inverse_cardinality)
|
152
100
|
true
|
153
101
|
end
|
154
102
|
|
155
|
-
# Custom attribute writer method checking allowed values (enum).
|
156
|
-
# @param [Object] cardinality Object to be assigned
|
157
|
-
def cardinality=(cardinality)
|
158
|
-
validator = EnumAttributeValidator.new('String', ["ONE_TO_ONE", "ONE_TO_MANY"])
|
159
|
-
unless validator.valid?(cardinality)
|
160
|
-
fail ArgumentError, "invalid value for \"cardinality\", must be one of #{validator.allowable_values}."
|
161
|
-
end
|
162
|
-
@cardinality = cardinality
|
163
|
-
end
|
164
|
-
|
165
|
-
# Custom attribute writer method checking allowed values (enum).
|
166
|
-
# @param [Object] inverse_cardinality Object to be assigned
|
167
|
-
def inverse_cardinality=(inverse_cardinality)
|
168
|
-
validator = EnumAttributeValidator.new('String', ["ONE_TO_ONE", "ONE_TO_MANY"])
|
169
|
-
unless validator.valid?(inverse_cardinality)
|
170
|
-
fail ArgumentError, "invalid value for \"inverse_cardinality\", must be one of #{validator.allowable_values}."
|
171
|
-
end
|
172
|
-
@inverse_cardinality = inverse_cardinality
|
173
|
-
end
|
174
|
-
|
175
103
|
# Checks equality by comparing each attribute.
|
176
104
|
# @param [Object] Object to be compared
|
177
105
|
def ==(o)
|
@@ -179,9 +107,7 @@ module Hubspot
|
|
179
107
|
self.class == o.class &&
|
180
108
|
from_object_type_id == o.from_object_type_id &&
|
181
109
|
to_object_type_id == o.to_object_type_id &&
|
182
|
-
name == o.name
|
183
|
-
cardinality == o.cardinality &&
|
184
|
-
inverse_cardinality == o.inverse_cardinality
|
110
|
+
name == o.name
|
185
111
|
end
|
186
112
|
|
187
113
|
# @see the `==` method
|
@@ -193,7 +119,7 @@ module Hubspot
|
|
193
119
|
# Calculates hash code according to all attributes.
|
194
120
|
# @return [Integer] Hash code
|
195
121
|
def hash
|
196
|
-
[from_object_type_id, to_object_type_id, name
|
122
|
+
[from_object_type_id, to_object_type_id, name].hash
|
197
123
|
end
|
198
124
|
|
199
125
|
# Builds the object from hash
|
@@ -15,24 +15,20 @@ require 'date'
|
|
15
15
|
module Hubspot
|
16
16
|
module Crm
|
17
17
|
module Schemas
|
18
|
-
class
|
18
|
+
class CollectionResponseObjectSchemaNoPaging
|
19
19
|
attr_accessor :results
|
20
20
|
|
21
|
-
attr_accessor :paging
|
22
|
-
|
23
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
22
|
def self.attribute_map
|
25
23
|
{
|
26
|
-
:'results' => :'results'
|
27
|
-
:'paging' => :'paging'
|
24
|
+
:'results' => :'results'
|
28
25
|
}
|
29
26
|
end
|
30
27
|
|
31
28
|
# Attribute type mapping.
|
32
29
|
def self.openapi_types
|
33
30
|
{
|
34
|
-
:'results' => :'Array<ObjectSchema>'
|
35
|
-
:'paging' => :'Paging'
|
31
|
+
:'results' => :'Array<ObjectSchema>'
|
36
32
|
}
|
37
33
|
end
|
38
34
|
|
@@ -46,13 +42,13 @@ module Hubspot
|
|
46
42
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
43
|
def initialize(attributes = {})
|
48
44
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Schemas::
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Schemas::CollectionResponseObjectSchemaNoPaging` initialize method"
|
50
46
|
end
|
51
47
|
|
52
48
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
49
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
50
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Schemas::
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Schemas::CollectionResponseObjectSchemaNoPaging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
52
|
end
|
57
53
|
h[k.to_sym] = v
|
58
54
|
}
|
@@ -62,10 +58,6 @@ module Hubspot
|
|
62
58
|
self.results = value
|
63
59
|
end
|
64
60
|
end
|
65
|
-
|
66
|
-
if attributes.key?(:'paging')
|
67
|
-
self.paging = attributes[:'paging']
|
68
|
-
end
|
69
61
|
end
|
70
62
|
|
71
63
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -91,8 +83,7 @@ module Hubspot
|
|
91
83
|
def ==(o)
|
92
84
|
return true if self.equal?(o)
|
93
85
|
self.class == o.class &&
|
94
|
-
results == o.results
|
95
|
-
paging == o.paging
|
86
|
+
results == o.results
|
96
87
|
end
|
97
88
|
|
98
89
|
# @see the `==` method
|
@@ -104,7 +95,7 @@ module Hubspot
|
|
104
95
|
# Calculates hash code according to all attributes.
|
105
96
|
# @return [Integer] Hash code
|
106
97
|
def hash
|
107
|
-
[results
|
98
|
+
[results].hash
|
108
99
|
end
|
109
100
|
|
110
101
|
# Builds the object from hash
|