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,465 @@
|
|
1
|
+
=begin
|
2
|
+
#Properties
|
3
|
+
|
4
|
+
#All HubSpot objects store data in default and custom properties. These endpoints provide access to read and modify object properties in HubSpot.
|
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 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Properties
|
18
|
+
class Property
|
19
|
+
attr_accessor :updated_at
|
20
|
+
|
21
|
+
attr_accessor :created_at
|
22
|
+
|
23
|
+
# When the property was archived.
|
24
|
+
attr_accessor :archived_at
|
25
|
+
|
26
|
+
# The internal property name, which must be used when referencing the property via the API.
|
27
|
+
attr_accessor :name
|
28
|
+
|
29
|
+
# A human-readable property label that will be shown in HubSpot.
|
30
|
+
attr_accessor :label
|
31
|
+
|
32
|
+
# The property data type.
|
33
|
+
attr_accessor :type
|
34
|
+
|
35
|
+
# Controls how the property appears in HubSpot.
|
36
|
+
attr_accessor :field_type
|
37
|
+
|
38
|
+
# A description of the property that will be shown as help text in HubSpot.
|
39
|
+
attr_accessor :description
|
40
|
+
|
41
|
+
# The name of the property group the property belongs to.
|
42
|
+
attr_accessor :group_name
|
43
|
+
|
44
|
+
# A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types.
|
45
|
+
attr_accessor :options
|
46
|
+
|
47
|
+
# The internal user ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot.
|
48
|
+
attr_accessor :created_user_id
|
49
|
+
|
50
|
+
# The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot.
|
51
|
+
attr_accessor :updated_user_id
|
52
|
+
|
53
|
+
# If this property is related to other object(s), they'll be listed here.
|
54
|
+
attr_accessor :referenced_object_type
|
55
|
+
|
56
|
+
# Properties are shown in order, starting with the lowest positive integer value.
|
57
|
+
attr_accessor :display_order
|
58
|
+
|
59
|
+
# For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties.
|
60
|
+
attr_accessor :calculated
|
61
|
+
|
62
|
+
# For default properties, true indicates that the options are stored externally to the property settings.
|
63
|
+
attr_accessor :external_options
|
64
|
+
|
65
|
+
# Whether or not the property is archived.
|
66
|
+
attr_accessor :archived
|
67
|
+
|
68
|
+
# Whether or not the property's value must be unique. Once set, this can't be changed.
|
69
|
+
attr_accessor :has_unique_value
|
70
|
+
|
71
|
+
# Whether or not the property will be hidden from the HubSpot UI. It's recommended this be set to false for custom properties.
|
72
|
+
attr_accessor :hidden
|
73
|
+
|
74
|
+
# This will be true for default object properties built into HubSpot.
|
75
|
+
attr_accessor :hubspot_defined
|
76
|
+
|
77
|
+
# Whether or not the property will display the currency symbol set in the account settings.
|
78
|
+
attr_accessor :show_currency_symbol
|
79
|
+
|
80
|
+
attr_accessor :modification_metadata
|
81
|
+
|
82
|
+
# Whether or not the property can be used in a HubSpot form.
|
83
|
+
attr_accessor :form_field
|
84
|
+
|
85
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
86
|
+
def self.attribute_map
|
87
|
+
{
|
88
|
+
:'updated_at' => :'updatedAt',
|
89
|
+
:'created_at' => :'createdAt',
|
90
|
+
:'archived_at' => :'archivedAt',
|
91
|
+
:'name' => :'name',
|
92
|
+
:'label' => :'label',
|
93
|
+
:'type' => :'type',
|
94
|
+
:'field_type' => :'fieldType',
|
95
|
+
:'description' => :'description',
|
96
|
+
:'group_name' => :'groupName',
|
97
|
+
:'options' => :'options',
|
98
|
+
:'created_user_id' => :'createdUserId',
|
99
|
+
:'updated_user_id' => :'updatedUserId',
|
100
|
+
:'referenced_object_type' => :'referencedObjectType',
|
101
|
+
:'display_order' => :'displayOrder',
|
102
|
+
:'calculated' => :'calculated',
|
103
|
+
:'external_options' => :'externalOptions',
|
104
|
+
:'archived' => :'archived',
|
105
|
+
:'has_unique_value' => :'hasUniqueValue',
|
106
|
+
:'hidden' => :'hidden',
|
107
|
+
:'hubspot_defined' => :'hubspotDefined',
|
108
|
+
:'show_currency_symbol' => :'showCurrencySymbol',
|
109
|
+
:'modification_metadata' => :'modificationMetadata',
|
110
|
+
:'form_field' => :'formField'
|
111
|
+
}
|
112
|
+
end
|
113
|
+
|
114
|
+
# Attribute type mapping.
|
115
|
+
def self.openapi_types
|
116
|
+
{
|
117
|
+
:'updated_at' => :'DateTime',
|
118
|
+
:'created_at' => :'DateTime',
|
119
|
+
:'archived_at' => :'DateTime',
|
120
|
+
:'name' => :'String',
|
121
|
+
:'label' => :'String',
|
122
|
+
:'type' => :'String',
|
123
|
+
:'field_type' => :'String',
|
124
|
+
:'description' => :'String',
|
125
|
+
:'group_name' => :'String',
|
126
|
+
:'options' => :'Array<Option>',
|
127
|
+
:'created_user_id' => :'String',
|
128
|
+
:'updated_user_id' => :'String',
|
129
|
+
:'referenced_object_type' => :'String',
|
130
|
+
:'display_order' => :'Integer',
|
131
|
+
:'calculated' => :'Boolean',
|
132
|
+
:'external_options' => :'Boolean',
|
133
|
+
:'archived' => :'Boolean',
|
134
|
+
:'has_unique_value' => :'Boolean',
|
135
|
+
:'hidden' => :'Boolean',
|
136
|
+
:'hubspot_defined' => :'Boolean',
|
137
|
+
:'show_currency_symbol' => :'Boolean',
|
138
|
+
:'modification_metadata' => :'PropertyModificationMetadata',
|
139
|
+
:'form_field' => :'Boolean'
|
140
|
+
}
|
141
|
+
end
|
142
|
+
|
143
|
+
# List of attributes with nullable: true
|
144
|
+
def self.openapi_nullable
|
145
|
+
Set.new([
|
146
|
+
])
|
147
|
+
end
|
148
|
+
|
149
|
+
# Initializes the object
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
+
def initialize(attributes = {})
|
152
|
+
if (!attributes.is_a?(Hash))
|
153
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Properties::Property` initialize method"
|
154
|
+
end
|
155
|
+
|
156
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
157
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
158
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
159
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Properties::Property`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
160
|
+
end
|
161
|
+
h[k.to_sym] = v
|
162
|
+
}
|
163
|
+
|
164
|
+
if attributes.key?(:'updated_at')
|
165
|
+
self.updated_at = attributes[:'updated_at']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'created_at')
|
169
|
+
self.created_at = attributes[:'created_at']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'archived_at')
|
173
|
+
self.archived_at = attributes[:'archived_at']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'name')
|
177
|
+
self.name = attributes[:'name']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'label')
|
181
|
+
self.label = attributes[:'label']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.key?(:'type')
|
185
|
+
self.type = attributes[:'type']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.key?(:'field_type')
|
189
|
+
self.field_type = attributes[:'field_type']
|
190
|
+
end
|
191
|
+
|
192
|
+
if attributes.key?(:'description')
|
193
|
+
self.description = attributes[:'description']
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.key?(:'group_name')
|
197
|
+
self.group_name = attributes[:'group_name']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.key?(:'options')
|
201
|
+
if (value = attributes[:'options']).is_a?(Array)
|
202
|
+
self.options = value
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
if attributes.key?(:'created_user_id')
|
207
|
+
self.created_user_id = attributes[:'created_user_id']
|
208
|
+
end
|
209
|
+
|
210
|
+
if attributes.key?(:'updated_user_id')
|
211
|
+
self.updated_user_id = attributes[:'updated_user_id']
|
212
|
+
end
|
213
|
+
|
214
|
+
if attributes.key?(:'referenced_object_type')
|
215
|
+
self.referenced_object_type = attributes[:'referenced_object_type']
|
216
|
+
end
|
217
|
+
|
218
|
+
if attributes.key?(:'display_order')
|
219
|
+
self.display_order = attributes[:'display_order']
|
220
|
+
end
|
221
|
+
|
222
|
+
if attributes.key?(:'calculated')
|
223
|
+
self.calculated = attributes[:'calculated']
|
224
|
+
end
|
225
|
+
|
226
|
+
if attributes.key?(:'external_options')
|
227
|
+
self.external_options = attributes[:'external_options']
|
228
|
+
end
|
229
|
+
|
230
|
+
if attributes.key?(:'archived')
|
231
|
+
self.archived = attributes[:'archived']
|
232
|
+
end
|
233
|
+
|
234
|
+
if attributes.key?(:'has_unique_value')
|
235
|
+
self.has_unique_value = attributes[:'has_unique_value']
|
236
|
+
end
|
237
|
+
|
238
|
+
if attributes.key?(:'hidden')
|
239
|
+
self.hidden = attributes[:'hidden']
|
240
|
+
end
|
241
|
+
|
242
|
+
if attributes.key?(:'hubspot_defined')
|
243
|
+
self.hubspot_defined = attributes[:'hubspot_defined']
|
244
|
+
end
|
245
|
+
|
246
|
+
if attributes.key?(:'show_currency_symbol')
|
247
|
+
self.show_currency_symbol = attributes[:'show_currency_symbol']
|
248
|
+
end
|
249
|
+
|
250
|
+
if attributes.key?(:'modification_metadata')
|
251
|
+
self.modification_metadata = attributes[:'modification_metadata']
|
252
|
+
end
|
253
|
+
|
254
|
+
if attributes.key?(:'form_field')
|
255
|
+
self.form_field = attributes[:'form_field']
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
259
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
260
|
+
# @return Array for valid properties with the reasons
|
261
|
+
def list_invalid_properties
|
262
|
+
invalid_properties = Array.new
|
263
|
+
if @name.nil?
|
264
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
265
|
+
end
|
266
|
+
|
267
|
+
if @label.nil?
|
268
|
+
invalid_properties.push('invalid value for "label", label cannot be nil.')
|
269
|
+
end
|
270
|
+
|
271
|
+
if @type.nil?
|
272
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
273
|
+
end
|
274
|
+
|
275
|
+
if @field_type.nil?
|
276
|
+
invalid_properties.push('invalid value for "field_type", field_type cannot be nil.')
|
277
|
+
end
|
278
|
+
|
279
|
+
if @description.nil?
|
280
|
+
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
281
|
+
end
|
282
|
+
|
283
|
+
if @group_name.nil?
|
284
|
+
invalid_properties.push('invalid value for "group_name", group_name cannot be nil.')
|
285
|
+
end
|
286
|
+
|
287
|
+
if @options.nil?
|
288
|
+
invalid_properties.push('invalid value for "options", options cannot be nil.')
|
289
|
+
end
|
290
|
+
|
291
|
+
invalid_properties
|
292
|
+
end
|
293
|
+
|
294
|
+
# Check to see if the all the properties in the model are valid
|
295
|
+
# @return true if the model is valid
|
296
|
+
def valid?
|
297
|
+
return false if @name.nil?
|
298
|
+
return false if @label.nil?
|
299
|
+
return false if @type.nil?
|
300
|
+
return false if @field_type.nil?
|
301
|
+
return false if @description.nil?
|
302
|
+
return false if @group_name.nil?
|
303
|
+
return false if @options.nil?
|
304
|
+
true
|
305
|
+
end
|
306
|
+
|
307
|
+
# Checks equality by comparing each attribute.
|
308
|
+
# @param [Object] Object to be compared
|
309
|
+
def ==(o)
|
310
|
+
return true if self.equal?(o)
|
311
|
+
self.class == o.class &&
|
312
|
+
updated_at == o.updated_at &&
|
313
|
+
created_at == o.created_at &&
|
314
|
+
archived_at == o.archived_at &&
|
315
|
+
name == o.name &&
|
316
|
+
label == o.label &&
|
317
|
+
type == o.type &&
|
318
|
+
field_type == o.field_type &&
|
319
|
+
description == o.description &&
|
320
|
+
group_name == o.group_name &&
|
321
|
+
options == o.options &&
|
322
|
+
created_user_id == o.created_user_id &&
|
323
|
+
updated_user_id == o.updated_user_id &&
|
324
|
+
referenced_object_type == o.referenced_object_type &&
|
325
|
+
display_order == o.display_order &&
|
326
|
+
calculated == o.calculated &&
|
327
|
+
external_options == o.external_options &&
|
328
|
+
archived == o.archived &&
|
329
|
+
has_unique_value == o.has_unique_value &&
|
330
|
+
hidden == o.hidden &&
|
331
|
+
hubspot_defined == o.hubspot_defined &&
|
332
|
+
show_currency_symbol == o.show_currency_symbol &&
|
333
|
+
modification_metadata == o.modification_metadata &&
|
334
|
+
form_field == o.form_field
|
335
|
+
end
|
336
|
+
|
337
|
+
# @see the `==` method
|
338
|
+
# @param [Object] Object to be compared
|
339
|
+
def eql?(o)
|
340
|
+
self == o
|
341
|
+
end
|
342
|
+
|
343
|
+
# Calculates hash code according to all attributes.
|
344
|
+
# @return [Integer] Hash code
|
345
|
+
def hash
|
346
|
+
[updated_at, created_at, archived_at, name, label, type, field_type, description, group_name, options, created_user_id, updated_user_id, referenced_object_type, display_order, calculated, external_options, archived, has_unique_value, hidden, hubspot_defined, show_currency_symbol, modification_metadata, form_field].hash
|
347
|
+
end
|
348
|
+
|
349
|
+
# Builds the object from hash
|
350
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
351
|
+
# @return [Object] Returns the model itself
|
352
|
+
def self.build_from_hash(attributes)
|
353
|
+
new.build_from_hash(attributes)
|
354
|
+
end
|
355
|
+
|
356
|
+
# Builds the object from hash
|
357
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
358
|
+
# @return [Object] Returns the model itself
|
359
|
+
def build_from_hash(attributes)
|
360
|
+
return nil unless attributes.is_a?(Hash)
|
361
|
+
self.class.openapi_types.each_pair do |key, type|
|
362
|
+
if type =~ /\AArray<(.*)>/i
|
363
|
+
# check to ensure the input is an array given that the attribute
|
364
|
+
# is documented as an array but the input is not
|
365
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
366
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
367
|
+
end
|
368
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
369
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
370
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
371
|
+
end
|
372
|
+
|
373
|
+
self
|
374
|
+
end
|
375
|
+
|
376
|
+
# Deserializes the data based on type
|
377
|
+
# @param string type Data type
|
378
|
+
# @param string value Value to be deserialized
|
379
|
+
# @return [Object] Deserialized data
|
380
|
+
def _deserialize(type, value)
|
381
|
+
case type.to_sym
|
382
|
+
when :DateTime
|
383
|
+
DateTime.parse(value)
|
384
|
+
when :Date
|
385
|
+
Date.parse(value)
|
386
|
+
when :String
|
387
|
+
value.to_s
|
388
|
+
when :Integer
|
389
|
+
value.to_i
|
390
|
+
when :Float
|
391
|
+
value.to_f
|
392
|
+
when :Boolean
|
393
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
394
|
+
true
|
395
|
+
else
|
396
|
+
false
|
397
|
+
end
|
398
|
+
when :Object
|
399
|
+
# generic object (usually a Hash), return directly
|
400
|
+
value
|
401
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
402
|
+
inner_type = Regexp.last_match[:inner_type]
|
403
|
+
value.map { |v| _deserialize(inner_type, v) }
|
404
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
405
|
+
k_type = Regexp.last_match[:k_type]
|
406
|
+
v_type = Regexp.last_match[:v_type]
|
407
|
+
{}.tap do |hash|
|
408
|
+
value.each do |k, v|
|
409
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
410
|
+
end
|
411
|
+
end
|
412
|
+
else # model
|
413
|
+
Hubspot::Crm::Properties.const_get(type).build_from_hash(value)
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
# Returns the string representation of the object
|
418
|
+
# @return [String] String presentation of the object
|
419
|
+
def to_s
|
420
|
+
to_hash.to_s
|
421
|
+
end
|
422
|
+
|
423
|
+
# to_body is an alias to to_hash (backward compatibility)
|
424
|
+
# @return [Hash] Returns the object in the form of hash
|
425
|
+
def to_body
|
426
|
+
to_hash
|
427
|
+
end
|
428
|
+
|
429
|
+
# Returns the object in the form of hash
|
430
|
+
# @return [Hash] Returns the object in the form of hash
|
431
|
+
def to_hash
|
432
|
+
hash = {}
|
433
|
+
self.class.attribute_map.each_pair do |attr, param|
|
434
|
+
value = self.send(attr)
|
435
|
+
if value.nil?
|
436
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
437
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
438
|
+
end
|
439
|
+
|
440
|
+
hash[param] = _to_hash(value)
|
441
|
+
end
|
442
|
+
hash
|
443
|
+
end
|
444
|
+
|
445
|
+
# Outputs non-array value in the form of hash
|
446
|
+
# For object, use to_hash. Otherwise, just return the value
|
447
|
+
# @param [Object] value Any valid value
|
448
|
+
# @return [Hash] Returns the value in the form of hash
|
449
|
+
def _to_hash(value)
|
450
|
+
if value.is_a?(Array)
|
451
|
+
value.compact.map { |v| _to_hash(v) }
|
452
|
+
elsif value.is_a?(Hash)
|
453
|
+
{}.tap do |hash|
|
454
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
455
|
+
end
|
456
|
+
elsif value.respond_to? :to_hash
|
457
|
+
value.to_hash
|
458
|
+
else
|
459
|
+
value
|
460
|
+
end
|
461
|
+
end
|
462
|
+
end
|
463
|
+
end
|
464
|
+
end
|
465
|
+
end
|