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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -99,7 +99,7 @@ module Hubspot
|
|
|
99
99
|
fail ApiError.new(:code => response.status,
|
|
100
100
|
:response_headers => response.headers,
|
|
101
101
|
:response_body => response.body),
|
|
102
|
-
|
|
102
|
+
response.reason_phrase
|
|
103
103
|
end
|
|
104
104
|
end
|
|
105
105
|
rescue Faraday::TimeoutError
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -255,4 +255,4 @@ module Hubspot
|
|
|
255
255
|
end
|
|
256
256
|
end
|
|
257
257
|
end
|
|
258
|
-
end
|
|
258
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -212,4 +212,4 @@ module Hubspot
|
|
|
212
212
|
end
|
|
213
213
|
end
|
|
214
214
|
end
|
|
215
|
-
end
|
|
215
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -214,4 +214,4 @@ module Hubspot
|
|
|
214
214
|
end
|
|
215
215
|
end
|
|
216
216
|
end
|
|
217
|
-
end
|
|
217
|
+
end
|
|
@@ -27,8 +27,8 @@ module Hubspot
|
|
|
27
27
|
# @param app_id [Integer] The ID of the target app.
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @return [nil]
|
|
30
|
-
def
|
|
31
|
-
|
|
30
|
+
def archive(event_template_id, app_id, opts = {})
|
|
31
|
+
archive_with_http_info(event_template_id, app_id, opts)
|
|
32
32
|
nil
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -38,17 +38,17 @@ module Hubspot
|
|
|
38
38
|
# @param app_id [Integer] The ID of the target app.
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
41
|
-
def
|
|
41
|
+
def archive_with_http_info(event_template_id, app_id, opts = {})
|
|
42
42
|
if @api_client.config.debugging
|
|
43
|
-
@api_client.config.logger.debug 'Calling API: TemplatesApi.
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: TemplatesApi.archive ...'
|
|
44
44
|
end
|
|
45
45
|
# verify the required parameter 'event_template_id' is set
|
|
46
46
|
if @api_client.config.client_side_validation && event_template_id.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TemplatesApi.
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TemplatesApi.archive"
|
|
48
48
|
end
|
|
49
49
|
# verify the required parameter 'app_id' is set
|
|
50
50
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
51
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.archive"
|
|
52
52
|
end
|
|
53
53
|
# resource path
|
|
54
54
|
local_var_path = '/crm/v3/timeline/{appId}/event-templates/{eventTemplateId}'.sub('{' + 'eventTemplateId' + '}', CGI.escape(event_template_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -84,7 +84,7 @@ module Hubspot
|
|
|
84
84
|
|
|
85
85
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
86
86
|
if @api_client.config.debugging
|
|
87
|
-
@api_client.config.logger.debug "API called: TemplatesApi#
|
|
87
|
+
@api_client.config.logger.debug "API called: TemplatesApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
88
|
end
|
|
89
89
|
return data, status_code, headers
|
|
90
90
|
end
|
|
@@ -95,8 +95,8 @@ module Hubspot
|
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @option opts [TimelineEventTemplateCreateRequest] :timeline_event_template_create_request The new event template definition.
|
|
97
97
|
# @return [TimelineEventTemplate]
|
|
98
|
-
def
|
|
99
|
-
data, _status_code, _headers =
|
|
98
|
+
def create(app_id, opts = {})
|
|
99
|
+
data, _status_code, _headers = create_with_http_info(app_id, opts)
|
|
100
100
|
data
|
|
101
101
|
end
|
|
102
102
|
|
|
@@ -106,13 +106,13 @@ module Hubspot
|
|
|
106
106
|
# @param [Hash] opts the optional parameters
|
|
107
107
|
# @option opts [TimelineEventTemplateCreateRequest] :timeline_event_template_create_request The new event template definition.
|
|
108
108
|
# @return [Array<(TimelineEventTemplate, Integer, Hash)>] TimelineEventTemplate data, response status code and response headers
|
|
109
|
-
def
|
|
109
|
+
def create_with_http_info(app_id, opts = {})
|
|
110
110
|
if @api_client.config.debugging
|
|
111
|
-
@api_client.config.logger.debug 'Calling API: TemplatesApi.
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: TemplatesApi.create ...'
|
|
112
112
|
end
|
|
113
113
|
# verify the required parameter 'app_id' is set
|
|
114
114
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
115
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.
|
|
115
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.create"
|
|
116
116
|
end
|
|
117
117
|
# resource path
|
|
118
118
|
local_var_path = '/crm/v3/timeline/{appId}/event-templates'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -150,7 +150,7 @@ module Hubspot
|
|
|
150
150
|
|
|
151
151
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
152
152
|
if @api_client.config.debugging
|
|
153
|
-
@api_client.config.logger.debug "API called: TemplatesApi#
|
|
153
|
+
@api_client.config.logger.debug "API called: TemplatesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
154
154
|
end
|
|
155
155
|
return data, status_code, headers
|
|
156
156
|
end
|
|
@@ -160,8 +160,8 @@ module Hubspot
|
|
|
160
160
|
# @param app_id [Integer] The ID of the target app.
|
|
161
161
|
# @param [Hash] opts the optional parameters
|
|
162
162
|
# @return [CollectionResponseTimelineEventTemplate]
|
|
163
|
-
def
|
|
164
|
-
data, _status_code, _headers =
|
|
163
|
+
def get_all(app_id, opts = {})
|
|
164
|
+
data, _status_code, _headers = get_all_with_http_info(app_id, opts)
|
|
165
165
|
data
|
|
166
166
|
end
|
|
167
167
|
|
|
@@ -170,13 +170,13 @@ module Hubspot
|
|
|
170
170
|
# @param app_id [Integer] The ID of the target app.
|
|
171
171
|
# @param [Hash] opts the optional parameters
|
|
172
172
|
# @return [Array<(CollectionResponseTimelineEventTemplate, Integer, Hash)>] CollectionResponseTimelineEventTemplate data, response status code and response headers
|
|
173
|
-
def
|
|
173
|
+
def get_all_with_http_info(app_id, opts = {})
|
|
174
174
|
if @api_client.config.debugging
|
|
175
|
-
@api_client.config.logger.debug 'Calling API: TemplatesApi.
|
|
175
|
+
@api_client.config.logger.debug 'Calling API: TemplatesApi.get_all ...'
|
|
176
176
|
end
|
|
177
177
|
# verify the required parameter 'app_id' is set
|
|
178
178
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
179
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.
|
|
179
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.get_all"
|
|
180
180
|
end
|
|
181
181
|
# resource path
|
|
182
182
|
local_var_path = '/crm/v3/timeline/{appId}/event-templates'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -212,7 +212,7 @@ module Hubspot
|
|
|
212
212
|
|
|
213
213
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
214
214
|
if @api_client.config.debugging
|
|
215
|
-
@api_client.config.logger.debug "API called: TemplatesApi#
|
|
215
|
+
@api_client.config.logger.debug "API called: TemplatesApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
216
216
|
end
|
|
217
217
|
return data, status_code, headers
|
|
218
218
|
end
|
|
@@ -223,8 +223,8 @@ module Hubspot
|
|
|
223
223
|
# @param app_id [Integer] The ID of the target app.
|
|
224
224
|
# @param [Hash] opts the optional parameters
|
|
225
225
|
# @return [TimelineEventTemplate]
|
|
226
|
-
def
|
|
227
|
-
data, _status_code, _headers =
|
|
226
|
+
def get_by_id(event_template_id, app_id, opts = {})
|
|
227
|
+
data, _status_code, _headers = get_by_id_with_http_info(event_template_id, app_id, opts)
|
|
228
228
|
data
|
|
229
229
|
end
|
|
230
230
|
|
|
@@ -234,17 +234,17 @@ module Hubspot
|
|
|
234
234
|
# @param app_id [Integer] The ID of the target app.
|
|
235
235
|
# @param [Hash] opts the optional parameters
|
|
236
236
|
# @return [Array<(TimelineEventTemplate, Integer, Hash)>] TimelineEventTemplate data, response status code and response headers
|
|
237
|
-
def
|
|
237
|
+
def get_by_id_with_http_info(event_template_id, app_id, opts = {})
|
|
238
238
|
if @api_client.config.debugging
|
|
239
|
-
@api_client.config.logger.debug 'Calling API: TemplatesApi.
|
|
239
|
+
@api_client.config.logger.debug 'Calling API: TemplatesApi.get_by_id ...'
|
|
240
240
|
end
|
|
241
241
|
# verify the required parameter 'event_template_id' is set
|
|
242
242
|
if @api_client.config.client_side_validation && event_template_id.nil?
|
|
243
|
-
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TemplatesApi.
|
|
243
|
+
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TemplatesApi.get_by_id"
|
|
244
244
|
end
|
|
245
245
|
# verify the required parameter 'app_id' is set
|
|
246
246
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
247
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.
|
|
247
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.get_by_id"
|
|
248
248
|
end
|
|
249
249
|
# resource path
|
|
250
250
|
local_var_path = '/crm/v3/timeline/{appId}/event-templates/{eventTemplateId}'.sub('{' + 'eventTemplateId' + '}', CGI.escape(event_template_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -280,7 +280,7 @@ module Hubspot
|
|
|
280
280
|
|
|
281
281
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
282
282
|
if @api_client.config.debugging
|
|
283
|
-
@api_client.config.logger.debug "API called: TemplatesApi#
|
|
283
|
+
@api_client.config.logger.debug "API called: TemplatesApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
284
284
|
end
|
|
285
285
|
return data, status_code, headers
|
|
286
286
|
end
|
|
@@ -292,8 +292,8 @@ module Hubspot
|
|
|
292
292
|
# @param [Hash] opts the optional parameters
|
|
293
293
|
# @option opts [TimelineEventTemplateUpdateRequest] :timeline_event_template_update_request The updated event template definition.
|
|
294
294
|
# @return [TimelineEventTemplate]
|
|
295
|
-
def
|
|
296
|
-
data, _status_code, _headers =
|
|
295
|
+
def update(event_template_id, app_id, opts = {})
|
|
296
|
+
data, _status_code, _headers = update_with_http_info(event_template_id, app_id, opts)
|
|
297
297
|
data
|
|
298
298
|
end
|
|
299
299
|
|
|
@@ -304,17 +304,17 @@ module Hubspot
|
|
|
304
304
|
# @param [Hash] opts the optional parameters
|
|
305
305
|
# @option opts [TimelineEventTemplateUpdateRequest] :timeline_event_template_update_request The updated event template definition.
|
|
306
306
|
# @return [Array<(TimelineEventTemplate, Integer, Hash)>] TimelineEventTemplate data, response status code and response headers
|
|
307
|
-
def
|
|
307
|
+
def update_with_http_info(event_template_id, app_id, opts = {})
|
|
308
308
|
if @api_client.config.debugging
|
|
309
|
-
@api_client.config.logger.debug 'Calling API: TemplatesApi.
|
|
309
|
+
@api_client.config.logger.debug 'Calling API: TemplatesApi.update ...'
|
|
310
310
|
end
|
|
311
311
|
# verify the required parameter 'event_template_id' is set
|
|
312
312
|
if @api_client.config.client_side_validation && event_template_id.nil?
|
|
313
|
-
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TemplatesApi.
|
|
313
|
+
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TemplatesApi.update"
|
|
314
314
|
end
|
|
315
315
|
# verify the required parameter 'app_id' is set
|
|
316
316
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
317
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.
|
|
317
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplatesApi.update"
|
|
318
318
|
end
|
|
319
319
|
# resource path
|
|
320
320
|
local_var_path = '/crm/v3/timeline/{appId}/event-templates/{eventTemplateId}'.sub('{' + 'eventTemplateId' + '}', CGI.escape(event_template_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -352,11 +352,11 @@ module Hubspot
|
|
|
352
352
|
|
|
353
353
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
354
354
|
if @api_client.config.debugging
|
|
355
|
-
@api_client.config.logger.debug "API called: TemplatesApi#
|
|
355
|
+
@api_client.config.logger.debug "API called: TemplatesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
356
356
|
end
|
|
357
357
|
return data, status_code, headers
|
|
358
358
|
end
|
|
359
359
|
end
|
|
360
360
|
end
|
|
361
361
|
end
|
|
362
|
-
end
|
|
362
|
+
end
|
|
@@ -28,8 +28,8 @@ module Hubspot
|
|
|
28
28
|
# @param app_id [Integer] The ID of the target app.
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
30
|
# @return [nil]
|
|
31
|
-
def
|
|
32
|
-
|
|
31
|
+
def archive(event_template_id, token_name, app_id, opts = {})
|
|
32
|
+
archive_with_http_info(event_template_id, token_name, app_id, opts)
|
|
33
33
|
nil
|
|
34
34
|
end
|
|
35
35
|
|
|
@@ -40,21 +40,21 @@ module Hubspot
|
|
|
40
40
|
# @param app_id [Integer] The ID of the target app.
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
42
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
43
|
-
def
|
|
43
|
+
def archive_with_http_info(event_template_id, token_name, app_id, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API: TokensApi.
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: TokensApi.archive ...'
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'event_template_id' is set
|
|
48
48
|
if @api_client.config.client_side_validation && event_template_id.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TokensApi.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TokensApi.archive"
|
|
50
50
|
end
|
|
51
51
|
# verify the required parameter 'token_name' is set
|
|
52
52
|
if @api_client.config.client_side_validation && token_name.nil?
|
|
53
|
-
fail ArgumentError, "Missing the required parameter 'token_name' when calling TokensApi.
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'token_name' when calling TokensApi.archive"
|
|
54
54
|
end
|
|
55
55
|
# verify the required parameter 'app_id' is set
|
|
56
56
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
57
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApi.
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApi.archive"
|
|
58
58
|
end
|
|
59
59
|
# resource path
|
|
60
60
|
local_var_path = '/crm/v3/timeline/{appId}/event-templates/{eventTemplateId}/tokens/{tokenName}'.sub('{' + 'eventTemplateId' + '}', CGI.escape(event_template_id.to_s)).sub('{' + 'tokenName' + '}', CGI.escape(token_name.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -90,7 +90,7 @@ module Hubspot
|
|
|
90
90
|
|
|
91
91
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
92
92
|
if @api_client.config.debugging
|
|
93
|
-
@api_client.config.logger.debug "API called: TokensApi#
|
|
93
|
+
@api_client.config.logger.debug "API called: TokensApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
94
94
|
end
|
|
95
95
|
return data, status_code, headers
|
|
96
96
|
end
|
|
@@ -102,8 +102,8 @@ module Hubspot
|
|
|
102
102
|
# @param [Hash] opts the optional parameters
|
|
103
103
|
# @option opts [TimelineEventTemplateToken] :timeline_event_template_token The new token definition.
|
|
104
104
|
# @return [TimelineEventTemplateToken]
|
|
105
|
-
def
|
|
106
|
-
data, _status_code, _headers =
|
|
105
|
+
def create(event_template_id, app_id, opts = {})
|
|
106
|
+
data, _status_code, _headers = create_with_http_info(event_template_id, app_id, opts)
|
|
107
107
|
data
|
|
108
108
|
end
|
|
109
109
|
|
|
@@ -114,17 +114,17 @@ module Hubspot
|
|
|
114
114
|
# @param [Hash] opts the optional parameters
|
|
115
115
|
# @option opts [TimelineEventTemplateToken] :timeline_event_template_token The new token definition.
|
|
116
116
|
# @return [Array<(TimelineEventTemplateToken, Integer, Hash)>] TimelineEventTemplateToken data, response status code and response headers
|
|
117
|
-
def
|
|
117
|
+
def create_with_http_info(event_template_id, app_id, opts = {})
|
|
118
118
|
if @api_client.config.debugging
|
|
119
|
-
@api_client.config.logger.debug 'Calling API: TokensApi.
|
|
119
|
+
@api_client.config.logger.debug 'Calling API: TokensApi.create ...'
|
|
120
120
|
end
|
|
121
121
|
# verify the required parameter 'event_template_id' is set
|
|
122
122
|
if @api_client.config.client_side_validation && event_template_id.nil?
|
|
123
|
-
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TokensApi.
|
|
123
|
+
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TokensApi.create"
|
|
124
124
|
end
|
|
125
125
|
# verify the required parameter 'app_id' is set
|
|
126
126
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
127
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApi.
|
|
127
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApi.create"
|
|
128
128
|
end
|
|
129
129
|
# resource path
|
|
130
130
|
local_var_path = '/crm/v3/timeline/{appId}/event-templates/{eventTemplateId}/tokens'.sub('{' + 'eventTemplateId' + '}', CGI.escape(event_template_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -162,7 +162,7 @@ module Hubspot
|
|
|
162
162
|
|
|
163
163
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
164
164
|
if @api_client.config.debugging
|
|
165
|
-
@api_client.config.logger.debug "API called: TokensApi#
|
|
165
|
+
@api_client.config.logger.debug "API called: TokensApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
166
166
|
end
|
|
167
167
|
return data, status_code, headers
|
|
168
168
|
end
|
|
@@ -175,8 +175,8 @@ module Hubspot
|
|
|
175
175
|
# @param [Hash] opts the optional parameters
|
|
176
176
|
# @option opts [TimelineEventTemplateTokenUpdateRequest] :timeline_event_template_token_update_request The updated token definition.
|
|
177
177
|
# @return [TimelineEventTemplateToken]
|
|
178
|
-
def
|
|
179
|
-
data, _status_code, _headers =
|
|
178
|
+
def update(event_template_id, token_name, app_id, opts = {})
|
|
179
|
+
data, _status_code, _headers = update_with_http_info(event_template_id, token_name, app_id, opts)
|
|
180
180
|
data
|
|
181
181
|
end
|
|
182
182
|
|
|
@@ -188,21 +188,21 @@ module Hubspot
|
|
|
188
188
|
# @param [Hash] opts the optional parameters
|
|
189
189
|
# @option opts [TimelineEventTemplateTokenUpdateRequest] :timeline_event_template_token_update_request The updated token definition.
|
|
190
190
|
# @return [Array<(TimelineEventTemplateToken, Integer, Hash)>] TimelineEventTemplateToken data, response status code and response headers
|
|
191
|
-
def
|
|
191
|
+
def update_with_http_info(event_template_id, token_name, app_id, opts = {})
|
|
192
192
|
if @api_client.config.debugging
|
|
193
|
-
@api_client.config.logger.debug 'Calling API: TokensApi.
|
|
193
|
+
@api_client.config.logger.debug 'Calling API: TokensApi.update ...'
|
|
194
194
|
end
|
|
195
195
|
# verify the required parameter 'event_template_id' is set
|
|
196
196
|
if @api_client.config.client_side_validation && event_template_id.nil?
|
|
197
|
-
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TokensApi.
|
|
197
|
+
fail ArgumentError, "Missing the required parameter 'event_template_id' when calling TokensApi.update"
|
|
198
198
|
end
|
|
199
199
|
# verify the required parameter 'token_name' is set
|
|
200
200
|
if @api_client.config.client_side_validation && token_name.nil?
|
|
201
|
-
fail ArgumentError, "Missing the required parameter 'token_name' when calling TokensApi.
|
|
201
|
+
fail ArgumentError, "Missing the required parameter 'token_name' when calling TokensApi.update"
|
|
202
202
|
end
|
|
203
203
|
# verify the required parameter 'app_id' is set
|
|
204
204
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
205
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApi.
|
|
205
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApi.update"
|
|
206
206
|
end
|
|
207
207
|
# resource path
|
|
208
208
|
local_var_path = '/crm/v3/timeline/{appId}/event-templates/{eventTemplateId}/tokens/{tokenName}'.sub('{' + 'eventTemplateId' + '}', CGI.escape(event_template_id.to_s)).sub('{' + 'tokenName' + '}', CGI.escape(token_name.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -240,11 +240,11 @@ module Hubspot
|
|
|
240
240
|
|
|
241
241
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
242
242
|
if @api_client.config.debugging
|
|
243
|
-
@api_client.config.logger.debug "API called: TokensApi#
|
|
243
|
+
@api_client.config.logger.debug "API called: TokensApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
244
244
|
end
|
|
245
245
|
return data, status_code, headers
|
|
246
246
|
end
|
|
247
247
|
end
|
|
248
248
|
end
|
|
249
249
|
end
|
|
250
|
-
end
|
|
250
|
+
end
|