test_test_gem 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +68 -0
- data/Rakefile +8 -0
- data/git_push.sh +55 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +242 -0
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +94 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/associations/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/associations/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +217 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +322 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +322 -0
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +226 -0
- data/lib/hubspot/codegen/crm/associations/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +243 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +216 -0
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/companies/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/companies/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/companies/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/companies/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/deals/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/deals/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/deals/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/deals/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +364 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +84 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +245 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +327 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +261 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +300 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +236 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +231 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +269 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +241 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +296 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +283 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +320 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +303 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +272 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +278 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +237 -0
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +158 -0
- data/lib/hubspot/codegen/crm/owners/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/owners/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/owners/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +226 -0
- data/lib/hubspot/codegen/crm/owners/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +304 -0
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +272 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +479 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +443 -0
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +226 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +226 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +319 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +249 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +319 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +249 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +249 -0
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/products/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/products/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/products/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/products/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/products/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/products/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +224 -0
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +368 -0
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +362 -0
- data/lib/hubspot/codegen/crm/properties/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/properties/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/properties/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +217 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +217 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +231 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +327 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +226 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +226 -0
- data/lib/hubspot/codegen/crm/properties/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/properties/models/option.rb +266 -0
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +266 -0
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/properties/models/property.rb +465 -0
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +374 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +261 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +241 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +221 -0
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +252 -0
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +216 -0
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +329 -0
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +353 -0
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +362 -0
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +250 -0
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/timeline/models/add_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +219 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +330 -0
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +228 -0
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/contains.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/date.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/divide_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/has_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_or.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/month.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/timeline/models/now.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/pipeline_probability.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +318 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +276 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +342 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +304 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +269 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +328 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +229 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +244 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +269 -0
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/xor.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +280 -0
- data/lib/hubspot/codegen/oauth/api/default_api.rb +270 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +420 -0
- data/lib/hubspot/codegen/oauth/api_error.rb +59 -0
- data/lib/hubspot/codegen/oauth/configuration.rb +256 -0
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +317 -0
- data/lib/hubspot/codegen/oauth/models/error.rb +290 -0
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +303 -0
- data/lib/hubspot/codegen/oauth/models/token_response_if.rb +241 -0
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +214 -0
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +360 -0
- data/lib/hubspot/codegen/webhooks/api_client.rb +420 -0
- data/lib/hubspot/codegen/webhooks/api_error.rb +59 -0
- data/lib/hubspot/codegen/webhooks/configuration.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/error.rb +290 -0
- data/lib/hubspot/codegen/webhooks/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +229 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +254 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +268 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +217 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +210 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +308 -0
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +264 -0
- data/lib/hubspot/configuration.rb +207 -0
- data/lib/hubspot/exceptions.rb +3 -0
- data/lib/hubspot/helpers/get_all_helper.rb +27 -0
- data/lib/hubspot/oauth_helper.rb +17 -0
- data/lib/hubspot/version.rb +3 -0
- data/lib/test_test_gem.rb +50 -0
- data/test_test_gem.gemspec +30 -0
- metadata +609 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Webhooks API
|
|
3
|
+
|
|
4
|
+
#Provides a way for apps to subscribe to certain change events in HubSpot. Once configured, apps will receive event payloads containing details about the changes at a specified target URL. There can only be one target URL for receiving event notifications per app.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Hubspot
|
|
16
|
+
module Webhooks
|
|
17
|
+
class SettingsApi
|
|
18
|
+
attr_accessor :api_client
|
|
19
|
+
|
|
20
|
+
def initialize(api_client = ApiClient.default)
|
|
21
|
+
@api_client = api_client
|
|
22
|
+
end
|
|
23
|
+
# Clear webhook settings
|
|
24
|
+
# Resets webhook target URL to empty, and max concurrency limit to `0` for the given app. This will effectively pause all webhook subscriptions until new settings are provided.
|
|
25
|
+
# @param app_id [Integer] The ID of the target app.
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [nil]
|
|
28
|
+
def clear_settings(app_id, opts = {})
|
|
29
|
+
clear_settings_with_http_info(app_id, opts)
|
|
30
|
+
nil
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Clear webhook settings
|
|
34
|
+
# Resets webhook target URL to empty, and max concurrency limit to `0` for the given app. This will effectively pause all webhook subscriptions until new settings are provided.
|
|
35
|
+
# @param app_id [Integer] The ID of the target app.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
38
|
+
def clear_settings_with_http_info(app_id, opts = {})
|
|
39
|
+
if @api_client.config.debugging
|
|
40
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.clear_settings ...'
|
|
41
|
+
end
|
|
42
|
+
# verify the required parameter 'app_id' is set
|
|
43
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
44
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.clear_settings"
|
|
45
|
+
end
|
|
46
|
+
# resource path
|
|
47
|
+
local_var_path = '/webhooks/v3/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
48
|
+
|
|
49
|
+
# query parameters
|
|
50
|
+
query_params = opts[:query_params] || {}
|
|
51
|
+
|
|
52
|
+
# header parameters
|
|
53
|
+
header_params = opts[:header_params] || {}
|
|
54
|
+
# HTTP header 'Accept' (if needed)
|
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:body]
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:return_type]
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:header_params => header_params,
|
|
71
|
+
:query_params => query_params,
|
|
72
|
+
:form_params => form_params,
|
|
73
|
+
:body => post_body,
|
|
74
|
+
:auth_names => auth_names,
|
|
75
|
+
:return_type => return_type
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
79
|
+
if @api_client.config.debugging
|
|
80
|
+
@api_client.config.logger.debug "API called: SettingsApi#clear_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
81
|
+
end
|
|
82
|
+
return data, status_code, headers
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Configure webhook settings
|
|
86
|
+
# Used to set the webhook target URL and max concurrency limit for the given app.
|
|
87
|
+
# @param app_id [Integer] The ID of the target app.
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @option opts [SettingsChangeRequest] :settings_change_request Settings state to create new with or replace existing settings with.
|
|
90
|
+
# @return [SettingsResponse]
|
|
91
|
+
def configure_settings(app_id, opts = {})
|
|
92
|
+
data, _status_code, _headers = configure_settings_with_http_info(app_id, opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Configure webhook settings
|
|
97
|
+
# Used to set the webhook target URL and max concurrency limit for the given app.
|
|
98
|
+
# @param app_id [Integer] The ID of the target app.
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @option opts [SettingsChangeRequest] :settings_change_request Settings state to create new with or replace existing settings with.
|
|
101
|
+
# @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
|
|
102
|
+
def configure_settings_with_http_info(app_id, opts = {})
|
|
103
|
+
if @api_client.config.debugging
|
|
104
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.configure_settings ...'
|
|
105
|
+
end
|
|
106
|
+
# verify the required parameter 'app_id' is set
|
|
107
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
108
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.configure_settings"
|
|
109
|
+
end
|
|
110
|
+
# resource path
|
|
111
|
+
local_var_path = '/webhooks/v3/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
112
|
+
|
|
113
|
+
# query parameters
|
|
114
|
+
query_params = opts[:query_params] || {}
|
|
115
|
+
|
|
116
|
+
# header parameters
|
|
117
|
+
header_params = opts[:header_params] || {}
|
|
118
|
+
# HTTP header 'Accept' (if needed)
|
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
120
|
+
# HTTP header 'Content-Type'
|
|
121
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
122
|
+
|
|
123
|
+
# form parameters
|
|
124
|
+
form_params = opts[:form_params] || {}
|
|
125
|
+
|
|
126
|
+
# http body (model)
|
|
127
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'settings_change_request'])
|
|
128
|
+
|
|
129
|
+
# return_type
|
|
130
|
+
return_type = opts[:return_type] || 'SettingsResponse'
|
|
131
|
+
|
|
132
|
+
# auth_names
|
|
133
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
134
|
+
|
|
135
|
+
new_options = opts.merge(
|
|
136
|
+
:header_params => header_params,
|
|
137
|
+
:query_params => query_params,
|
|
138
|
+
:form_params => form_params,
|
|
139
|
+
:body => post_body,
|
|
140
|
+
:auth_names => auth_names,
|
|
141
|
+
:return_type => return_type
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
145
|
+
if @api_client.config.debugging
|
|
146
|
+
@api_client.config.logger.debug "API called: SettingsApi#configure_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
147
|
+
end
|
|
148
|
+
return data, status_code, headers
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Get webhook settings
|
|
152
|
+
# Returns the current state of webhook settings for the given app. These settings include the app's configured target URL and max concurrency limit.
|
|
153
|
+
# @param app_id [Integer] The ID of the target app.
|
|
154
|
+
# @param [Hash] opts the optional parameters
|
|
155
|
+
# @return [SettingsResponse]
|
|
156
|
+
def get_settings(app_id, opts = {})
|
|
157
|
+
data, _status_code, _headers = get_settings_with_http_info(app_id, opts)
|
|
158
|
+
data
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Get webhook settings
|
|
162
|
+
# Returns the current state of webhook settings for the given app. These settings include the app's configured target URL and max concurrency limit.
|
|
163
|
+
# @param app_id [Integer] The ID of the target app.
|
|
164
|
+
# @param [Hash] opts the optional parameters
|
|
165
|
+
# @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
|
|
166
|
+
def get_settings_with_http_info(app_id, opts = {})
|
|
167
|
+
if @api_client.config.debugging
|
|
168
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.get_settings ...'
|
|
169
|
+
end
|
|
170
|
+
# verify the required parameter 'app_id' is set
|
|
171
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
172
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.get_settings"
|
|
173
|
+
end
|
|
174
|
+
# resource path
|
|
175
|
+
local_var_path = '/webhooks/v3/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
176
|
+
|
|
177
|
+
# query parameters
|
|
178
|
+
query_params = opts[:query_params] || {}
|
|
179
|
+
|
|
180
|
+
# header parameters
|
|
181
|
+
header_params = opts[:header_params] || {}
|
|
182
|
+
# HTTP header 'Accept' (if needed)
|
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
184
|
+
|
|
185
|
+
# form parameters
|
|
186
|
+
form_params = opts[:form_params] || {}
|
|
187
|
+
|
|
188
|
+
# http body (model)
|
|
189
|
+
post_body = opts[:body]
|
|
190
|
+
|
|
191
|
+
# return_type
|
|
192
|
+
return_type = opts[:return_type] || 'SettingsResponse'
|
|
193
|
+
|
|
194
|
+
# auth_names
|
|
195
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
196
|
+
|
|
197
|
+
new_options = opts.merge(
|
|
198
|
+
:header_params => header_params,
|
|
199
|
+
:query_params => query_params,
|
|
200
|
+
:form_params => form_params,
|
|
201
|
+
:body => post_body,
|
|
202
|
+
:auth_names => auth_names,
|
|
203
|
+
:return_type => return_type
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
207
|
+
if @api_client.config.debugging
|
|
208
|
+
@api_client.config.logger.debug "API called: SettingsApi#get_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
209
|
+
end
|
|
210
|
+
return data, status_code, headers
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
end
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Webhooks API
|
|
3
|
+
|
|
4
|
+
#Provides a way for apps to subscribe to certain change events in HubSpot. Once configured, apps will receive event payloads containing details about the changes at a specified target URL. There can only be one target URL for receiving event notifications per app.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Hubspot
|
|
16
|
+
module Webhooks
|
|
17
|
+
class SubscriptionsApi
|
|
18
|
+
attr_accessor :api_client
|
|
19
|
+
|
|
20
|
+
def initialize(api_client = ApiClient.default)
|
|
21
|
+
@api_client = api_client
|
|
22
|
+
end
|
|
23
|
+
# Delete a subscription
|
|
24
|
+
# Permanently deletes a subscription. This cannot be undone.
|
|
25
|
+
# @param subscription_id [Integer] The ID of subscription to delete.
|
|
26
|
+
# @param app_id [Integer] The ID of the target app.
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [nil]
|
|
29
|
+
def delete_subscription(subscription_id, app_id, opts = {})
|
|
30
|
+
delete_subscription_with_http_info(subscription_id, app_id, opts)
|
|
31
|
+
nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Delete a subscription
|
|
35
|
+
# Permanently deletes a subscription. This cannot be undone.
|
|
36
|
+
# @param subscription_id [Integer] The ID of subscription to delete.
|
|
37
|
+
# @param app_id [Integer] The ID of the target app.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
40
|
+
def delete_subscription_with_http_info(subscription_id, app_id, opts = {})
|
|
41
|
+
if @api_client.config.debugging
|
|
42
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.delete_subscription ...'
|
|
43
|
+
end
|
|
44
|
+
# verify the required parameter 'subscription_id' is set
|
|
45
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
46
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.delete_subscription"
|
|
47
|
+
end
|
|
48
|
+
# verify the required parameter 'app_id' is set
|
|
49
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
50
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.delete_subscription"
|
|
51
|
+
end
|
|
52
|
+
# resource path
|
|
53
|
+
local_var_path = '/webhooks/v3/{appId}/subscriptions/{subscriptionId}'.sub('{' + 'subscriptionId' + '}', CGI.escape(subscription_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
54
|
+
|
|
55
|
+
# query parameters
|
|
56
|
+
query_params = opts[:query_params] || {}
|
|
57
|
+
|
|
58
|
+
# header parameters
|
|
59
|
+
header_params = opts[:header_params] || {}
|
|
60
|
+
# HTTP header 'Accept' (if needed)
|
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
62
|
+
|
|
63
|
+
# form parameters
|
|
64
|
+
form_params = opts[:form_params] || {}
|
|
65
|
+
|
|
66
|
+
# http body (model)
|
|
67
|
+
post_body = opts[:body]
|
|
68
|
+
|
|
69
|
+
# return_type
|
|
70
|
+
return_type = opts[:return_type]
|
|
71
|
+
|
|
72
|
+
# auth_names
|
|
73
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
74
|
+
|
|
75
|
+
new_options = opts.merge(
|
|
76
|
+
:header_params => header_params,
|
|
77
|
+
:query_params => query_params,
|
|
78
|
+
:form_params => form_params,
|
|
79
|
+
:body => post_body,
|
|
80
|
+
:auth_names => auth_names,
|
|
81
|
+
:return_type => return_type
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
85
|
+
if @api_client.config.debugging
|
|
86
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#delete_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
87
|
+
end
|
|
88
|
+
return data, status_code, headers
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Get subscription
|
|
92
|
+
# Returns details about a subscription.
|
|
93
|
+
# @param app_id [Integer] The ID of the target app.
|
|
94
|
+
# @param subscription_id [Integer] The ID of the target subscription.
|
|
95
|
+
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @return [SubscriptionResponse]
|
|
97
|
+
def get_subscription(app_id, subscription_id, opts = {})
|
|
98
|
+
data, _status_code, _headers = get_subscription_with_http_info(app_id, subscription_id, opts)
|
|
99
|
+
data
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Get subscription
|
|
103
|
+
# Returns details about a subscription.
|
|
104
|
+
# @param app_id [Integer] The ID of the target app.
|
|
105
|
+
# @param subscription_id [Integer] The ID of the target subscription.
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
|
108
|
+
def get_subscription_with_http_info(app_id, subscription_id, opts = {})
|
|
109
|
+
if @api_client.config.debugging
|
|
110
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.get_subscription ...'
|
|
111
|
+
end
|
|
112
|
+
# verify the required parameter 'app_id' is set
|
|
113
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.get_subscription"
|
|
115
|
+
end
|
|
116
|
+
# verify the required parameter 'subscription_id' is set
|
|
117
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_subscription"
|
|
119
|
+
end
|
|
120
|
+
# resource path
|
|
121
|
+
local_var_path = '/webhooks/v3/{appId}/subscriptions/{subscriptionId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'subscriptionId' + '}', CGI.escape(subscription_id.to_s))
|
|
122
|
+
|
|
123
|
+
# query parameters
|
|
124
|
+
query_params = opts[:query_params] || {}
|
|
125
|
+
|
|
126
|
+
# header parameters
|
|
127
|
+
header_params = opts[:header_params] || {}
|
|
128
|
+
# HTTP header 'Accept' (if needed)
|
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
130
|
+
|
|
131
|
+
# form parameters
|
|
132
|
+
form_params = opts[:form_params] || {}
|
|
133
|
+
|
|
134
|
+
# http body (model)
|
|
135
|
+
post_body = opts[:body]
|
|
136
|
+
|
|
137
|
+
# return_type
|
|
138
|
+
return_type = opts[:return_type] || 'SubscriptionResponse'
|
|
139
|
+
|
|
140
|
+
# auth_names
|
|
141
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
142
|
+
|
|
143
|
+
new_options = opts.merge(
|
|
144
|
+
:header_params => header_params,
|
|
145
|
+
:query_params => query_params,
|
|
146
|
+
:form_params => form_params,
|
|
147
|
+
:body => post_body,
|
|
148
|
+
:auth_names => auth_names,
|
|
149
|
+
:return_type => return_type
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
153
|
+
if @api_client.config.debugging
|
|
154
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#get_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
155
|
+
end
|
|
156
|
+
return data, status_code, headers
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Get subscription details
|
|
160
|
+
# Returns full details for all existing subscriptions for the given app.
|
|
161
|
+
# @param app_id [Integer] The ID of the target app.
|
|
162
|
+
# @param [Hash] opts the optional parameters
|
|
163
|
+
# @return [SubscriptionListResponse]
|
|
164
|
+
def get_subscriptions(app_id, opts = {})
|
|
165
|
+
data, _status_code, _headers = get_subscriptions_with_http_info(app_id, opts)
|
|
166
|
+
data
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Get subscription details
|
|
170
|
+
# Returns full details for all existing subscriptions for the given app.
|
|
171
|
+
# @param app_id [Integer] The ID of the target app.
|
|
172
|
+
# @param [Hash] opts the optional parameters
|
|
173
|
+
# @return [Array<(SubscriptionListResponse, Integer, Hash)>] SubscriptionListResponse data, response status code and response headers
|
|
174
|
+
def get_subscriptions_with_http_info(app_id, opts = {})
|
|
175
|
+
if @api_client.config.debugging
|
|
176
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.get_subscriptions ...'
|
|
177
|
+
end
|
|
178
|
+
# verify the required parameter 'app_id' is set
|
|
179
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
180
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.get_subscriptions"
|
|
181
|
+
end
|
|
182
|
+
# resource path
|
|
183
|
+
local_var_path = '/webhooks/v3/{appId}/subscriptions'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
184
|
+
|
|
185
|
+
# query parameters
|
|
186
|
+
query_params = opts[:query_params] || {}
|
|
187
|
+
|
|
188
|
+
# header parameters
|
|
189
|
+
header_params = opts[:header_params] || {}
|
|
190
|
+
# HTTP header 'Accept' (if needed)
|
|
191
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
192
|
+
|
|
193
|
+
# form parameters
|
|
194
|
+
form_params = opts[:form_params] || {}
|
|
195
|
+
|
|
196
|
+
# http body (model)
|
|
197
|
+
post_body = opts[:body]
|
|
198
|
+
|
|
199
|
+
# return_type
|
|
200
|
+
return_type = opts[:return_type] || 'SubscriptionListResponse'
|
|
201
|
+
|
|
202
|
+
# auth_names
|
|
203
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
204
|
+
|
|
205
|
+
new_options = opts.merge(
|
|
206
|
+
:header_params => header_params,
|
|
207
|
+
:query_params => query_params,
|
|
208
|
+
:form_params => form_params,
|
|
209
|
+
:body => post_body,
|
|
210
|
+
:auth_names => auth_names,
|
|
211
|
+
:return_type => return_type
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
215
|
+
if @api_client.config.debugging
|
|
216
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#get_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
217
|
+
end
|
|
218
|
+
return data, status_code, headers
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Subscribe to an event
|
|
222
|
+
# Creates a new webhook subscription for the given app. Each subscription in an app must be unique.
|
|
223
|
+
# @param app_id [Integer] The ID of the target app.
|
|
224
|
+
# @param [Hash] opts the optional parameters
|
|
225
|
+
# @option opts [SubscriptionCreateRequest] :subscription_create_request Details about the new subscription.
|
|
226
|
+
# @return [SubscriptionResponse]
|
|
227
|
+
def subscribe(app_id, opts = {})
|
|
228
|
+
data, _status_code, _headers = subscribe_with_http_info(app_id, opts)
|
|
229
|
+
data
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Subscribe to an event
|
|
233
|
+
# Creates a new webhook subscription for the given app. Each subscription in an app must be unique.
|
|
234
|
+
# @param app_id [Integer] The ID of the target app.
|
|
235
|
+
# @param [Hash] opts the optional parameters
|
|
236
|
+
# @option opts [SubscriptionCreateRequest] :subscription_create_request Details about the new subscription.
|
|
237
|
+
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
|
238
|
+
def subscribe_with_http_info(app_id, opts = {})
|
|
239
|
+
if @api_client.config.debugging
|
|
240
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.subscribe ...'
|
|
241
|
+
end
|
|
242
|
+
# verify the required parameter 'app_id' is set
|
|
243
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
244
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.subscribe"
|
|
245
|
+
end
|
|
246
|
+
# resource path
|
|
247
|
+
local_var_path = '/webhooks/v3/{appId}/subscriptions'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
248
|
+
|
|
249
|
+
# query parameters
|
|
250
|
+
query_params = opts[:query_params] || {}
|
|
251
|
+
|
|
252
|
+
# header parameters
|
|
253
|
+
header_params = opts[:header_params] || {}
|
|
254
|
+
# HTTP header 'Accept' (if needed)
|
|
255
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
256
|
+
# HTTP header 'Content-Type'
|
|
257
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
258
|
+
|
|
259
|
+
# form parameters
|
|
260
|
+
form_params = opts[:form_params] || {}
|
|
261
|
+
|
|
262
|
+
# http body (model)
|
|
263
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'subscription_create_request'])
|
|
264
|
+
|
|
265
|
+
# return_type
|
|
266
|
+
return_type = opts[:return_type] || 'SubscriptionResponse'
|
|
267
|
+
|
|
268
|
+
# auth_names
|
|
269
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
270
|
+
|
|
271
|
+
new_options = opts.merge(
|
|
272
|
+
:header_params => header_params,
|
|
273
|
+
:query_params => query_params,
|
|
274
|
+
:form_params => form_params,
|
|
275
|
+
:body => post_body,
|
|
276
|
+
:auth_names => auth_names,
|
|
277
|
+
:return_type => return_type
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
281
|
+
if @api_client.config.debugging
|
|
282
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#subscribe\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
283
|
+
end
|
|
284
|
+
return data, status_code, headers
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# Update a subscription
|
|
288
|
+
# Updates the details for an existing subscription.
|
|
289
|
+
# @param subscription_id [Integer] The ID of the subscription to update.
|
|
290
|
+
# @param app_id [Integer] The ID of the target app.
|
|
291
|
+
# @param [Hash] opts the optional parameters
|
|
292
|
+
# @option opts [SubscriptionPatchRequest] :subscription_patch_request Updated details for the subscription.
|
|
293
|
+
# @return [SubscriptionResponse]
|
|
294
|
+
def update_subscription(subscription_id, app_id, opts = {})
|
|
295
|
+
data, _status_code, _headers = update_subscription_with_http_info(subscription_id, app_id, opts)
|
|
296
|
+
data
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# Update a subscription
|
|
300
|
+
# Updates the details for an existing subscription.
|
|
301
|
+
# @param subscription_id [Integer] The ID of the subscription to update.
|
|
302
|
+
# @param app_id [Integer] The ID of the target app.
|
|
303
|
+
# @param [Hash] opts the optional parameters
|
|
304
|
+
# @option opts [SubscriptionPatchRequest] :subscription_patch_request Updated details for the subscription.
|
|
305
|
+
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
|
306
|
+
def update_subscription_with_http_info(subscription_id, app_id, opts = {})
|
|
307
|
+
if @api_client.config.debugging
|
|
308
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_subscription ...'
|
|
309
|
+
end
|
|
310
|
+
# verify the required parameter 'subscription_id' is set
|
|
311
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
312
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.update_subscription"
|
|
313
|
+
end
|
|
314
|
+
# verify the required parameter 'app_id' is set
|
|
315
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
316
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.update_subscription"
|
|
317
|
+
end
|
|
318
|
+
# resource path
|
|
319
|
+
local_var_path = '/webhooks/v3/{appId}/subscriptions/{subscriptionId}'.sub('{' + 'subscriptionId' + '}', CGI.escape(subscription_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
320
|
+
|
|
321
|
+
# query parameters
|
|
322
|
+
query_params = opts[:query_params] || {}
|
|
323
|
+
|
|
324
|
+
# header parameters
|
|
325
|
+
header_params = opts[:header_params] || {}
|
|
326
|
+
# HTTP header 'Accept' (if needed)
|
|
327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
328
|
+
# HTTP header 'Content-Type'
|
|
329
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
330
|
+
|
|
331
|
+
# form parameters
|
|
332
|
+
form_params = opts[:form_params] || {}
|
|
333
|
+
|
|
334
|
+
# http body (model)
|
|
335
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'subscription_patch_request'])
|
|
336
|
+
|
|
337
|
+
# return_type
|
|
338
|
+
return_type = opts[:return_type] || 'SubscriptionResponse'
|
|
339
|
+
|
|
340
|
+
# auth_names
|
|
341
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
342
|
+
|
|
343
|
+
new_options = opts.merge(
|
|
344
|
+
:header_params => header_params,
|
|
345
|
+
:query_params => query_params,
|
|
346
|
+
:form_params => form_params,
|
|
347
|
+
:body => post_body,
|
|
348
|
+
:auth_names => auth_names,
|
|
349
|
+
:return_type => return_type
|
|
350
|
+
)
|
|
351
|
+
|
|
352
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
353
|
+
if @api_client.config.debugging
|
|
354
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#update_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
355
|
+
end
|
|
356
|
+
return data, status_code, headers
|
|
357
|
+
end
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
end
|