test_test_gem 2.1.0
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/Rakefile +8 -0
- data/git_push.sh +55 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +242 -0
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +94 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/associations/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/associations/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +217 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +322 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +322 -0
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +226 -0
- data/lib/hubspot/codegen/crm/associations/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +243 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +216 -0
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/companies/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/companies/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/companies/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/companies/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/deals/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/deals/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/deals/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/deals/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +364 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +84 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +245 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +327 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +261 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +300 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +236 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +231 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +269 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +241 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +296 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +283 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +320 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +303 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +272 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +278 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +237 -0
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +158 -0
- data/lib/hubspot/codegen/crm/owners/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/owners/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/owners/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +226 -0
- data/lib/hubspot/codegen/crm/owners/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +304 -0
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +272 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +479 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +443 -0
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +226 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +226 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +319 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +249 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +319 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +249 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +249 -0
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/products/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/products/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/products/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/products/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/products/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/products/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +224 -0
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +368 -0
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +362 -0
- data/lib/hubspot/codegen/crm/properties/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/properties/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/properties/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +217 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +217 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +231 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +327 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +226 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +226 -0
- data/lib/hubspot/codegen/crm/properties/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/properties/models/option.rb +266 -0
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +266 -0
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/properties/models/property.rb +465 -0
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +374 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +261 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +241 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +221 -0
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +252 -0
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +216 -0
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +329 -0
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +353 -0
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +362 -0
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +250 -0
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/timeline/models/add_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +219 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +330 -0
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +228 -0
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/contains.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/date.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/divide_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/has_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_or.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/month.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/timeline/models/now.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/pipeline_probability.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +318 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +276 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +342 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +304 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +269 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +328 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +229 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +244 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +269 -0
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/xor.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +280 -0
- data/lib/hubspot/codegen/oauth/api/default_api.rb +270 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +420 -0
- data/lib/hubspot/codegen/oauth/api_error.rb +59 -0
- data/lib/hubspot/codegen/oauth/configuration.rb +256 -0
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +317 -0
- data/lib/hubspot/codegen/oauth/models/error.rb +290 -0
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +303 -0
- data/lib/hubspot/codegen/oauth/models/token_response_if.rb +241 -0
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +214 -0
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +360 -0
- data/lib/hubspot/codegen/webhooks/api_client.rb +420 -0
- data/lib/hubspot/codegen/webhooks/api_error.rb +59 -0
- data/lib/hubspot/codegen/webhooks/configuration.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/error.rb +290 -0
- data/lib/hubspot/codegen/webhooks/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +229 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +254 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +268 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +217 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +210 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +308 -0
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +264 -0
- data/lib/hubspot/configuration.rb +207 -0
- data/lib/hubspot/exceptions.rb +3 -0
- data/lib/hubspot/helpers/get_all_helper.rb +27 -0
- data/lib/hubspot/oauth_helper.rb +17 -0
- data/lib/hubspot/version.rb +3 -0
- data/lib/test_test_gem.rb +50 -0
- data/test_test_gem.gemspec +30 -0
- metadata +609 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
=begin
|
2
|
+
#Quotes
|
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
|
+
module Hubspot
|
14
|
+
module Crm
|
15
|
+
module Quotes
|
16
|
+
class ApiError < StandardError
|
17
|
+
attr_reader :code, :response_headers, :response_body
|
18
|
+
|
19
|
+
# Usage examples:
|
20
|
+
# ApiError.new
|
21
|
+
# ApiError.new("message")
|
22
|
+
# ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
|
23
|
+
# ApiError.new(:code => 404, :message => "Not Found")
|
24
|
+
def initialize(arg = nil)
|
25
|
+
if arg.is_a? Hash
|
26
|
+
if arg.key?(:message) || arg.key?('message')
|
27
|
+
super(arg[:message] || arg['message'])
|
28
|
+
else
|
29
|
+
super arg
|
30
|
+
end
|
31
|
+
|
32
|
+
arg.each do |k, v|
|
33
|
+
instance_variable_set "@#{k}", v
|
34
|
+
end
|
35
|
+
else
|
36
|
+
super arg
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# Override to_s to display a friendly error message
|
41
|
+
def to_s
|
42
|
+
message
|
43
|
+
end
|
44
|
+
|
45
|
+
def message
|
46
|
+
if @message.nil?
|
47
|
+
msg = "Error message: the server returns an error"
|
48
|
+
else
|
49
|
+
msg = @message
|
50
|
+
end
|
51
|
+
|
52
|
+
msg += "\nHTTP status code: #{code}" if code
|
53
|
+
msg += "\nResponse headers: #{response_headers}" if response_headers
|
54
|
+
msg += "\nResponse body: #{response_body}" if response_body
|
55
|
+
|
56
|
+
msg
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,258 @@
|
|
1
|
+
=begin
|
2
|
+
#Quotes
|
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
|
+
module Hubspot
|
14
|
+
module Crm
|
15
|
+
module Quotes
|
16
|
+
class Configuration
|
17
|
+
# Defines url scheme
|
18
|
+
attr_accessor :scheme
|
19
|
+
|
20
|
+
# Defines url host
|
21
|
+
attr_accessor :host
|
22
|
+
|
23
|
+
# Defines url base path
|
24
|
+
attr_accessor :base_path
|
25
|
+
|
26
|
+
# Defines API keys used with API Key authentications.
|
27
|
+
#
|
28
|
+
# @return [Hash] key: parameter name, value: parameter value (API key)
|
29
|
+
#
|
30
|
+
# @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)
|
31
|
+
# config.api_key['api_key'] = 'xxx'
|
32
|
+
attr_accessor :api_key
|
33
|
+
|
34
|
+
# Defines API key prefixes used with API Key authentications.
|
35
|
+
#
|
36
|
+
# @return [Hash] key: parameter name, value: API key prefix
|
37
|
+
#
|
38
|
+
# @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)
|
39
|
+
# config.api_key_prefix['api_key'] = 'Token'
|
40
|
+
attr_accessor :api_key_prefix
|
41
|
+
|
42
|
+
# Defines the username used with HTTP basic authentication.
|
43
|
+
#
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :username
|
46
|
+
|
47
|
+
# Defines the password used with HTTP basic authentication.
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
attr_accessor :password
|
51
|
+
|
52
|
+
# Defines the access token (Bearer) used with OAuth2.
|
53
|
+
attr_accessor :access_token
|
54
|
+
|
55
|
+
# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
|
56
|
+
# details will be logged with `logger.debug` (see the `logger` attribute).
|
57
|
+
# Default to false.
|
58
|
+
#
|
59
|
+
# @return [true, false]
|
60
|
+
attr_accessor :debugging
|
61
|
+
|
62
|
+
# Defines the logger used for debugging.
|
63
|
+
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
64
|
+
#
|
65
|
+
# @return [#debug]
|
66
|
+
attr_accessor :logger
|
67
|
+
|
68
|
+
# Defines the temporary folder to store downloaded files
|
69
|
+
# (for API endpoints that have file response).
|
70
|
+
# Default to use `Tempfile`.
|
71
|
+
#
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :temp_folder_path
|
74
|
+
|
75
|
+
# The time limit for HTTP request in seconds.
|
76
|
+
# Default to 0 (never times out).
|
77
|
+
attr_accessor :timeout
|
78
|
+
|
79
|
+
# Set this to false to skip client side validation in the operation.
|
80
|
+
# Default to true.
|
81
|
+
# @return [true, false]
|
82
|
+
attr_accessor :client_side_validation
|
83
|
+
|
84
|
+
### TLS/SSL setting
|
85
|
+
# Set this to false to skip verifying SSL certificate when calling API from https server.
|
86
|
+
# Default to true.
|
87
|
+
#
|
88
|
+
# @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
|
89
|
+
#
|
90
|
+
# @return [true, false]
|
91
|
+
attr_accessor :ssl_verify
|
92
|
+
|
93
|
+
### TLS/SSL setting
|
94
|
+
# Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
|
95
|
+
#
|
96
|
+
# @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
|
97
|
+
#
|
98
|
+
attr_accessor :ssl_verify_mode
|
99
|
+
|
100
|
+
### TLS/SSL setting
|
101
|
+
# Set this to customize the certificate file to verify the peer.
|
102
|
+
#
|
103
|
+
# @return [String] the path to the certificate file
|
104
|
+
attr_accessor :ssl_ca_file
|
105
|
+
|
106
|
+
### TLS/SSL setting
|
107
|
+
# Client certificate file (for client certificate)
|
108
|
+
attr_accessor :ssl_client_cert
|
109
|
+
|
110
|
+
### TLS/SSL setting
|
111
|
+
# Client private key file (for client certificate)
|
112
|
+
attr_accessor :ssl_client_key
|
113
|
+
|
114
|
+
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
115
|
+
# Default to nil.
|
116
|
+
#
|
117
|
+
# @see The params_encoding option of Ethon. Related source code:
|
118
|
+
# https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
|
119
|
+
attr_accessor :params_encoding
|
120
|
+
|
121
|
+
attr_accessor :inject_format
|
122
|
+
|
123
|
+
attr_accessor :force_ending_format
|
124
|
+
|
125
|
+
attr_accessor :error_handler
|
126
|
+
|
127
|
+
def initialize
|
128
|
+
@scheme = 'https'
|
129
|
+
@host = 'api.hubapi.com'
|
130
|
+
@base_path = ''
|
131
|
+
@api_key = {}
|
132
|
+
@api_key_prefix = {}
|
133
|
+
@timeout = 0
|
134
|
+
@client_side_validation = true
|
135
|
+
@ssl_verify = true
|
136
|
+
@ssl_verify_mode = nil
|
137
|
+
@ssl_ca_file = nil
|
138
|
+
@ssl_client_cert = nil
|
139
|
+
@ssl_client_key = nil
|
140
|
+
@debugging = false
|
141
|
+
@inject_format = false
|
142
|
+
@force_ending_format = false
|
143
|
+
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
144
|
+
# error_handler params: { 'status_code': { max_retries: ..., seconds_delay: ... }, ... }
|
145
|
+
@error_handler = {}
|
146
|
+
|
147
|
+
yield(self) if block_given?
|
148
|
+
end
|
149
|
+
|
150
|
+
# The default Configuration object.
|
151
|
+
def self.default
|
152
|
+
@@default ||= Configuration.new
|
153
|
+
end
|
154
|
+
|
155
|
+
def configure
|
156
|
+
yield(self) if block_given?
|
157
|
+
end
|
158
|
+
|
159
|
+
def scheme=(scheme)
|
160
|
+
# remove :// from scheme
|
161
|
+
@scheme = scheme.sub(/:\/\//, '')
|
162
|
+
end
|
163
|
+
|
164
|
+
def host=(host)
|
165
|
+
# remove http(s):// and anything after a slash
|
166
|
+
@host = host.sub(/https?:\/\//, '').split('/').first
|
167
|
+
end
|
168
|
+
|
169
|
+
def base_path=(base_path)
|
170
|
+
# Add leading and trailing slashes to base_path
|
171
|
+
@base_path = "/#{base_path}".gsub(/\/+/, '/')
|
172
|
+
@base_path = '' if @base_path == '/'
|
173
|
+
end
|
174
|
+
|
175
|
+
def base_url
|
176
|
+
"#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
177
|
+
end
|
178
|
+
|
179
|
+
# Gets API key (with prefix if set).
|
180
|
+
# @param [String] param_name the parameter name of API key auth
|
181
|
+
def api_key_with_prefix(param_name)
|
182
|
+
if @api_key_prefix[param_name]
|
183
|
+
"#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
|
184
|
+
else
|
185
|
+
@api_key[param_name]
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# Gets Basic Auth token string
|
190
|
+
def basic_auth_token
|
191
|
+
'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
|
192
|
+
end
|
193
|
+
|
194
|
+
# Returns Auth Settings hash for api client.
|
195
|
+
def auth_settings
|
196
|
+
{
|
197
|
+
'hapikey' =>
|
198
|
+
{
|
199
|
+
type: 'api_key',
|
200
|
+
in: 'query',
|
201
|
+
key: 'hapikey',
|
202
|
+
value: api_key_with_prefix('hapikey')
|
203
|
+
},
|
204
|
+
'oauth2' =>
|
205
|
+
{
|
206
|
+
type: 'oauth2',
|
207
|
+
in: 'header',
|
208
|
+
key: 'Authorization',
|
209
|
+
value: "Bearer #{access_token}"
|
210
|
+
},
|
211
|
+
}
|
212
|
+
end
|
213
|
+
|
214
|
+
# Returns an array of Server setting
|
215
|
+
def server_settings
|
216
|
+
[
|
217
|
+
{
|
218
|
+
url: "https://api.hubapi.com/",
|
219
|
+
description: "No description provided",
|
220
|
+
}
|
221
|
+
]
|
222
|
+
end
|
223
|
+
|
224
|
+
# Returns URL based on server settings
|
225
|
+
#
|
226
|
+
# @param index array index of the server settings
|
227
|
+
# @param variables hash of variable and the corresponding value
|
228
|
+
def server_url(index, variables = {})
|
229
|
+
servers = server_settings
|
230
|
+
|
231
|
+
# check array index out of bound
|
232
|
+
if (index < 0 || index >= servers.size)
|
233
|
+
fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}"
|
234
|
+
end
|
235
|
+
|
236
|
+
server = servers[index]
|
237
|
+
url = server[:url]
|
238
|
+
|
239
|
+
# go through variable and assign a value
|
240
|
+
server[:variables].each do |name, variable|
|
241
|
+
if variables.key?(name)
|
242
|
+
if (server[:variables][name][:enum_values].include? variables[name])
|
243
|
+
url.gsub! "{" + name.to_s + "}", variables[name]
|
244
|
+
else
|
245
|
+
fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}."
|
246
|
+
end
|
247
|
+
else
|
248
|
+
# use default value
|
249
|
+
url.gsub! "{" + name.to_s + "}", server[:variables][name][:default_value]
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
url
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
258
|
+
end
|
@@ -0,0 +1,229 @@
|
|
1
|
+
=begin
|
2
|
+
#Quotes
|
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.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Quotes
|
18
|
+
class AssociatedId
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
attr_accessor :type
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'id' => :'id',
|
27
|
+
:'type' => :'type'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.openapi_types
|
33
|
+
{
|
34
|
+
:'id' => :'String',
|
35
|
+
:'type' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Quotes::AssociatedId` initialize method"
|
50
|
+
end
|
51
|
+
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Quotes::AssociatedId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
59
|
+
|
60
|
+
if attributes.key?(:'id')
|
61
|
+
self.id = attributes[:'id']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.key?(:'type')
|
65
|
+
self.type = attributes[:'type']
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
70
|
+
# @return Array for valid properties with the reasons
|
71
|
+
def list_invalid_properties
|
72
|
+
invalid_properties = Array.new
|
73
|
+
if @id.nil?
|
74
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
75
|
+
end
|
76
|
+
|
77
|
+
if @type.nil?
|
78
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
79
|
+
end
|
80
|
+
|
81
|
+
invalid_properties
|
82
|
+
end
|
83
|
+
|
84
|
+
# Check to see if the all the properties in the model are valid
|
85
|
+
# @return true if the model is valid
|
86
|
+
def valid?
|
87
|
+
return false if @id.nil?
|
88
|
+
return false if @type.nil?
|
89
|
+
true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] Object to be compared
|
94
|
+
def ==(o)
|
95
|
+
return true if self.equal?(o)
|
96
|
+
self.class == o.class &&
|
97
|
+
id == o.id &&
|
98
|
+
type == o.type
|
99
|
+
end
|
100
|
+
|
101
|
+
# @see the `==` method
|
102
|
+
# @param [Object] Object to be compared
|
103
|
+
def eql?(o)
|
104
|
+
self == o
|
105
|
+
end
|
106
|
+
|
107
|
+
# Calculates hash code according to all attributes.
|
108
|
+
# @return [Integer] Hash code
|
109
|
+
def hash
|
110
|
+
[id, type].hash
|
111
|
+
end
|
112
|
+
|
113
|
+
# Builds the object from hash
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
# @return [Object] Returns the model itself
|
116
|
+
def self.build_from_hash(attributes)
|
117
|
+
new.build_from_hash(attributes)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Builds the object from hash
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
+
# @return [Object] Returns the model itself
|
123
|
+
def build_from_hash(attributes)
|
124
|
+
return nil unless attributes.is_a?(Hash)
|
125
|
+
self.class.openapi_types.each_pair do |key, type|
|
126
|
+
if type =~ /\AArray<(.*)>/i
|
127
|
+
# check to ensure the input is an array given that the attribute
|
128
|
+
# is documented as an array but the input is not
|
129
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
130
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
131
|
+
end
|
132
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
133
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
134
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
135
|
+
end
|
136
|
+
|
137
|
+
self
|
138
|
+
end
|
139
|
+
|
140
|
+
# Deserializes the data based on type
|
141
|
+
# @param string type Data type
|
142
|
+
# @param string value Value to be deserialized
|
143
|
+
# @return [Object] Deserialized data
|
144
|
+
def _deserialize(type, value)
|
145
|
+
case type.to_sym
|
146
|
+
when :DateTime
|
147
|
+
DateTime.parse(value)
|
148
|
+
when :Date
|
149
|
+
Date.parse(value)
|
150
|
+
when :String
|
151
|
+
value.to_s
|
152
|
+
when :Integer
|
153
|
+
value.to_i
|
154
|
+
when :Float
|
155
|
+
value.to_f
|
156
|
+
when :Boolean
|
157
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
158
|
+
true
|
159
|
+
else
|
160
|
+
false
|
161
|
+
end
|
162
|
+
when :Object
|
163
|
+
# generic object (usually a Hash), return directly
|
164
|
+
value
|
165
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
166
|
+
inner_type = Regexp.last_match[:inner_type]
|
167
|
+
value.map { |v| _deserialize(inner_type, v) }
|
168
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
169
|
+
k_type = Regexp.last_match[:k_type]
|
170
|
+
v_type = Regexp.last_match[:v_type]
|
171
|
+
{}.tap do |hash|
|
172
|
+
value.each do |k, v|
|
173
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
else # model
|
177
|
+
Hubspot::Crm::Quotes.const_get(type).build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the object in the form of hash
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_hash
|
196
|
+
hash = {}
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
198
|
+
value = self.send(attr)
|
199
|
+
if value.nil?
|
200
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
201
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
202
|
+
end
|
203
|
+
|
204
|
+
hash[param] = _to_hash(value)
|
205
|
+
end
|
206
|
+
hash
|
207
|
+
end
|
208
|
+
|
209
|
+
# Outputs non-array value in the form of hash
|
210
|
+
# For object, use to_hash. Otherwise, just return the value
|
211
|
+
# @param [Object] value Any valid value
|
212
|
+
# @return [Hash] Returns the value in the form of hash
|
213
|
+
def _to_hash(value)
|
214
|
+
if value.is_a?(Array)
|
215
|
+
value.compact.map { |v| _to_hash(v) }
|
216
|
+
elsif value.is_a?(Hash)
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
+
end
|
220
|
+
elsif value.respond_to? :to_hash
|
221
|
+
value.to_hash
|
222
|
+
else
|
223
|
+
value
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|