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,285 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Goal Targets
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Hubspot
|
|
17
|
+
module Crm
|
|
18
|
+
module Objects
|
|
19
|
+
module Goals
|
|
20
|
+
class ValueWithTimestamp
|
|
21
|
+
attr_accessor :source_id
|
|
22
|
+
|
|
23
|
+
attr_accessor :source_type
|
|
24
|
+
|
|
25
|
+
attr_accessor :source_label
|
|
26
|
+
|
|
27
|
+
attr_accessor :updated_by_user_id
|
|
28
|
+
|
|
29
|
+
attr_accessor :value
|
|
30
|
+
|
|
31
|
+
attr_accessor :timestamp
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'source_id' => :'sourceId',
|
|
37
|
+
:'source_type' => :'sourceType',
|
|
38
|
+
:'source_label' => :'sourceLabel',
|
|
39
|
+
:'updated_by_user_id' => :'updatedByUserId',
|
|
40
|
+
:'value' => :'value',
|
|
41
|
+
:'timestamp' => :'timestamp'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Returns all the JSON keys this model knows about
|
|
46
|
+
def self.acceptable_attributes
|
|
47
|
+
attribute_map.values
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute type mapping.
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'source_id' => :'String',
|
|
54
|
+
:'source_type' => :'String',
|
|
55
|
+
:'source_label' => :'String',
|
|
56
|
+
:'updated_by_user_id' => :'Integer',
|
|
57
|
+
:'value' => :'String',
|
|
58
|
+
:'timestamp' => :'Time'
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# List of attributes with nullable: true
|
|
63
|
+
def self.openapi_nullable
|
|
64
|
+
Set.new([
|
|
65
|
+
])
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Initializes the object
|
|
69
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
70
|
+
def initialize(attributes = {})
|
|
71
|
+
if (!attributes.is_a?(Hash))
|
|
72
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::Goals::ValueWithTimestamp` initialize method"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::Goals::ValueWithTimestamp`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
79
|
+
end
|
|
80
|
+
h[k.to_sym] = v
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'source_id')
|
|
84
|
+
self.source_id = attributes[:'source_id']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'source_type')
|
|
88
|
+
self.source_type = attributes[:'source_type']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'source_label')
|
|
92
|
+
self.source_label = attributes[:'source_label']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'updated_by_user_id')
|
|
96
|
+
self.updated_by_user_id = attributes[:'updated_by_user_id']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'value')
|
|
100
|
+
self.value = attributes[:'value']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'timestamp')
|
|
104
|
+
self.timestamp = attributes[:'timestamp']
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
109
|
+
# @return Array for valid properties with the reasons
|
|
110
|
+
def list_invalid_properties
|
|
111
|
+
invalid_properties = Array.new
|
|
112
|
+
if @source_type.nil?
|
|
113
|
+
invalid_properties.push('invalid value for "source_type", source_type cannot be nil.')
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if @value.nil?
|
|
117
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if @timestamp.nil?
|
|
121
|
+
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
invalid_properties
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Check to see if the all the properties in the model are valid
|
|
128
|
+
# @return true if the model is valid
|
|
129
|
+
def valid?
|
|
130
|
+
return false if @source_type.nil?
|
|
131
|
+
return false if @value.nil?
|
|
132
|
+
return false if @timestamp.nil?
|
|
133
|
+
true
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Checks equality by comparing each attribute.
|
|
137
|
+
# @param [Object] Object to be compared
|
|
138
|
+
def ==(o)
|
|
139
|
+
return true if self.equal?(o)
|
|
140
|
+
self.class == o.class &&
|
|
141
|
+
source_id == o.source_id &&
|
|
142
|
+
source_type == o.source_type &&
|
|
143
|
+
source_label == o.source_label &&
|
|
144
|
+
updated_by_user_id == o.updated_by_user_id &&
|
|
145
|
+
value == o.value &&
|
|
146
|
+
timestamp == o.timestamp
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# @see the `==` method
|
|
150
|
+
# @param [Object] Object to be compared
|
|
151
|
+
def eql?(o)
|
|
152
|
+
self == o
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Calculates hash code according to all attributes.
|
|
156
|
+
# @return [Integer] Hash code
|
|
157
|
+
def hash
|
|
158
|
+
[source_id, source_type, source_label, updated_by_user_id, value, timestamp].hash
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Builds the object from hash
|
|
162
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
163
|
+
# @return [Object] Returns the model itself
|
|
164
|
+
def self.build_from_hash(attributes)
|
|
165
|
+
new.build_from_hash(attributes)
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Builds the object from hash
|
|
169
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
170
|
+
# @return [Object] Returns the model itself
|
|
171
|
+
def build_from_hash(attributes)
|
|
172
|
+
return nil unless attributes.is_a?(Hash)
|
|
173
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
174
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
175
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
176
|
+
self.send("#{key}=", nil)
|
|
177
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
178
|
+
# check to ensure the input is an array given that the attribute
|
|
179
|
+
# is documented as an array but the input is not
|
|
180
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
181
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
182
|
+
end
|
|
183
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
184
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
self
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Deserializes the data based on type
|
|
192
|
+
# @param string type Data type
|
|
193
|
+
# @param string value Value to be deserialized
|
|
194
|
+
# @return [Object] Deserialized data
|
|
195
|
+
def _deserialize(type, value)
|
|
196
|
+
case type.to_sym
|
|
197
|
+
when :Time
|
|
198
|
+
Time.parse(value)
|
|
199
|
+
when :Date
|
|
200
|
+
Date.parse(value)
|
|
201
|
+
when :String
|
|
202
|
+
value.to_s
|
|
203
|
+
when :Integer
|
|
204
|
+
value.to_i
|
|
205
|
+
when :Float
|
|
206
|
+
value.to_f
|
|
207
|
+
when :Boolean
|
|
208
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
209
|
+
true
|
|
210
|
+
else
|
|
211
|
+
false
|
|
212
|
+
end
|
|
213
|
+
when :Object
|
|
214
|
+
# generic object (usually a Hash), return directly
|
|
215
|
+
value
|
|
216
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
217
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
218
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
219
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
220
|
+
k_type = Regexp.last_match[:k_type]
|
|
221
|
+
v_type = Regexp.last_match[:v_type]
|
|
222
|
+
{}.tap do |hash|
|
|
223
|
+
value.each do |k, v|
|
|
224
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
else # model
|
|
228
|
+
# models (e.g. Pet) or oneOf
|
|
229
|
+
klass = Hubspot::Crm::Objects::Goals.const_get(type)
|
|
230
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Returns the string representation of the object
|
|
235
|
+
# @return [String] String presentation of the object
|
|
236
|
+
def to_s
|
|
237
|
+
to_hash.to_s
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
|
242
|
+
def to_body
|
|
243
|
+
to_hash
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Returns the object in the form of hash
|
|
247
|
+
# @return [Hash] Returns the object in the form of hash
|
|
248
|
+
def to_hash
|
|
249
|
+
hash = {}
|
|
250
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
251
|
+
value = self.send(attr)
|
|
252
|
+
if value.nil?
|
|
253
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
254
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
hash[param] = _to_hash(value)
|
|
258
|
+
end
|
|
259
|
+
hash
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Outputs non-array value in the form of hash
|
|
263
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
264
|
+
# @param [Object] value Any valid value
|
|
265
|
+
# @return [Hash] Returns the value in the form of hash
|
|
266
|
+
def _to_hash(value)
|
|
267
|
+
if value.is_a?(Array)
|
|
268
|
+
value.compact.map { |v| _to_hash(v) }
|
|
269
|
+
elsif value.is_a?(Hash)
|
|
270
|
+
{}.tap do |hash|
|
|
271
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
272
|
+
end
|
|
273
|
+
elsif value.respond_to? :to_hash
|
|
274
|
+
value.to_hash
|
|
275
|
+
else
|
|
276
|
+
value
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
end
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Taxes
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Hubspot
|
|
16
|
+
module Crm
|
|
17
|
+
module Objects
|
|
18
|
+
module Taxes
|
|
19
|
+
class BasicApi
|
|
20
|
+
include Hubspot::Helpers::GetAllHelper
|
|
21
|
+
|
|
22
|
+
attr_accessor :api_client
|
|
23
|
+
|
|
24
|
+
def initialize(api_client = ApiClient.default)
|
|
25
|
+
@api_client = api_client
|
|
26
|
+
end
|
|
27
|
+
# Archive
|
|
28
|
+
# Move an Object identified by `{taxId}` to the recycling bin.
|
|
29
|
+
# @param tax_id [String]
|
|
30
|
+
# @param [Hash] opts the optional parameters
|
|
31
|
+
# @return [nil]
|
|
32
|
+
def archive(tax_id, opts = {})
|
|
33
|
+
archive_with_http_info(tax_id, opts)
|
|
34
|
+
nil
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Archive
|
|
38
|
+
# Move an Object identified by `{taxId}` to the recycling bin.
|
|
39
|
+
# @param tax_id [String]
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
42
|
+
def archive_with_http_info(tax_id, opts = {})
|
|
43
|
+
if @api_client.config.debugging
|
|
44
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.archive ...'
|
|
45
|
+
end
|
|
46
|
+
# verify the required parameter 'tax_id' is set
|
|
47
|
+
if @api_client.config.client_side_validation && tax_id.nil?
|
|
48
|
+
fail ArgumentError, "Missing the required parameter 'tax_id' when calling BasicApi.archive"
|
|
49
|
+
end
|
|
50
|
+
# resource path
|
|
51
|
+
local_var_path = '/crm/v3/objects/taxes/{taxId}'.sub('{' + 'taxId' + '}', CGI.escape(tax_id.to_s))
|
|
52
|
+
|
|
53
|
+
# query parameters
|
|
54
|
+
query_params = opts[:query_params] || {}
|
|
55
|
+
|
|
56
|
+
# header parameters
|
|
57
|
+
header_params = opts[:header_params] || {}
|
|
58
|
+
# HTTP header 'Accept' (if needed)
|
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body]
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type]
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"BasicApi.archive",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: BasicApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Create
|
|
91
|
+
# Create a tax with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard taxes is provided.
|
|
92
|
+
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [SimplePublicObject]
|
|
95
|
+
def create(simple_public_object_input_for_create, opts = {})
|
|
96
|
+
data, _status_code, _headers = create_with_http_info(simple_public_object_input_for_create, opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Create
|
|
101
|
+
# Create a tax with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard taxes is provided.
|
|
102
|
+
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
|
105
|
+
def create_with_http_info(simple_public_object_input_for_create, opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.create ...'
|
|
108
|
+
end
|
|
109
|
+
# verify the required parameter 'simple_public_object_input_for_create' is set
|
|
110
|
+
if @api_client.config.client_side_validation && simple_public_object_input_for_create.nil?
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'simple_public_object_input_for_create' when calling BasicApi.create"
|
|
112
|
+
end
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = '/crm/v3/objects/taxes'
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = opts[:query_params] || {}
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = opts[:header_params] || {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
123
|
+
# HTTP header 'Content-Type'
|
|
124
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
125
|
+
if !content_type.nil?
|
|
126
|
+
header_params['Content-Type'] = content_type
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# form parameters
|
|
130
|
+
form_params = opts[:form_params] || {}
|
|
131
|
+
|
|
132
|
+
# http body (model)
|
|
133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_public_object_input_for_create)
|
|
134
|
+
|
|
135
|
+
# return_type
|
|
136
|
+
return_type = opts[:debug_return_type] || 'SimplePublicObject'
|
|
137
|
+
|
|
138
|
+
# auth_names
|
|
139
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
140
|
+
|
|
141
|
+
new_options = opts.merge(
|
|
142
|
+
:operation => :"BasicApi.create",
|
|
143
|
+
:header_params => header_params,
|
|
144
|
+
:query_params => query_params,
|
|
145
|
+
:form_params => form_params,
|
|
146
|
+
:body => post_body,
|
|
147
|
+
:auth_names => auth_names,
|
|
148
|
+
:return_type => return_type
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
152
|
+
if @api_client.config.debugging
|
|
153
|
+
@api_client.config.logger.debug "API called: BasicApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
154
|
+
end
|
|
155
|
+
return data, status_code, headers
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Read
|
|
159
|
+
# Read an Object identified by `{taxId}`. `{taxId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param.
|
|
160
|
+
# @param tax_id [String]
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
163
|
+
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
164
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
165
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
|
166
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
|
167
|
+
# @return [SimplePublicObjectWithAssociations]
|
|
168
|
+
def get_by_id(tax_id, opts = {})
|
|
169
|
+
data, _status_code, _headers = get_by_id_with_http_info(tax_id, opts)
|
|
170
|
+
data
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Read
|
|
174
|
+
# Read an Object identified by `{taxId}`. `{taxId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param.
|
|
175
|
+
# @param tax_id [String]
|
|
176
|
+
# @param [Hash] opts the optional parameters
|
|
177
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
178
|
+
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
179
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
180
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
|
181
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
|
182
|
+
# @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
|
|
183
|
+
def get_by_id_with_http_info(tax_id, opts = {})
|
|
184
|
+
if @api_client.config.debugging
|
|
185
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
|
|
186
|
+
end
|
|
187
|
+
# verify the required parameter 'tax_id' is set
|
|
188
|
+
if @api_client.config.client_side_validation && tax_id.nil?
|
|
189
|
+
fail ArgumentError, "Missing the required parameter 'tax_id' when calling BasicApi.get_by_id"
|
|
190
|
+
end
|
|
191
|
+
# resource path
|
|
192
|
+
local_var_path = '/crm/v3/objects/taxes/{taxId}'.sub('{' + 'taxId' + '}', CGI.escape(tax_id.to_s))
|
|
193
|
+
|
|
194
|
+
# query parameters
|
|
195
|
+
query_params = opts[:query_params] || {}
|
|
196
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
|
197
|
+
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
|
198
|
+
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
|
199
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
|
200
|
+
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
|
201
|
+
|
|
202
|
+
# header parameters
|
|
203
|
+
header_params = opts[:header_params] || {}
|
|
204
|
+
# HTTP header 'Accept' (if needed)
|
|
205
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
206
|
+
|
|
207
|
+
# form parameters
|
|
208
|
+
form_params = opts[:form_params] || {}
|
|
209
|
+
|
|
210
|
+
# http body (model)
|
|
211
|
+
post_body = opts[:debug_body]
|
|
212
|
+
|
|
213
|
+
# return_type
|
|
214
|
+
return_type = opts[:debug_return_type] || 'SimplePublicObjectWithAssociations'
|
|
215
|
+
|
|
216
|
+
# auth_names
|
|
217
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
218
|
+
|
|
219
|
+
new_options = opts.merge(
|
|
220
|
+
:operation => :"BasicApi.get_by_id",
|
|
221
|
+
:header_params => header_params,
|
|
222
|
+
:query_params => query_params,
|
|
223
|
+
:form_params => form_params,
|
|
224
|
+
:body => post_body,
|
|
225
|
+
:auth_names => auth_names,
|
|
226
|
+
:return_type => return_type
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
230
|
+
if @api_client.config.debugging
|
|
231
|
+
@api_client.config.logger.debug "API called: BasicApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
232
|
+
end
|
|
233
|
+
return data, status_code, headers
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# List
|
|
237
|
+
# Read a page of taxes. Control what is returned via the `properties` query param.
|
|
238
|
+
# @param [Hash] opts the optional parameters
|
|
239
|
+
# @option opts [Integer] :limit The maximum number of results to display per page. (default to 10)
|
|
240
|
+
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
|
241
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
242
|
+
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
|
|
243
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
244
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
|
245
|
+
# @return [CollectionResponseSimplePublicObjectWithAssociationsForwardPaging]
|
|
246
|
+
def get_page(opts = {})
|
|
247
|
+
data, _status_code, _headers = get_page_with_http_info(opts)
|
|
248
|
+
data
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# List
|
|
252
|
+
# Read a page of taxes. Control what is returned via the `properties` query param.
|
|
253
|
+
# @param [Hash] opts the optional parameters
|
|
254
|
+
# @option opts [Integer] :limit The maximum number of results to display per page. (default to 10)
|
|
255
|
+
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
|
256
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
257
|
+
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
|
|
258
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
259
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
|
260
|
+
# @return [Array<(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, Integer, Hash)>] CollectionResponseSimplePublicObjectWithAssociationsForwardPaging data, response status code and response headers
|
|
261
|
+
def get_page_with_http_info(opts = {})
|
|
262
|
+
if @api_client.config.debugging
|
|
263
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
|
|
264
|
+
end
|
|
265
|
+
# resource path
|
|
266
|
+
local_var_path = '/crm/v3/objects/taxes'
|
|
267
|
+
|
|
268
|
+
# query parameters
|
|
269
|
+
query_params = opts[:query_params] || {}
|
|
270
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
271
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
272
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
|
273
|
+
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
|
274
|
+
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
|
275
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
|
276
|
+
|
|
277
|
+
# header parameters
|
|
278
|
+
header_params = opts[:header_params] || {}
|
|
279
|
+
# HTTP header 'Accept' (if needed)
|
|
280
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
281
|
+
|
|
282
|
+
# form parameters
|
|
283
|
+
form_params = opts[:form_params] || {}
|
|
284
|
+
|
|
285
|
+
# http body (model)
|
|
286
|
+
post_body = opts[:debug_body]
|
|
287
|
+
|
|
288
|
+
# return_type
|
|
289
|
+
return_type = opts[:debug_return_type] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
|
|
290
|
+
|
|
291
|
+
# auth_names
|
|
292
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
293
|
+
|
|
294
|
+
new_options = opts.merge(
|
|
295
|
+
:operation => :"BasicApi.get_page",
|
|
296
|
+
:header_params => header_params,
|
|
297
|
+
:query_params => query_params,
|
|
298
|
+
:form_params => form_params,
|
|
299
|
+
:body => post_body,
|
|
300
|
+
:auth_names => auth_names,
|
|
301
|
+
:return_type => return_type
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
305
|
+
if @api_client.config.debugging
|
|
306
|
+
@api_client.config.logger.debug "API called: BasicApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
307
|
+
end
|
|
308
|
+
return data, status_code, headers
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# Update
|
|
312
|
+
# Perform a partial update of an Object identified by `{taxId}`. `{taxId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
|
313
|
+
# @param tax_id [String]
|
|
314
|
+
# @param simple_public_object_input [SimplePublicObjectInput]
|
|
315
|
+
# @param [Hash] opts the optional parameters
|
|
316
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
|
317
|
+
# @return [SimplePublicObject]
|
|
318
|
+
def update(tax_id, simple_public_object_input, opts = {})
|
|
319
|
+
data, _status_code, _headers = update_with_http_info(tax_id, simple_public_object_input, opts)
|
|
320
|
+
data
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Update
|
|
324
|
+
# Perform a partial update of an Object identified by `{taxId}`. `{taxId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
|
325
|
+
# @param tax_id [String]
|
|
326
|
+
# @param simple_public_object_input [SimplePublicObjectInput]
|
|
327
|
+
# @param [Hash] opts the optional parameters
|
|
328
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
|
329
|
+
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
|
330
|
+
def update_with_http_info(tax_id, simple_public_object_input, opts = {})
|
|
331
|
+
if @api_client.config.debugging
|
|
332
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.update ...'
|
|
333
|
+
end
|
|
334
|
+
# verify the required parameter 'tax_id' is set
|
|
335
|
+
if @api_client.config.client_side_validation && tax_id.nil?
|
|
336
|
+
fail ArgumentError, "Missing the required parameter 'tax_id' when calling BasicApi.update"
|
|
337
|
+
end
|
|
338
|
+
# verify the required parameter 'simple_public_object_input' is set
|
|
339
|
+
if @api_client.config.client_side_validation && simple_public_object_input.nil?
|
|
340
|
+
fail ArgumentError, "Missing the required parameter 'simple_public_object_input' when calling BasicApi.update"
|
|
341
|
+
end
|
|
342
|
+
# resource path
|
|
343
|
+
local_var_path = '/crm/v3/objects/taxes/{taxId}'.sub('{' + 'taxId' + '}', CGI.escape(tax_id.to_s))
|
|
344
|
+
|
|
345
|
+
# query parameters
|
|
346
|
+
query_params = opts[:query_params] || {}
|
|
347
|
+
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
|
348
|
+
|
|
349
|
+
# header parameters
|
|
350
|
+
header_params = opts[:header_params] || {}
|
|
351
|
+
# HTTP header 'Accept' (if needed)
|
|
352
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
353
|
+
# HTTP header 'Content-Type'
|
|
354
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
355
|
+
if !content_type.nil?
|
|
356
|
+
header_params['Content-Type'] = content_type
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# form parameters
|
|
360
|
+
form_params = opts[:form_params] || {}
|
|
361
|
+
|
|
362
|
+
# http body (model)
|
|
363
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_public_object_input)
|
|
364
|
+
|
|
365
|
+
# return_type
|
|
366
|
+
return_type = opts[:debug_return_type] || 'SimplePublicObject'
|
|
367
|
+
|
|
368
|
+
# auth_names
|
|
369
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
370
|
+
|
|
371
|
+
new_options = opts.merge(
|
|
372
|
+
:operation => :"BasicApi.update",
|
|
373
|
+
:header_params => header_params,
|
|
374
|
+
:query_params => query_params,
|
|
375
|
+
:form_params => form_params,
|
|
376
|
+
:body => post_body,
|
|
377
|
+
:auth_names => auth_names,
|
|
378
|
+
:return_type => return_type
|
|
379
|
+
)
|
|
380
|
+
|
|
381
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
382
|
+
if @api_client.config.debugging
|
|
383
|
+
@api_client.config.logger.debug "API called: BasicApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
384
|
+
end
|
|
385
|
+
return data, status_code, headers
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
end
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
end
|