hubspot-api-client 7.1.1 → 9.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 +22 -0
- data/README.md +41 -0
- data/lib/hubspot-api-client.rb +99 -1
- data/lib/hubspot/codegen/cms/audit-logs/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/audit-logs/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/collection_response_public_audit_log.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/paging.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/public_audit_log.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/domains/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/collection_response_with_total_domain.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/domain.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/domain_cdn_config.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/domain_setup_info.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api/default_api.rb +1956 -0
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +424 -0
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +258 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3.rb +217 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +217 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +217 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +333 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +388 -0
- data/lib/hubspot/codegen/cms/hubdb/models/column_input.rb +288 -0
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +292 -0
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +243 -0
- data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +241 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +291 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_input.rb +243 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +383 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_input.rb +295 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +241 -0
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +263 -0
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +257 -0
- data/lib/hubspot/codegen/cms/hubdb/models/paging.rb +219 -0
- data/lib/hubspot/codegen/cms/hubdb/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +257 -0
- data/lib/hubspot/codegen/cms/performance/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/performance/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/models/performance_view.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/models/public_performance_response.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/site-search/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/public_search_results.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +3 -5
- data/lib/hubspot/codegen/cms/url-redirects/api/redirects_api.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/url-redirects/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/collection_response_with_total_url_mapping.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/paging.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/associations/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/companies/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/companies/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/contacts/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/deals/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/deals/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +4 -2
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
- data/lib/hubspot/codegen/crm/imports/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/imports/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/action_response.rb +16 -5
- data/lib/hubspot/codegen/crm/imports/models/collection_response_public_import_response.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/imports/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/imports/models/public_import_metadata.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +37 -28
- data/lib/hubspot/codegen/crm/imports/models/public_object_list_record.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/line_items/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +278 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +405 -0
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +309 -0
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +96 -0
- data/lib/hubspot/codegen/crm/objects/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/objects/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/objects/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +313 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/owners/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/products/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/products/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/products/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/properties/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/option.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +10 -1
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +7 -1
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +1 -8
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/quotes/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +478 -0
- data/lib/hubspot/codegen/crm/schemas/api/default_api.rb +84 -0
- data/lib/hubspot/codegen/crm/schemas/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/schemas/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/schemas/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +350 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +315 -0
- data/lib/hubspot/codegen/crm/schemas/models/collection_response_object_schema.rb +226 -0
- data/lib/hubspot/codegen/crm/schemas/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/schemas/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/schemas/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +389 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_schema_egg.rb +325 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +364 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_labels.rb +221 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_patch.rb +265 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +356 -0
- data/lib/hubspot/codegen/crm/schemas/models/option.rb +266 -0
- data/lib/hubspot/codegen/crm/schemas/models/option_input.rb +271 -0
- data/lib/hubspot/codegen/crm/schemas/models/paging.rb +219 -0
- data/lib/hubspot/codegen/crm/schemas/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/schemas/models/property.rb +465 -0
- data/lib/hubspot/codegen/crm/schemas/models/property_modification_metadata.rb +252 -0
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/tickets/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +27 -19
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +31 -23
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +25 -17
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +9 -7
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +3 -3
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +32 -43
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +15 -6
- data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +21 -21
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +30 -30
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +56 -56
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +21 -21
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +48 -48
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +21 -21
- data/lib/hubspot/codegen/oauth/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/oauth/api_client.rb +4 -2
- data/lib/hubspot/codegen/oauth/api_error.rb +1 -1
- data/lib/hubspot/codegen/oauth/configuration.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +18 -2
- data/lib/hubspot/codegen/oauth/models/error.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/token_response_if.rb +20 -20
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +1 -1
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +1 -1
- data/lib/hubspot/codegen/webhooks/api_client.rb +4 -2
- data/lib/hubspot/codegen/webhooks/api_error.rb +1 -1
- data/lib/hubspot/codegen/webhooks/configuration.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/batch_input_subscription_batch_update_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response_with_errors.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/error.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_batch_update_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +1 -1
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/timeline-events-app/.env.template +5 -0
- data/sample-apps/timeline-events-app/.gitignore +35 -0
- data/sample-apps/timeline-events-app/.rspec +1 -0
- data/sample-apps/timeline-events-app/.ruby-version +1 -0
- data/sample-apps/timeline-events-app/Dockerfile +22 -0
- data/sample-apps/timeline-events-app/Gemfile +33 -0
- data/sample-apps/timeline-events-app/Gemfile.lock +271 -0
- data/sample-apps/timeline-events-app/README.md +30 -0
- data/sample-apps/timeline-events-app/Rakefile +6 -0
- data/sample-apps/timeline-events-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/timeline-events-app/app/assets/images/.keep +0 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/timeline-events-app/app/assets/stylesheets/application.css +171 -0
- data/sample-apps/timeline-events-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/timeline-events-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/timeline-events-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/timeline-events-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/timeline-events-app/app/controllers/timeline_events_controller.rb +37 -0
- data/sample-apps/timeline-events-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/contacts/search.rb +37 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/timeline/create_event.rb +20 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/timeline/create_template.rb +39 -0
- data/sample-apps/timeline-events-app/app/models/application_record.rb +3 -0
- data/sample-apps/timeline-events-app/app/models/concerns/.keep +0 -0
- data/sample-apps/timeline-events-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/timeline-events-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/timeline-events-app/app/views/shared/_header.html.erb +12 -0
- data/sample-apps/timeline-events-app/app/views/timeline_events/index.html.erb +53 -0
- data/sample-apps/timeline-events-app/bin/bundle +3 -0
- data/sample-apps/timeline-events-app/bin/rails +9 -0
- data/sample-apps/timeline-events-app/bin/rake +9 -0
- data/sample-apps/timeline-events-app/bin/setup +36 -0
- data/sample-apps/timeline-events-app/bin/spring +17 -0
- data/sample-apps/timeline-events-app/bin/update +31 -0
- data/sample-apps/timeline-events-app/bin/yarn +11 -0
- data/sample-apps/timeline-events-app/config.ru +5 -0
- data/sample-apps/timeline-events-app/config/application.rb +19 -0
- data/sample-apps/timeline-events-app/config/boot.rb +3 -0
- data/sample-apps/timeline-events-app/config/database.yml +25 -0
- data/sample-apps/timeline-events-app/config/environment.rb +5 -0
- data/sample-apps/timeline-events-app/config/environments/development.rb +61 -0
- data/sample-apps/timeline-events-app/config/environments/production.rb +94 -0
- data/sample-apps/timeline-events-app/config/environments/test.rb +46 -0
- data/sample-apps/timeline-events-app/config/initializers/assets.rb +14 -0
- data/sample-apps/timeline-events-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/timeline-events-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/timeline-events-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/timeline-events-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/timeline-events-app/config/locales/en.yml +33 -0
- data/sample-apps/timeline-events-app/config/puma.rb +34 -0
- data/sample-apps/timeline-events-app/config/routes.rb +7 -0
- data/sample-apps/timeline-events-app/config/spring.rb +6 -0
- data/sample-apps/timeline-events-app/db/seeds.rb +7 -0
- data/sample-apps/timeline-events-app/docker-compose.yml +11 -0
- data/sample-apps/timeline-events-app/docker-entrypoint.sh +8 -0
- data/sample-apps/timeline-events-app/lib/assets/.keep +0 -0
- data/sample-apps/timeline-events-app/lib/tasks/.keep +0 -0
- data/sample-apps/timeline-events-app/log/.keep +0 -0
- data/sample-apps/timeline-events-app/package.json +5 -0
- data/sample-apps/timeline-events-app/public/404.html +67 -0
- data/sample-apps/timeline-events-app/public/422.html +67 -0
- data/sample-apps/timeline-events-app/public/500.html +66 -0
- data/sample-apps/timeline-events-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/timeline-events-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/timeline-events-app/public/favicon.ico +0 -0
- data/sample-apps/timeline-events-app/public/robots.txt +1 -0
- data/sample-apps/timeline-events-app/spec/rails_helper.rb +42 -0
- data/sample-apps/timeline-events-app/spec/spec_helper.rb +11 -0
- data/sample-apps/timeline-events-app/tmp/.keep +0 -0
- metadata +247 -3
- data/lib/hubspot/codegen/crm/quotes/api/default_api.rb +0 -426
@@ -0,0 +1,257 @@
|
|
1
|
+
=begin
|
2
|
+
#HubDB endpoints
|
3
|
+
|
4
|
+
#HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables now support `DRAFT` and `PUBLISHED` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the live version of the data without disrupting it.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Cms
|
17
|
+
module Hubdb
|
18
|
+
class Option
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
attr_accessor :name
|
22
|
+
|
23
|
+
attr_accessor :type
|
24
|
+
|
25
|
+
attr_accessor :order
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'id' => :'id',
|
31
|
+
:'name' => :'name',
|
32
|
+
:'type' => :'type',
|
33
|
+
:'order' => :'order'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'id' => :'String',
|
41
|
+
:'name' => :'String',
|
42
|
+
:'type' => :'String',
|
43
|
+
:'order' => :'Integer'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Cms::Hubdb::Option` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Cms::Hubdb::Option`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'id')
|
69
|
+
self.id = attributes[:'id']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'name')
|
73
|
+
self.name = attributes[:'name']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'type')
|
77
|
+
self.type = attributes[:'type']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'order')
|
81
|
+
self.order = attributes[:'order']
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
86
|
+
# @return Array for valid properties with the reasons
|
87
|
+
def list_invalid_properties
|
88
|
+
invalid_properties = Array.new
|
89
|
+
if @id.nil?
|
90
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @name.nil?
|
94
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if @type.nil?
|
98
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if @order.nil?
|
102
|
+
invalid_properties.push('invalid value for "order", order cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
invalid_properties
|
106
|
+
end
|
107
|
+
|
108
|
+
# Check to see if the all the properties in the model are valid
|
109
|
+
# @return true if the model is valid
|
110
|
+
def valid?
|
111
|
+
return false if @id.nil?
|
112
|
+
return false if @name.nil?
|
113
|
+
return false if @type.nil?
|
114
|
+
return false if @order.nil?
|
115
|
+
true
|
116
|
+
end
|
117
|
+
|
118
|
+
# Checks equality by comparing each attribute.
|
119
|
+
# @param [Object] Object to be compared
|
120
|
+
def ==(o)
|
121
|
+
return true if self.equal?(o)
|
122
|
+
self.class == o.class &&
|
123
|
+
id == o.id &&
|
124
|
+
name == o.name &&
|
125
|
+
type == o.type &&
|
126
|
+
order == o.order
|
127
|
+
end
|
128
|
+
|
129
|
+
# @see the `==` method
|
130
|
+
# @param [Object] Object to be compared
|
131
|
+
def eql?(o)
|
132
|
+
self == o
|
133
|
+
end
|
134
|
+
|
135
|
+
# Calculates hash code according to all attributes.
|
136
|
+
# @return [Integer] Hash code
|
137
|
+
def hash
|
138
|
+
[id, name, type, order].hash
|
139
|
+
end
|
140
|
+
|
141
|
+
# Builds the object from hash
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
+
# @return [Object] Returns the model itself
|
144
|
+
def self.build_from_hash(attributes)
|
145
|
+
new.build_from_hash(attributes)
|
146
|
+
end
|
147
|
+
|
148
|
+
# Builds the object from hash
|
149
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
150
|
+
# @return [Object] Returns the model itself
|
151
|
+
def build_from_hash(attributes)
|
152
|
+
return nil unless attributes.is_a?(Hash)
|
153
|
+
self.class.openapi_types.each_pair do |key, type|
|
154
|
+
if type =~ /\AArray<(.*)>/i
|
155
|
+
# check to ensure the input is an array given that the attribute
|
156
|
+
# is documented as an array but the input is not
|
157
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
158
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
159
|
+
end
|
160
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
161
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
162
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
163
|
+
end
|
164
|
+
|
165
|
+
self
|
166
|
+
end
|
167
|
+
|
168
|
+
# Deserializes the data based on type
|
169
|
+
# @param string type Data type
|
170
|
+
# @param string value Value to be deserialized
|
171
|
+
# @return [Object] Deserialized data
|
172
|
+
def _deserialize(type, value)
|
173
|
+
case type.to_sym
|
174
|
+
when :DateTime
|
175
|
+
DateTime.parse(value)
|
176
|
+
when :Date
|
177
|
+
Date.parse(value)
|
178
|
+
when :String
|
179
|
+
value.to_s
|
180
|
+
when :Integer
|
181
|
+
value.to_i
|
182
|
+
when :Float
|
183
|
+
value.to_f
|
184
|
+
when :Boolean
|
185
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
186
|
+
true
|
187
|
+
else
|
188
|
+
false
|
189
|
+
end
|
190
|
+
when :Object
|
191
|
+
# generic object (usually a Hash), return directly
|
192
|
+
value
|
193
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
194
|
+
inner_type = Regexp.last_match[:inner_type]
|
195
|
+
value.map { |v| _deserialize(inner_type, v) }
|
196
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
197
|
+
k_type = Regexp.last_match[:k_type]
|
198
|
+
v_type = Regexp.last_match[:v_type]
|
199
|
+
{}.tap do |hash|
|
200
|
+
value.each do |k, v|
|
201
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
else # model
|
205
|
+
Hubspot::Cms::Hubdb.const_get(type).build_from_hash(value)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
# Returns the string representation of the object
|
210
|
+
# @return [String] String presentation of the object
|
211
|
+
def to_s
|
212
|
+
to_hash.to_s
|
213
|
+
end
|
214
|
+
|
215
|
+
# to_body is an alias to to_hash (backward compatibility)
|
216
|
+
# @return [Hash] Returns the object in the form of hash
|
217
|
+
def to_body
|
218
|
+
to_hash
|
219
|
+
end
|
220
|
+
|
221
|
+
# Returns the object in the form of hash
|
222
|
+
# @return [Hash] Returns the object in the form of hash
|
223
|
+
def to_hash
|
224
|
+
hash = {}
|
225
|
+
self.class.attribute_map.each_pair do |attr, param|
|
226
|
+
value = self.send(attr)
|
227
|
+
if value.nil?
|
228
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
229
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
230
|
+
end
|
231
|
+
|
232
|
+
hash[param] = _to_hash(value)
|
233
|
+
end
|
234
|
+
hash
|
235
|
+
end
|
236
|
+
|
237
|
+
# Outputs non-array value in the form of hash
|
238
|
+
# For object, use to_hash. Otherwise, just return the value
|
239
|
+
# @param [Object] value Any valid value
|
240
|
+
# @return [Hash] Returns the value in the form of hash
|
241
|
+
def _to_hash(value)
|
242
|
+
if value.is_a?(Array)
|
243
|
+
value.compact.map { |v| _to_hash(v) }
|
244
|
+
elsif value.is_a?(Hash)
|
245
|
+
{}.tap do |hash|
|
246
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
247
|
+
end
|
248
|
+
elsif value.respond_to? :to_hash
|
249
|
+
value.to_hash
|
250
|
+
else
|
251
|
+
value
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
@@ -0,0 +1,219 @@
|
|
1
|
+
=begin
|
2
|
+
#HubDB endpoints
|
3
|
+
|
4
|
+
#HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables now support `DRAFT` and `PUBLISHED` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the live version of the data without disrupting it.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Cms
|
17
|
+
module Hubdb
|
18
|
+
class Paging
|
19
|
+
attr_accessor :_next
|
20
|
+
|
21
|
+
attr_accessor :prev
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'_next' => :'next',
|
27
|
+
:'prev' => :'prev'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.openapi_types
|
33
|
+
{
|
34
|
+
:'_next' => :'NextPage',
|
35
|
+
:'prev' => :'PreviousPage'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Cms::Hubdb::Paging` initialize method"
|
50
|
+
end
|
51
|
+
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Cms::Hubdb::Paging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
59
|
+
|
60
|
+
if attributes.key?(:'_next')
|
61
|
+
self._next = attributes[:'_next']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.key?(:'prev')
|
65
|
+
self.prev = attributes[:'prev']
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
70
|
+
# @return Array for valid properties with the reasons
|
71
|
+
def list_invalid_properties
|
72
|
+
invalid_properties = Array.new
|
73
|
+
invalid_properties
|
74
|
+
end
|
75
|
+
|
76
|
+
# Check to see if the all the properties in the model are valid
|
77
|
+
# @return true if the model is valid
|
78
|
+
def valid?
|
79
|
+
true
|
80
|
+
end
|
81
|
+
|
82
|
+
# Checks equality by comparing each attribute.
|
83
|
+
# @param [Object] Object to be compared
|
84
|
+
def ==(o)
|
85
|
+
return true if self.equal?(o)
|
86
|
+
self.class == o.class &&
|
87
|
+
_next == o._next &&
|
88
|
+
prev == o.prev
|
89
|
+
end
|
90
|
+
|
91
|
+
# @see the `==` method
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def eql?(o)
|
94
|
+
self == o
|
95
|
+
end
|
96
|
+
|
97
|
+
# Calculates hash code according to all attributes.
|
98
|
+
# @return [Integer] Hash code
|
99
|
+
def hash
|
100
|
+
[_next, prev].hash
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def self.build_from_hash(attributes)
|
107
|
+
new.build_from_hash(attributes)
|
108
|
+
end
|
109
|
+
|
110
|
+
# Builds the object from hash
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
+
# @return [Object] Returns the model itself
|
113
|
+
def build_from_hash(attributes)
|
114
|
+
return nil unless attributes.is_a?(Hash)
|
115
|
+
self.class.openapi_types.each_pair do |key, type|
|
116
|
+
if type =~ /\AArray<(.*)>/i
|
117
|
+
# check to ensure the input is an array given that the attribute
|
118
|
+
# is documented as an array but the input is not
|
119
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
120
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
121
|
+
end
|
122
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
124
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
125
|
+
end
|
126
|
+
|
127
|
+
self
|
128
|
+
end
|
129
|
+
|
130
|
+
# Deserializes the data based on type
|
131
|
+
# @param string type Data type
|
132
|
+
# @param string value Value to be deserialized
|
133
|
+
# @return [Object] Deserialized data
|
134
|
+
def _deserialize(type, value)
|
135
|
+
case type.to_sym
|
136
|
+
when :DateTime
|
137
|
+
DateTime.parse(value)
|
138
|
+
when :Date
|
139
|
+
Date.parse(value)
|
140
|
+
when :String
|
141
|
+
value.to_s
|
142
|
+
when :Integer
|
143
|
+
value.to_i
|
144
|
+
when :Float
|
145
|
+
value.to_f
|
146
|
+
when :Boolean
|
147
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
148
|
+
true
|
149
|
+
else
|
150
|
+
false
|
151
|
+
end
|
152
|
+
when :Object
|
153
|
+
# generic object (usually a Hash), return directly
|
154
|
+
value
|
155
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
156
|
+
inner_type = Regexp.last_match[:inner_type]
|
157
|
+
value.map { |v| _deserialize(inner_type, v) }
|
158
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
159
|
+
k_type = Regexp.last_match[:k_type]
|
160
|
+
v_type = Regexp.last_match[:v_type]
|
161
|
+
{}.tap do |hash|
|
162
|
+
value.each do |k, v|
|
163
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
else # model
|
167
|
+
Hubspot::Cms::Hubdb.const_get(type).build_from_hash(value)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the string representation of the object
|
172
|
+
# @return [String] String presentation of the object
|
173
|
+
def to_s
|
174
|
+
to_hash.to_s
|
175
|
+
end
|
176
|
+
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_body
|
180
|
+
to_hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the object in the form of hash
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
if value.nil?
|
190
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
191
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
192
|
+
end
|
193
|
+
|
194
|
+
hash[param] = _to_hash(value)
|
195
|
+
end
|
196
|
+
hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|