hubspot-api-client 17.1.1 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,317 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pages
|
|
3
|
+
|
|
4
|
+
#Use these endpoints for interacting with Landing Pages and Site Pages
|
|
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 Cms
|
|
18
|
+
module Pages
|
|
19
|
+
class ContentFolder
|
|
20
|
+
# The timestamp (ISO8601 format) when this content folder was deleted.
|
|
21
|
+
attr_accessor :deleted_at
|
|
22
|
+
|
|
23
|
+
# The ID of the content folder this folder is nested under
|
|
24
|
+
attr_accessor :parent_folder_id
|
|
25
|
+
|
|
26
|
+
attr_accessor :created
|
|
27
|
+
|
|
28
|
+
# The name of the folder which will show up in the app dashboard
|
|
29
|
+
attr_accessor :name
|
|
30
|
+
|
|
31
|
+
# The unique ID of the content folder.
|
|
32
|
+
attr_accessor :id
|
|
33
|
+
|
|
34
|
+
# The type of object this folder applies to. Should always be LANDING_PAGE.
|
|
35
|
+
attr_accessor :category
|
|
36
|
+
|
|
37
|
+
attr_accessor :updated
|
|
38
|
+
|
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'deleted_at' => :'deletedAt',
|
|
43
|
+
:'parent_folder_id' => :'parentFolderId',
|
|
44
|
+
:'created' => :'created',
|
|
45
|
+
:'name' => :'name',
|
|
46
|
+
:'id' => :'id',
|
|
47
|
+
:'category' => :'category',
|
|
48
|
+
:'updated' => :'updated'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns all the JSON keys this model knows about
|
|
53
|
+
def self.acceptable_attributes
|
|
54
|
+
attribute_map.values
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Attribute type mapping.
|
|
58
|
+
def self.openapi_types
|
|
59
|
+
{
|
|
60
|
+
:'deleted_at' => :'Time',
|
|
61
|
+
:'parent_folder_id' => :'Integer',
|
|
62
|
+
:'created' => :'Time',
|
|
63
|
+
:'name' => :'String',
|
|
64
|
+
:'id' => :'String',
|
|
65
|
+
:'category' => :'Integer',
|
|
66
|
+
:'updated' => :'Time'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Cms::Pages::ContentFolder` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
85
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Cms::Pages::ContentFolder`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
87
|
+
end
|
|
88
|
+
h[k.to_sym] = v
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'deleted_at')
|
|
92
|
+
self.deleted_at = attributes[:'deleted_at']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'parent_folder_id')
|
|
96
|
+
self.parent_folder_id = attributes[:'parent_folder_id']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'created')
|
|
100
|
+
self.created = attributes[:'created']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'name')
|
|
104
|
+
self.name = attributes[:'name']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'id')
|
|
108
|
+
self.id = attributes[:'id']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'category')
|
|
112
|
+
self.category = attributes[:'category']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'updated')
|
|
116
|
+
self.updated = attributes[:'updated']
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
121
|
+
# @return Array for valid properties with the reasons
|
|
122
|
+
def list_invalid_properties
|
|
123
|
+
invalid_properties = Array.new
|
|
124
|
+
if @deleted_at.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "deleted_at", deleted_at cannot be nil.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if @parent_folder_id.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "parent_folder_id", parent_folder_id cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if @created.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if @name.nil?
|
|
137
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if @id.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if @category.nil?
|
|
145
|
+
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if @updated.nil?
|
|
149
|
+
invalid_properties.push('invalid value for "updated", updated cannot be nil.')
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
invalid_properties
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Check to see if the all the properties in the model are valid
|
|
156
|
+
# @return true if the model is valid
|
|
157
|
+
def valid?
|
|
158
|
+
return false if @deleted_at.nil?
|
|
159
|
+
return false if @parent_folder_id.nil?
|
|
160
|
+
return false if @created.nil?
|
|
161
|
+
return false if @name.nil?
|
|
162
|
+
return false if @id.nil?
|
|
163
|
+
return false if @category.nil?
|
|
164
|
+
return false if @updated.nil?
|
|
165
|
+
true
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Checks equality by comparing each attribute.
|
|
169
|
+
# @param [Object] Object to be compared
|
|
170
|
+
def ==(o)
|
|
171
|
+
return true if self.equal?(o)
|
|
172
|
+
self.class == o.class &&
|
|
173
|
+
deleted_at == o.deleted_at &&
|
|
174
|
+
parent_folder_id == o.parent_folder_id &&
|
|
175
|
+
created == o.created &&
|
|
176
|
+
name == o.name &&
|
|
177
|
+
id == o.id &&
|
|
178
|
+
category == o.category &&
|
|
179
|
+
updated == o.updated
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# @see the `==` method
|
|
183
|
+
# @param [Object] Object to be compared
|
|
184
|
+
def eql?(o)
|
|
185
|
+
self == o
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Calculates hash code according to all attributes.
|
|
189
|
+
# @return [Integer] Hash code
|
|
190
|
+
def hash
|
|
191
|
+
[deleted_at, parent_folder_id, created, name, id, category, updated].hash
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Builds the object from hash
|
|
195
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
196
|
+
# @return [Object] Returns the model itself
|
|
197
|
+
def self.build_from_hash(attributes)
|
|
198
|
+
new.build_from_hash(attributes)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Builds the object from hash
|
|
202
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
203
|
+
# @return [Object] Returns the model itself
|
|
204
|
+
def build_from_hash(attributes)
|
|
205
|
+
return nil unless attributes.is_a?(Hash)
|
|
206
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
207
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
208
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
209
|
+
self.send("#{key}=", nil)
|
|
210
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
211
|
+
# check to ensure the input is an array given that the attribute
|
|
212
|
+
# is documented as an array but the input is not
|
|
213
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
214
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
215
|
+
end
|
|
216
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
217
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
self
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Deserializes the data based on type
|
|
225
|
+
# @param string type Data type
|
|
226
|
+
# @param string value Value to be deserialized
|
|
227
|
+
# @return [Object] Deserialized data
|
|
228
|
+
def _deserialize(type, value)
|
|
229
|
+
case type.to_sym
|
|
230
|
+
when :Time
|
|
231
|
+
Time.parse(value)
|
|
232
|
+
when :Date
|
|
233
|
+
Date.parse(value)
|
|
234
|
+
when :String
|
|
235
|
+
value.to_s
|
|
236
|
+
when :Integer
|
|
237
|
+
value.to_i
|
|
238
|
+
when :Float
|
|
239
|
+
value.to_f
|
|
240
|
+
when :Boolean
|
|
241
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
242
|
+
true
|
|
243
|
+
else
|
|
244
|
+
false
|
|
245
|
+
end
|
|
246
|
+
when :Object
|
|
247
|
+
# generic object (usually a Hash), return directly
|
|
248
|
+
value
|
|
249
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
250
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
251
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
252
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
253
|
+
k_type = Regexp.last_match[:k_type]
|
|
254
|
+
v_type = Regexp.last_match[:v_type]
|
|
255
|
+
{}.tap do |hash|
|
|
256
|
+
value.each do |k, v|
|
|
257
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
else # model
|
|
261
|
+
# models (e.g. Pet) or oneOf
|
|
262
|
+
klass = Hubspot::Cms::Pages.const_get(type)
|
|
263
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
# Returns the string representation of the object
|
|
268
|
+
# @return [String] String presentation of the object
|
|
269
|
+
def to_s
|
|
270
|
+
to_hash.to_s
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
274
|
+
# @return [Hash] Returns the object in the form of hash
|
|
275
|
+
def to_body
|
|
276
|
+
to_hash
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Returns the object in the form of hash
|
|
280
|
+
# @return [Hash] Returns the object in the form of hash
|
|
281
|
+
def to_hash
|
|
282
|
+
hash = {}
|
|
283
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
284
|
+
value = self.send(attr)
|
|
285
|
+
if value.nil?
|
|
286
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
287
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
hash[param] = _to_hash(value)
|
|
291
|
+
end
|
|
292
|
+
hash
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Outputs non-array value in the form of hash
|
|
296
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
297
|
+
# @param [Object] value Any valid value
|
|
298
|
+
# @return [Hash] Returns the value in the form of hash
|
|
299
|
+
def _to_hash(value)
|
|
300
|
+
if value.is_a?(Array)
|
|
301
|
+
value.compact.map { |v| _to_hash(v) }
|
|
302
|
+
elsif value.is_a?(Hash)
|
|
303
|
+
{}.tap do |hash|
|
|
304
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
305
|
+
end
|
|
306
|
+
elsif value.respond_to? :to_hash
|
|
307
|
+
value.to_hash
|
|
308
|
+
else
|
|
309
|
+
value
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
end
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pages
|
|
3
|
+
|
|
4
|
+
#Use these endpoints for interacting with Landing Pages and Site Pages
|
|
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 Cms
|
|
18
|
+
module Pages
|
|
19
|
+
class ContentLanguageCloneRequestVNext
|
|
20
|
+
# Target language of new variant.
|
|
21
|
+
attr_accessor :language
|
|
22
|
+
|
|
23
|
+
# ID of content to clone.
|
|
24
|
+
attr_accessor :id
|
|
25
|
+
|
|
26
|
+
# Language of primary content to clone.
|
|
27
|
+
attr_accessor :primary_language
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
def self.attribute_map
|
|
31
|
+
{
|
|
32
|
+
:'language' => :'language',
|
|
33
|
+
:'id' => :'id',
|
|
34
|
+
:'primary_language' => :'primaryLanguage'
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'language' => :'String',
|
|
47
|
+
:'id' => :'String',
|
|
48
|
+
:'primary_language' => :'String'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Cms::Pages::ContentLanguageCloneRequestVNext` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Cms::Pages::ContentLanguageCloneRequestVNext`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
69
|
+
end
|
|
70
|
+
h[k.to_sym] = v
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'language')
|
|
74
|
+
self.language = attributes[:'language']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'id')
|
|
78
|
+
self.id = attributes[:'id']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'primary_language')
|
|
82
|
+
self.primary_language = attributes[:'primary_language']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
+
# @return Array for valid properties with the reasons
|
|
88
|
+
def list_invalid_properties
|
|
89
|
+
invalid_properties = Array.new
|
|
90
|
+
if @id.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
invalid_properties
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Check to see if the all the properties in the model are valid
|
|
98
|
+
# @return true if the model is valid
|
|
99
|
+
def valid?
|
|
100
|
+
return false if @id.nil?
|
|
101
|
+
true
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Checks equality by comparing each attribute.
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def ==(o)
|
|
107
|
+
return true if self.equal?(o)
|
|
108
|
+
self.class == o.class &&
|
|
109
|
+
language == o.language &&
|
|
110
|
+
id == o.id &&
|
|
111
|
+
primary_language == o.primary_language
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# @see the `==` method
|
|
115
|
+
# @param [Object] Object to be compared
|
|
116
|
+
def eql?(o)
|
|
117
|
+
self == o
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Calculates hash code according to all attributes.
|
|
121
|
+
# @return [Integer] Hash code
|
|
122
|
+
def hash
|
|
123
|
+
[language, id, primary_language].hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Builds the object from hash
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
# @return [Object] Returns the model itself
|
|
129
|
+
def self.build_from_hash(attributes)
|
|
130
|
+
new.build_from_hash(attributes)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Builds the object from hash
|
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
135
|
+
# @return [Object] Returns the model itself
|
|
136
|
+
def build_from_hash(attributes)
|
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
|
138
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
139
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
140
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
141
|
+
self.send("#{key}=", nil)
|
|
142
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
143
|
+
# check to ensure the input is an array given that the attribute
|
|
144
|
+
# is documented as an array but the input is not
|
|
145
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
146
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
147
|
+
end
|
|
148
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
149
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
self
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Deserializes the data based on type
|
|
157
|
+
# @param string type Data type
|
|
158
|
+
# @param string value Value to be deserialized
|
|
159
|
+
# @return [Object] Deserialized data
|
|
160
|
+
def _deserialize(type, value)
|
|
161
|
+
case type.to_sym
|
|
162
|
+
when :Time
|
|
163
|
+
Time.parse(value)
|
|
164
|
+
when :Date
|
|
165
|
+
Date.parse(value)
|
|
166
|
+
when :String
|
|
167
|
+
value.to_s
|
|
168
|
+
when :Integer
|
|
169
|
+
value.to_i
|
|
170
|
+
when :Float
|
|
171
|
+
value.to_f
|
|
172
|
+
when :Boolean
|
|
173
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
174
|
+
true
|
|
175
|
+
else
|
|
176
|
+
false
|
|
177
|
+
end
|
|
178
|
+
when :Object
|
|
179
|
+
# generic object (usually a Hash), return directly
|
|
180
|
+
value
|
|
181
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
182
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
183
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
184
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
185
|
+
k_type = Regexp.last_match[:k_type]
|
|
186
|
+
v_type = Regexp.last_match[:v_type]
|
|
187
|
+
{}.tap do |hash|
|
|
188
|
+
value.each do |k, v|
|
|
189
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
else # model
|
|
193
|
+
# models (e.g. Pet) or oneOf
|
|
194
|
+
klass = Hubspot::Cms::Pages.const_get(type)
|
|
195
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Returns the string representation of the object
|
|
200
|
+
# @return [String] String presentation of the object
|
|
201
|
+
def to_s
|
|
202
|
+
to_hash.to_s
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
|
207
|
+
def to_body
|
|
208
|
+
to_hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Returns the object in the form of hash
|
|
212
|
+
# @return [Hash] Returns the object in the form of hash
|
|
213
|
+
def to_hash
|
|
214
|
+
hash = {}
|
|
215
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
216
|
+
value = self.send(attr)
|
|
217
|
+
if value.nil?
|
|
218
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
219
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
hash[param] = _to_hash(value)
|
|
223
|
+
end
|
|
224
|
+
hash
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Outputs non-array value in the form of hash
|
|
228
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
229
|
+
# @param [Object] value Any valid value
|
|
230
|
+
# @return [Hash] Returns the value in the form of hash
|
|
231
|
+
def _to_hash(value)
|
|
232
|
+
if value.is_a?(Array)
|
|
233
|
+
value.compact.map { |v| _to_hash(v) }
|
|
234
|
+
elsif value.is_a?(Hash)
|
|
235
|
+
{}.tap do |hash|
|
|
236
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
237
|
+
end
|
|
238
|
+
elsif value.respond_to? :to_hash
|
|
239
|
+
value.to_hash
|
|
240
|
+
else
|
|
241
|
+
value
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
end
|