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
@@ -0,0 +1,360 @@
|
|
1
|
+
=begin
|
2
|
+
#Products
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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 Products
|
19
|
+
module Api
|
20
|
+
class BasicApi
|
21
|
+
attr_accessor :api_client
|
22
|
+
|
23
|
+
def initialize(api_client = ApiClient.default)
|
24
|
+
@api_client = api_client
|
25
|
+
end
|
26
|
+
# Archive
|
27
|
+
# Move an Object identified by `{productId}` to the recycling bin.
|
28
|
+
# @param product_id [String]
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @return [nil]
|
31
|
+
def archive(product_id, opts = {})
|
32
|
+
archive_with_http_info(product_id, opts)
|
33
|
+
nil
|
34
|
+
end
|
35
|
+
|
36
|
+
# Archive
|
37
|
+
# Move an Object identified by `{productId}` to the recycling bin.
|
38
|
+
# @param product_id [String]
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
41
|
+
def archive_with_http_info(product_id, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.archive ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'product_id' is set
|
46
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling BasicApi.archive"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/products/{productId}'.sub('{' + 'productId' + '}', CGI.escape(product_id.to_s).gsub('%2F', '/'))
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
59
|
+
|
60
|
+
# form parameters
|
61
|
+
form_params = opts[:form_params] || {}
|
62
|
+
|
63
|
+
# http body (model)
|
64
|
+
post_body = opts[:body]
|
65
|
+
|
66
|
+
# return_type
|
67
|
+
return_type = opts[:return_type]
|
68
|
+
|
69
|
+
# auth_names
|
70
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
71
|
+
|
72
|
+
new_options = opts.merge(
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => return_type
|
79
|
+
)
|
80
|
+
|
81
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
82
|
+
if @api_client.config.debugging
|
83
|
+
@api_client.config.logger.debug "API called: BasicApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
return data, status_code, headers
|
86
|
+
end
|
87
|
+
|
88
|
+
# Create
|
89
|
+
# Create a product with the given properties and return a copy of the object, including the ID. Documentation and examples for creating native products is provided.
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [SimplePublicObjectInput] :simple_public_object_input
|
92
|
+
# @return [SimplePublicObject]
|
93
|
+
def create(opts = {})
|
94
|
+
data, _status_code, _headers = create_with_http_info(opts)
|
95
|
+
data
|
96
|
+
end
|
97
|
+
|
98
|
+
# Create
|
99
|
+
# Create a product with the given properties and return a copy of the object, including the ID. Documentation and examples for creating native products is provided.
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [SimplePublicObjectInput] :simple_public_object_input
|
102
|
+
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
103
|
+
def create_with_http_info(opts = {})
|
104
|
+
if @api_client.config.debugging
|
105
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.create ...'
|
106
|
+
end
|
107
|
+
# resource path
|
108
|
+
local_var_path = '/products'
|
109
|
+
|
110
|
+
# query parameters
|
111
|
+
query_params = opts[:query_params] || {}
|
112
|
+
|
113
|
+
# header parameters
|
114
|
+
header_params = opts[:header_params] || {}
|
115
|
+
# HTTP header 'Accept' (if needed)
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
117
|
+
# HTTP header 'Content-Type'
|
118
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
119
|
+
|
120
|
+
# form parameters
|
121
|
+
form_params = opts[:form_params] || {}
|
122
|
+
|
123
|
+
# http body (model)
|
124
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'simple_public_object_input'])
|
125
|
+
|
126
|
+
# return_type
|
127
|
+
return_type = opts[:return_type] || 'SimplePublicObject'
|
128
|
+
|
129
|
+
# auth_names
|
130
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
131
|
+
|
132
|
+
new_options = opts.merge(
|
133
|
+
:header_params => header_params,
|
134
|
+
:query_params => query_params,
|
135
|
+
:form_params => form_params,
|
136
|
+
:body => post_body,
|
137
|
+
:auth_names => auth_names,
|
138
|
+
:return_type => return_type
|
139
|
+
)
|
140
|
+
|
141
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: BasicApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
|
148
|
+
# Read
|
149
|
+
# Read an Object identified by `{productId}`. Control what is returned via the `properties` query param.
|
150
|
+
# @param product_id [String]
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
153
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
154
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
155
|
+
# @return [SimplePublicObject]
|
156
|
+
def get_by_id(product_id, opts = {})
|
157
|
+
data, _status_code, _headers = get_by_id_with_http_info(product_id, opts)
|
158
|
+
data
|
159
|
+
end
|
160
|
+
|
161
|
+
# Read
|
162
|
+
# Read an Object identified by `{productId}`. Control what is returned via the `properties` query param.
|
163
|
+
# @param product_id [String]
|
164
|
+
# @param [Hash] opts the optional parameters
|
165
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
166
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
167
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
168
|
+
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
169
|
+
def get_by_id_with_http_info(product_id, opts = {})
|
170
|
+
if @api_client.config.debugging
|
171
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
|
172
|
+
end
|
173
|
+
# verify the required parameter 'product_id' is set
|
174
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
175
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling BasicApi.get_by_id"
|
176
|
+
end
|
177
|
+
# resource path
|
178
|
+
local_var_path = '/products/{productId}'.sub('{' + 'productId' + '}', CGI.escape(product_id.to_s).gsub('%2F', '/'))
|
179
|
+
|
180
|
+
# query parameters
|
181
|
+
query_params = opts[:query_params] || {}
|
182
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
|
183
|
+
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
184
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
185
|
+
|
186
|
+
# header parameters
|
187
|
+
header_params = opts[:header_params] || {}
|
188
|
+
# HTTP header 'Accept' (if needed)
|
189
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
190
|
+
|
191
|
+
# form parameters
|
192
|
+
form_params = opts[:form_params] || {}
|
193
|
+
|
194
|
+
# http body (model)
|
195
|
+
post_body = opts[:body]
|
196
|
+
|
197
|
+
# return_type
|
198
|
+
return_type = opts[:return_type] || 'SimplePublicObject'
|
199
|
+
|
200
|
+
# auth_names
|
201
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
202
|
+
|
203
|
+
new_options = opts.merge(
|
204
|
+
:header_params => header_params,
|
205
|
+
:query_params => query_params,
|
206
|
+
:form_params => form_params,
|
207
|
+
:body => post_body,
|
208
|
+
:auth_names => auth_names,
|
209
|
+
:return_type => return_type
|
210
|
+
)
|
211
|
+
|
212
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
213
|
+
if @api_client.config.debugging
|
214
|
+
@api_client.config.logger.debug "API called: BasicApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
215
|
+
end
|
216
|
+
return data, status_code, headers
|
217
|
+
end
|
218
|
+
|
219
|
+
# List
|
220
|
+
# Read a page of products. Control what is returned via the `properties` query param.
|
221
|
+
# @param [Hash] opts the optional parameters
|
222
|
+
# @option opts [Integer] :limit The maximum number of results to display per page. (default to 10)
|
223
|
+
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
224
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
225
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
226
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
227
|
+
# @return [CollectionResponseSimplePublicObject]
|
228
|
+
def get_page(opts = {})
|
229
|
+
data, _status_code, _headers = get_page_with_http_info(opts)
|
230
|
+
data
|
231
|
+
end
|
232
|
+
|
233
|
+
# List
|
234
|
+
# Read a page of products. Control what is returned via the `properties` query param.
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @option opts [Integer] :limit The maximum number of results to display per page.
|
237
|
+
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
238
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
239
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
240
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
241
|
+
# @return [Array<(CollectionResponseSimplePublicObject, Integer, Hash)>] CollectionResponseSimplePublicObject data, response status code and response headers
|
242
|
+
def get_page_with_http_info(opts = {})
|
243
|
+
if @api_client.config.debugging
|
244
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
|
245
|
+
end
|
246
|
+
# resource path
|
247
|
+
local_var_path = '/products'
|
248
|
+
|
249
|
+
# query parameters
|
250
|
+
query_params = opts[:query_params] || {}
|
251
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
252
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
253
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
|
254
|
+
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
255
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
256
|
+
|
257
|
+
# header parameters
|
258
|
+
header_params = opts[:header_params] || {}
|
259
|
+
# HTTP header 'Accept' (if needed)
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = opts[:form_params] || {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = opts[:body]
|
267
|
+
|
268
|
+
# return_type
|
269
|
+
return_type = opts[:return_type] || 'CollectionResponseSimplePublicObject'
|
270
|
+
|
271
|
+
# auth_names
|
272
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
273
|
+
|
274
|
+
new_options = opts.merge(
|
275
|
+
:header_params => header_params,
|
276
|
+
:query_params => query_params,
|
277
|
+
:form_params => form_params,
|
278
|
+
:body => post_body,
|
279
|
+
:auth_names => auth_names,
|
280
|
+
:return_type => return_type
|
281
|
+
)
|
282
|
+
|
283
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
284
|
+
if @api_client.config.debugging
|
285
|
+
@api_client.config.logger.debug "API called: BasicApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
286
|
+
end
|
287
|
+
return data, status_code, headers
|
288
|
+
end
|
289
|
+
|
290
|
+
# Update
|
291
|
+
# Perform a partial update of an Object identified by `{productId}`. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
292
|
+
# @param product_id [String]
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [SimplePublicObjectInput] :simple_public_object_input
|
295
|
+
# @return [SimplePublicObject]
|
296
|
+
def update(product_id, opts = {})
|
297
|
+
data, _status_code, _headers = update_with_http_info(product_id, opts)
|
298
|
+
data
|
299
|
+
end
|
300
|
+
|
301
|
+
# Update
|
302
|
+
# Perform a partial update of an Object identified by `{productId}`. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
303
|
+
# @param product_id [String]
|
304
|
+
# @param [Hash] opts the optional parameters
|
305
|
+
# @option opts [SimplePublicObjectInput] :simple_public_object_input
|
306
|
+
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
307
|
+
def update_with_http_info(product_id, opts = {})
|
308
|
+
if @api_client.config.debugging
|
309
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.update ...'
|
310
|
+
end
|
311
|
+
# verify the required parameter 'product_id' is set
|
312
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
313
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling BasicApi.update"
|
314
|
+
end
|
315
|
+
# resource path
|
316
|
+
local_var_path = '/products/{productId}'.sub('{' + 'productId' + '}', CGI.escape(product_id.to_s).gsub('%2F', '/'))
|
317
|
+
|
318
|
+
# query parameters
|
319
|
+
query_params = opts[:query_params] || {}
|
320
|
+
|
321
|
+
# header parameters
|
322
|
+
header_params = opts[:header_params] || {}
|
323
|
+
# HTTP header 'Accept' (if needed)
|
324
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
325
|
+
# HTTP header 'Content-Type'
|
326
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
327
|
+
|
328
|
+
# form parameters
|
329
|
+
form_params = opts[:form_params] || {}
|
330
|
+
|
331
|
+
# http body (model)
|
332
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'simple_public_object_input'])
|
333
|
+
|
334
|
+
# return_type
|
335
|
+
return_type = opts[:return_type] || 'SimplePublicObject'
|
336
|
+
|
337
|
+
# auth_names
|
338
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
339
|
+
|
340
|
+
new_options = opts.merge(
|
341
|
+
:header_params => header_params,
|
342
|
+
:query_params => query_params,
|
343
|
+
:form_params => form_params,
|
344
|
+
:body => post_body,
|
345
|
+
:auth_names => auth_names,
|
346
|
+
:return_type => return_type
|
347
|
+
)
|
348
|
+
|
349
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
350
|
+
if @api_client.config.debugging
|
351
|
+
@api_client.config.logger.debug "API called: BasicApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
352
|
+
end
|
353
|
+
return data, status_code, headers
|
354
|
+
end
|
355
|
+
end
|
356
|
+
end
|
357
|
+
end
|
358
|
+
end
|
359
|
+
end
|
360
|
+
end
|
@@ -0,0 +1,273 @@
|
|
1
|
+
=begin
|
2
|
+
#Products
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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 Products
|
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 products by ID
|
27
|
+
# Archive a list of products given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [BatchInputSimplePublicObjectId] :batch_input_simple_public_object_id
|
30
|
+
# @return [nil]
|
31
|
+
def archive_batch(opts = {})
|
32
|
+
archive_batch_with_http_info(opts)
|
33
|
+
nil
|
34
|
+
end
|
35
|
+
|
36
|
+
# Archive a batch of products by ID
|
37
|
+
# Archive a list of products given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [BatchInputSimplePublicObjectId] :batch_input_simple_public_object_id
|
40
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
41
|
+
def archive_batch_with_http_info(opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.archive_batch ...'
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/products/batch/archive'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_simple_public_object_id'])
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type]
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: BatchApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Create a batch of products
|
87
|
+
# Create a batch of products. This follows the same rules as creating an individual object.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [BatchInputSimplePublicObjectInput] :batch_input_simple_public_object_input
|
90
|
+
# @return [BatchResponseSimplePublicObject]
|
91
|
+
def create_batch(opts = {})
|
92
|
+
data, _status_code, _headers = create_batch_with_http_info(opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Create a batch of products
|
97
|
+
# Create a batch of products. This follows the same rules as creating an individual object.
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [BatchInputSimplePublicObjectInput] :batch_input_simple_public_object_input
|
100
|
+
# @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
|
101
|
+
def create_batch_with_http_info(opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.create_batch ...'
|
104
|
+
end
|
105
|
+
# resource path
|
106
|
+
local_var_path = '/products/batch/create'
|
107
|
+
|
108
|
+
# query parameters
|
109
|
+
query_params = opts[:query_params] || {}
|
110
|
+
|
111
|
+
# header parameters
|
112
|
+
header_params = opts[:header_params] || {}
|
113
|
+
# HTTP header 'Accept' (if needed)
|
114
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
115
|
+
# HTTP header 'Content-Type'
|
116
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
117
|
+
|
118
|
+
# form parameters
|
119
|
+
form_params = opts[:form_params] || {}
|
120
|
+
|
121
|
+
# http body (model)
|
122
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_simple_public_object_input'])
|
123
|
+
|
124
|
+
# return_type
|
125
|
+
return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
|
126
|
+
|
127
|
+
# auth_names
|
128
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
129
|
+
|
130
|
+
new_options = opts.merge(
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => return_type
|
137
|
+
)
|
138
|
+
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
140
|
+
if @api_client.config.debugging
|
141
|
+
@api_client.config.logger.debug "API called: BatchApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
+
end
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
|
146
|
+
# Read a batch of products by ID
|
147
|
+
# Read a list of products given a collection of IDs. Use the `properties` request body property to control which properties are returned.
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
150
|
+
# @option opts [BatchReadInputSimplePublicObjectId] :batch_read_input_simple_public_object_id
|
151
|
+
# @return [BatchResponseSimplePublicObject]
|
152
|
+
def read_batch(opts = {})
|
153
|
+
data, _status_code, _headers = read_batch_with_http_info(opts)
|
154
|
+
data
|
155
|
+
end
|
156
|
+
|
157
|
+
# Read a batch of products by ID
|
158
|
+
# Read a list of products given a collection of IDs. Use the `properties` request body property to control which properties are returned.
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
161
|
+
# @option opts [BatchReadInputSimplePublicObjectId] :batch_read_input_simple_public_object_id
|
162
|
+
# @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
|
163
|
+
def read_batch_with_http_info(opts = {})
|
164
|
+
if @api_client.config.debugging
|
165
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.read_batch ...'
|
166
|
+
end
|
167
|
+
# resource path
|
168
|
+
local_var_path = '/products/batch/read'
|
169
|
+
|
170
|
+
# query parameters
|
171
|
+
query_params = opts[:query_params] || {}
|
172
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
173
|
+
|
174
|
+
# header parameters
|
175
|
+
header_params = opts[:header_params] || {}
|
176
|
+
# HTTP header 'Accept' (if needed)
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
178
|
+
# HTTP header 'Content-Type'
|
179
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
180
|
+
|
181
|
+
# form parameters
|
182
|
+
form_params = opts[:form_params] || {}
|
183
|
+
|
184
|
+
# http body (model)
|
185
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_read_input_simple_public_object_id'])
|
186
|
+
|
187
|
+
# return_type
|
188
|
+
return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
|
189
|
+
|
190
|
+
# auth_names
|
191
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
192
|
+
|
193
|
+
new_options = opts.merge(
|
194
|
+
:header_params => header_params,
|
195
|
+
:query_params => query_params,
|
196
|
+
:form_params => form_params,
|
197
|
+
:body => post_body,
|
198
|
+
:auth_names => auth_names,
|
199
|
+
:return_type => return_type
|
200
|
+
)
|
201
|
+
|
202
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
203
|
+
if @api_client.config.debugging
|
204
|
+
@api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
205
|
+
end
|
206
|
+
return data, status_code, headers
|
207
|
+
end
|
208
|
+
|
209
|
+
# Update a batch of products
|
210
|
+
# Perform a partial upate on a batch of products. This follows the same rules as performing partial updates on an individual object.
|
211
|
+
# @param [Hash] opts the optional parameters
|
212
|
+
# @option opts [BatchInputSimplePublicObjectBatchInput] :batch_input_simple_public_object_batch_input
|
213
|
+
# @return [BatchResponseSimplePublicObject]
|
214
|
+
def update_batch(opts = {})
|
215
|
+
data, _status_code, _headers = update_batch_with_http_info(opts)
|
216
|
+
data
|
217
|
+
end
|
218
|
+
|
219
|
+
# Update a batch of products
|
220
|
+
# Perform a partial upate on a batch of products. This follows the same rules as performing partial updates on an individual object.
|
221
|
+
# @param [Hash] opts the optional parameters
|
222
|
+
# @option opts [BatchInputSimplePublicObjectBatchInput] :batch_input_simple_public_object_batch_input
|
223
|
+
# @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
|
224
|
+
def update_batch_with_http_info(opts = {})
|
225
|
+
if @api_client.config.debugging
|
226
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.update_batch ...'
|
227
|
+
end
|
228
|
+
# resource path
|
229
|
+
local_var_path = '/products/batch/update'
|
230
|
+
|
231
|
+
# query parameters
|
232
|
+
query_params = opts[:query_params] || {}
|
233
|
+
|
234
|
+
# header parameters
|
235
|
+
header_params = opts[:header_params] || {}
|
236
|
+
# HTTP header 'Accept' (if needed)
|
237
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
238
|
+
# HTTP header 'Content-Type'
|
239
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
240
|
+
|
241
|
+
# form parameters
|
242
|
+
form_params = opts[:form_params] || {}
|
243
|
+
|
244
|
+
# http body (model)
|
245
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_simple_public_object_batch_input'])
|
246
|
+
|
247
|
+
# return_type
|
248
|
+
return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
|
249
|
+
|
250
|
+
# auth_names
|
251
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
252
|
+
|
253
|
+
new_options = opts.merge(
|
254
|
+
:header_params => header_params,
|
255
|
+
:query_params => query_params,
|
256
|
+
:form_params => form_params,
|
257
|
+
:body => post_body,
|
258
|
+
:auth_names => auth_names,
|
259
|
+
:return_type => return_type
|
260
|
+
)
|
261
|
+
|
262
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
263
|
+
if @api_client.config.debugging
|
264
|
+
@api_client.config.logger.debug "API called: BatchApi#update_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
265
|
+
end
|
266
|
+
return data, status_code, headers
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
end
|
272
|
+
end
|
273
|
+
end
|