stackone_client 0.7.0 → 0.7.1
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/lib/stack_one/accounts.rb +275 -15
- data/lib/stack_one/ats.rb +4349 -245
- data/lib/stack_one/connect_sessions.rb +110 -6
- data/lib/stack_one/connectors.rb +110 -6
- data/lib/stack_one/crm.rb +600 -30
- data/lib/stack_one/hris.rb +3752 -225
- data/lib/stack_one/iam.rb +602 -32
- data/lib/stack_one/lms.rb +1628 -89
- data/lib/stack_one/marketing.rb +1560 -78
- data/lib/stack_one/models/operations/ats_create_application_note_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_create_application_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_create_background_check_package_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_create_candidate_note_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_create_candidate_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_create_job_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_create_offer_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_delete_background_check_package_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_download_application_document_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_application_document_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_application_note_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_application_offer_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_application_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_application_scheduled_interview_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_application_scorecard_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_assessments_package_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_assessments_request_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_assessments_result_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_background_check_package_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_background_check_request_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_background_check_result_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_candidate_note_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_candidate_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_department_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_interview_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_interview_stage_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_job_posting_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_job_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_list_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_location_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_offer_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_rejected_reason_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_get_user_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_application_documents_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_application_notes_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_application_scorecards_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_applications_offers_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_applications_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_applications_scheduled_interviews_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_assessments_packages_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_background_check_packages_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_background_check_request_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_candidate_custom_field_definitions_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_candidate_notes_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_candidates_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_departments_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_interview_stages_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_interviews_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_job_custom_field_definitions_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_job_postings_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_jobs_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_lists_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_locations_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_offers_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_list_users_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_move_application_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_order_assessments_request_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_order_background_check_request_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_reject_application_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_update_application_note_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_update_application_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_update_assessments_result_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_update_background_check_package_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_update_background_check_result_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_update_candidate_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_update_job_response.rb +38 -2
- data/lib/stack_one/models/operations/ats_upload_application_document_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_create_contact_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_get_account_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_get_contact_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_get_list_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_list_accounts_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_list_contact_custom_field_definitions_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_list_contacts_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_list_lists_response.rb +38 -2
- data/lib/stack_one/models/operations/crm_update_contact_response.rb +38 -2
- data/lib/stack_one/models/operations/filter.rb +56 -5
- data/lib/stack_one/models/operations/hris_batch_upload_employee_document_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_create_employee_employment_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_create_employee_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_create_employee_skill_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_create_employee_time_off_request_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_create_employee_work_eligibility_request_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_create_time_off_request_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_download_employee_document_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_benefit_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_company_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_cost_center_group_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_department_group_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employee_document_category_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employee_document_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employee_employment_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employee_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employee_skill_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employee_time_off_balance_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +5 -2
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_employment_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_group_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_job_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_location_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_team_group_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_time_entries_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_time_off_policy_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +5 -2
- data/lib/stack_one/models/operations/hris_get_time_off_request_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_get_time_off_type_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_invite_employee_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_benefits_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_companies_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_department_groups_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employee_categories_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employee_documents_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employee_employments_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employee_skills_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_balances_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_policies_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_policies_request.rb +55 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_policies_response.rb +72 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +5 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employees_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_employments_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_groups_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_jobs_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_locations_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_team_groups_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_time_entries_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_time_off_policies_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +5 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_list_time_off_types_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_update_employee_employment_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_update_employee_response.rb +40 -4
- data/lib/stack_one/models/operations/hris_update_employee_time_off_request_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_update_employee_work_eligibility_request_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_update_time_off_request_response.rb +38 -2
- data/lib/stack_one/models/operations/hris_upload_employee_document_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_delete_user_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_get_group_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_get_policy_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_get_role_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_get_user_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_list_groups_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_list_policies_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_list_roles_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_list_users_response.rb +38 -2
- data/lib/stack_one/models/operations/iam_update_user_response.rb +40 -4
- data/lib/stack_one/models/operations/include.rb +18 -0
- data/lib/stack_one/models/operations/lms_batch_upsert_content_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_batch_upsert_course_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_create_collection_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_create_user_assignment_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_create_user_completion_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_delete_user_completion_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_get_assignment_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_get_category_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_get_completion_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_get_content_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_get_course_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_get_skill_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_get_user_assignment_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_get_user_completion_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_get_user_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_list_assignments_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_list_categories_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_list_completions_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_list_content_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_list_courses_queryparam_filter.rb +6 -3
- data/lib/stack_one/models/operations/lms_list_courses_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_list_courses_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_list_skills_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_list_user_assignments_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_list_user_completions_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_list_users_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_update_collection_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_upsert_content_response.rb +38 -2
- data/lib/stack_one/models/operations/lms_upsert_course_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_create_content_block_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_create_email_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_create_in_app_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_create_omni_channel_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_create_push_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_create_sms_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_get_campaign_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_get_content_block_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_get_email_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_get_in_app_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_get_push_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_get_sms_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_list_campaigns_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_list_content_blocks_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_list_email_templates_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_list_in_app_templates_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_list_push_templates_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_list_sms_templates_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_update_content_block_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_update_email_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_update_in_app_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_update_omni_channel_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_update_push_template_response.rb +38 -2
- data/lib/stack_one/models/operations/marketing_update_sms_template_response.rb +38 -2
- data/lib/stack_one/models/operations/order_by.rb +21 -0
- data/lib/stack_one/models/operations/order_direction.rb +18 -0
- data/lib/stack_one/models/operations/queryparam_filter.rb +47 -5
- data/lib/stack_one/models/operations/queryparam_include.rb +17 -0
- data/lib/stack_one/models/operations/queryparam_order_by.rb +21 -0
- data/lib/stack_one/models/operations/queryparam_order_direction.rb +18 -0
- data/lib/stack_one/models/operations/stackone_authenticate_connect_session_response.rb +35 -2
- data/lib/stack_one/models/operations/stackone_create_connect_session_response.rb +35 -2
- data/lib/stack_one/models/operations/stackone_delete_account_response.rb +35 -2
- data/lib/stack_one/models/operations/stackone_get_account_meta_info_response.rb +35 -2
- data/lib/stack_one/models/operations/stackone_get_account_response.rb +35 -2
- data/lib/stack_one/models/operations/stackone_get_connector_meta_response.rb +35 -2
- data/lib/stack_one/models/operations/stackone_get_log_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_get_log_response.rb +69 -0
- data/lib/stack_one/models/operations/stackone_list_connectors_meta_response.rb +35 -2
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_response.rb +35 -2
- data/lib/stack_one/models/operations/stackone_list_logs_request.rb +39 -0
- data/lib/stack_one/models/operations/stackone_list_logs_response.rb +69 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_queryparam_include.rb +18 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_queryparam_order_by.rb +21 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_queryparam_order_direction.rb +18 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_queryparam_request_logs_order_by.rb +21 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_queryparam_request_logs_order_direction.rb +18 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_request.rb +39 -0
- data/lib/stack_one/models/operations/stackone_list_step_logs_response.rb +69 -0
- data/lib/stack_one/models/operations/stackone_proxy_request_response.rb +38 -2
- data/lib/stack_one/models/operations/stackone_update_account_response.rb +35 -2
- data/lib/stack_one/models/operations.rb +24 -2
- data/lib/stack_one/models/shared/badgatewayresponse.rb +30 -0
- data/lib/stack_one/models/shared/badrequestresponse.rb +36 -0
- data/lib/stack_one/models/shared/badrequestresponse_headers.rb +20 -0
- data/lib/stack_one/models/shared/conflictresponse.rb +30 -0
- data/lib/stack_one/models/shared/connectsession.rb +5 -2
- data/lib/stack_one/models/shared/connectsessiontokenauthlink.rb +5 -2
- data/lib/stack_one/models/shared/custommappingerror.rb +30 -0
- data/lib/stack_one/models/shared/data.rb +30 -0
- data/lib/stack_one/models/shared/forbiddenresponse.rb +30 -0
- data/lib/stack_one/models/shared/headers.rb +1 -1
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/internalservererrorresponse.rb +30 -0
- data/lib/stack_one/models/shared/notfoundresponse.rb +30 -0
- data/lib/stack_one/models/shared/notimplementedresponse.rb +30 -0
- data/lib/stack_one/models/shared/policy.rb +4 -4
- data/lib/stack_one/models/shared/preconditionfailedresponse.rb +30 -0
- data/lib/stack_one/models/shared/providererror.rb +33 -0
- data/lib/stack_one/models/shared/providererrorapimodel.rb +3 -3
- data/lib/stack_one/models/shared/providererrorapimodel_headers.rb +20 -0
- data/lib/stack_one/models/shared/providererrorapimodel_raw.rb +20 -0
- data/lib/stack_one/models/shared/raw.rb +1 -1
- data/lib/stack_one/models/shared/request.rb +36 -0
- data/lib/stack_one/models/shared/requesttimedoutresponse.rb +30 -0
- data/lib/stack_one/models/shared/response.rb +36 -0
- data/lib/stack_one/models/shared/steplogsapimodel.rb +84 -0
- data/lib/stack_one/models/shared/steplogspaginated.rb +27 -0
- data/lib/stack_one/models/shared/timeoff.rb +5 -2
- data/lib/stack_one/models/shared/timeoff_duration_unit.rb +27 -0
- data/lib/stack_one/models/shared/timeoff_schemas_policy_type_value.rb +26 -0
- data/lib/stack_one/models/shared/timeoff_schemas_policy_value.rb +23 -0
- data/lib/stack_one/models/shared/timeoff_schemas_type.rb +27 -0
- data/lib/stack_one/models/shared/timeoff_value.rb +1 -0
- data/lib/stack_one/models/shared/timeoffbalances.rb +2 -2
- data/lib/stack_one/models/shared/timeoffbalances_policy.rb +48 -0
- data/lib/stack_one/models/shared/toomanyrequestsresponse.rb +30 -0
- data/lib/stack_one/models/shared/unauthorizedresponse.rb +30 -0
- data/lib/stack_one/models/shared/unifiedlogresult.rb +24 -0
- data/lib/stack_one/models/shared/unifiedlogs.rb +96 -0
- data/lib/stack_one/models/shared/unifiedlogs_request.rb +36 -0
- data/lib/stack_one/models/shared/unifiedlogs_response.rb +36 -0
- data/lib/stack_one/models/shared/unifiedlogs_url.rb +33 -0
- data/lib/stack_one/models/shared/unifiedlogspaginated.rb +27 -0
- data/lib/stack_one/models/shared/unprocessableentityresponse.rb +30 -0
- data/lib/stack_one/models/shared/url.rb +33 -0
- data/lib/stack_one/models/shared.rb +38 -45
- data/lib/stack_one/proxy.rb +61 -4
- data/lib/stack_one/request_logs.rb +496 -0
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- data/lib/stack_one/stackone.rb +2 -1
- data/lib/stackone_client.rb +1 -0
- metadata +59 -43
- data/lib/stack_one/models/shared/updateemployeeapimodel.rb +0 -142
- data/lib/stack_one/models/shared/updateemployeeapimodel_avatar.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_country.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_employment.rb +0 -56
- data/lib/stack_one/models/shared/updateemployeeapimodel_employment_contract_type.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_employment_status.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_employment_type.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_ethnicity.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_gender.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_home_location.rb +0 -51
- data/lib/stack_one/models/shared/updateemployeeapimodel_marital_status.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_national_identity_number.rb +0 -32
- data/lib/stack_one/models/shared/updateemployeeapimodel_pay_frequency.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_pay_period.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_preferred_language.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_country.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_contract_type.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_employment_contract_type_value.rb +0 -20
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_employment_type_value.rb +0 -33
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_pay_period_value.rb +0 -29
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_type.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_type_value.rb +0 -33
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_value.rb +0 -31
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_ethnicity_value.rb +0 -26
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_gender_value.rb +0 -23
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_home_location_value.rb +0 -265
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_marital_status_value.rb +0 -26
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_national_identity_number_type_value.rb +0 -159
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_national_identity_number_value.rb +0 -265
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_preferred_language_value.rb +0 -115
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_state.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_value.rb +0 -23
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_work_location_country.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_work_location_value.rb +0 -265
- data/lib/stack_one/models/shared/updateemployeeapimodel_state.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_type.rb +0 -27
- data/lib/stack_one/models/shared/updateemployeeapimodel_value.rb +0 -20
- data/lib/stack_one/models/shared/updateemployeeapimodel_work_location.rb +0 -51
- data/lib/stack_one/models/shared/updateuserapimodel.rb +0 -45
- data/lib/stack_one/models/shared/updateuserapimodel_status.rb +0 -27
- data/lib/stack_one/models/shared/updateuserapimodel_value.rb +0 -20
data/lib/stack_one/crm.rb
CHANGED
@@ -71,7 +71,7 @@ module StackOne
|
|
71
71
|
|
72
72
|
hook_ctx = SDKHooks::HookContext.new(
|
73
73
|
base_url: base_url,
|
74
|
-
oauth2_scopes:
|
74
|
+
oauth2_scopes: nil,
|
75
75
|
operation_id: 'crm_create_contact',
|
76
76
|
security_source: @sdk_configuration.security_source
|
77
77
|
)
|
@@ -129,10 +129,67 @@ module StackOne
|
|
129
129
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ContactResult)
|
130
130
|
res.contact_result = out
|
131
131
|
end
|
132
|
+
elsif r.status == 400
|
133
|
+
if Utils.match_content_type(content_type, 'application/json')
|
134
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
135
|
+
res.bad_request_response = out
|
136
|
+
end
|
137
|
+
elsif r.status == 401
|
138
|
+
if Utils.match_content_type(content_type, 'application/json')
|
139
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
140
|
+
res.unauthorized_response = out
|
141
|
+
end
|
142
|
+
elsif r.status == 403
|
143
|
+
if Utils.match_content_type(content_type, 'application/json')
|
144
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
145
|
+
res.forbidden_response = out
|
146
|
+
end
|
147
|
+
elsif r.status == 404
|
148
|
+
if Utils.match_content_type(content_type, 'application/json')
|
149
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
150
|
+
res.not_found_response = out
|
151
|
+
end
|
132
152
|
elsif r.status == 408
|
133
153
|
res.headers = r.headers
|
134
|
-
|
135
|
-
|
154
|
+
if Utils.match_content_type(content_type, 'application/json')
|
155
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
156
|
+
res.request_timed_out_response = out
|
157
|
+
end
|
158
|
+
elsif r.status == 409
|
159
|
+
if Utils.match_content_type(content_type, 'application/json')
|
160
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
161
|
+
res.conflict_response = out
|
162
|
+
end
|
163
|
+
elsif r.status == 412
|
164
|
+
if Utils.match_content_type(content_type, 'application/json')
|
165
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
166
|
+
res.precondition_failed_response = out
|
167
|
+
end
|
168
|
+
elsif r.status == 422
|
169
|
+
if Utils.match_content_type(content_type, 'application/json')
|
170
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
171
|
+
res.unprocessable_entity_response = out
|
172
|
+
end
|
173
|
+
elsif r.status == 429
|
174
|
+
if Utils.match_content_type(content_type, 'application/json')
|
175
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
176
|
+
res.too_many_requests_response = out
|
177
|
+
end
|
178
|
+
elsif r.status == 500
|
179
|
+
if Utils.match_content_type(content_type, 'application/json')
|
180
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
181
|
+
res.internal_server_error_response = out
|
182
|
+
end
|
183
|
+
elsif r.status == 501
|
184
|
+
if Utils.match_content_type(content_type, 'application/json')
|
185
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
186
|
+
res.not_implemented_response = out
|
187
|
+
end
|
188
|
+
elsif r.status == 502
|
189
|
+
if Utils.match_content_type(content_type, 'application/json')
|
190
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
191
|
+
res.bad_gateway_response = out
|
192
|
+
end
|
136
193
|
end
|
137
194
|
|
138
195
|
res
|
@@ -178,7 +235,7 @@ module StackOne
|
|
178
235
|
|
179
236
|
hook_ctx = SDKHooks::HookContext.new(
|
180
237
|
base_url: base_url,
|
181
|
-
oauth2_scopes:
|
238
|
+
oauth2_scopes: nil,
|
182
239
|
operation_id: 'crm_get_account',
|
183
240
|
security_source: @sdk_configuration.security_source
|
184
241
|
)
|
@@ -236,10 +293,67 @@ module StackOne
|
|
236
293
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::AccountResult)
|
237
294
|
res.account_result = out
|
238
295
|
end
|
296
|
+
elsif r.status == 400
|
297
|
+
if Utils.match_content_type(content_type, 'application/json')
|
298
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
299
|
+
res.bad_request_response = out
|
300
|
+
end
|
301
|
+
elsif r.status == 401
|
302
|
+
if Utils.match_content_type(content_type, 'application/json')
|
303
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
304
|
+
res.unauthorized_response = out
|
305
|
+
end
|
306
|
+
elsif r.status == 403
|
307
|
+
if Utils.match_content_type(content_type, 'application/json')
|
308
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
309
|
+
res.forbidden_response = out
|
310
|
+
end
|
311
|
+
elsif r.status == 404
|
312
|
+
if Utils.match_content_type(content_type, 'application/json')
|
313
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
314
|
+
res.not_found_response = out
|
315
|
+
end
|
239
316
|
elsif r.status == 408
|
240
317
|
res.headers = r.headers
|
241
|
-
|
242
|
-
|
318
|
+
if Utils.match_content_type(content_type, 'application/json')
|
319
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
320
|
+
res.request_timed_out_response = out
|
321
|
+
end
|
322
|
+
elsif r.status == 409
|
323
|
+
if Utils.match_content_type(content_type, 'application/json')
|
324
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
325
|
+
res.conflict_response = out
|
326
|
+
end
|
327
|
+
elsif r.status == 412
|
328
|
+
if Utils.match_content_type(content_type, 'application/json')
|
329
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
330
|
+
res.precondition_failed_response = out
|
331
|
+
end
|
332
|
+
elsif r.status == 422
|
333
|
+
if Utils.match_content_type(content_type, 'application/json')
|
334
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
335
|
+
res.unprocessable_entity_response = out
|
336
|
+
end
|
337
|
+
elsif r.status == 429
|
338
|
+
if Utils.match_content_type(content_type, 'application/json')
|
339
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
340
|
+
res.too_many_requests_response = out
|
341
|
+
end
|
342
|
+
elsif r.status == 500
|
343
|
+
if Utils.match_content_type(content_type, 'application/json')
|
344
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
345
|
+
res.internal_server_error_response = out
|
346
|
+
end
|
347
|
+
elsif r.status == 501
|
348
|
+
if Utils.match_content_type(content_type, 'application/json')
|
349
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
350
|
+
res.not_implemented_response = out
|
351
|
+
end
|
352
|
+
elsif r.status == 502
|
353
|
+
if Utils.match_content_type(content_type, 'application/json')
|
354
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
355
|
+
res.bad_gateway_response = out
|
356
|
+
end
|
243
357
|
end
|
244
358
|
|
245
359
|
res
|
@@ -285,7 +399,7 @@ module StackOne
|
|
285
399
|
|
286
400
|
hook_ctx = SDKHooks::HookContext.new(
|
287
401
|
base_url: base_url,
|
288
|
-
oauth2_scopes:
|
402
|
+
oauth2_scopes: nil,
|
289
403
|
operation_id: 'crm_get_contact',
|
290
404
|
security_source: @sdk_configuration.security_source
|
291
405
|
)
|
@@ -343,10 +457,67 @@ module StackOne
|
|
343
457
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ContactResult)
|
344
458
|
res.contact_result = out
|
345
459
|
end
|
460
|
+
elsif r.status == 400
|
461
|
+
if Utils.match_content_type(content_type, 'application/json')
|
462
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
463
|
+
res.bad_request_response = out
|
464
|
+
end
|
465
|
+
elsif r.status == 401
|
466
|
+
if Utils.match_content_type(content_type, 'application/json')
|
467
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
468
|
+
res.unauthorized_response = out
|
469
|
+
end
|
470
|
+
elsif r.status == 403
|
471
|
+
if Utils.match_content_type(content_type, 'application/json')
|
472
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
473
|
+
res.forbidden_response = out
|
474
|
+
end
|
475
|
+
elsif r.status == 404
|
476
|
+
if Utils.match_content_type(content_type, 'application/json')
|
477
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
478
|
+
res.not_found_response = out
|
479
|
+
end
|
346
480
|
elsif r.status == 408
|
347
481
|
res.headers = r.headers
|
348
|
-
|
349
|
-
|
482
|
+
if Utils.match_content_type(content_type, 'application/json')
|
483
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
484
|
+
res.request_timed_out_response = out
|
485
|
+
end
|
486
|
+
elsif r.status == 409
|
487
|
+
if Utils.match_content_type(content_type, 'application/json')
|
488
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
489
|
+
res.conflict_response = out
|
490
|
+
end
|
491
|
+
elsif r.status == 412
|
492
|
+
if Utils.match_content_type(content_type, 'application/json')
|
493
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
494
|
+
res.precondition_failed_response = out
|
495
|
+
end
|
496
|
+
elsif r.status == 422
|
497
|
+
if Utils.match_content_type(content_type, 'application/json')
|
498
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
499
|
+
res.unprocessable_entity_response = out
|
500
|
+
end
|
501
|
+
elsif r.status == 429
|
502
|
+
if Utils.match_content_type(content_type, 'application/json')
|
503
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
504
|
+
res.too_many_requests_response = out
|
505
|
+
end
|
506
|
+
elsif r.status == 500
|
507
|
+
if Utils.match_content_type(content_type, 'application/json')
|
508
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
509
|
+
res.internal_server_error_response = out
|
510
|
+
end
|
511
|
+
elsif r.status == 501
|
512
|
+
if Utils.match_content_type(content_type, 'application/json')
|
513
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
514
|
+
res.not_implemented_response = out
|
515
|
+
end
|
516
|
+
elsif r.status == 502
|
517
|
+
if Utils.match_content_type(content_type, 'application/json')
|
518
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
519
|
+
res.bad_gateway_response = out
|
520
|
+
end
|
350
521
|
end
|
351
522
|
|
352
523
|
res
|
@@ -392,7 +563,7 @@ module StackOne
|
|
392
563
|
|
393
564
|
hook_ctx = SDKHooks::HookContext.new(
|
394
565
|
base_url: base_url,
|
395
|
-
oauth2_scopes:
|
566
|
+
oauth2_scopes: nil,
|
396
567
|
operation_id: 'crm_get_contact_custom_field_definition',
|
397
568
|
security_source: @sdk_configuration.security_source
|
398
569
|
)
|
@@ -450,10 +621,67 @@ module StackOne
|
|
450
621
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CustomFieldDefinitionResultApiModel)
|
451
622
|
res.custom_field_definition_result_api_model = out
|
452
623
|
end
|
624
|
+
elsif r.status == 400
|
625
|
+
if Utils.match_content_type(content_type, 'application/json')
|
626
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
627
|
+
res.bad_request_response = out
|
628
|
+
end
|
629
|
+
elsif r.status == 401
|
630
|
+
if Utils.match_content_type(content_type, 'application/json')
|
631
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
632
|
+
res.unauthorized_response = out
|
633
|
+
end
|
634
|
+
elsif r.status == 403
|
635
|
+
if Utils.match_content_type(content_type, 'application/json')
|
636
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
637
|
+
res.forbidden_response = out
|
638
|
+
end
|
639
|
+
elsif r.status == 404
|
640
|
+
if Utils.match_content_type(content_type, 'application/json')
|
641
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
642
|
+
res.not_found_response = out
|
643
|
+
end
|
453
644
|
elsif r.status == 408
|
454
645
|
res.headers = r.headers
|
455
|
-
|
456
|
-
|
646
|
+
if Utils.match_content_type(content_type, 'application/json')
|
647
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
648
|
+
res.request_timed_out_response = out
|
649
|
+
end
|
650
|
+
elsif r.status == 409
|
651
|
+
if Utils.match_content_type(content_type, 'application/json')
|
652
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
653
|
+
res.conflict_response = out
|
654
|
+
end
|
655
|
+
elsif r.status == 412
|
656
|
+
if Utils.match_content_type(content_type, 'application/json')
|
657
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
658
|
+
res.precondition_failed_response = out
|
659
|
+
end
|
660
|
+
elsif r.status == 422
|
661
|
+
if Utils.match_content_type(content_type, 'application/json')
|
662
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
663
|
+
res.unprocessable_entity_response = out
|
664
|
+
end
|
665
|
+
elsif r.status == 429
|
666
|
+
if Utils.match_content_type(content_type, 'application/json')
|
667
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
668
|
+
res.too_many_requests_response = out
|
669
|
+
end
|
670
|
+
elsif r.status == 500
|
671
|
+
if Utils.match_content_type(content_type, 'application/json')
|
672
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
673
|
+
res.internal_server_error_response = out
|
674
|
+
end
|
675
|
+
elsif r.status == 501
|
676
|
+
if Utils.match_content_type(content_type, 'application/json')
|
677
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
678
|
+
res.not_implemented_response = out
|
679
|
+
end
|
680
|
+
elsif r.status == 502
|
681
|
+
if Utils.match_content_type(content_type, 'application/json')
|
682
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
683
|
+
res.bad_gateway_response = out
|
684
|
+
end
|
457
685
|
end
|
458
686
|
|
459
687
|
res
|
@@ -499,7 +727,7 @@ module StackOne
|
|
499
727
|
|
500
728
|
hook_ctx = SDKHooks::HookContext.new(
|
501
729
|
base_url: base_url,
|
502
|
-
oauth2_scopes:
|
730
|
+
oauth2_scopes: nil,
|
503
731
|
operation_id: 'crm_get_list',
|
504
732
|
security_source: @sdk_configuration.security_source
|
505
733
|
)
|
@@ -557,10 +785,67 @@ module StackOne
|
|
557
785
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ListResult)
|
558
786
|
res.list_result = out
|
559
787
|
end
|
788
|
+
elsif r.status == 400
|
789
|
+
if Utils.match_content_type(content_type, 'application/json')
|
790
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
791
|
+
res.bad_request_response = out
|
792
|
+
end
|
793
|
+
elsif r.status == 401
|
794
|
+
if Utils.match_content_type(content_type, 'application/json')
|
795
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
796
|
+
res.unauthorized_response = out
|
797
|
+
end
|
798
|
+
elsif r.status == 403
|
799
|
+
if Utils.match_content_type(content_type, 'application/json')
|
800
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
801
|
+
res.forbidden_response = out
|
802
|
+
end
|
803
|
+
elsif r.status == 404
|
804
|
+
if Utils.match_content_type(content_type, 'application/json')
|
805
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
806
|
+
res.not_found_response = out
|
807
|
+
end
|
560
808
|
elsif r.status == 408
|
561
809
|
res.headers = r.headers
|
562
|
-
|
563
|
-
|
810
|
+
if Utils.match_content_type(content_type, 'application/json')
|
811
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
812
|
+
res.request_timed_out_response = out
|
813
|
+
end
|
814
|
+
elsif r.status == 409
|
815
|
+
if Utils.match_content_type(content_type, 'application/json')
|
816
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
817
|
+
res.conflict_response = out
|
818
|
+
end
|
819
|
+
elsif r.status == 412
|
820
|
+
if Utils.match_content_type(content_type, 'application/json')
|
821
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
822
|
+
res.precondition_failed_response = out
|
823
|
+
end
|
824
|
+
elsif r.status == 422
|
825
|
+
if Utils.match_content_type(content_type, 'application/json')
|
826
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
827
|
+
res.unprocessable_entity_response = out
|
828
|
+
end
|
829
|
+
elsif r.status == 429
|
830
|
+
if Utils.match_content_type(content_type, 'application/json')
|
831
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
832
|
+
res.too_many_requests_response = out
|
833
|
+
end
|
834
|
+
elsif r.status == 500
|
835
|
+
if Utils.match_content_type(content_type, 'application/json')
|
836
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
837
|
+
res.internal_server_error_response = out
|
838
|
+
end
|
839
|
+
elsif r.status == 501
|
840
|
+
if Utils.match_content_type(content_type, 'application/json')
|
841
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
842
|
+
res.not_implemented_response = out
|
843
|
+
end
|
844
|
+
elsif r.status == 502
|
845
|
+
if Utils.match_content_type(content_type, 'application/json')
|
846
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
847
|
+
res.bad_gateway_response = out
|
848
|
+
end
|
564
849
|
end
|
565
850
|
|
566
851
|
res
|
@@ -601,7 +886,7 @@ module StackOne
|
|
601
886
|
|
602
887
|
hook_ctx = SDKHooks::HookContext.new(
|
603
888
|
base_url: base_url,
|
604
|
-
oauth2_scopes:
|
889
|
+
oauth2_scopes: nil,
|
605
890
|
operation_id: 'crm_list_accounts',
|
606
891
|
security_source: @sdk_configuration.security_source
|
607
892
|
)
|
@@ -659,10 +944,67 @@ module StackOne
|
|
659
944
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::AccountsPaginated)
|
660
945
|
res.accounts_paginated = out
|
661
946
|
end
|
947
|
+
elsif r.status == 400
|
948
|
+
if Utils.match_content_type(content_type, 'application/json')
|
949
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
950
|
+
res.bad_request_response = out
|
951
|
+
end
|
952
|
+
elsif r.status == 401
|
953
|
+
if Utils.match_content_type(content_type, 'application/json')
|
954
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
955
|
+
res.unauthorized_response = out
|
956
|
+
end
|
957
|
+
elsif r.status == 403
|
958
|
+
if Utils.match_content_type(content_type, 'application/json')
|
959
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
960
|
+
res.forbidden_response = out
|
961
|
+
end
|
962
|
+
elsif r.status == 404
|
963
|
+
if Utils.match_content_type(content_type, 'application/json')
|
964
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
965
|
+
res.not_found_response = out
|
966
|
+
end
|
662
967
|
elsif r.status == 408
|
663
968
|
res.headers = r.headers
|
664
|
-
|
665
|
-
|
969
|
+
if Utils.match_content_type(content_type, 'application/json')
|
970
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
971
|
+
res.request_timed_out_response = out
|
972
|
+
end
|
973
|
+
elsif r.status == 409
|
974
|
+
if Utils.match_content_type(content_type, 'application/json')
|
975
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
976
|
+
res.conflict_response = out
|
977
|
+
end
|
978
|
+
elsif r.status == 412
|
979
|
+
if Utils.match_content_type(content_type, 'application/json')
|
980
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
981
|
+
res.precondition_failed_response = out
|
982
|
+
end
|
983
|
+
elsif r.status == 422
|
984
|
+
if Utils.match_content_type(content_type, 'application/json')
|
985
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
986
|
+
res.unprocessable_entity_response = out
|
987
|
+
end
|
988
|
+
elsif r.status == 429
|
989
|
+
if Utils.match_content_type(content_type, 'application/json')
|
990
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
991
|
+
res.too_many_requests_response = out
|
992
|
+
end
|
993
|
+
elsif r.status == 500
|
994
|
+
if Utils.match_content_type(content_type, 'application/json')
|
995
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
996
|
+
res.internal_server_error_response = out
|
997
|
+
end
|
998
|
+
elsif r.status == 501
|
999
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1000
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1001
|
+
res.not_implemented_response = out
|
1002
|
+
end
|
1003
|
+
elsif r.status == 502
|
1004
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1005
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1006
|
+
res.bad_gateway_response = out
|
1007
|
+
end
|
666
1008
|
end
|
667
1009
|
|
668
1010
|
res
|
@@ -703,7 +1045,7 @@ module StackOne
|
|
703
1045
|
|
704
1046
|
hook_ctx = SDKHooks::HookContext.new(
|
705
1047
|
base_url: base_url,
|
706
|
-
oauth2_scopes:
|
1048
|
+
oauth2_scopes: nil,
|
707
1049
|
operation_id: 'crm_list_contact_custom_field_definitions',
|
708
1050
|
security_source: @sdk_configuration.security_source
|
709
1051
|
)
|
@@ -761,10 +1103,67 @@ module StackOne
|
|
761
1103
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CustomFieldDefinitionsPaginated)
|
762
1104
|
res.custom_field_definitions_paginated = out
|
763
1105
|
end
|
1106
|
+
elsif r.status == 400
|
1107
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1108
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1109
|
+
res.bad_request_response = out
|
1110
|
+
end
|
1111
|
+
elsif r.status == 401
|
1112
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1113
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1114
|
+
res.unauthorized_response = out
|
1115
|
+
end
|
1116
|
+
elsif r.status == 403
|
1117
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1118
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1119
|
+
res.forbidden_response = out
|
1120
|
+
end
|
1121
|
+
elsif r.status == 404
|
1122
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1123
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1124
|
+
res.not_found_response = out
|
1125
|
+
end
|
764
1126
|
elsif r.status == 408
|
765
1127
|
res.headers = r.headers
|
766
|
-
|
767
|
-
|
1128
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1129
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1130
|
+
res.request_timed_out_response = out
|
1131
|
+
end
|
1132
|
+
elsif r.status == 409
|
1133
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1134
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1135
|
+
res.conflict_response = out
|
1136
|
+
end
|
1137
|
+
elsif r.status == 412
|
1138
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1139
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1140
|
+
res.precondition_failed_response = out
|
1141
|
+
end
|
1142
|
+
elsif r.status == 422
|
1143
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1144
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1145
|
+
res.unprocessable_entity_response = out
|
1146
|
+
end
|
1147
|
+
elsif r.status == 429
|
1148
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1149
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1150
|
+
res.too_many_requests_response = out
|
1151
|
+
end
|
1152
|
+
elsif r.status == 500
|
1153
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1154
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1155
|
+
res.internal_server_error_response = out
|
1156
|
+
end
|
1157
|
+
elsif r.status == 501
|
1158
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1159
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1160
|
+
res.not_implemented_response = out
|
1161
|
+
end
|
1162
|
+
elsif r.status == 502
|
1163
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1164
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1165
|
+
res.bad_gateway_response = out
|
1166
|
+
end
|
768
1167
|
end
|
769
1168
|
|
770
1169
|
res
|
@@ -805,7 +1204,7 @@ module StackOne
|
|
805
1204
|
|
806
1205
|
hook_ctx = SDKHooks::HookContext.new(
|
807
1206
|
base_url: base_url,
|
808
|
-
oauth2_scopes:
|
1207
|
+
oauth2_scopes: nil,
|
809
1208
|
operation_id: 'crm_list_contacts',
|
810
1209
|
security_source: @sdk_configuration.security_source
|
811
1210
|
)
|
@@ -863,10 +1262,67 @@ module StackOne
|
|
863
1262
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ContactsPaginated)
|
864
1263
|
res.contacts_paginated = out
|
865
1264
|
end
|
1265
|
+
elsif r.status == 400
|
1266
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1267
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1268
|
+
res.bad_request_response = out
|
1269
|
+
end
|
1270
|
+
elsif r.status == 401
|
1271
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1272
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1273
|
+
res.unauthorized_response = out
|
1274
|
+
end
|
1275
|
+
elsif r.status == 403
|
1276
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1277
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1278
|
+
res.forbidden_response = out
|
1279
|
+
end
|
1280
|
+
elsif r.status == 404
|
1281
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1282
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1283
|
+
res.not_found_response = out
|
1284
|
+
end
|
866
1285
|
elsif r.status == 408
|
867
1286
|
res.headers = r.headers
|
868
|
-
|
869
|
-
|
1287
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1288
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1289
|
+
res.request_timed_out_response = out
|
1290
|
+
end
|
1291
|
+
elsif r.status == 409
|
1292
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1293
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1294
|
+
res.conflict_response = out
|
1295
|
+
end
|
1296
|
+
elsif r.status == 412
|
1297
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1298
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1299
|
+
res.precondition_failed_response = out
|
1300
|
+
end
|
1301
|
+
elsif r.status == 422
|
1302
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1303
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1304
|
+
res.unprocessable_entity_response = out
|
1305
|
+
end
|
1306
|
+
elsif r.status == 429
|
1307
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1308
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1309
|
+
res.too_many_requests_response = out
|
1310
|
+
end
|
1311
|
+
elsif r.status == 500
|
1312
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1313
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1314
|
+
res.internal_server_error_response = out
|
1315
|
+
end
|
1316
|
+
elsif r.status == 501
|
1317
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1318
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1319
|
+
res.not_implemented_response = out
|
1320
|
+
end
|
1321
|
+
elsif r.status == 502
|
1322
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1323
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1324
|
+
res.bad_gateway_response = out
|
1325
|
+
end
|
870
1326
|
end
|
871
1327
|
|
872
1328
|
res
|
@@ -907,7 +1363,7 @@ module StackOne
|
|
907
1363
|
|
908
1364
|
hook_ctx = SDKHooks::HookContext.new(
|
909
1365
|
base_url: base_url,
|
910
|
-
oauth2_scopes:
|
1366
|
+
oauth2_scopes: nil,
|
911
1367
|
operation_id: 'crm_list_lists',
|
912
1368
|
security_source: @sdk_configuration.security_source
|
913
1369
|
)
|
@@ -965,10 +1421,67 @@ module StackOne
|
|
965
1421
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ListsPaginated)
|
966
1422
|
res.lists_paginated = out
|
967
1423
|
end
|
1424
|
+
elsif r.status == 400
|
1425
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1426
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1427
|
+
res.bad_request_response = out
|
1428
|
+
end
|
1429
|
+
elsif r.status == 401
|
1430
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1431
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1432
|
+
res.unauthorized_response = out
|
1433
|
+
end
|
1434
|
+
elsif r.status == 403
|
1435
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1436
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1437
|
+
res.forbidden_response = out
|
1438
|
+
end
|
1439
|
+
elsif r.status == 404
|
1440
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1441
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1442
|
+
res.not_found_response = out
|
1443
|
+
end
|
968
1444
|
elsif r.status == 408
|
969
1445
|
res.headers = r.headers
|
970
|
-
|
971
|
-
|
1446
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1447
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1448
|
+
res.request_timed_out_response = out
|
1449
|
+
end
|
1450
|
+
elsif r.status == 409
|
1451
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1452
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1453
|
+
res.conflict_response = out
|
1454
|
+
end
|
1455
|
+
elsif r.status == 412
|
1456
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1457
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1458
|
+
res.precondition_failed_response = out
|
1459
|
+
end
|
1460
|
+
elsif r.status == 422
|
1461
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1462
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1463
|
+
res.unprocessable_entity_response = out
|
1464
|
+
end
|
1465
|
+
elsif r.status == 429
|
1466
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1467
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1468
|
+
res.too_many_requests_response = out
|
1469
|
+
end
|
1470
|
+
elsif r.status == 500
|
1471
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1472
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1473
|
+
res.internal_server_error_response = out
|
1474
|
+
end
|
1475
|
+
elsif r.status == 501
|
1476
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1477
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1478
|
+
res.not_implemented_response = out
|
1479
|
+
end
|
1480
|
+
elsif r.status == 502
|
1481
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1482
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1483
|
+
res.bad_gateway_response = out
|
1484
|
+
end
|
972
1485
|
end
|
973
1486
|
|
974
1487
|
res
|
@@ -1030,7 +1543,7 @@ module StackOne
|
|
1030
1543
|
|
1031
1544
|
hook_ctx = SDKHooks::HookContext.new(
|
1032
1545
|
base_url: base_url,
|
1033
|
-
oauth2_scopes:
|
1546
|
+
oauth2_scopes: nil,
|
1034
1547
|
operation_id: 'crm_update_contact',
|
1035
1548
|
security_source: @sdk_configuration.security_source
|
1036
1549
|
)
|
@@ -1088,10 +1601,67 @@ module StackOne
|
|
1088
1601
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ContactResult)
|
1089
1602
|
res.contact_result = out
|
1090
1603
|
end
|
1604
|
+
elsif r.status == 400
|
1605
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1606
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1607
|
+
res.bad_request_response = out
|
1608
|
+
end
|
1609
|
+
elsif r.status == 401
|
1610
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1611
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1612
|
+
res.unauthorized_response = out
|
1613
|
+
end
|
1614
|
+
elsif r.status == 403
|
1615
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1616
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1617
|
+
res.forbidden_response = out
|
1618
|
+
end
|
1619
|
+
elsif r.status == 404
|
1620
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1621
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1622
|
+
res.not_found_response = out
|
1623
|
+
end
|
1091
1624
|
elsif r.status == 408
|
1092
1625
|
res.headers = r.headers
|
1093
|
-
|
1094
|
-
|
1626
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1627
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1628
|
+
res.request_timed_out_response = out
|
1629
|
+
end
|
1630
|
+
elsif r.status == 409
|
1631
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1632
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1633
|
+
res.conflict_response = out
|
1634
|
+
end
|
1635
|
+
elsif r.status == 412
|
1636
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1637
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1638
|
+
res.precondition_failed_response = out
|
1639
|
+
end
|
1640
|
+
elsif r.status == 422
|
1641
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1642
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1643
|
+
res.unprocessable_entity_response = out
|
1644
|
+
end
|
1645
|
+
elsif r.status == 429
|
1646
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1647
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1648
|
+
res.too_many_requests_response = out
|
1649
|
+
end
|
1650
|
+
elsif r.status == 500
|
1651
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1652
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1653
|
+
res.internal_server_error_response = out
|
1654
|
+
end
|
1655
|
+
elsif r.status == 501
|
1656
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1657
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1658
|
+
res.not_implemented_response = out
|
1659
|
+
end
|
1660
|
+
elsif r.status == 502
|
1661
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1662
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1663
|
+
res.bad_gateway_response = out
|
1664
|
+
end
|
1095
1665
|
end
|
1096
1666
|
|
1097
1667
|
res
|