hubspot-api-client 17.1.1 → 17.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/Gemfile.lock +1 -1
- data/lib/hubspot/codegen/cms/pages/api/landing_pages_api.rb +2754 -0
- data/lib/hubspot/codegen/cms/pages/api/site_pages_api.rb +1896 -0
- data/lib/hubspot/codegen/cms/pages/api_client.rb +410 -0
- data/lib/hubspot/codegen/cms/pages/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/pages/configuration.rb +287 -0
- data/lib/hubspot/codegen/cms/pages/models/ab_test_create_request_v_next.rb +244 -0
- data/lib/hubspot/codegen/cms/pages/models/ab_test_end_request_v_next.rb +244 -0
- data/lib/hubspot/codegen/cms/pages/models/ab_test_rerun_request_v_next.rb +244 -0
- data/lib/hubspot/codegen/cms/pages/models/angle.rb +244 -0
- data/lib/hubspot/codegen/cms/pages/models/attach_to_lang_primary_request_v_next.rb +269 -0
- data/lib/hubspot/codegen/cms/pages/models/background_image.rb +259 -0
- data/lib/hubspot/codegen/cms/pages/models/batch_input_content_folder.rb +231 -0
- data/lib/hubspot/codegen/cms/pages/models/batch_input_json_node.rb +231 -0
- data/lib/hubspot/codegen/cms/pages/models/batch_input_page.rb +231 -0
- data/lib/hubspot/codegen/cms/pages/models/batch_input_string.rb +231 -0
- data/lib/hubspot/codegen/cms/pages/models/batch_response_content_folder.rb +326 -0
- data/lib/hubspot/codegen/cms/pages/models/batch_response_content_folder_with_errors.rb +354 -0
- data/lib/hubspot/codegen/cms/pages/models/batch_response_page.rb +326 -0
- data/lib/hubspot/codegen/cms/pages/models/batch_response_page_with_errors.rb +354 -0
- data/lib/hubspot/codegen/cms/pages/models/collection_response_with_total_content_folder_forward_paging.rb +255 -0
- data/lib/hubspot/codegen/cms/pages/models/collection_response_with_total_page_forward_paging.rb +255 -0
- data/lib/hubspot/codegen/cms/pages/models/collection_response_with_total_version_content_folder.rb +255 -0
- data/lib/hubspot/codegen/cms/pages/models/collection_response_with_total_version_page.rb +255 -0
- data/lib/hubspot/codegen/cms/pages/models/color_stop.rb +228 -0
- data/lib/hubspot/codegen/cms/pages/models/content_clone_request_v_next.rb +239 -0
- data/lib/hubspot/codegen/cms/pages/models/content_folder.rb +317 -0
- data/lib/hubspot/codegen/cms/pages/models/content_language_clone_request_v_next.rb +249 -0
- data/lib/hubspot/codegen/cms/pages/models/content_language_variation.rb +409 -0
- data/lib/hubspot/codegen/cms/pages/models/content_schedule_request_v_next.rb +244 -0
- data/lib/hubspot/codegen/cms/pages/models/detach_from_lang_group_request_v_next.rb +229 -0
- data/lib/hubspot/codegen/cms/pages/models/error.rb +305 -0
- data/lib/hubspot/codegen/cms/pages/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/cms/pages/models/forward_paging.rb +223 -0
- data/lib/hubspot/codegen/cms/pages/models/gradient.rb +259 -0
- data/lib/hubspot/codegen/cms/pages/models/layout_section.rb +416 -0
- data/lib/hubspot/codegen/cms/pages/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/cms/pages/models/page.rb +1165 -0
- data/lib/hubspot/codegen/cms/pages/models/paging.rb +232 -0
- data/lib/hubspot/codegen/cms/pages/models/previous_page.rb +239 -0
- data/lib/hubspot/codegen/cms/pages/models/rgba_color.rb +274 -0
- data/lib/hubspot/codegen/cms/pages/models/row_meta_data.rb +243 -0
- data/lib/hubspot/codegen/cms/pages/models/set_new_language_primary_request_v_next.rb +229 -0
- data/lib/hubspot/codegen/cms/pages/models/side_or_corner.rb +244 -0
- data/lib/hubspot/codegen/cms/pages/models/standard_error.rb +330 -0
- data/lib/hubspot/codegen/cms/pages/models/styles.rb +316 -0
- data/lib/hubspot/codegen/cms/pages/models/update_languages_request_v_next.rb +246 -0
- data/lib/hubspot/codegen/cms/pages/models/version_content_folder.rb +271 -0
- data/lib/hubspot/codegen/cms/pages/models/version_page.rb +271 -0
- data/lib/hubspot/codegen/cms/pages/models/version_user.rb +259 -0
- data/lib/hubspot/codegen/crm/lists/api/lists_api.rb +635 -0
- data/lib/hubspot/codegen/crm/lists/api/memberships_api.rb +452 -0
- data/lib/hubspot/codegen/crm/lists/api_client.rb +410 -0
- data/lib/hubspot/codegen/crm/lists/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/lists/configuration.rb +287 -0
- data/lib/hubspot/codegen/crm/lists/models/collection_response_long.rb +240 -0
- data/lib/hubspot/codegen/crm/lists/models/error.rb +305 -0
- data/lib/hubspot/codegen/crm/lists/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/crm/lists/models/list_create_request.rb +278 -0
- data/lib/hubspot/codegen/crm/lists/models/list_create_response.rb +228 -0
- data/lib/hubspot/codegen/crm/lists/models/list_fetch_response.rb +228 -0
- data/lib/hubspot/codegen/crm/lists/models/list_filter_update_request.rb +228 -0
- data/lib/hubspot/codegen/crm/lists/models/list_search_request.rb +266 -0
- data/lib/hubspot/codegen/crm/lists/models/list_search_response.rb +276 -0
- data/lib/hubspot/codegen/crm/lists/models/list_update_response.rb +223 -0
- data/lib/hubspot/codegen/crm/lists/models/lists_by_id_response.rb +231 -0
- data/lib/hubspot/codegen/crm/lists/models/membership_change_request.rb +248 -0
- data/lib/hubspot/codegen/crm/lists/models/memberships_update_response.rb +264 -0
- data/lib/hubspot/codegen/crm/lists/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/lists/models/paging.rb +232 -0
- data/lib/hubspot/codegen/crm/lists/models/previous_page.rb +239 -0
- data/lib/hubspot/codegen/crm/lists/models/public_absolute_comparative_timestamp_refine_by.rb +292 -0
- data/lib/hubspot/codegen/crm/lists/models/public_absolute_ranged_timestamp_refine_by.rb +306 -0
- data/lib/hubspot/codegen/crm/lists/models/public_ads_search_filter.rb +336 -0
- data/lib/hubspot/codegen/crm/lists/models/public_ads_time_filter.rb +278 -0
- data/lib/hubspot/codegen/crm/lists/models/public_all_history_refine_by.rb +264 -0
- data/lib/hubspot/codegen/crm/lists/models/public_all_property_types_operation.rb +292 -0
- data/lib/hubspot/codegen/crm/lists/models/public_and_filter_branch.rb +310 -0
- data/lib/hubspot/codegen/crm/lists/models/public_association_filter_branch.rb +366 -0
- data/lib/hubspot/codegen/crm/lists/models/public_association_in_list_filter.rb +352 -0
- data/lib/hubspot/codegen/crm/lists/models/public_bool_property_operation.rb +306 -0
- data/lib/hubspot/codegen/crm/lists/models/public_calendar_date_property_operation.rb +345 -0
- data/lib/hubspot/codegen/crm/lists/models/public_campaign_influenced_filter.rb +278 -0
- data/lib/hubspot/codegen/crm/lists/models/public_communication_subscription_filter.rb +333 -0
- data/lib/hubspot/codegen/crm/lists/models/public_comparative_date_property_operation.rb +315 -0
- data/lib/hubspot/codegen/crm/lists/models/public_comparative_property_updated_operation.rb +315 -0
- data/lib/hubspot/codegen/crm/lists/models/public_constant_filter.rb +287 -0
- data/lib/hubspot/codegen/crm/lists/models/public_cta_analytics_filter.rb +310 -0
- data/lib/hubspot/codegen/crm/lists/models/public_date_point.rb +365 -0
- data/lib/hubspot/codegen/crm/lists/models/public_date_property_operation.rb +334 -0
- data/lib/hubspot/codegen/crm/lists/models/public_date_time_property_operation.rb +320 -0
- data/lib/hubspot/codegen/crm/lists/models/public_email_event_filter.rb +350 -0
- data/lib/hubspot/codegen/crm/lists/models/public_email_subscription_filter.rb +305 -0
- data/lib/hubspot/codegen/crm/lists/models/public_enumeration_property_operation.rb +308 -0
- data/lib/hubspot/codegen/crm/lists/models/public_event_analytics_filter.rb +310 -0
- data/lib/hubspot/codegen/crm/lists/models/public_event_analytics_filter_coalescing_refine_by.rb +115 -0
- data/lib/hubspot/codegen/crm/lists/models/public_event_filter_metadata.rb +242 -0
- data/lib/hubspot/codegen/crm/lists/models/public_fiscal_quarter_reference.rb +328 -0
- data/lib/hubspot/codegen/crm/lists/models/public_fiscal_year_reference.rb +328 -0
- data/lib/hubspot/codegen/crm/lists/models/public_form_submission_filter.rb +317 -0
- data/lib/hubspot/codegen/crm/lists/models/public_form_submission_on_page_filter.rb +331 -0
- data/lib/hubspot/codegen/crm/lists/models/public_in_list_filter.rb +301 -0
- data/lib/hubspot/codegen/crm/lists/models/public_in_list_filter_metadata.rb +242 -0
- data/lib/hubspot/codegen/crm/lists/models/public_index_offset.rb +295 -0
- data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point.rb +310 -0
- data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point_index_reference.rb +114 -0
- data/lib/hubspot/codegen/crm/lists/models/public_integration_event_filter.rb +294 -0
- data/lib/hubspot/codegen/crm/lists/models/public_month_reference.rb +314 -0
- data/lib/hubspot/codegen/crm/lists/models/public_multi_string_property_operation.rb +308 -0
- data/lib/hubspot/codegen/crm/lists/models/public_not_all_filter_branch.rb +310 -0
- data/lib/hubspot/codegen/crm/lists/models/public_not_any_filter_branch.rb +310 -0
- data/lib/hubspot/codegen/crm/lists/models/public_now_reference.rb +300 -0
- data/lib/hubspot/codegen/crm/lists/models/public_num_associations_filter.rb +306 -0
- data/lib/hubspot/codegen/crm/lists/models/public_num_occurrences_refine_by.rb +282 -0
- data/lib/hubspot/codegen/crm/lists/models/public_number_property_operation.rb +306 -0
- data/lib/hubspot/codegen/crm/lists/models/public_object_list.rb +373 -0
- data/lib/hubspot/codegen/crm/lists/models/public_object_list_search_result.rb +381 -0
- data/lib/hubspot/codegen/crm/lists/models/public_or_filter_branch.rb +310 -0
- data/lib/hubspot/codegen/crm/lists/models/public_page_view_analytics_filter.rb +319 -0
- data/lib/hubspot/codegen/crm/lists/models/public_privacy_analytics_filter.rb +292 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch.rb +352 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.rb +114 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filters_inner.rb +130 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_in_list_filter.rb +329 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_filter.rb +292 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_filter_operation.rb +123 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_referenced_time.rb +315 -0
- data/lib/hubspot/codegen/crm/lists/models/public_quarter_reference.rb +328 -0
- data/lib/hubspot/codegen/crm/lists/models/public_ranged_date_property_operation.rb +334 -0
- data/lib/hubspot/codegen/crm/lists/models/public_ranged_number_property_operation.rb +320 -0
- data/lib/hubspot/codegen/crm/lists/models/public_ranged_time_operation.rb +361 -0
- data/lib/hubspot/codegen/crm/lists/models/public_relative_comparative_timestamp_refine_by.rb +292 -0
- data/lib/hubspot/codegen/crm/lists/models/public_relative_ranged_timestamp_refine_by.rb +306 -0
- data/lib/hubspot/codegen/crm/lists/models/public_restricted_filter_branch.rb +310 -0
- data/lib/hubspot/codegen/crm/lists/models/public_rolling_date_range_property_operation.rb +320 -0
- data/lib/hubspot/codegen/crm/lists/models/public_rolling_property_updated_operation.rb +306 -0
- data/lib/hubspot/codegen/crm/lists/models/public_set_occurrences_refine_by.rb +278 -0
- data/lib/hubspot/codegen/crm/lists/models/public_string_property_operation.rb +306 -0
- data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_filter.rb +292 -0
- data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_value_filter.rb +338 -0
- data/lib/hubspot/codegen/crm/lists/models/public_time_offset.rb +256 -0
- data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation.rb +338 -0
- data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation_time_point.rb +109 -0
- data/lib/hubspot/codegen/crm/lists/models/public_today_reference.rb +300 -0
- data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter.rb +307 -0
- data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter_branch.rb +350 -0
- data/lib/hubspot/codegen/crm/lists/models/public_unified_events_in_list_filter.rb +310 -0
- data/lib/hubspot/codegen/crm/lists/models/public_webinar_filter.rb +287 -0
- data/lib/hubspot/codegen/crm/lists/models/public_week_reference.rb +326 -0
- data/lib/hubspot/codegen/crm/lists/models/public_year_reference.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/goals/api/basic_api.rb +391 -0
- data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +295 -0
- data/lib/hubspot/codegen/crm/objects/goals/api/gdpr_api.rb +96 -0
- data/lib/hubspot/codegen/crm/objects/goals/api/public_object_api.rb +94 -0
- data/lib/hubspot/codegen/crm/objects/goals/api/search_api.rb +92 -0
- data/lib/hubspot/codegen/crm/objects/goals/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/objects/goals/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/goals/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/association_spec.rb +278 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_input_simple_public_object_batch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_input_simple_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_input_simple_public_object_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_read_input_simple_public_object_id.rb +273 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/collection_response_associated_id.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/filter.rb +308 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/filter_group.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/forward_paging.rb +225 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/paging.rb +234 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/previous_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/public_associations_for_object.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/public_gdpr_delete_input.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/public_merge_input.rb +244 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/public_object_search_request.rb +301 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_input.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_input_for_create.rb +248 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_with_associations.rb +314 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/standard_error.rb +324 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/objects/taxes/api/basic_api.rb +391 -0
- data/lib/hubspot/codegen/crm/objects/taxes/api/batch_api.rb +295 -0
- data/lib/hubspot/codegen/crm/objects/taxes/api/gdpr_api.rb +96 -0
- data/lib/hubspot/codegen/crm/objects/taxes/api/public_object_api.rb +94 -0
- data/lib/hubspot/codegen/crm/objects/taxes/api/search_api.rb +92 -0
- data/lib/hubspot/codegen/crm/objects/taxes/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/objects/taxes/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/taxes/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/association_spec.rb +278 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_input_simple_public_object_batch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_input_simple_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_input_simple_public_object_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_read_input_simple_public_object_id.rb +273 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_response_simple_public_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_response_simple_public_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/collection_response_associated_id.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/filter.rb +308 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/filter_group.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/forward_paging.rb +225 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/paging.rb +234 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/previous_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/public_associations_for_object.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/public_gdpr_delete_input.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/public_merge_input.rb +244 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/public_object_search_request.rb +301 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input_for_create.rb +248 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_with_associations.rb +314 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/standard_error.rb +324 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/events/send/api/behavioral_events_tracking_api.rb +94 -0
- data/lib/hubspot/codegen/events/send/api_client.rb +410 -0
- data/lib/hubspot/codegen/events/send/api_error.rb +61 -0
- data/lib/hubspot/codegen/events/send/configuration.rb +287 -0
- data/lib/hubspot/codegen/events/send/models/behavioral_event_http_completion_request.rb +290 -0
- data/lib/hubspot/codegen/events/send/models/error.rb +305 -0
- data/lib/hubspot/codegen/events/send/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/settings/business_units/api/business_unit_api.rb +95 -0
- data/lib/hubspot/codegen/settings/business_units/api_client.rb +410 -0
- data/lib/hubspot/codegen/settings/business_units/api_error.rb +61 -0
- data/lib/hubspot/codegen/settings/business_units/configuration.rb +287 -0
- data/lib/hubspot/codegen/settings/business_units/models/collection_response_public_business_unit_no_paging.rb +232 -0
- data/lib/hubspot/codegen/settings/business_units/models/error.rb +305 -0
- data/lib/hubspot/codegen/settings/business_units/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/settings/business_units/models/public_business_unit.rb +254 -0
- data/lib/hubspot/codegen/settings/business_units/models/public_business_unit_logo_metadata.rb +245 -0
- data/lib/hubspot/discovery/cms/client.rb +1 -0
- data/lib/hubspot/discovery/cms/pages/api/landing_pages_api.rb +13 -0
- data/lib/hubspot/discovery/cms/pages/api/site_pages_api.rb +13 -0
- data/lib/hubspot/discovery/cms/pages/client.rb +20 -0
- data/lib/hubspot/discovery/crm/client.rb +1 -0
- data/lib/hubspot/discovery/crm/lists/api/lists_api.rb +13 -0
- data/lib/hubspot/discovery/crm/lists/api/memberships_api.rb +13 -0
- data/lib/hubspot/discovery/crm/lists/client.rb +20 -0
- data/lib/hubspot/discovery/crm/objects/client.rb +2 -0
- data/lib/hubspot/discovery/crm/objects/goals/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/goals/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/goals/api/gdpr_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/goals/api/public_object_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/goals/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/goals/client.rb +25 -0
- data/lib/hubspot/discovery/crm/objects/taxes/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/taxes/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/taxes/api/gdpr_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/taxes/api/public_object_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/taxes/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/taxes/client.rb +25 -0
- data/lib/hubspot/discovery/events/client.rb +6 -0
- data/lib/hubspot/discovery/events/send/api/behavioral_events_tracking_api.rb +13 -0
- data/lib/hubspot/discovery/events/send/client.rb +19 -0
- data/lib/hubspot/discovery/settings/business_units/api/business_unit_api.rb +13 -0
- data/lib/hubspot/discovery/settings/business_units/client.rb +19 -0
- data/lib/hubspot/discovery/settings/client.rb +1 -0
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/client_spec.rb +1 -0
- data/spec/discovery/cms/client_spec.rb +1 -0
- data/spec/discovery/cms/pages/landing_pages_api_spec.rb +45 -0
- data/spec/discovery/cms/pages/site_pages_api_spec.rb +33 -0
- data/spec/discovery/crm/lists/lists_api_spec.rb +15 -0
- data/spec/discovery/crm/lists/memberships_api_spec.rb +12 -0
- data/spec/discovery/crm/objects/goals/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/objects/goals/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/goals/gdpr_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/goals/public_object_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/goals/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/taxes/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/objects/taxes/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/taxes/gdpr_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/taxes/public_object_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/taxes/search_api_spec.rb +7 -0
- data/spec/discovery/events/send/behavioral_events_tracking_api_spec.rb +7 -0
- data/spec/discovery/settings/businnes_units/business_unit_api_spec.rb +7 -0
- data/spec/integration/contacts_spec.rb +85 -0
- metadata +303 -2
@@ -0,0 +1,319 @@
|
|
1
|
+
=begin
|
2
|
+
#Lists
|
3
|
+
|
4
|
+
#CRUD operations to manage lists and list memberships
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Hubspot
|
17
|
+
module Crm
|
18
|
+
module Lists
|
19
|
+
class PublicPageViewAnalyticsFilter
|
20
|
+
attr_accessor :filter_type
|
21
|
+
|
22
|
+
attr_accessor :coalescing_refine_by
|
23
|
+
|
24
|
+
attr_accessor :pruning_refine_by
|
25
|
+
|
26
|
+
attr_accessor :operator
|
27
|
+
|
28
|
+
attr_accessor :enable_tracking
|
29
|
+
|
30
|
+
attr_accessor :page_url
|
31
|
+
|
32
|
+
class EnumAttributeValidator
|
33
|
+
attr_reader :datatype
|
34
|
+
attr_reader :allowable_values
|
35
|
+
|
36
|
+
def initialize(datatype, allowable_values)
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
38
|
+
case datatype.to_s
|
39
|
+
when /Integer/i
|
40
|
+
value.to_i
|
41
|
+
when /Float/i
|
42
|
+
value.to_f
|
43
|
+
else
|
44
|
+
value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def valid?(value)
|
50
|
+
!value || allowable_values.include?(value)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
55
|
+
def self.attribute_map
|
56
|
+
{
|
57
|
+
:'filter_type' => :'filterType',
|
58
|
+
:'coalescing_refine_by' => :'coalescingRefineBy',
|
59
|
+
:'pruning_refine_by' => :'pruningRefineBy',
|
60
|
+
:'operator' => :'operator',
|
61
|
+
:'enable_tracking' => :'enableTracking',
|
62
|
+
:'page_url' => :'pageUrl'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
# Returns all the JSON keys this model knows about
|
67
|
+
def self.acceptable_attributes
|
68
|
+
attribute_map.values
|
69
|
+
end
|
70
|
+
|
71
|
+
# Attribute type mapping.
|
72
|
+
def self.openapi_types
|
73
|
+
{
|
74
|
+
:'filter_type' => :'String',
|
75
|
+
:'coalescing_refine_by' => :'PublicEventAnalyticsFilterCoalescingRefineBy',
|
76
|
+
:'pruning_refine_by' => :'PublicEventAnalyticsFilterCoalescingRefineBy',
|
77
|
+
:'operator' => :'String',
|
78
|
+
:'enable_tracking' => :'Boolean',
|
79
|
+
:'page_url' => :'String'
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
83
|
+
# List of attributes with nullable: true
|
84
|
+
def self.openapi_nullable
|
85
|
+
Set.new([
|
86
|
+
])
|
87
|
+
end
|
88
|
+
|
89
|
+
# Initializes the object
|
90
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
91
|
+
def initialize(attributes = {})
|
92
|
+
if (!attributes.is_a?(Hash))
|
93
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Lists::PublicPageViewAnalyticsFilter` initialize method"
|
94
|
+
end
|
95
|
+
|
96
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
97
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
98
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
99
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Lists::PublicPageViewAnalyticsFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
100
|
+
end
|
101
|
+
h[k.to_sym] = v
|
102
|
+
}
|
103
|
+
|
104
|
+
if attributes.key?(:'filter_type')
|
105
|
+
self.filter_type = attributes[:'filter_type']
|
106
|
+
else
|
107
|
+
self.filter_type = 'PAGE_VIEW'
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'coalescing_refine_by')
|
111
|
+
self.coalescing_refine_by = attributes[:'coalescing_refine_by']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'pruning_refine_by')
|
115
|
+
self.pruning_refine_by = attributes[:'pruning_refine_by']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'operator')
|
119
|
+
self.operator = attributes[:'operator']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'enable_tracking')
|
123
|
+
self.enable_tracking = attributes[:'enable_tracking']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'page_url')
|
127
|
+
self.page_url = attributes[:'page_url']
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
132
|
+
# @return Array for valid properties with the reasons
|
133
|
+
def list_invalid_properties
|
134
|
+
invalid_properties = Array.new
|
135
|
+
if @filter_type.nil?
|
136
|
+
invalid_properties.push('invalid value for "filter_type", filter_type cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
if @operator.nil?
|
140
|
+
invalid_properties.push('invalid value for "operator", operator cannot be nil.')
|
141
|
+
end
|
142
|
+
|
143
|
+
if @page_url.nil?
|
144
|
+
invalid_properties.push('invalid value for "page_url", page_url cannot be nil.')
|
145
|
+
end
|
146
|
+
|
147
|
+
invalid_properties
|
148
|
+
end
|
149
|
+
|
150
|
+
# Check to see if the all the properties in the model are valid
|
151
|
+
# @return true if the model is valid
|
152
|
+
def valid?
|
153
|
+
return false if @filter_type.nil?
|
154
|
+
filter_type_validator = EnumAttributeValidator.new('String', ["PAGE_VIEW"])
|
155
|
+
return false unless filter_type_validator.valid?(@filter_type)
|
156
|
+
return false if @operator.nil?
|
157
|
+
return false if @page_url.nil?
|
158
|
+
true
|
159
|
+
end
|
160
|
+
|
161
|
+
# Custom attribute writer method checking allowed values (enum).
|
162
|
+
# @param [Object] filter_type Object to be assigned
|
163
|
+
def filter_type=(filter_type)
|
164
|
+
validator = EnumAttributeValidator.new('String', ["PAGE_VIEW"])
|
165
|
+
unless validator.valid?(filter_type)
|
166
|
+
fail ArgumentError, "invalid value for \"filter_type\", must be one of #{validator.allowable_values}."
|
167
|
+
end
|
168
|
+
@filter_type = filter_type
|
169
|
+
end
|
170
|
+
|
171
|
+
# Checks equality by comparing each attribute.
|
172
|
+
# @param [Object] Object to be compared
|
173
|
+
def ==(o)
|
174
|
+
return true if self.equal?(o)
|
175
|
+
self.class == o.class &&
|
176
|
+
filter_type == o.filter_type &&
|
177
|
+
coalescing_refine_by == o.coalescing_refine_by &&
|
178
|
+
pruning_refine_by == o.pruning_refine_by &&
|
179
|
+
operator == o.operator &&
|
180
|
+
enable_tracking == o.enable_tracking &&
|
181
|
+
page_url == o.page_url
|
182
|
+
end
|
183
|
+
|
184
|
+
# @see the `==` method
|
185
|
+
# @param [Object] Object to be compared
|
186
|
+
def eql?(o)
|
187
|
+
self == o
|
188
|
+
end
|
189
|
+
|
190
|
+
# Calculates hash code according to all attributes.
|
191
|
+
# @return [Integer] Hash code
|
192
|
+
def hash
|
193
|
+
[filter_type, coalescing_refine_by, pruning_refine_by, operator, enable_tracking, page_url].hash
|
194
|
+
end
|
195
|
+
|
196
|
+
# Builds the object from hash
|
197
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
198
|
+
# @return [Object] Returns the model itself
|
199
|
+
def self.build_from_hash(attributes)
|
200
|
+
new.build_from_hash(attributes)
|
201
|
+
end
|
202
|
+
|
203
|
+
# Builds the object from hash
|
204
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
205
|
+
# @return [Object] Returns the model itself
|
206
|
+
def build_from_hash(attributes)
|
207
|
+
return nil unless attributes.is_a?(Hash)
|
208
|
+
attributes = attributes.transform_keys(&:to_sym)
|
209
|
+
self.class.openapi_types.each_pair do |key, type|
|
210
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
211
|
+
self.send("#{key}=", nil)
|
212
|
+
elsif type =~ /\AArray<(.*)>/i
|
213
|
+
# check to ensure the input is an array given that the attribute
|
214
|
+
# is documented as an array but the input is not
|
215
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
216
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
217
|
+
end
|
218
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
219
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
self
|
224
|
+
end
|
225
|
+
|
226
|
+
# Deserializes the data based on type
|
227
|
+
# @param string type Data type
|
228
|
+
# @param string value Value to be deserialized
|
229
|
+
# @return [Object] Deserialized data
|
230
|
+
def _deserialize(type, value)
|
231
|
+
case type.to_sym
|
232
|
+
when :Time
|
233
|
+
Time.parse(value)
|
234
|
+
when :Date
|
235
|
+
Date.parse(value)
|
236
|
+
when :String
|
237
|
+
value.to_s
|
238
|
+
when :Integer
|
239
|
+
value.to_i
|
240
|
+
when :Float
|
241
|
+
value.to_f
|
242
|
+
when :Boolean
|
243
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
244
|
+
true
|
245
|
+
else
|
246
|
+
false
|
247
|
+
end
|
248
|
+
when :Object
|
249
|
+
# generic object (usually a Hash), return directly
|
250
|
+
value
|
251
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
252
|
+
inner_type = Regexp.last_match[:inner_type]
|
253
|
+
value.map { |v| _deserialize(inner_type, v) }
|
254
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
255
|
+
k_type = Regexp.last_match[:k_type]
|
256
|
+
v_type = Regexp.last_match[:v_type]
|
257
|
+
{}.tap do |hash|
|
258
|
+
value.each do |k, v|
|
259
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
else # model
|
263
|
+
# models (e.g. Pet) or oneOf
|
264
|
+
klass = Hubspot::Crm::Lists.const_get(type)
|
265
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
# Returns the string representation of the object
|
270
|
+
# @return [String] String presentation of the object
|
271
|
+
def to_s
|
272
|
+
to_hash.to_s
|
273
|
+
end
|
274
|
+
|
275
|
+
# to_body is an alias to to_hash (backward compatibility)
|
276
|
+
# @return [Hash] Returns the object in the form of hash
|
277
|
+
def to_body
|
278
|
+
to_hash
|
279
|
+
end
|
280
|
+
|
281
|
+
# Returns the object in the form of hash
|
282
|
+
# @return [Hash] Returns the object in the form of hash
|
283
|
+
def to_hash
|
284
|
+
hash = {}
|
285
|
+
self.class.attribute_map.each_pair do |attr, param|
|
286
|
+
value = self.send(attr)
|
287
|
+
if value.nil?
|
288
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
289
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
290
|
+
end
|
291
|
+
|
292
|
+
hash[param] = _to_hash(value)
|
293
|
+
end
|
294
|
+
hash
|
295
|
+
end
|
296
|
+
|
297
|
+
# Outputs non-array value in the form of hash
|
298
|
+
# For object, use to_hash. Otherwise, just return the value
|
299
|
+
# @param [Object] value Any valid value
|
300
|
+
# @return [Hash] Returns the value in the form of hash
|
301
|
+
def _to_hash(value)
|
302
|
+
if value.is_a?(Array)
|
303
|
+
value.compact.map { |v| _to_hash(v) }
|
304
|
+
elsif value.is_a?(Hash)
|
305
|
+
{}.tap do |hash|
|
306
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
307
|
+
end
|
308
|
+
elsif value.respond_to? :to_hash
|
309
|
+
value.to_hash
|
310
|
+
else
|
311
|
+
value
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
end
|
316
|
+
|
317
|
+
end
|
318
|
+
end
|
319
|
+
end
|
@@ -0,0 +1,292 @@
|
|
1
|
+
=begin
|
2
|
+
#Lists
|
3
|
+
|
4
|
+
#CRUD operations to manage lists and list memberships
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Hubspot
|
17
|
+
module Crm
|
18
|
+
module Lists
|
19
|
+
class PublicPrivacyAnalyticsFilter
|
20
|
+
attr_accessor :filter_type
|
21
|
+
|
22
|
+
attr_accessor :privacy_name
|
23
|
+
|
24
|
+
attr_accessor :operator
|
25
|
+
|
26
|
+
class EnumAttributeValidator
|
27
|
+
attr_reader :datatype
|
28
|
+
attr_reader :allowable_values
|
29
|
+
|
30
|
+
def initialize(datatype, allowable_values)
|
31
|
+
@allowable_values = allowable_values.map do |value|
|
32
|
+
case datatype.to_s
|
33
|
+
when /Integer/i
|
34
|
+
value.to_i
|
35
|
+
when /Float/i
|
36
|
+
value.to_f
|
37
|
+
else
|
38
|
+
value
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def valid?(value)
|
44
|
+
!value || allowable_values.include?(value)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
49
|
+
def self.attribute_map
|
50
|
+
{
|
51
|
+
:'filter_type' => :'filterType',
|
52
|
+
:'privacy_name' => :'privacyName',
|
53
|
+
:'operator' => :'operator'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Returns all the JSON keys this model knows about
|
58
|
+
def self.acceptable_attributes
|
59
|
+
attribute_map.values
|
60
|
+
end
|
61
|
+
|
62
|
+
# Attribute type mapping.
|
63
|
+
def self.openapi_types
|
64
|
+
{
|
65
|
+
:'filter_type' => :'String',
|
66
|
+
:'privacy_name' => :'String',
|
67
|
+
:'operator' => :'String'
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
# List of attributes with nullable: true
|
72
|
+
def self.openapi_nullable
|
73
|
+
Set.new([
|
74
|
+
])
|
75
|
+
end
|
76
|
+
|
77
|
+
# Initializes the object
|
78
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
79
|
+
def initialize(attributes = {})
|
80
|
+
if (!attributes.is_a?(Hash))
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Lists::PublicPrivacyAnalyticsFilter` initialize method"
|
82
|
+
end
|
83
|
+
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Lists::PublicPrivacyAnalyticsFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
|
+
end
|
89
|
+
h[k.to_sym] = v
|
90
|
+
}
|
91
|
+
|
92
|
+
if attributes.key?(:'filter_type')
|
93
|
+
self.filter_type = attributes[:'filter_type']
|
94
|
+
else
|
95
|
+
self.filter_type = 'PRIVACY'
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'privacy_name')
|
99
|
+
self.privacy_name = attributes[:'privacy_name']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'operator')
|
103
|
+
self.operator = attributes[:'operator']
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
108
|
+
# @return Array for valid properties with the reasons
|
109
|
+
def list_invalid_properties
|
110
|
+
invalid_properties = Array.new
|
111
|
+
if @filter_type.nil?
|
112
|
+
invalid_properties.push('invalid value for "filter_type", filter_type cannot be nil.')
|
113
|
+
end
|
114
|
+
|
115
|
+
if @privacy_name.nil?
|
116
|
+
invalid_properties.push('invalid value for "privacy_name", privacy_name cannot be nil.')
|
117
|
+
end
|
118
|
+
|
119
|
+
if @operator.nil?
|
120
|
+
invalid_properties.push('invalid value for "operator", operator cannot be nil.')
|
121
|
+
end
|
122
|
+
|
123
|
+
invalid_properties
|
124
|
+
end
|
125
|
+
|
126
|
+
# Check to see if the all the properties in the model are valid
|
127
|
+
# @return true if the model is valid
|
128
|
+
def valid?
|
129
|
+
return false if @filter_type.nil?
|
130
|
+
filter_type_validator = EnumAttributeValidator.new('String', ["PRIVACY"])
|
131
|
+
return false unless filter_type_validator.valid?(@filter_type)
|
132
|
+
return false if @privacy_name.nil?
|
133
|
+
return false if @operator.nil?
|
134
|
+
true
|
135
|
+
end
|
136
|
+
|
137
|
+
# Custom attribute writer method checking allowed values (enum).
|
138
|
+
# @param [Object] filter_type Object to be assigned
|
139
|
+
def filter_type=(filter_type)
|
140
|
+
validator = EnumAttributeValidator.new('String', ["PRIVACY"])
|
141
|
+
unless validator.valid?(filter_type)
|
142
|
+
fail ArgumentError, "invalid value for \"filter_type\", must be one of #{validator.allowable_values}."
|
143
|
+
end
|
144
|
+
@filter_type = filter_type
|
145
|
+
end
|
146
|
+
|
147
|
+
# Checks equality by comparing each attribute.
|
148
|
+
# @param [Object] Object to be compared
|
149
|
+
def ==(o)
|
150
|
+
return true if self.equal?(o)
|
151
|
+
self.class == o.class &&
|
152
|
+
filter_type == o.filter_type &&
|
153
|
+
privacy_name == o.privacy_name &&
|
154
|
+
operator == o.operator
|
155
|
+
end
|
156
|
+
|
157
|
+
# @see the `==` method
|
158
|
+
# @param [Object] Object to be compared
|
159
|
+
def eql?(o)
|
160
|
+
self == o
|
161
|
+
end
|
162
|
+
|
163
|
+
# Calculates hash code according to all attributes.
|
164
|
+
# @return [Integer] Hash code
|
165
|
+
def hash
|
166
|
+
[filter_type, privacy_name, operator].hash
|
167
|
+
end
|
168
|
+
|
169
|
+
# Builds the object from hash
|
170
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
171
|
+
# @return [Object] Returns the model itself
|
172
|
+
def self.build_from_hash(attributes)
|
173
|
+
new.build_from_hash(attributes)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Builds the object from hash
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
178
|
+
# @return [Object] Returns the model itself
|
179
|
+
def build_from_hash(attributes)
|
180
|
+
return nil unless attributes.is_a?(Hash)
|
181
|
+
attributes = attributes.transform_keys(&:to_sym)
|
182
|
+
self.class.openapi_types.each_pair do |key, type|
|
183
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
184
|
+
self.send("#{key}=", nil)
|
185
|
+
elsif type =~ /\AArray<(.*)>/i
|
186
|
+
# check to ensure the input is an array given that the attribute
|
187
|
+
# is documented as an array but the input is not
|
188
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
189
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
190
|
+
end
|
191
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
192
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
self
|
197
|
+
end
|
198
|
+
|
199
|
+
# Deserializes the data based on type
|
200
|
+
# @param string type Data type
|
201
|
+
# @param string value Value to be deserialized
|
202
|
+
# @return [Object] Deserialized data
|
203
|
+
def _deserialize(type, value)
|
204
|
+
case type.to_sym
|
205
|
+
when :Time
|
206
|
+
Time.parse(value)
|
207
|
+
when :Date
|
208
|
+
Date.parse(value)
|
209
|
+
when :String
|
210
|
+
value.to_s
|
211
|
+
when :Integer
|
212
|
+
value.to_i
|
213
|
+
when :Float
|
214
|
+
value.to_f
|
215
|
+
when :Boolean
|
216
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
217
|
+
true
|
218
|
+
else
|
219
|
+
false
|
220
|
+
end
|
221
|
+
when :Object
|
222
|
+
# generic object (usually a Hash), return directly
|
223
|
+
value
|
224
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
225
|
+
inner_type = Regexp.last_match[:inner_type]
|
226
|
+
value.map { |v| _deserialize(inner_type, v) }
|
227
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
228
|
+
k_type = Regexp.last_match[:k_type]
|
229
|
+
v_type = Regexp.last_match[:v_type]
|
230
|
+
{}.tap do |hash|
|
231
|
+
value.each do |k, v|
|
232
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
else # model
|
236
|
+
# models (e.g. Pet) or oneOf
|
237
|
+
klass = Hubspot::Crm::Lists.const_get(type)
|
238
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
# Returns the string representation of the object
|
243
|
+
# @return [String] String presentation of the object
|
244
|
+
def to_s
|
245
|
+
to_hash.to_s
|
246
|
+
end
|
247
|
+
|
248
|
+
# to_body is an alias to to_hash (backward compatibility)
|
249
|
+
# @return [Hash] Returns the object in the form of hash
|
250
|
+
def to_body
|
251
|
+
to_hash
|
252
|
+
end
|
253
|
+
|
254
|
+
# Returns the object in the form of hash
|
255
|
+
# @return [Hash] Returns the object in the form of hash
|
256
|
+
def to_hash
|
257
|
+
hash = {}
|
258
|
+
self.class.attribute_map.each_pair do |attr, param|
|
259
|
+
value = self.send(attr)
|
260
|
+
if value.nil?
|
261
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
262
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
263
|
+
end
|
264
|
+
|
265
|
+
hash[param] = _to_hash(value)
|
266
|
+
end
|
267
|
+
hash
|
268
|
+
end
|
269
|
+
|
270
|
+
# Outputs non-array value in the form of hash
|
271
|
+
# For object, use to_hash. Otherwise, just return the value
|
272
|
+
# @param [Object] value Any valid value
|
273
|
+
# @return [Hash] Returns the value in the form of hash
|
274
|
+
def _to_hash(value)
|
275
|
+
if value.is_a?(Array)
|
276
|
+
value.compact.map { |v| _to_hash(v) }
|
277
|
+
elsif value.is_a?(Hash)
|
278
|
+
{}.tap do |hash|
|
279
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
280
|
+
end
|
281
|
+
elsif value.respond_to? :to_hash
|
282
|
+
value.to_hash
|
283
|
+
else
|
284
|
+
value
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
end
|
289
|
+
|
290
|
+
end
|
291
|
+
end
|
292
|
+
end
|