hubspot-api-client 2.3.2 → 3.0.0.pre.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +2 -31
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +22 -22
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +8 -8
- data/lib/hubspot/codegen/crm/associations/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/api_error.rb +2 -2
- 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 +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/companies/api_error.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +2 -2
- 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/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +2 -2
- 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 +4 -4
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +2 -2
- 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/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/deals/api_error.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +2 -2
- 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/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +4 -4
- 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 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +0 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -2
- 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 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -2
- 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 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +279 -0
- data/lib/hubspot/codegen/crm/imports/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/imports/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/imports/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/{timeline/models/divide_numbers.rb → imports/models/action_response.rb} +54 -48
- data/lib/hubspot/codegen/crm/{timeline/models/now.rb → imports/models/collection_response_public_import_response.rb} +25 -79
- data/lib/hubspot/codegen/crm/{timeline/models/date.rb → imports/models/error.rb} +82 -70
- data/lib/hubspot/codegen/crm/{timeline/models/add_numbers.rb → imports/models/error_detail.rb} +51 -73
- data/lib/hubspot/codegen/crm/{timeline/models/model_or.rb → imports/models/next_page.rb} +24 -80
- data/lib/hubspot/codegen/crm/{timeline/models/month.rb → imports/models/paging.rb} +15 -85
- data/lib/hubspot/codegen/crm/{timeline/models/pipeline_probability.rb → imports/models/public_import_metadata.rb} +48 -76
- data/lib/hubspot/codegen/crm/{timeline/models/contains.rb → imports/models/public_import_response.rb} +93 -57
- data/lib/hubspot/codegen/crm/{timeline/models/xor.rb → imports/models/public_object_list_record.rb} +31 -80
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +2 -2
- 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/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/owners/api_error.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +3 -3
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +3 -3
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +3 -3
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +2 -3
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +2 -2
- data/lib/hubspot/codegen/crm/products/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/products/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/products/configuration.rb +2 -2
- 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 +3 -3
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +2 -2
- 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/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +2 -2
- 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 +2 -2
- 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 +19 -19
- 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 +3 -3
- data/lib/hubspot/codegen/crm/properties/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/properties/models/option.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +2 -3
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +2 -2
- 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/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +2 -2
- 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 +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.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/tickets/api/associations_api.rb +25 -25
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +20 -20
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +2 -2
- 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/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/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 +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.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 +2 -2
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +34 -34
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +24 -24
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +1 -2
- data/lib/hubspot/codegen/oauth/api_client.rb +3 -3
- data/lib/hubspot/codegen/oauth/api_error.rb +2 -2
- data/lib/hubspot/codegen/oauth/configuration.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +2 -2
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +2 -2
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +25 -21
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +59 -55
- data/lib/hubspot/codegen/webhooks/api_client.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +0 -1
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +1 -1
- metadata +32 -211
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +0 -294
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/has_email_reply.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +0 -303
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +0 -303
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +0 -303
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +0 -294
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +0 -280
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM Imports
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
@@ -14,55 +14,25 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
|
-
module
|
|
18
|
-
class
|
|
19
|
-
attr_accessor :
|
|
17
|
+
module Imports
|
|
18
|
+
class CollectionResponsePublicImportResponse
|
|
19
|
+
attr_accessor :results
|
|
20
20
|
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
attr_accessor :inputs
|
|
24
|
-
|
|
25
|
-
attr_accessor :property_name
|
|
26
|
-
|
|
27
|
-
class EnumAttributeValidator
|
|
28
|
-
attr_reader :datatype
|
|
29
|
-
attr_reader :allowable_values
|
|
30
|
-
|
|
31
|
-
def initialize(datatype, allowable_values)
|
|
32
|
-
@allowable_values = allowable_values.map do |value|
|
|
33
|
-
case datatype.to_s
|
|
34
|
-
when /Integer/i
|
|
35
|
-
value.to_i
|
|
36
|
-
when /Float/i
|
|
37
|
-
value.to_f
|
|
38
|
-
else
|
|
39
|
-
value
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def valid?(value)
|
|
45
|
-
!value || allowable_values.include?(value)
|
|
46
|
-
end
|
|
47
|
-
end
|
|
21
|
+
attr_accessor :paging
|
|
48
22
|
|
|
49
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
24
|
def self.attribute_map
|
|
51
25
|
{
|
|
52
|
-
:'
|
|
53
|
-
:'
|
|
54
|
-
:'inputs' => :'inputs',
|
|
55
|
-
:'property_name' => :'propertyName'
|
|
26
|
+
:'results' => :'results',
|
|
27
|
+
:'paging' => :'paging'
|
|
56
28
|
}
|
|
57
29
|
end
|
|
58
30
|
|
|
59
31
|
# Attribute type mapping.
|
|
60
32
|
def self.openapi_types
|
|
61
33
|
{
|
|
62
|
-
:'
|
|
63
|
-
:'
|
|
64
|
-
:'inputs' => :'Array<AnyOfConstantBooleanConstantNumberConstantStringBooleanPropertyVariableStringPropertyVariableNumberPropertyVariableAddNumbersSubtractNumbersMultiplyNumbersDivideNumbersRoundDownNumbersRoundUpNumbersUpperCaseLowerCaseConcatStringsContainsBeginsWithNumberToStringParseNumberFetchExchangeRatePipelineProbabilityMaxNumbersMinNumbersLessThanLessThanOrEqualMoreThanMoreThanOrEqualNumberEqualsStringEqualsNotDateMonthYearNowTimeBetweenPeriodToMonthsAndOrXorIfStringIfNumberIfBooleanIsPresentHasEmailReplyHasPlainTextEmailReplyExtractMostRecentEmailReplyHtmlExtractMostRecentEmailReplyTextExtractMostRecentPlainTextEmailReply>',
|
|
65
|
-
:'property_name' => :'String'
|
|
34
|
+
:'results' => :'Array<PublicImportResponse>',
|
|
35
|
+
:'paging' => :'Paging'
|
|
66
36
|
}
|
|
67
37
|
end
|
|
68
38
|
|
|
@@ -76,35 +46,25 @@ module Hubspot
|
|
|
76
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
77
47
|
def initialize(attributes = {})
|
|
78
48
|
if (!attributes.is_a?(Hash))
|
|
79
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::
|
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Imports::CollectionResponsePublicImportResponse` initialize method"
|
|
80
50
|
end
|
|
81
51
|
|
|
82
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
83
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
84
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
85
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::
|
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Imports::CollectionResponsePublicImportResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
86
56
|
end
|
|
87
57
|
h[k.to_sym] = v
|
|
88
58
|
}
|
|
89
59
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
self.operator = 'NOW'
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
if attributes.key?(:'value')
|
|
97
|
-
self.value = attributes[:'value']
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
if attributes.key?(:'inputs')
|
|
101
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
102
|
-
self.inputs = value
|
|
60
|
+
if attributes.key?(:'results')
|
|
61
|
+
if (value = attributes[:'results']).is_a?(Array)
|
|
62
|
+
self.results = value
|
|
103
63
|
end
|
|
104
64
|
end
|
|
105
65
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
self.
|
|
66
|
+
if attributes.key?(:'paging')
|
|
67
|
+
self.paging = attributes[:'paging']
|
|
108
68
|
end
|
|
109
69
|
end
|
|
110
70
|
|
|
@@ -112,8 +72,8 @@ module Hubspot
|
|
|
112
72
|
# @return Array for valid properties with the reasons
|
|
113
73
|
def list_invalid_properties
|
|
114
74
|
invalid_properties = Array.new
|
|
115
|
-
if @
|
|
116
|
-
invalid_properties.push('invalid value for "
|
|
75
|
+
if @results.nil?
|
|
76
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
117
77
|
end
|
|
118
78
|
|
|
119
79
|
invalid_properties
|
|
@@ -122,31 +82,17 @@ module Hubspot
|
|
|
122
82
|
# Check to see if the all the properties in the model are valid
|
|
123
83
|
# @return true if the model is valid
|
|
124
84
|
def valid?
|
|
125
|
-
return false if @
|
|
126
|
-
operator_validator = EnumAttributeValidator.new('String', ["NOW"])
|
|
127
|
-
return false unless operator_validator.valid?(@operator)
|
|
85
|
+
return false if @results.nil?
|
|
128
86
|
true
|
|
129
87
|
end
|
|
130
88
|
|
|
131
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
132
|
-
# @param [Object] operator Object to be assigned
|
|
133
|
-
def operator=(operator)
|
|
134
|
-
validator = EnumAttributeValidator.new('String', ["NOW"])
|
|
135
|
-
unless validator.valid?(operator)
|
|
136
|
-
fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
|
|
137
|
-
end
|
|
138
|
-
@operator = operator
|
|
139
|
-
end
|
|
140
|
-
|
|
141
89
|
# Checks equality by comparing each attribute.
|
|
142
90
|
# @param [Object] Object to be compared
|
|
143
91
|
def ==(o)
|
|
144
92
|
return true if self.equal?(o)
|
|
145
93
|
self.class == o.class &&
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
inputs == o.inputs &&
|
|
149
|
-
property_name == o.property_name
|
|
94
|
+
results == o.results &&
|
|
95
|
+
paging == o.paging
|
|
150
96
|
end
|
|
151
97
|
|
|
152
98
|
# @see the `==` method
|
|
@@ -158,7 +104,7 @@ module Hubspot
|
|
|
158
104
|
# Calculates hash code according to all attributes.
|
|
159
105
|
# @return [Integer] Hash code
|
|
160
106
|
def hash
|
|
161
|
-
[
|
|
107
|
+
[results, paging].hash
|
|
162
108
|
end
|
|
163
109
|
|
|
164
110
|
# Builds the object from hash
|
|
@@ -225,7 +171,7 @@ module Hubspot
|
|
|
225
171
|
end
|
|
226
172
|
end
|
|
227
173
|
else # model
|
|
228
|
-
Hubspot::Crm::
|
|
174
|
+
Hubspot::Crm::Imports.const_get(type).build_from_hash(value)
|
|
229
175
|
end
|
|
230
176
|
end
|
|
231
177
|
|
|
@@ -277,4 +223,4 @@ module Hubspot
|
|
|
277
223
|
end
|
|
278
224
|
end
|
|
279
225
|
end
|
|
280
|
-
end
|
|
226
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM Imports
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
@@ -14,55 +14,52 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
|
-
module
|
|
18
|
-
class
|
|
19
|
-
|
|
17
|
+
module Imports
|
|
18
|
+
class Error
|
|
19
|
+
# A human readable message describing the error along with remediation steps where appropriate
|
|
20
|
+
attr_accessor :message
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
# A unique identifier for the request. Include this value with any error reports or support tickets
|
|
23
|
+
attr_accessor :correlation_id
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
# The error category
|
|
26
|
+
attr_accessor :category
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
# A specific category that contains more specific detail about the error
|
|
29
|
+
attr_accessor :sub_category
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
attr_reader :allowable_values
|
|
31
|
+
# further information about the error
|
|
32
|
+
attr_accessor :errors
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
case datatype.to_s
|
|
34
|
-
when /Integer/i
|
|
35
|
-
value.to_i
|
|
36
|
-
when /Float/i
|
|
37
|
-
value.to_f
|
|
38
|
-
else
|
|
39
|
-
value
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
34
|
+
# Context about the error condition
|
|
35
|
+
attr_accessor :context
|
|
43
36
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
end
|
|
47
|
-
end
|
|
37
|
+
# A map of link names to associated URIs containing documentation about the error or recommended remediation steps
|
|
38
|
+
attr_accessor :links
|
|
48
39
|
|
|
49
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
41
|
def self.attribute_map
|
|
51
42
|
{
|
|
52
|
-
:'
|
|
53
|
-
:'
|
|
54
|
-
:'
|
|
55
|
-
:'
|
|
43
|
+
:'message' => :'message',
|
|
44
|
+
:'correlation_id' => :'correlationId',
|
|
45
|
+
:'category' => :'category',
|
|
46
|
+
:'sub_category' => :'subCategory',
|
|
47
|
+
:'errors' => :'errors',
|
|
48
|
+
:'context' => :'context',
|
|
49
|
+
:'links' => :'links'
|
|
56
50
|
}
|
|
57
51
|
end
|
|
58
52
|
|
|
59
53
|
# Attribute type mapping.
|
|
60
54
|
def self.openapi_types
|
|
61
55
|
{
|
|
62
|
-
:'
|
|
63
|
-
:'
|
|
64
|
-
:'
|
|
65
|
-
:'
|
|
56
|
+
:'message' => :'String',
|
|
57
|
+
:'correlation_id' => :'String',
|
|
58
|
+
:'category' => :'String',
|
|
59
|
+
:'sub_category' => :'String',
|
|
60
|
+
:'errors' => :'Array<ErrorDetail>',
|
|
61
|
+
:'context' => :'Hash<String, Array<String>>',
|
|
62
|
+
:'links' => :'Hash<String, String>'
|
|
66
63
|
}
|
|
67
64
|
end
|
|
68
65
|
|
|
@@ -76,35 +73,49 @@ module Hubspot
|
|
|
76
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
77
74
|
def initialize(attributes = {})
|
|
78
75
|
if (!attributes.is_a?(Hash))
|
|
79
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::
|
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Imports::Error` initialize method"
|
|
80
77
|
end
|
|
81
78
|
|
|
82
79
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
83
80
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
84
81
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
85
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Imports::Error`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
86
83
|
end
|
|
87
84
|
h[k.to_sym] = v
|
|
88
85
|
}
|
|
89
86
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
92
|
-
else
|
|
93
|
-
self.operator = 'DATE'
|
|
87
|
+
if attributes.key?(:'message')
|
|
88
|
+
self.message = attributes[:'message']
|
|
94
89
|
end
|
|
95
90
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
91
|
+
if attributes.key?(:'correlation_id')
|
|
92
|
+
self.correlation_id = attributes[:'correlation_id']
|
|
98
93
|
end
|
|
99
94
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
if attributes.key?(:'category')
|
|
96
|
+
self.category = attributes[:'category']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'sub_category')
|
|
100
|
+
self.sub_category = attributes[:'sub_category']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'errors')
|
|
104
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
105
|
+
self.errors = value
|
|
103
106
|
end
|
|
104
107
|
end
|
|
105
108
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
|
|
109
|
+
if attributes.key?(:'context')
|
|
110
|
+
if (value = attributes[:'context']).is_a?(Hash)
|
|
111
|
+
self.context = value
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'links')
|
|
116
|
+
if (value = attributes[:'links']).is_a?(Hash)
|
|
117
|
+
self.links = value
|
|
118
|
+
end
|
|
108
119
|
end
|
|
109
120
|
end
|
|
110
121
|
|
|
@@ -112,8 +123,16 @@ module Hubspot
|
|
|
112
123
|
# @return Array for valid properties with the reasons
|
|
113
124
|
def list_invalid_properties
|
|
114
125
|
invalid_properties = Array.new
|
|
115
|
-
if @
|
|
116
|
-
invalid_properties.push('invalid value for "
|
|
126
|
+
if @message.nil?
|
|
127
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if @correlation_id.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "correlation_id", correlation_id cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if @category.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
|
117
136
|
end
|
|
118
137
|
|
|
119
138
|
invalid_properties
|
|
@@ -122,31 +141,24 @@ module Hubspot
|
|
|
122
141
|
# Check to see if the all the properties in the model are valid
|
|
123
142
|
# @return true if the model is valid
|
|
124
143
|
def valid?
|
|
125
|
-
return false if @
|
|
126
|
-
|
|
127
|
-
return false
|
|
144
|
+
return false if @message.nil?
|
|
145
|
+
return false if @correlation_id.nil?
|
|
146
|
+
return false if @category.nil?
|
|
128
147
|
true
|
|
129
148
|
end
|
|
130
149
|
|
|
131
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
132
|
-
# @param [Object] operator Object to be assigned
|
|
133
|
-
def operator=(operator)
|
|
134
|
-
validator = EnumAttributeValidator.new('String', ["DATE"])
|
|
135
|
-
unless validator.valid?(operator)
|
|
136
|
-
fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
|
|
137
|
-
end
|
|
138
|
-
@operator = operator
|
|
139
|
-
end
|
|
140
|
-
|
|
141
150
|
# Checks equality by comparing each attribute.
|
|
142
151
|
# @param [Object] Object to be compared
|
|
143
152
|
def ==(o)
|
|
144
153
|
return true if self.equal?(o)
|
|
145
154
|
self.class == o.class &&
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
155
|
+
message == o.message &&
|
|
156
|
+
correlation_id == o.correlation_id &&
|
|
157
|
+
category == o.category &&
|
|
158
|
+
sub_category == o.sub_category &&
|
|
159
|
+
errors == o.errors &&
|
|
160
|
+
context == o.context &&
|
|
161
|
+
links == o.links
|
|
150
162
|
end
|
|
151
163
|
|
|
152
164
|
# @see the `==` method
|
|
@@ -158,7 +170,7 @@ module Hubspot
|
|
|
158
170
|
# Calculates hash code according to all attributes.
|
|
159
171
|
# @return [Integer] Hash code
|
|
160
172
|
def hash
|
|
161
|
-
[
|
|
173
|
+
[message, correlation_id, category, sub_category, errors, context, links].hash
|
|
162
174
|
end
|
|
163
175
|
|
|
164
176
|
# Builds the object from hash
|
|
@@ -225,7 +237,7 @@ module Hubspot
|
|
|
225
237
|
end
|
|
226
238
|
end
|
|
227
239
|
else # model
|
|
228
|
-
Hubspot::Crm::
|
|
240
|
+
Hubspot::Crm::Imports.const_get(type).build_from_hash(value)
|
|
229
241
|
end
|
|
230
242
|
end
|
|
231
243
|
|
|
@@ -277,4 +289,4 @@ module Hubspot
|
|
|
277
289
|
end
|
|
278
290
|
end
|
|
279
291
|
end
|
|
280
|
-
end
|
|
292
|
+
end
|
data/lib/hubspot/codegen/crm/{timeline/models/add_numbers.rb → imports/models/error_detail.rb}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM Imports
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
@@ -14,55 +14,42 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
|
-
module
|
|
18
|
-
class
|
|
19
|
-
|
|
17
|
+
module Imports
|
|
18
|
+
class ErrorDetail
|
|
19
|
+
# A human readable message describing the error along with remediation steps where appropriate
|
|
20
|
+
attr_accessor :message
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
# The name of the field or parameter in which the error was found.
|
|
23
|
+
attr_accessor :_in
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
# The status code associated with the error detail
|
|
26
|
+
attr_accessor :code
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
# A specific category that contains more specific detail about the error
|
|
29
|
+
attr_accessor :sub_category
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
attr_reader :allowable_values
|
|
30
|
-
|
|
31
|
-
def initialize(datatype, allowable_values)
|
|
32
|
-
@allowable_values = allowable_values.map do |value|
|
|
33
|
-
case datatype.to_s
|
|
34
|
-
when /Integer/i
|
|
35
|
-
value.to_i
|
|
36
|
-
when /Float/i
|
|
37
|
-
value.to_f
|
|
38
|
-
else
|
|
39
|
-
value
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def valid?(value)
|
|
45
|
-
!value || allowable_values.include?(value)
|
|
46
|
-
end
|
|
47
|
-
end
|
|
31
|
+
# Context about the error condition
|
|
32
|
+
attr_accessor :context
|
|
48
33
|
|
|
49
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
35
|
def self.attribute_map
|
|
51
36
|
{
|
|
52
|
-
:'
|
|
53
|
-
:'
|
|
54
|
-
:'
|
|
55
|
-
:'
|
|
37
|
+
:'message' => :'message',
|
|
38
|
+
:'_in' => :'in',
|
|
39
|
+
:'code' => :'code',
|
|
40
|
+
:'sub_category' => :'subCategory',
|
|
41
|
+
:'context' => :'context'
|
|
56
42
|
}
|
|
57
43
|
end
|
|
58
44
|
|
|
59
45
|
# Attribute type mapping.
|
|
60
46
|
def self.openapi_types
|
|
61
47
|
{
|
|
62
|
-
:'
|
|
63
|
-
:'
|
|
64
|
-
:'
|
|
65
|
-
:'
|
|
48
|
+
:'message' => :'String',
|
|
49
|
+
:'_in' => :'String',
|
|
50
|
+
:'code' => :'String',
|
|
51
|
+
:'sub_category' => :'String',
|
|
52
|
+
:'context' => :'Hash<String, Array<String>>'
|
|
66
53
|
}
|
|
67
54
|
end
|
|
68
55
|
|
|
@@ -76,35 +63,37 @@ module Hubspot
|
|
|
76
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
77
64
|
def initialize(attributes = {})
|
|
78
65
|
if (!attributes.is_a?(Hash))
|
|
79
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Imports::ErrorDetail` initialize method"
|
|
80
67
|
end
|
|
81
68
|
|
|
82
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
83
70
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
84
71
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
85
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Imports::ErrorDetail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
86
73
|
end
|
|
87
74
|
h[k.to_sym] = v
|
|
88
75
|
}
|
|
89
76
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
92
|
-
else
|
|
93
|
-
self.operator = 'ADD_NUMBERS'
|
|
77
|
+
if attributes.key?(:'message')
|
|
78
|
+
self.message = attributes[:'message']
|
|
94
79
|
end
|
|
95
80
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
81
|
+
if attributes.key?(:'_in')
|
|
82
|
+
self._in = attributes[:'_in']
|
|
98
83
|
end
|
|
99
84
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
85
|
+
if attributes.key?(:'code')
|
|
86
|
+
self.code = attributes[:'code']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'sub_category')
|
|
90
|
+
self.sub_category = attributes[:'sub_category']
|
|
104
91
|
end
|
|
105
92
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
|
|
93
|
+
if attributes.key?(:'context')
|
|
94
|
+
if (value = attributes[:'context']).is_a?(Hash)
|
|
95
|
+
self.context = value
|
|
96
|
+
end
|
|
108
97
|
end
|
|
109
98
|
end
|
|
110
99
|
|
|
@@ -112,8 +101,8 @@ module Hubspot
|
|
|
112
101
|
# @return Array for valid properties with the reasons
|
|
113
102
|
def list_invalid_properties
|
|
114
103
|
invalid_properties = Array.new
|
|
115
|
-
if @
|
|
116
|
-
invalid_properties.push('invalid value for "
|
|
104
|
+
if @message.nil?
|
|
105
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
117
106
|
end
|
|
118
107
|
|
|
119
108
|
invalid_properties
|
|
@@ -122,31 +111,20 @@ module Hubspot
|
|
|
122
111
|
# Check to see if the all the properties in the model are valid
|
|
123
112
|
# @return true if the model is valid
|
|
124
113
|
def valid?
|
|
125
|
-
return false if @
|
|
126
|
-
operator_validator = EnumAttributeValidator.new('String', ["ADD_NUMBERS"])
|
|
127
|
-
return false unless operator_validator.valid?(@operator)
|
|
114
|
+
return false if @message.nil?
|
|
128
115
|
true
|
|
129
116
|
end
|
|
130
117
|
|
|
131
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
132
|
-
# @param [Object] operator Object to be assigned
|
|
133
|
-
def operator=(operator)
|
|
134
|
-
validator = EnumAttributeValidator.new('String', ["ADD_NUMBERS"])
|
|
135
|
-
unless validator.valid?(operator)
|
|
136
|
-
fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
|
|
137
|
-
end
|
|
138
|
-
@operator = operator
|
|
139
|
-
end
|
|
140
|
-
|
|
141
118
|
# Checks equality by comparing each attribute.
|
|
142
119
|
# @param [Object] Object to be compared
|
|
143
120
|
def ==(o)
|
|
144
121
|
return true if self.equal?(o)
|
|
145
122
|
self.class == o.class &&
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
123
|
+
message == o.message &&
|
|
124
|
+
_in == o._in &&
|
|
125
|
+
code == o.code &&
|
|
126
|
+
sub_category == o.sub_category &&
|
|
127
|
+
context == o.context
|
|
150
128
|
end
|
|
151
129
|
|
|
152
130
|
# @see the `==` method
|
|
@@ -158,7 +136,7 @@ module Hubspot
|
|
|
158
136
|
# Calculates hash code according to all attributes.
|
|
159
137
|
# @return [Integer] Hash code
|
|
160
138
|
def hash
|
|
161
|
-
[
|
|
139
|
+
[message, _in, code, sub_category, context].hash
|
|
162
140
|
end
|
|
163
141
|
|
|
164
142
|
# Builds the object from hash
|
|
@@ -225,7 +203,7 @@ module Hubspot
|
|
|
225
203
|
end
|
|
226
204
|
end
|
|
227
205
|
else # model
|
|
228
|
-
Hubspot::Crm::
|
|
206
|
+
Hubspot::Crm::Imports.const_get(type).build_from_hash(value)
|
|
229
207
|
end
|
|
230
208
|
end
|
|
231
209
|
|
|
@@ -277,4 +255,4 @@ module Hubspot
|
|
|
277
255
|
end
|
|
278
256
|
end
|
|
279
257
|
end
|
|
280
|
-
end
|
|
258
|
+
end
|