hubspot-api-client 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +68 -0
- data/README.md +109 -0
- data/Rakefile +8 -0
- data/git_push.sh +55 -0
- data/hubspot-api-client.gemspec +31 -0
- data/lib/hubspot-api-client.rb +49 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/associations/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/associations/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +221 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +331 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +331 -0
- data/lib/hubspot/codegen/crm/associations/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +233 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +236 -0
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +220 -0
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/companies/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/companies/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/companies/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/companies/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/deals/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/deals/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/deals/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/deals/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +338 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/default_api.rb +318 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +425 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +65 -0
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +262 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +223 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +263 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +223 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +299 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +237 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +232 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +223 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +271 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +243 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +295 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +283 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +288 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +244 -0
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +390 -0
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +297 -0
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +96 -0
- data/lib/hubspot/codegen/crm/objects/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/objects/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/objects/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +160 -0
- data/lib/hubspot/codegen/crm/owners/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/owners/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/owners/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +230 -0
- data/lib/hubspot/codegen/crm/owners/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +242 -0
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +313 -0
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +276 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +483 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +447 -0
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +230 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +230 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +242 -0
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +323 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +253 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +236 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +323 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +253 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +253 -0
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/products/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/products/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/products/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/products/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/products/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/products/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +228 -0
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +372 -0
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +366 -0
- data/lib/hubspot/codegen/crm/properties/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/properties/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/properties/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +221 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +221 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +235 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +331 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +230 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +230 -0
- data/lib/hubspot/codegen/crm/properties/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/properties/models/option.rb +270 -0
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +270 -0
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/properties/models/property.rb +469 -0
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +378 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +265 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +245 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +225 -0
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +256 -0
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +220 -0
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +333 -0
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +88 -0
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +340 -0
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +102 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +423 -0
- data/lib/hubspot/codegen/oauth/api_error.rb +61 -0
- data/lib/hubspot/codegen/oauth/configuration.rb +258 -0
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +321 -0
- data/lib/hubspot/codegen/oauth/models/error.rb +305 -0
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +240 -0
- data/lib/hubspot/codegen/oauth/models/json_node.rb +426 -0
- data/lib/hubspot/codegen/oauth/models/refresh_token.rb +259 -0
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +307 -0
- data/lib/hubspot/configuration.rb +207 -0
- data/lib/hubspot/exceptions.rb +3 -0
- data/lib/hubspot/oauth.rb +17 -0
- data/lib/hubspot/version.rb +3 -0
- data/sample-apps/companies-app/.env.template +2 -0
- data/sample-apps/companies-app/.env.test.template +3 -0
- data/sample-apps/companies-app/.gitignore +35 -0
- data/sample-apps/companies-app/.rspec +1 -0
- data/sample-apps/companies-app/.ruby-version +1 -0
- data/sample-apps/companies-app/Dockerfile +22 -0
- data/sample-apps/companies-app/Gemfile +33 -0
- data/sample-apps/companies-app/Gemfile.lock +270 -0
- data/sample-apps/companies-app/README.md +31 -0
- data/sample-apps/companies-app/Rakefile +6 -0
- data/sample-apps/companies-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/companies-app/app/assets/images/.keep +0 -0
- data/sample-apps/companies-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/companies-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/companies-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/companies-app/app/assets/stylesheets/application.css +117 -0
- data/sample-apps/companies-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/companies-app/app/controllers/companies_controller.rb +67 -0
- data/sample-apps/companies-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/companies-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/companies-app/app/controllers/contacts_controller.rb +28 -0
- data/sample-apps/companies-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/companies-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/companies-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/companies-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +38 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +38 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/get_by_id.rb +39 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/create.rb +24 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/destroy.rb +16 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/export.rb +48 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/get_all.rb +16 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/get_by_id.rb +16 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/search.rb +28 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb +26 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/contacts/get_all.rb +26 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/contacts/search.rb +28 -0
- data/sample-apps/companies-app/app/models/application_record.rb +3 -0
- data/sample-apps/companies-app/app/models/concerns/.keep +0 -0
- data/sample-apps/companies-app/app/views/companies/index.html.erb +74 -0
- data/sample-apps/companies-app/app/views/companies/new.html.erb +24 -0
- data/sample-apps/companies-app/app/views/companies/show.html.erb +50 -0
- data/sample-apps/companies-app/app/views/contacts/index.html.erb +49 -0
- data/sample-apps/companies-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/companies-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/companies-app/app/views/shared/_header.html.erb +15 -0
- data/sample-apps/companies-app/bin/bundle +3 -0
- data/sample-apps/companies-app/bin/rails +9 -0
- data/sample-apps/companies-app/bin/rake +9 -0
- data/sample-apps/companies-app/bin/setup +36 -0
- data/sample-apps/companies-app/bin/spring +17 -0
- data/sample-apps/companies-app/bin/update +31 -0
- data/sample-apps/companies-app/bin/yarn +11 -0
- data/sample-apps/companies-app/config.ru +5 -0
- data/sample-apps/companies-app/config/application.rb +19 -0
- data/sample-apps/companies-app/config/boot.rb +3 -0
- data/sample-apps/companies-app/config/cable.yml +10 -0
- data/sample-apps/companies-app/config/database.yml +25 -0
- data/sample-apps/companies-app/config/environment.rb +5 -0
- data/sample-apps/companies-app/config/environments/development.rb +61 -0
- data/sample-apps/companies-app/config/environments/production.rb +94 -0
- data/sample-apps/companies-app/config/environments/test.rb +46 -0
- data/sample-apps/companies-app/config/initializers/assets.rb +14 -0
- data/sample-apps/companies-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/companies-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/companies-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/companies-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/companies-app/config/locales/en.yml +33 -0
- data/sample-apps/companies-app/config/puma.rb +34 -0
- data/sample-apps/companies-app/config/routes.rb +17 -0
- data/sample-apps/companies-app/config/spring.rb +6 -0
- data/sample-apps/companies-app/db/seeds.rb +7 -0
- data/sample-apps/companies-app/docker-compose.yml +11 -0
- data/sample-apps/companies-app/docker-entrypoint.sh +8 -0
- data/sample-apps/companies-app/lib/assets/.keep +0 -0
- data/sample-apps/companies-app/lib/tasks/.keep +0 -0
- data/sample-apps/companies-app/log/.keep +0 -0
- data/sample-apps/companies-app/package.json +5 -0
- data/sample-apps/companies-app/public/404.html +67 -0
- data/sample-apps/companies-app/public/422.html +67 -0
- data/sample-apps/companies-app/public/500.html +66 -0
- data/sample-apps/companies-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/companies-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/companies-app/public/favicon.ico +0 -0
- data/sample-apps/companies-app/public/robots.txt +1 -0
- data/sample-apps/companies-app/tmp/.keep +0 -0
- data/sample-apps/contacts-app/.env.template +2 -0
- data/sample-apps/contacts-app/.env.test.template +3 -0
- data/sample-apps/contacts-app/.gitignore +35 -0
- data/sample-apps/contacts-app/.rspec +1 -0
- data/sample-apps/contacts-app/.ruby-version +1 -0
- data/sample-apps/contacts-app/Dockerfile +22 -0
- data/sample-apps/contacts-app/Gemfile +33 -0
- data/sample-apps/contacts-app/Gemfile.lock +270 -0
- data/sample-apps/contacts-app/README.md +41 -0
- data/sample-apps/contacts-app/Rakefile +6 -0
- data/sample-apps/contacts-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/contacts-app/app/assets/images/.keep +0 -0
- data/sample-apps/contacts-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/contacts-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/contacts-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/contacts-app/app/assets/stylesheets/application.css +117 -0
- data/sample-apps/contacts-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/contacts-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/contacts-app/app/controllers/contacts_controller.rb +68 -0
- data/sample-apps/contacts-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/contacts-app/app/controllers/properties_controller.rb +52 -0
- data/sample-apps/contacts-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +22 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/destroy.rb +16 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/export.rb +48 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/get_all.rb +26 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/get_by_id.rb +28 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/search.rb +37 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +24 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/owners/get_all.rb +12 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb +23 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/destroy.rb +16 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/get_all.rb +12 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/get_by_name.rb +20 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/update.rb +27 -0
- data/sample-apps/contacts-app/app/models/application_record.rb +3 -0
- data/sample-apps/contacts-app/app/models/concerns/.keep +0 -0
- data/sample-apps/contacts-app/app/views/contacts/index.html.erb +78 -0
- data/sample-apps/contacts-app/app/views/contacts/new.html.erb +18 -0
- data/sample-apps/contacts-app/app/views/contacts/show.html.erb +38 -0
- data/sample-apps/contacts-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/contacts-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/contacts-app/app/views/properties/index.html.erb +68 -0
- data/sample-apps/contacts-app/app/views/properties/new.html.erb +29 -0
- data/sample-apps/contacts-app/app/views/properties/show.html.erb +29 -0
- data/sample-apps/contacts-app/app/views/shared/_header.html.erb +18 -0
- data/sample-apps/contacts-app/bin/bundle +3 -0
- data/sample-apps/contacts-app/bin/rails +9 -0
- data/sample-apps/contacts-app/bin/rake +9 -0
- data/sample-apps/contacts-app/bin/setup +36 -0
- data/sample-apps/contacts-app/bin/spring +17 -0
- data/sample-apps/contacts-app/bin/update +31 -0
- data/sample-apps/contacts-app/bin/yarn +11 -0
- data/sample-apps/contacts-app/config.ru +5 -0
- data/sample-apps/contacts-app/config/application.rb +19 -0
- data/sample-apps/contacts-app/config/boot.rb +3 -0
- data/sample-apps/contacts-app/config/cable.yml +10 -0
- data/sample-apps/contacts-app/config/database.yml +25 -0
- data/sample-apps/contacts-app/config/environment.rb +5 -0
- data/sample-apps/contacts-app/config/environments/development.rb +61 -0
- data/sample-apps/contacts-app/config/environments/production.rb +94 -0
- data/sample-apps/contacts-app/config/environments/test.rb +46 -0
- data/sample-apps/contacts-app/config/initializers/assets.rb +14 -0
- data/sample-apps/contacts-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/contacts-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/contacts-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/contacts-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/contacts-app/config/locales/en.yml +33 -0
- data/sample-apps/contacts-app/config/puma.rb +34 -0
- data/sample-apps/contacts-app/config/routes.rb +14 -0
- data/sample-apps/contacts-app/config/spring.rb +6 -0
- data/sample-apps/contacts-app/db/seeds.rb +7 -0
- data/sample-apps/contacts-app/docker-compose.yml +11 -0
- data/sample-apps/contacts-app/docker-entrypoint.sh +8 -0
- data/sample-apps/contacts-app/lib/assets/.keep +0 -0
- data/sample-apps/contacts-app/lib/tasks/.keep +0 -0
- data/sample-apps/contacts-app/log/.keep +0 -0
- data/sample-apps/contacts-app/package.json +5 -0
- data/sample-apps/contacts-app/public/404.html +67 -0
- data/sample-apps/contacts-app/public/422.html +67 -0
- data/sample-apps/contacts-app/public/500.html +66 -0
- data/sample-apps/contacts-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/contacts-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/contacts-app/public/favicon.ico +0 -0
- data/sample-apps/contacts-app/public/robots.txt +1 -0
- data/sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb +27 -0
- data/sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb +18 -0
- data/sample-apps/contacts-app/spec/features/visitor_downloads_contacts_spec.rb +21 -0
- data/sample-apps/contacts-app/spec/features/visitor_edits_contact_spec.rb +35 -0
- data/sample-apps/contacts-app/spec/features/visitor_lists_contacts_spec.rb +10 -0
- data/sample-apps/contacts-app/spec/features/visitor_logs_in_spec.rb +22 -0
- data/sample-apps/contacts-app/spec/features/visitor_searches_contacts_spec.rb +33 -0
- data/sample-apps/contacts-app/spec/rails_helper.rb +42 -0
- data/sample-apps/contacts-app/spec/spec_helper.rb +11 -0
- data/sample-apps/contacts-app/spec/support/application_helper.rb +29 -0
- data/sample-apps/contacts-app/spec/support/download_helper.rb +37 -0
- data/sample-apps/contacts-app/tmp/.keep +0 -0
- data/sample-apps/oauth-app/.env.template +2 -0
- data/sample-apps/oauth-app/.env.test.template +3 -0
- data/sample-apps/oauth-app/.gitignore +35 -0
- data/sample-apps/oauth-app/.rspec +1 -0
- data/sample-apps/oauth-app/.ruby-version +1 -0
- data/sample-apps/oauth-app/Dockerfile +22 -0
- data/sample-apps/oauth-app/Gemfile +33 -0
- data/sample-apps/oauth-app/Gemfile.lock +270 -0
- data/sample-apps/oauth-app/README.md +33 -0
- data/sample-apps/oauth-app/Rakefile +6 -0
- data/sample-apps/oauth-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/oauth-app/app/assets/images/.keep +0 -0
- data/sample-apps/oauth-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/oauth-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/oauth-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/oauth-app/app/assets/stylesheets/application.css +117 -0
- data/sample-apps/oauth-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/oauth-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/oauth-app/app/controllers/contacts_controller.rb +67 -0
- data/sample-apps/oauth-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/oauth-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +22 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/destroy.rb +16 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/export.rb +48 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/get_all.rb +26 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/get_by_id.rb +20 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/search.rb +37 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +24 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/owners/get_all.rb +12 -0
- data/sample-apps/oauth-app/app/models/application_record.rb +3 -0
- data/sample-apps/oauth-app/app/models/concerns/.keep +0 -0
- data/sample-apps/oauth-app/app/views/contacts/index.html.erb +78 -0
- data/sample-apps/oauth-app/app/views/contacts/new.html.erb +18 -0
- data/sample-apps/oauth-app/app/views/contacts/show.html.erb +38 -0
- data/sample-apps/oauth-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/oauth-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/oauth-app/app/views/shared/_header.html.erb +15 -0
- data/sample-apps/oauth-app/bin/bundle +3 -0
- data/sample-apps/oauth-app/bin/rails +9 -0
- data/sample-apps/oauth-app/bin/rake +9 -0
- data/sample-apps/oauth-app/bin/setup +36 -0
- data/sample-apps/oauth-app/bin/spring +17 -0
- data/sample-apps/oauth-app/bin/update +31 -0
- data/sample-apps/oauth-app/bin/yarn +11 -0
- data/sample-apps/oauth-app/config.ru +5 -0
- data/sample-apps/oauth-app/config/application.rb +19 -0
- data/sample-apps/oauth-app/config/boot.rb +3 -0
- data/sample-apps/oauth-app/config/cable.yml +10 -0
- data/sample-apps/oauth-app/config/database.yml +25 -0
- data/sample-apps/oauth-app/config/environment.rb +5 -0
- data/sample-apps/oauth-app/config/environments/development.rb +61 -0
- data/sample-apps/oauth-app/config/environments/production.rb +94 -0
- data/sample-apps/oauth-app/config/environments/test.rb +46 -0
- data/sample-apps/oauth-app/config/initializers/assets.rb +14 -0
- data/sample-apps/oauth-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/oauth-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/oauth-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/oauth-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/oauth-app/config/locales/en.yml +33 -0
- data/sample-apps/oauth-app/config/puma.rb +34 -0
- data/sample-apps/oauth-app/config/routes.rb +14 -0
- data/sample-apps/oauth-app/config/spring.rb +6 -0
- data/sample-apps/oauth-app/db/seeds.rb +7 -0
- data/sample-apps/oauth-app/docker-compose.yml +11 -0
- data/sample-apps/oauth-app/docker-entrypoint.sh +8 -0
- data/sample-apps/oauth-app/lib/assets/.keep +0 -0
- data/sample-apps/oauth-app/lib/tasks/.keep +0 -0
- data/sample-apps/oauth-app/log/.keep +0 -0
- data/sample-apps/oauth-app/package.json +5 -0
- data/sample-apps/oauth-app/public/404.html +67 -0
- data/sample-apps/oauth-app/public/422.html +67 -0
- data/sample-apps/oauth-app/public/500.html +66 -0
- data/sample-apps/oauth-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/oauth-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/oauth-app/public/favicon.ico +0 -0
- data/sample-apps/oauth-app/public/robots.txt +1 -0
- data/sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb +27 -0
- data/sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb +18 -0
- data/sample-apps/oauth-app/spec/features/visitor_downloads_contacts_spec.rb +21 -0
- data/sample-apps/oauth-app/spec/features/visitor_edits_contact_spec.rb +35 -0
- data/sample-apps/oauth-app/spec/features/visitor_lists_contacts_spec.rb +10 -0
- data/sample-apps/oauth-app/spec/features/visitor_logs_in_spec.rb +22 -0
- data/sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb +33 -0
- data/sample-apps/oauth-app/spec/rails_helper.rb +42 -0
- data/sample-apps/oauth-app/spec/spec_helper.rb +11 -0
- data/sample-apps/oauth-app/spec/support/application_helper.rb +29 -0
- data/sample-apps/oauth-app/spec/support/download_helper.rb +37 -0
- data/sample-apps/oauth-app/tmp/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/.env.template +2 -0
- data/sample-apps/retry-middleware-sample-app/.gitignore +35 -0
- data/sample-apps/retry-middleware-sample-app/.ruby-version +1 -0
- data/sample-apps/retry-middleware-sample-app/Dockerfile +22 -0
- data/sample-apps/retry-middleware-sample-app/Gemfile +37 -0
- data/sample-apps/retry-middleware-sample-app/Gemfile.lock +282 -0
- data/sample-apps/retry-middleware-sample-app/README.md +33 -0
- data/sample-apps/retry-middleware-sample-app/Rakefile +6 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/images/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/javascripts/application.js +25 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/stylesheets/application.css +90 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/home_controller.rb +15 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/retry-middleware-sample-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/retry-middleware-sample-app/app/models/application_record.rb +3 -0
- data/sample-apps/retry-middleware-sample-app/app/models/concerns/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/app/views/home/index.html.erb +13 -0
- data/sample-apps/retry-middleware-sample-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/retry-middleware-sample-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/retry-middleware-sample-app/app/views/shared/_header.html.erb +12 -0
- data/sample-apps/retry-middleware-sample-app/bin/bundle +3 -0
- data/sample-apps/retry-middleware-sample-app/bin/rails +9 -0
- data/sample-apps/retry-middleware-sample-app/bin/rake +9 -0
- data/sample-apps/retry-middleware-sample-app/bin/setup +36 -0
- data/sample-apps/retry-middleware-sample-app/bin/spring +17 -0
- data/sample-apps/retry-middleware-sample-app/bin/update +31 -0
- data/sample-apps/retry-middleware-sample-app/bin/yarn +11 -0
- data/sample-apps/retry-middleware-sample-app/config.ru +5 -0
- data/sample-apps/retry-middleware-sample-app/config/application.rb +19 -0
- data/sample-apps/retry-middleware-sample-app/config/boot.rb +3 -0
- data/sample-apps/retry-middleware-sample-app/config/cable.yml +10 -0
- data/sample-apps/retry-middleware-sample-app/config/database.yml +25 -0
- data/sample-apps/retry-middleware-sample-app/config/environment.rb +5 -0
- data/sample-apps/retry-middleware-sample-app/config/environments/development.rb +61 -0
- data/sample-apps/retry-middleware-sample-app/config/environments/production.rb +94 -0
- data/sample-apps/retry-middleware-sample-app/config/environments/test.rb +46 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/assets.rb +14 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/retry-middleware-sample-app/config/locales/en.yml +33 -0
- data/sample-apps/retry-middleware-sample-app/config/puma.rb +34 -0
- data/sample-apps/retry-middleware-sample-app/config/routes.rb +6 -0
- data/sample-apps/retry-middleware-sample-app/config/spring.rb +6 -0
- data/sample-apps/retry-middleware-sample-app/db/seeds.rb +7 -0
- data/sample-apps/retry-middleware-sample-app/docker-compose.yml +11 -0
- data/sample-apps/retry-middleware-sample-app/docker-entrypoint.sh +8 -0
- data/sample-apps/retry-middleware-sample-app/lib/assets/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/lib/tasks/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/lib/tasks/retry_middleware.rake +37 -0
- data/sample-apps/retry-middleware-sample-app/log/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/package.json +5 -0
- data/sample-apps/retry-middleware-sample-app/public/404.html +67 -0
- data/sample-apps/retry-middleware-sample-app/public/422.html +67 -0
- data/sample-apps/retry-middleware-sample-app/public/500.html +66 -0
- data/sample-apps/retry-middleware-sample-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/retry-middleware-sample-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/retry-middleware-sample-app/public/favicon.ico +0 -0
- data/sample-apps/retry-middleware-sample-app/public/robots.txt +1 -0
- data/sample-apps/retry-middleware-sample-app/tmp/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/.env.template +2 -0
- data/sample-apps/webhooks-contacts-app/.gitignore +35 -0
- data/sample-apps/webhooks-contacts-app/.ruby-version +1 -0
- data/sample-apps/webhooks-contacts-app/Dockerfile +21 -0
- data/sample-apps/webhooks-contacts-app/Gemfile +37 -0
- data/sample-apps/webhooks-contacts-app/Gemfile.lock +280 -0
- data/sample-apps/webhooks-contacts-app/README.md +51 -0
- data/sample-apps/webhooks-contacts-app/Rakefile +6 -0
- data/sample-apps/webhooks-contacts-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/webhooks-contacts-app/app/assets/images/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/app/assets/javascripts/application.js +46 -0
- data/sample-apps/webhooks-contacts-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/webhooks-contacts-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/app/assets/stylesheets/application.css +140 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/application_controller.rb +18 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/events_controller.rb +33 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb +9 -0
- data/sample-apps/webhooks-contacts-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/refresh.rb +34 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +39 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/handle.rb +34 -0
- data/sample-apps/webhooks-contacts-app/app/models/application_record.rb +3 -0
- data/sample-apps/webhooks-contacts-app/app/models/concerns/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/app/models/event.rb +2 -0
- data/sample-apps/webhooks-contacts-app/app/models/token.rb +15 -0
- data/sample-apps/webhooks-contacts-app/app/views/events/index.html.erb +41 -0
- data/sample-apps/webhooks-contacts-app/app/views/layouts/application.html.erb +21 -0
- data/sample-apps/webhooks-contacts-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/webhooks-contacts-app/app/views/shared/_header.html.erb +15 -0
- data/sample-apps/webhooks-contacts-app/bin/bundle +3 -0
- data/sample-apps/webhooks-contacts-app/bin/rails +9 -0
- data/sample-apps/webhooks-contacts-app/bin/rake +9 -0
- data/sample-apps/webhooks-contacts-app/bin/setup +36 -0
- data/sample-apps/webhooks-contacts-app/bin/spring +17 -0
- data/sample-apps/webhooks-contacts-app/bin/update +31 -0
- data/sample-apps/webhooks-contacts-app/bin/yarn +11 -0
- data/sample-apps/webhooks-contacts-app/config.ru +5 -0
- data/sample-apps/webhooks-contacts-app/config/application.rb +19 -0
- data/sample-apps/webhooks-contacts-app/config/boot.rb +3 -0
- data/sample-apps/webhooks-contacts-app/config/cable.yml +10 -0
- data/sample-apps/webhooks-contacts-app/config/database.yml +15 -0
- data/sample-apps/webhooks-contacts-app/config/environment.rb +5 -0
- data/sample-apps/webhooks-contacts-app/config/environments/development.rb +61 -0
- data/sample-apps/webhooks-contacts-app/config/environments/production.rb +94 -0
- data/sample-apps/webhooks-contacts-app/config/environments/test.rb +47 -0
- data/sample-apps/webhooks-contacts-app/config/initializers/assets.rb +14 -0
- data/sample-apps/webhooks-contacts-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/webhooks-contacts-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/webhooks-contacts-app/config/locales/en.yml +33 -0
- data/sample-apps/webhooks-contacts-app/config/puma.rb +34 -0
- data/sample-apps/webhooks-contacts-app/config/routes.rb +10 -0
- data/sample-apps/webhooks-contacts-app/config/spring.rb +6 -0
- data/sample-apps/webhooks-contacts-app/db/migrate/20191202170347_create_tokens.rb +10 -0
- data/sample-apps/webhooks-contacts-app/db/migrate/20200130113853_create_events.rb +14 -0
- data/sample-apps/webhooks-contacts-app/db/schema.rb +36 -0
- data/sample-apps/webhooks-contacts-app/docker-compose.yml +38 -0
- data/sample-apps/webhooks-contacts-app/docker-entrypoint.sh +8 -0
- data/sample-apps/webhooks-contacts-app/lib/assets/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/lib/tasks/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/log/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/package.json +5 -0
- data/sample-apps/webhooks-contacts-app/public/404.html +67 -0
- data/sample-apps/webhooks-contacts-app/public/422.html +67 -0
- data/sample-apps/webhooks-contacts-app/public/500.html +66 -0
- data/sample-apps/webhooks-contacts-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/webhooks-contacts-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/webhooks-contacts-app/public/favicon.ico +0 -0
- data/sample-apps/webhooks-contacts-app/public/robots.txt +1 -0
- data/sample-apps/webhooks-contacts-app/public/sample.png +0 -0
- data/sample-apps/webhooks-contacts-app/tmp/.keep +0 -0
- data/spec/oauth/api/access_tokens_api_spec.rb +46 -0
- data/spec/oauth/api/refresh_tokens_api_spec.rb +92 -0
- data/spec/oauth/api/tokens_api_spec.rb +51 -0
- data/spec/oauth/api_client_spec.rb +226 -0
- data/spec/oauth/configuration_spec.rb +42 -0
- data/spec/oauth/models/access_token_info_response_spec.rb +89 -0
- data/spec/oauth/models/error_detail_spec.rb +53 -0
- data/spec/oauth/models/error_spec.rb +71 -0
- data/spec/oauth/models/json_node_spec.rb +165 -0
- data/spec/oauth/models/refresh_token_info_response_spec.rb +83 -0
- data/spec/oauth/models/refresh_token_spec.rb +59 -0
- data/spec/objects/api/associations_api_spec.rb +76 -0
- data/spec/objects/api/basic_api_spec.rb +108 -0
- data/spec/objects/api/batch_api_spec.rb +88 -0
- data/spec/objects/api/search_api_spec.rb +48 -0
- data/spec/objects/api_client_spec.rb +226 -0
- data/spec/objects/configuration_spec.rb +42 -0
- data/spec/objects/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
- data/spec/objects/models/batch_input_simple_public_object_id_spec.rb +41 -0
- data/spec/objects/models/batch_input_simple_public_object_input_spec.rb +41 -0
- data/spec/objects/models/batch_read_input_simple_public_object_id_spec.rb +47 -0
- data/spec/objects/models/batch_response_simple_public_object_spec.rb +81 -0
- data/spec/objects/models/collection_response_simple_public_object_id_spec.rb +47 -0
- data/spec/objects/models/collection_response_simple_public_object_spec.rb +47 -0
- data/spec/objects/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
- data/spec/objects/models/error_detail_spec.rb +65 -0
- data/spec/objects/models/error_spec.rb +71 -0
- data/spec/objects/models/filter_group_spec.rb +41 -0
- data/spec/objects/models/filter_spec.rb +57 -0
- data/spec/objects/models/next_page_spec.rb +47 -0
- data/spec/objects/models/paging_spec.rb +41 -0
- data/spec/objects/models/public_object_search_request_spec.rb +71 -0
- data/spec/objects/models/simple_public_object_batch_input_spec.rb +47 -0
- data/spec/objects/models/simple_public_object_id_spec.rb +41 -0
- data/spec/objects/models/simple_public_object_input_spec.rb +41 -0
- data/spec/objects/models/simple_public_object_spec.rb +77 -0
- data/spec/owners/api/default_api_spec.rb +60 -0
- data/spec/owners/api_client_spec.rb +226 -0
- data/spec/owners/configuration_spec.rb +42 -0
- data/spec/owners/models/collection_response_public_owner_spec.rb +47 -0
- data/spec/owners/models/error_detail_spec.rb +53 -0
- data/spec/owners/models/error_spec.rb +71 -0
- data/spec/owners/models/next_page_spec.rb +47 -0
- data/spec/owners/models/paging_spec.rb +41 -0
- data/spec/owners/models/public_owner_spec.rb +89 -0
- data/spec/owners/models/public_team_spec.rb +57 -0
- data/spec/pipelines/api/pipeline_stages_api_spec.rb +123 -0
- data/spec/pipelines/api/pipelines_api_spec.rb +117 -0
- data/spec/pipelines/api_client_spec.rb +226 -0
- data/spec/pipelines/configuration_spec.rb +42 -0
- data/spec/pipelines/models/collection_response_pipeline_spec.rb +47 -0
- data/spec/pipelines/models/collection_response_pipeline_stage_spec.rb +47 -0
- data/spec/pipelines/models/error_detail_spec.rb +53 -0
- data/spec/pipelines/models/error_spec.rb +71 -0
- data/spec/pipelines/models/next_page_spec.rb +47 -0
- data/spec/pipelines/models/paging_spec.rb +41 -0
- data/spec/pipelines/models/pipeline_input_spec.rb +53 -0
- data/spec/pipelines/models/pipeline_patch_input_spec.rb +53 -0
- data/spec/pipelines/models/pipeline_spec.rb +83 -0
- data/spec/pipelines/models/pipeline_stage_input_spec.rb +53 -0
- data/spec/pipelines/models/pipeline_stage_patch_input_spec.rb +59 -0
- data/spec/pipelines/models/pipeline_stage_spec.rb +83 -0
- data/spec/properties/api/batch_api_spec.rb +74 -0
- data/spec/properties/api/core_api_spec.rb +102 -0
- data/spec/properties/api/groups_api_spec.rb +100 -0
- data/spec/properties/api_client_spec.rb +226 -0
- data/spec/properties/configuration_spec.rb +42 -0
- data/spec/properties/models/batch_input_property_create_spec.rb +41 -0
- data/spec/properties/models/batch_input_property_name_spec.rb +41 -0
- data/spec/properties/models/batch_read_input_property_name_spec.rb +47 -0
- data/spec/properties/models/batch_response_property_spec.rb +81 -0
- data/spec/properties/models/collection_response_property_group_spec.rb +47 -0
- data/spec/properties/models/collection_response_property_spec.rb +47 -0
- data/spec/properties/models/error_detail_spec.rb +65 -0
- data/spec/properties/models/error_spec.rb +71 -0
- data/spec/properties/models/next_page_spec.rb +47 -0
- data/spec/properties/models/option_input_spec.rb +65 -0
- data/spec/properties/models/option_spec.rb +65 -0
- data/spec/properties/models/paging_spec.rb +41 -0
- data/spec/properties/models/property_create_spec.rb +103 -0
- data/spec/properties/models/property_group_create_spec.rb +53 -0
- data/spec/properties/models/property_group_spec.rb +59 -0
- data/spec/properties/models/property_group_update_spec.rb +47 -0
- data/spec/properties/models/property_modification_metadata_spec.rb +59 -0
- data/spec/properties/models/property_name_spec.rb +41 -0
- data/spec/properties/models/property_spec.rb +177 -0
- data/spec/properties/models/property_update_spec.rb +91 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1145 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a6b58b203d4071bf15810f2b8dc74bdf5c0e76df2228b769a741310f116b01e9
|
4
|
+
data.tar.gz: 97f079b32bdda82fbdef60f56125a5f6fcd18586298354b95ab1b9a795a44360
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 774cd20311e90aec53cf85dd06a3cdd345f35828c69d86a4fa0b8615b8a3d188482814c7fa139abb357d83bbc29e09fff97c6ae6f3937195c30271e9eb6c2f0b
|
7
|
+
data.tar.gz: edc7b368209f997485db8a1242ba5b626dbabd6e53428ca1beba440c8fa2d646049359b923ae8cf1fa49ee50b05d9738988c2208629ce98acfa3a7f716cde018
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
hubspot-api-client (1.0.0)
|
5
|
+
faraday (>= 0.14.0)
|
6
|
+
json (~> 2.1, >= 2.1.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ZenTest (4.12.0)
|
12
|
+
addressable (2.7.0)
|
13
|
+
public_suffix (>= 2.0.2, < 5.0)
|
14
|
+
autotest (4.4.6)
|
15
|
+
ZenTest (>= 4.4.1)
|
16
|
+
autotest-fsevent (0.2.15)
|
17
|
+
sys-uname
|
18
|
+
autotest-growl (0.2.16)
|
19
|
+
autotest-rails-pure (4.1.2)
|
20
|
+
crack (0.4.3)
|
21
|
+
safe_yaml (~> 1.0.0)
|
22
|
+
diff-lcs (1.3)
|
23
|
+
faraday (1.0.0)
|
24
|
+
multipart-post (>= 1.2, < 3)
|
25
|
+
ffi (1.11.3)
|
26
|
+
hashdiff (1.0.0)
|
27
|
+
json (2.3.0)
|
28
|
+
multipart-post (2.1.1)
|
29
|
+
public_suffix (4.0.1)
|
30
|
+
rake (12.0.0)
|
31
|
+
rspec (3.9.0)
|
32
|
+
rspec-core (~> 3.9.0)
|
33
|
+
rspec-expectations (~> 3.9.0)
|
34
|
+
rspec-mocks (~> 3.9.0)
|
35
|
+
rspec-core (3.9.0)
|
36
|
+
rspec-support (~> 3.9.0)
|
37
|
+
rspec-expectations (3.9.0)
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
+
rspec-support (~> 3.9.0)
|
40
|
+
rspec-mocks (3.9.0)
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
+
rspec-support (~> 3.9.0)
|
43
|
+
rspec-support (3.9.0)
|
44
|
+
safe_yaml (1.0.5)
|
45
|
+
sys-uname (1.1.1)
|
46
|
+
ffi (>= 1.0.0)
|
47
|
+
vcr (3.0.3)
|
48
|
+
webmock (1.24.6)
|
49
|
+
addressable (>= 2.3.6)
|
50
|
+
crack (>= 0.3.2)
|
51
|
+
hashdiff
|
52
|
+
|
53
|
+
PLATFORMS
|
54
|
+
ruby
|
55
|
+
|
56
|
+
DEPENDENCIES
|
57
|
+
autotest (~> 4.4, >= 4.4.6)
|
58
|
+
autotest-fsevent (~> 0.2, >= 0.2.12)
|
59
|
+
autotest-growl (~> 0.2, >= 0.2.16)
|
60
|
+
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
61
|
+
hubspot-api-client!
|
62
|
+
rake (~> 12.0.0)
|
63
|
+
rspec (~> 3.6, >= 3.6.0)
|
64
|
+
vcr (~> 3.0, >= 3.0.1)
|
65
|
+
webmock (~> 1.24, >= 1.24.3)
|
66
|
+
|
67
|
+
BUNDLED WITH
|
68
|
+
1.17.3
|
data/README.md
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
# hubspot-api-client
|
2
|
+
Ruby API v3 Client files and sample apps
|
3
|
+
|
4
|
+
- API version: v3
|
5
|
+
- Package version: 1.0.0
|
6
|
+
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
### Build a gem
|
11
|
+
|
12
|
+
To build the Ruby code into a gem:
|
13
|
+
|
14
|
+
```shell
|
15
|
+
gem build hubspot-api-client.gemspec
|
16
|
+
```
|
17
|
+
|
18
|
+
Then either install the gem locally:
|
19
|
+
|
20
|
+
```shell
|
21
|
+
gem install ./hubspot-api-client-1.0.0.gem
|
22
|
+
```
|
23
|
+
(for development, run `gem install --dev ./hubspot-api-client-1.0.0.gem` to install the development dependencies)
|
24
|
+
|
25
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
26
|
+
|
27
|
+
Finally add this to the Gemfile:
|
28
|
+
|
29
|
+
gem 'hubspot-api-client', '~> 1.0.0'
|
30
|
+
|
31
|
+
### Install from Git
|
32
|
+
|
33
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
34
|
+
|
35
|
+
gem 'hubspot-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
36
|
+
|
37
|
+
### Include the Ruby code directly
|
38
|
+
|
39
|
+
Include the Ruby code directly using `-I` as follows:
|
40
|
+
|
41
|
+
```shell
|
42
|
+
ruby -Ilib script.rb
|
43
|
+
```
|
44
|
+
|
45
|
+
## Getting Started
|
46
|
+
|
47
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
48
|
+
```ruby
|
49
|
+
# Load the gem
|
50
|
+
require 'hubspot-api-client'
|
51
|
+
|
52
|
+
# Setup authorization
|
53
|
+
Hubspot.configure do |config|
|
54
|
+
# Configure API key authorization: hapikey
|
55
|
+
config.api_key['hapikey'] = 'YOUR API KEY'
|
56
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
57
|
+
#config.api_key_prefix['hapikey'] = 'Bearer'
|
58
|
+
|
59
|
+
# Configure OAuth2 access token for authorization: oauth2
|
60
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
61
|
+
end
|
62
|
+
|
63
|
+
api_instance = Hubspot::Client::Crm::Objects::Api::AssociationsApi.new
|
64
|
+
|
65
|
+
object_type = 'object_type_example' # String |
|
66
|
+
|
67
|
+
object_id = 'object_id_example' # String |
|
68
|
+
|
69
|
+
associated_object_type = 'associated_object_type_example' # String |
|
70
|
+
|
71
|
+
to_object_id = 'to_object_id_example' # String |
|
72
|
+
|
73
|
+
|
74
|
+
begin
|
75
|
+
#Remove an association between two objects
|
76
|
+
api_instance.archive_association(object_type, object_id, associated_object_type, to_object_id)
|
77
|
+
rescue Hubspot::Client::Crm::Objects::ApiError => e
|
78
|
+
puts "Exception when calling AssociationsApi->archive_association: #{e}"
|
79
|
+
end
|
80
|
+
|
81
|
+
```
|
82
|
+
|
83
|
+
### Error handling
|
84
|
+
|
85
|
+
#### You can set number of retry attempts and delay in seconds before retry on specific status code of response.
|
86
|
+
|
87
|
+
Available params:
|
88
|
+
- max_retries (maximum number of retries)
|
89
|
+
- seconds_delay (pause in seconds between retries)
|
90
|
+
- retry_block (block that is executed after every retry)
|
91
|
+
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
config = ::Hubspot::Client::Crm::Companies::Configuration.new do |config|
|
95
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
96
|
+
|
97
|
+
# Set handlers of statuses you want to handle
|
98
|
+
config.error_handler = {
|
99
|
+
[429, 430, 442] => { max_retries: 5, seconds_delay: 1 },
|
100
|
+
(500..530).to_a => { max_retries: 2, seconds_delay: 2 },
|
101
|
+
400 => { max_retries: 3, seconds_delay: 3 },
|
102
|
+
}
|
103
|
+
end
|
104
|
+
|
105
|
+
api_client = ::Hubspot::Client::Crm::Companies::ApiClient.new(config)
|
106
|
+
basic_api = ::Hubspot::Client::Crm::Companies::Api::BasicApi.new(api_client)
|
107
|
+
end
|
108
|
+
|
109
|
+
```
|
data/Rakefile
ADDED
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
require "hubspot/version"
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "hubspot-api-client"
|
6
|
+
s.version = Hubspot::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.authors = ["HubSpot"]
|
9
|
+
s.email = [""]
|
10
|
+
s.homepage = "https://github.com/HubSpot/hubspot-api-ruby"
|
11
|
+
s.summary = "HubSpot Ruby API Gem"
|
12
|
+
s.description = "HubSpot Ruby API client"
|
13
|
+
s.license = "Unlicense"
|
14
|
+
s.required_ruby_version = ">= 1.9"
|
15
|
+
|
16
|
+
s.add_runtime_dependency 'faraday', '>= 0.14.0'
|
17
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
18
|
+
|
19
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
20
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
21
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
22
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
23
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
24
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
25
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
26
|
+
|
27
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
28
|
+
s.test_files = `find spec/*`.split("\n")
|
29
|
+
s.executables = []
|
30
|
+
s.require_paths = ["lib"]
|
31
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
=begin
|
2
|
+
#CRM Objects
|
3
|
+
|
4
|
+
#CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are native objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
|
5
|
+
|
6
|
+
OpenAPI spec version: v3
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
require 'logger'
|
15
|
+
|
16
|
+
ROOT_PATH = File.dirname(__FILE__)
|
17
|
+
Dir["#{ROOT_PATH}/hubspot/**/*.rb"].each { |f| require f }
|
18
|
+
|
19
|
+
|
20
|
+
module Hubspot
|
21
|
+
class << self
|
22
|
+
CLIENTS = [
|
23
|
+
'OAuth',
|
24
|
+
'Crm::Associations',
|
25
|
+
'Crm::Companies',
|
26
|
+
'Crm::Contacts',
|
27
|
+
'Crm::Deals',
|
28
|
+
'Crm::Extensions::Cards',
|
29
|
+
'Crm::LineItems',
|
30
|
+
'Crm::Objects',
|
31
|
+
'Crm::Owners',
|
32
|
+
'Crm::Pipelines',
|
33
|
+
'Crm::Products',
|
34
|
+
'Crm::Properties',
|
35
|
+
'Crm::Quotes',
|
36
|
+
'Crm::Tickets'
|
37
|
+
].freeze
|
38
|
+
|
39
|
+
def configure
|
40
|
+
return Configuration.default unless block_given?
|
41
|
+
yield(Configuration.default)
|
42
|
+
CLIENTS.each do |client_class_name|
|
43
|
+
config_class = Hubspot.const_get("Client::#{client_class_name}::Configuration")
|
44
|
+
yield(config_class.default)
|
45
|
+
end
|
46
|
+
Configuration.default
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,246 @@
|
|
1
|
+
=begin
|
2
|
+
#Associations
|
3
|
+
|
4
|
+
#Associations define the relationships between objects in HubSpot. These endpoints allow you to create, read, and remove associations.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Client
|
17
|
+
module Crm
|
18
|
+
module Associations
|
19
|
+
module Api
|
20
|
+
class BatchApi
|
21
|
+
attr_accessor :api_client
|
22
|
+
|
23
|
+
def initialize(api_client = ApiClient.default)
|
24
|
+
@api_client = api_client
|
25
|
+
end
|
26
|
+
# Archive a batch of associations
|
27
|
+
# Remove the associations between all pairs of objects identified in the request body.
|
28
|
+
# @param from_object_type [String]
|
29
|
+
# @param to_object_type [String]
|
30
|
+
# @param [Hash] opts the optional parameters
|
31
|
+
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
32
|
+
# @return [nil]
|
33
|
+
def archive_batch(from_object_type, to_object_type, opts = {})
|
34
|
+
archive_batch_with_http_info(from_object_type, to_object_type, opts)
|
35
|
+
nil
|
36
|
+
end
|
37
|
+
|
38
|
+
# Archive a batch of associations
|
39
|
+
# Remove the associations between all pairs of objects identified in the request body.
|
40
|
+
# @param from_object_type [String]
|
41
|
+
# @param to_object_type [String]
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
44
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
45
|
+
def archive_batch_with_http_info(from_object_type, to_object_type, opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.archive_batch ...'
|
48
|
+
end
|
49
|
+
# verify the required parameter 'from_object_type' is set
|
50
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.archive_batch"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'to_object_type' is set
|
54
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.archive_batch"
|
56
|
+
end
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/{fromObjectType}/{toObjectType}/batch/archive'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s).gsub('%2F', '/')).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s).gsub('%2F', '/'))
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = opts[:query_params] || {}
|
62
|
+
|
63
|
+
# header parameters
|
64
|
+
header_params = opts[:header_params] || {}
|
65
|
+
# HTTP header 'Accept' (if needed)
|
66
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
67
|
+
# HTTP header 'Content-Type'
|
68
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
69
|
+
|
70
|
+
# form parameters
|
71
|
+
form_params = opts[:form_params] || {}
|
72
|
+
|
73
|
+
# http body (model)
|
74
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_public_association'])
|
75
|
+
|
76
|
+
# return_type
|
77
|
+
return_type = opts[:return_type]
|
78
|
+
|
79
|
+
# auth_names
|
80
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
81
|
+
|
82
|
+
new_options = opts.merge(
|
83
|
+
:header_params => header_params,
|
84
|
+
:query_params => query_params,
|
85
|
+
:form_params => form_params,
|
86
|
+
:body => post_body,
|
87
|
+
:auth_names => auth_names,
|
88
|
+
:return_type => return_type
|
89
|
+
)
|
90
|
+
|
91
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug "API called: BatchApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
94
|
+
end
|
95
|
+
return data, status_code, headers
|
96
|
+
end
|
97
|
+
|
98
|
+
# Create a batch of associations
|
99
|
+
# Associate all pairs of objects identified in the request body.
|
100
|
+
# @param from_object_type [String]
|
101
|
+
# @param to_object_type [String]
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
104
|
+
# @return [BatchResponsePublicAssociation]
|
105
|
+
def create_batch(from_object_type, to_object_type, opts = {})
|
106
|
+
data, _status_code, _headers = create_batch_with_http_info(from_object_type, to_object_type, opts)
|
107
|
+
data
|
108
|
+
end
|
109
|
+
|
110
|
+
# Create a batch of associations
|
111
|
+
# Associate all pairs of objects identified in the request body.
|
112
|
+
# @param from_object_type [String]
|
113
|
+
# @param to_object_type [String]
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
116
|
+
# @return [Array<(BatchResponsePublicAssociation, Integer, Hash)>] BatchResponsePublicAssociation data, response status code and response headers
|
117
|
+
def create_batch_with_http_info(from_object_type, to_object_type, opts = {})
|
118
|
+
if @api_client.config.debugging
|
119
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.create_batch ...'
|
120
|
+
end
|
121
|
+
# verify the required parameter 'from_object_type' is set
|
122
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
123
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.create_batch"
|
124
|
+
end
|
125
|
+
# verify the required parameter 'to_object_type' is set
|
126
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
127
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.create_batch"
|
128
|
+
end
|
129
|
+
# resource path
|
130
|
+
local_var_path = '/{fromObjectType}/{toObjectType}/batch/create'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s).gsub('%2F', '/')).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s).gsub('%2F', '/'))
|
131
|
+
|
132
|
+
# query parameters
|
133
|
+
query_params = opts[:query_params] || {}
|
134
|
+
|
135
|
+
# header parameters
|
136
|
+
header_params = opts[:header_params] || {}
|
137
|
+
# HTTP header 'Accept' (if needed)
|
138
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
139
|
+
# HTTP header 'Content-Type'
|
140
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
141
|
+
|
142
|
+
# form parameters
|
143
|
+
form_params = opts[:form_params] || {}
|
144
|
+
|
145
|
+
# http body (model)
|
146
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_public_association'])
|
147
|
+
|
148
|
+
# return_type
|
149
|
+
return_type = opts[:return_type] || 'BatchResponsePublicAssociation'
|
150
|
+
|
151
|
+
# auth_names
|
152
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
153
|
+
|
154
|
+
new_options = opts.merge(
|
155
|
+
:header_params => header_params,
|
156
|
+
:query_params => query_params,
|
157
|
+
:form_params => form_params,
|
158
|
+
:body => post_body,
|
159
|
+
:auth_names => auth_names,
|
160
|
+
:return_type => return_type
|
161
|
+
)
|
162
|
+
|
163
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
164
|
+
if @api_client.config.debugging
|
165
|
+
@api_client.config.logger.debug "API called: BatchApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
166
|
+
end
|
167
|
+
return data, status_code, headers
|
168
|
+
end
|
169
|
+
|
170
|
+
# Read a batch of associations
|
171
|
+
# Get the IDs of all `{toObjectType}` objects associated with those specified in the request body.
|
172
|
+
# @param from_object_type [String]
|
173
|
+
# @param to_object_type [String]
|
174
|
+
# @param [Hash] opts the optional parameters
|
175
|
+
# @option opts [BatchInputPublicObjectId] :batch_input_public_object_id
|
176
|
+
# @return [BatchResponsePublicAssociationMulti]
|
177
|
+
def read_batch(from_object_type, to_object_type, opts = {})
|
178
|
+
data, _status_code, _headers = read_batch_with_http_info(from_object_type, to_object_type, opts)
|
179
|
+
data
|
180
|
+
end
|
181
|
+
|
182
|
+
# Read a batch of associations
|
183
|
+
# Get the IDs of all `{toObjectType}` objects associated with those specified in the request body.
|
184
|
+
# @param from_object_type [String]
|
185
|
+
# @param to_object_type [String]
|
186
|
+
# @param [Hash] opts the optional parameters
|
187
|
+
# @option opts [BatchInputPublicObjectId] :batch_input_public_object_id
|
188
|
+
# @return [Array<(BatchResponsePublicAssociationMulti, Integer, Hash)>] BatchResponsePublicAssociationMulti data, response status code and response headers
|
189
|
+
def read_batch_with_http_info(from_object_type, to_object_type, opts = {})
|
190
|
+
if @api_client.config.debugging
|
191
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.read_batch ...'
|
192
|
+
end
|
193
|
+
# verify the required parameter 'from_object_type' is set
|
194
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
195
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.read_batch"
|
196
|
+
end
|
197
|
+
# verify the required parameter 'to_object_type' is set
|
198
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
199
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.read_batch"
|
200
|
+
end
|
201
|
+
# resource path
|
202
|
+
local_var_path = '/{fromObjectType}/{toObjectType}/batch/read'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s).gsub('%2F', '/')).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s).gsub('%2F', '/'))
|
203
|
+
|
204
|
+
# query parameters
|
205
|
+
query_params = opts[:query_params] || {}
|
206
|
+
|
207
|
+
# header parameters
|
208
|
+
header_params = opts[:header_params] || {}
|
209
|
+
# HTTP header 'Accept' (if needed)
|
210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
211
|
+
# HTTP header 'Content-Type'
|
212
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
213
|
+
|
214
|
+
# form parameters
|
215
|
+
form_params = opts[:form_params] || {}
|
216
|
+
|
217
|
+
# http body (model)
|
218
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_public_object_id'])
|
219
|
+
|
220
|
+
# return_type
|
221
|
+
return_type = opts[:return_type] || 'BatchResponsePublicAssociationMulti'
|
222
|
+
|
223
|
+
# auth_names
|
224
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
225
|
+
|
226
|
+
new_options = opts.merge(
|
227
|
+
:header_params => header_params,
|
228
|
+
:query_params => query_params,
|
229
|
+
:form_params => form_params,
|
230
|
+
:body => post_body,
|
231
|
+
:auth_names => auth_names,
|
232
|
+
:return_type => return_type
|
233
|
+
)
|
234
|
+
|
235
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
236
|
+
if @api_client.config.debugging
|
237
|
+
@api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
238
|
+
end
|
239
|
+
return data, status_code, headers
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|