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/marketing.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: 'marketing_create_content_block',
|
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::CreateResult)
|
130
130
|
res.create_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
|
@@ -188,7 +245,7 @@ module StackOne
|
|
188
245
|
|
189
246
|
hook_ctx = SDKHooks::HookContext.new(
|
190
247
|
base_url: base_url,
|
191
|
-
oauth2_scopes:
|
248
|
+
oauth2_scopes: nil,
|
192
249
|
operation_id: 'marketing_create_email_template',
|
193
250
|
security_source: @sdk_configuration.security_source
|
194
251
|
)
|
@@ -246,10 +303,67 @@ module StackOne
|
|
246
303
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
247
304
|
res.create_result = out
|
248
305
|
end
|
306
|
+
elsif r.status == 400
|
307
|
+
if Utils.match_content_type(content_type, 'application/json')
|
308
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
309
|
+
res.bad_request_response = out
|
310
|
+
end
|
311
|
+
elsif r.status == 401
|
312
|
+
if Utils.match_content_type(content_type, 'application/json')
|
313
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
314
|
+
res.unauthorized_response = out
|
315
|
+
end
|
316
|
+
elsif r.status == 403
|
317
|
+
if Utils.match_content_type(content_type, 'application/json')
|
318
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
319
|
+
res.forbidden_response = out
|
320
|
+
end
|
321
|
+
elsif r.status == 404
|
322
|
+
if Utils.match_content_type(content_type, 'application/json')
|
323
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
324
|
+
res.not_found_response = out
|
325
|
+
end
|
249
326
|
elsif r.status == 408
|
250
327
|
res.headers = r.headers
|
251
|
-
|
252
|
-
|
328
|
+
if Utils.match_content_type(content_type, 'application/json')
|
329
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
330
|
+
res.request_timed_out_response = out
|
331
|
+
end
|
332
|
+
elsif r.status == 409
|
333
|
+
if Utils.match_content_type(content_type, 'application/json')
|
334
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
335
|
+
res.conflict_response = out
|
336
|
+
end
|
337
|
+
elsif r.status == 412
|
338
|
+
if Utils.match_content_type(content_type, 'application/json')
|
339
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
340
|
+
res.precondition_failed_response = out
|
341
|
+
end
|
342
|
+
elsif r.status == 422
|
343
|
+
if Utils.match_content_type(content_type, 'application/json')
|
344
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
345
|
+
res.unprocessable_entity_response = out
|
346
|
+
end
|
347
|
+
elsif r.status == 429
|
348
|
+
if Utils.match_content_type(content_type, 'application/json')
|
349
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
350
|
+
res.too_many_requests_response = out
|
351
|
+
end
|
352
|
+
elsif r.status == 500
|
353
|
+
if Utils.match_content_type(content_type, 'application/json')
|
354
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
355
|
+
res.internal_server_error_response = out
|
356
|
+
end
|
357
|
+
elsif r.status == 501
|
358
|
+
if Utils.match_content_type(content_type, 'application/json')
|
359
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
360
|
+
res.not_implemented_response = out
|
361
|
+
end
|
362
|
+
elsif r.status == 502
|
363
|
+
if Utils.match_content_type(content_type, 'application/json')
|
364
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
365
|
+
res.bad_gateway_response = out
|
366
|
+
end
|
253
367
|
end
|
254
368
|
|
255
369
|
res
|
@@ -305,7 +419,7 @@ module StackOne
|
|
305
419
|
|
306
420
|
hook_ctx = SDKHooks::HookContext.new(
|
307
421
|
base_url: base_url,
|
308
|
-
oauth2_scopes:
|
422
|
+
oauth2_scopes: nil,
|
309
423
|
operation_id: 'marketing_create_in_app_template',
|
310
424
|
security_source: @sdk_configuration.security_source
|
311
425
|
)
|
@@ -363,10 +477,67 @@ module StackOne
|
|
363
477
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
364
478
|
res.create_result = out
|
365
479
|
end
|
480
|
+
elsif r.status == 400
|
481
|
+
if Utils.match_content_type(content_type, 'application/json')
|
482
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
483
|
+
res.bad_request_response = out
|
484
|
+
end
|
485
|
+
elsif r.status == 401
|
486
|
+
if Utils.match_content_type(content_type, 'application/json')
|
487
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
488
|
+
res.unauthorized_response = out
|
489
|
+
end
|
490
|
+
elsif r.status == 403
|
491
|
+
if Utils.match_content_type(content_type, 'application/json')
|
492
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
493
|
+
res.forbidden_response = out
|
494
|
+
end
|
495
|
+
elsif r.status == 404
|
496
|
+
if Utils.match_content_type(content_type, 'application/json')
|
497
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
498
|
+
res.not_found_response = out
|
499
|
+
end
|
366
500
|
elsif r.status == 408
|
367
501
|
res.headers = r.headers
|
368
|
-
|
369
|
-
|
502
|
+
if Utils.match_content_type(content_type, 'application/json')
|
503
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
504
|
+
res.request_timed_out_response = out
|
505
|
+
end
|
506
|
+
elsif r.status == 409
|
507
|
+
if Utils.match_content_type(content_type, 'application/json')
|
508
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
509
|
+
res.conflict_response = out
|
510
|
+
end
|
511
|
+
elsif r.status == 412
|
512
|
+
if Utils.match_content_type(content_type, 'application/json')
|
513
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
514
|
+
res.precondition_failed_response = out
|
515
|
+
end
|
516
|
+
elsif r.status == 422
|
517
|
+
if Utils.match_content_type(content_type, 'application/json')
|
518
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
519
|
+
res.unprocessable_entity_response = out
|
520
|
+
end
|
521
|
+
elsif r.status == 429
|
522
|
+
if Utils.match_content_type(content_type, 'application/json')
|
523
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
524
|
+
res.too_many_requests_response = out
|
525
|
+
end
|
526
|
+
elsif r.status == 500
|
527
|
+
if Utils.match_content_type(content_type, 'application/json')
|
528
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
529
|
+
res.internal_server_error_response = out
|
530
|
+
end
|
531
|
+
elsif r.status == 501
|
532
|
+
if Utils.match_content_type(content_type, 'application/json')
|
533
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
534
|
+
res.not_implemented_response = out
|
535
|
+
end
|
536
|
+
elsif r.status == 502
|
537
|
+
if Utils.match_content_type(content_type, 'application/json')
|
538
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
539
|
+
res.bad_gateway_response = out
|
540
|
+
end
|
370
541
|
end
|
371
542
|
|
372
543
|
res
|
@@ -424,7 +595,7 @@ module StackOne
|
|
424
595
|
|
425
596
|
hook_ctx = SDKHooks::HookContext.new(
|
426
597
|
base_url: base_url,
|
427
|
-
oauth2_scopes:
|
598
|
+
oauth2_scopes: nil,
|
428
599
|
operation_id: 'marketing_create_omni_channel_template',
|
429
600
|
security_source: @sdk_configuration.security_source
|
430
601
|
)
|
@@ -482,10 +653,67 @@ module StackOne
|
|
482
653
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
483
654
|
res.create_result = out
|
484
655
|
end
|
656
|
+
elsif r.status == 400
|
657
|
+
if Utils.match_content_type(content_type, 'application/json')
|
658
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
659
|
+
res.bad_request_response = out
|
660
|
+
end
|
661
|
+
elsif r.status == 401
|
662
|
+
if Utils.match_content_type(content_type, 'application/json')
|
663
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
664
|
+
res.unauthorized_response = out
|
665
|
+
end
|
666
|
+
elsif r.status == 403
|
667
|
+
if Utils.match_content_type(content_type, 'application/json')
|
668
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
669
|
+
res.forbidden_response = out
|
670
|
+
end
|
671
|
+
elsif r.status == 404
|
672
|
+
if Utils.match_content_type(content_type, 'application/json')
|
673
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
674
|
+
res.not_found_response = out
|
675
|
+
end
|
485
676
|
elsif r.status == 408
|
486
677
|
res.headers = r.headers
|
487
|
-
|
488
|
-
|
678
|
+
if Utils.match_content_type(content_type, 'application/json')
|
679
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
680
|
+
res.request_timed_out_response = out
|
681
|
+
end
|
682
|
+
elsif r.status == 409
|
683
|
+
if Utils.match_content_type(content_type, 'application/json')
|
684
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
685
|
+
res.conflict_response = out
|
686
|
+
end
|
687
|
+
elsif r.status == 412
|
688
|
+
if Utils.match_content_type(content_type, 'application/json')
|
689
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
690
|
+
res.precondition_failed_response = out
|
691
|
+
end
|
692
|
+
elsif r.status == 422
|
693
|
+
if Utils.match_content_type(content_type, 'application/json')
|
694
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
695
|
+
res.unprocessable_entity_response = out
|
696
|
+
end
|
697
|
+
elsif r.status == 429
|
698
|
+
if Utils.match_content_type(content_type, 'application/json')
|
699
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
700
|
+
res.too_many_requests_response = out
|
701
|
+
end
|
702
|
+
elsif r.status == 500
|
703
|
+
if Utils.match_content_type(content_type, 'application/json')
|
704
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
705
|
+
res.internal_server_error_response = out
|
706
|
+
end
|
707
|
+
elsif r.status == 501
|
708
|
+
if Utils.match_content_type(content_type, 'application/json')
|
709
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
710
|
+
res.not_implemented_response = out
|
711
|
+
end
|
712
|
+
elsif r.status == 502
|
713
|
+
if Utils.match_content_type(content_type, 'application/json')
|
714
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
715
|
+
res.bad_gateway_response = out
|
716
|
+
end
|
489
717
|
end
|
490
718
|
|
491
719
|
res
|
@@ -541,7 +769,7 @@ module StackOne
|
|
541
769
|
|
542
770
|
hook_ctx = SDKHooks::HookContext.new(
|
543
771
|
base_url: base_url,
|
544
|
-
oauth2_scopes:
|
772
|
+
oauth2_scopes: nil,
|
545
773
|
operation_id: 'marketing_create_push_template',
|
546
774
|
security_source: @sdk_configuration.security_source
|
547
775
|
)
|
@@ -599,10 +827,67 @@ module StackOne
|
|
599
827
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
600
828
|
res.create_result = out
|
601
829
|
end
|
830
|
+
elsif r.status == 400
|
831
|
+
if Utils.match_content_type(content_type, 'application/json')
|
832
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
833
|
+
res.bad_request_response = out
|
834
|
+
end
|
835
|
+
elsif r.status == 401
|
836
|
+
if Utils.match_content_type(content_type, 'application/json')
|
837
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
838
|
+
res.unauthorized_response = out
|
839
|
+
end
|
840
|
+
elsif r.status == 403
|
841
|
+
if Utils.match_content_type(content_type, 'application/json')
|
842
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
843
|
+
res.forbidden_response = out
|
844
|
+
end
|
845
|
+
elsif r.status == 404
|
846
|
+
if Utils.match_content_type(content_type, 'application/json')
|
847
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
848
|
+
res.not_found_response = out
|
849
|
+
end
|
602
850
|
elsif r.status == 408
|
603
851
|
res.headers = r.headers
|
604
|
-
|
605
|
-
|
852
|
+
if Utils.match_content_type(content_type, 'application/json')
|
853
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
854
|
+
res.request_timed_out_response = out
|
855
|
+
end
|
856
|
+
elsif r.status == 409
|
857
|
+
if Utils.match_content_type(content_type, 'application/json')
|
858
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
859
|
+
res.conflict_response = out
|
860
|
+
end
|
861
|
+
elsif r.status == 412
|
862
|
+
if Utils.match_content_type(content_type, 'application/json')
|
863
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
864
|
+
res.precondition_failed_response = out
|
865
|
+
end
|
866
|
+
elsif r.status == 422
|
867
|
+
if Utils.match_content_type(content_type, 'application/json')
|
868
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
869
|
+
res.unprocessable_entity_response = out
|
870
|
+
end
|
871
|
+
elsif r.status == 429
|
872
|
+
if Utils.match_content_type(content_type, 'application/json')
|
873
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
874
|
+
res.too_many_requests_response = out
|
875
|
+
end
|
876
|
+
elsif r.status == 500
|
877
|
+
if Utils.match_content_type(content_type, 'application/json')
|
878
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
879
|
+
res.internal_server_error_response = out
|
880
|
+
end
|
881
|
+
elsif r.status == 501
|
882
|
+
if Utils.match_content_type(content_type, 'application/json')
|
883
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
884
|
+
res.not_implemented_response = out
|
885
|
+
end
|
886
|
+
elsif r.status == 502
|
887
|
+
if Utils.match_content_type(content_type, 'application/json')
|
888
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
889
|
+
res.bad_gateway_response = out
|
890
|
+
end
|
606
891
|
end
|
607
892
|
|
608
893
|
res
|
@@ -658,7 +943,7 @@ module StackOne
|
|
658
943
|
|
659
944
|
hook_ctx = SDKHooks::HookContext.new(
|
660
945
|
base_url: base_url,
|
661
|
-
oauth2_scopes:
|
946
|
+
oauth2_scopes: nil,
|
662
947
|
operation_id: 'marketing_create_sms_template',
|
663
948
|
security_source: @sdk_configuration.security_source
|
664
949
|
)
|
@@ -716,10 +1001,67 @@ module StackOne
|
|
716
1001
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
717
1002
|
res.create_result = out
|
718
1003
|
end
|
1004
|
+
elsif r.status == 400
|
1005
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1006
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1007
|
+
res.bad_request_response = out
|
1008
|
+
end
|
1009
|
+
elsif r.status == 401
|
1010
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1011
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1012
|
+
res.unauthorized_response = out
|
1013
|
+
end
|
1014
|
+
elsif r.status == 403
|
1015
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1016
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1017
|
+
res.forbidden_response = out
|
1018
|
+
end
|
1019
|
+
elsif r.status == 404
|
1020
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1021
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1022
|
+
res.not_found_response = out
|
1023
|
+
end
|
719
1024
|
elsif r.status == 408
|
720
1025
|
res.headers = r.headers
|
721
|
-
|
722
|
-
|
1026
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1027
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1028
|
+
res.request_timed_out_response = out
|
1029
|
+
end
|
1030
|
+
elsif r.status == 409
|
1031
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1032
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1033
|
+
res.conflict_response = out
|
1034
|
+
end
|
1035
|
+
elsif r.status == 412
|
1036
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1037
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1038
|
+
res.precondition_failed_response = out
|
1039
|
+
end
|
1040
|
+
elsif r.status == 422
|
1041
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1042
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1043
|
+
res.unprocessable_entity_response = out
|
1044
|
+
end
|
1045
|
+
elsif r.status == 429
|
1046
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1047
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1048
|
+
res.too_many_requests_response = out
|
1049
|
+
end
|
1050
|
+
elsif r.status == 500
|
1051
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1052
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1053
|
+
res.internal_server_error_response = out
|
1054
|
+
end
|
1055
|
+
elsif r.status == 501
|
1056
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1057
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1058
|
+
res.not_implemented_response = out
|
1059
|
+
end
|
1060
|
+
elsif r.status == 502
|
1061
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1062
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1063
|
+
res.bad_gateway_response = out
|
1064
|
+
end
|
723
1065
|
end
|
724
1066
|
|
725
1067
|
res
|
@@ -765,7 +1107,7 @@ module StackOne
|
|
765
1107
|
|
766
1108
|
hook_ctx = SDKHooks::HookContext.new(
|
767
1109
|
base_url: base_url,
|
768
|
-
oauth2_scopes:
|
1110
|
+
oauth2_scopes: nil,
|
769
1111
|
operation_id: 'marketing_get_campaign',
|
770
1112
|
security_source: @sdk_configuration.security_source
|
771
1113
|
)
|
@@ -823,10 +1165,67 @@ module StackOne
|
|
823
1165
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CampaignResult)
|
824
1166
|
res.campaign_result = out
|
825
1167
|
end
|
1168
|
+
elsif r.status == 400
|
1169
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1170
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1171
|
+
res.bad_request_response = out
|
1172
|
+
end
|
1173
|
+
elsif r.status == 401
|
1174
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1175
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1176
|
+
res.unauthorized_response = out
|
1177
|
+
end
|
1178
|
+
elsif r.status == 403
|
1179
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1180
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1181
|
+
res.forbidden_response = out
|
1182
|
+
end
|
1183
|
+
elsif r.status == 404
|
1184
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1185
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1186
|
+
res.not_found_response = out
|
1187
|
+
end
|
826
1188
|
elsif r.status == 408
|
827
1189
|
res.headers = r.headers
|
828
|
-
|
829
|
-
|
1190
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1191
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1192
|
+
res.request_timed_out_response = out
|
1193
|
+
end
|
1194
|
+
elsif r.status == 409
|
1195
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1196
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1197
|
+
res.conflict_response = out
|
1198
|
+
end
|
1199
|
+
elsif r.status == 412
|
1200
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1201
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1202
|
+
res.precondition_failed_response = out
|
1203
|
+
end
|
1204
|
+
elsif r.status == 422
|
1205
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1206
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1207
|
+
res.unprocessable_entity_response = out
|
1208
|
+
end
|
1209
|
+
elsif r.status == 429
|
1210
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1211
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1212
|
+
res.too_many_requests_response = out
|
1213
|
+
end
|
1214
|
+
elsif r.status == 500
|
1215
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1216
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1217
|
+
res.internal_server_error_response = out
|
1218
|
+
end
|
1219
|
+
elsif r.status == 501
|
1220
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1221
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1222
|
+
res.not_implemented_response = out
|
1223
|
+
end
|
1224
|
+
elsif r.status == 502
|
1225
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1226
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1227
|
+
res.bad_gateway_response = out
|
1228
|
+
end
|
830
1229
|
end
|
831
1230
|
|
832
1231
|
res
|
@@ -872,7 +1271,7 @@ module StackOne
|
|
872
1271
|
|
873
1272
|
hook_ctx = SDKHooks::HookContext.new(
|
874
1273
|
base_url: base_url,
|
875
|
-
oauth2_scopes:
|
1274
|
+
oauth2_scopes: nil,
|
876
1275
|
operation_id: 'marketing_get_content_block',
|
877
1276
|
security_source: @sdk_configuration.security_source
|
878
1277
|
)
|
@@ -930,10 +1329,67 @@ module StackOne
|
|
930
1329
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ContentBlockResult)
|
931
1330
|
res.content_block_result = out
|
932
1331
|
end
|
1332
|
+
elsif r.status == 400
|
1333
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1334
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1335
|
+
res.bad_request_response = out
|
1336
|
+
end
|
1337
|
+
elsif r.status == 401
|
1338
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1339
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1340
|
+
res.unauthorized_response = out
|
1341
|
+
end
|
1342
|
+
elsif r.status == 403
|
1343
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1344
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1345
|
+
res.forbidden_response = out
|
1346
|
+
end
|
1347
|
+
elsif r.status == 404
|
1348
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1349
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1350
|
+
res.not_found_response = out
|
1351
|
+
end
|
933
1352
|
elsif r.status == 408
|
934
1353
|
res.headers = r.headers
|
935
|
-
|
936
|
-
|
1354
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1355
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1356
|
+
res.request_timed_out_response = out
|
1357
|
+
end
|
1358
|
+
elsif r.status == 409
|
1359
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1360
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1361
|
+
res.conflict_response = out
|
1362
|
+
end
|
1363
|
+
elsif r.status == 412
|
1364
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1365
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1366
|
+
res.precondition_failed_response = out
|
1367
|
+
end
|
1368
|
+
elsif r.status == 422
|
1369
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1370
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1371
|
+
res.unprocessable_entity_response = out
|
1372
|
+
end
|
1373
|
+
elsif r.status == 429
|
1374
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1375
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1376
|
+
res.too_many_requests_response = out
|
1377
|
+
end
|
1378
|
+
elsif r.status == 500
|
1379
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1380
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1381
|
+
res.internal_server_error_response = out
|
1382
|
+
end
|
1383
|
+
elsif r.status == 501
|
1384
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1385
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1386
|
+
res.not_implemented_response = out
|
1387
|
+
end
|
1388
|
+
elsif r.status == 502
|
1389
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1390
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1391
|
+
res.bad_gateway_response = out
|
1392
|
+
end
|
937
1393
|
end
|
938
1394
|
|
939
1395
|
res
|
@@ -979,7 +1435,7 @@ module StackOne
|
|
979
1435
|
|
980
1436
|
hook_ctx = SDKHooks::HookContext.new(
|
981
1437
|
base_url: base_url,
|
982
|
-
oauth2_scopes:
|
1438
|
+
oauth2_scopes: nil,
|
983
1439
|
operation_id: 'marketing_get_email_template',
|
984
1440
|
security_source: @sdk_configuration.security_source
|
985
1441
|
)
|
@@ -1037,10 +1493,67 @@ module StackOne
|
|
1037
1493
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::EmailTemplateResult)
|
1038
1494
|
res.email_template_result = out
|
1039
1495
|
end
|
1496
|
+
elsif r.status == 400
|
1497
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1498
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1499
|
+
res.bad_request_response = out
|
1500
|
+
end
|
1501
|
+
elsif r.status == 401
|
1502
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1503
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1504
|
+
res.unauthorized_response = out
|
1505
|
+
end
|
1506
|
+
elsif r.status == 403
|
1507
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1508
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1509
|
+
res.forbidden_response = out
|
1510
|
+
end
|
1511
|
+
elsif r.status == 404
|
1512
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1513
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1514
|
+
res.not_found_response = out
|
1515
|
+
end
|
1040
1516
|
elsif r.status == 408
|
1041
1517
|
res.headers = r.headers
|
1042
|
-
|
1043
|
-
|
1518
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1519
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1520
|
+
res.request_timed_out_response = out
|
1521
|
+
end
|
1522
|
+
elsif r.status == 409
|
1523
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1524
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1525
|
+
res.conflict_response = out
|
1526
|
+
end
|
1527
|
+
elsif r.status == 412
|
1528
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1529
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1530
|
+
res.precondition_failed_response = out
|
1531
|
+
end
|
1532
|
+
elsif r.status == 422
|
1533
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1534
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1535
|
+
res.unprocessable_entity_response = out
|
1536
|
+
end
|
1537
|
+
elsif r.status == 429
|
1538
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1539
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1540
|
+
res.too_many_requests_response = out
|
1541
|
+
end
|
1542
|
+
elsif r.status == 500
|
1543
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1544
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1545
|
+
res.internal_server_error_response = out
|
1546
|
+
end
|
1547
|
+
elsif r.status == 501
|
1548
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1549
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1550
|
+
res.not_implemented_response = out
|
1551
|
+
end
|
1552
|
+
elsif r.status == 502
|
1553
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1554
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1555
|
+
res.bad_gateway_response = out
|
1556
|
+
end
|
1044
1557
|
end
|
1045
1558
|
|
1046
1559
|
res
|
@@ -1086,7 +1599,7 @@ module StackOne
|
|
1086
1599
|
|
1087
1600
|
hook_ctx = SDKHooks::HookContext.new(
|
1088
1601
|
base_url: base_url,
|
1089
|
-
oauth2_scopes:
|
1602
|
+
oauth2_scopes: nil,
|
1090
1603
|
operation_id: 'marketing_get_in_app_template',
|
1091
1604
|
security_source: @sdk_configuration.security_source
|
1092
1605
|
)
|
@@ -1144,10 +1657,67 @@ module StackOne
|
|
1144
1657
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InAppTemplateResult)
|
1145
1658
|
res.in_app_template_result = out
|
1146
1659
|
end
|
1660
|
+
elsif r.status == 400
|
1661
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1662
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1663
|
+
res.bad_request_response = out
|
1664
|
+
end
|
1665
|
+
elsif r.status == 401
|
1666
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1667
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1668
|
+
res.unauthorized_response = out
|
1669
|
+
end
|
1670
|
+
elsif r.status == 403
|
1671
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1672
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1673
|
+
res.forbidden_response = out
|
1674
|
+
end
|
1675
|
+
elsif r.status == 404
|
1676
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1677
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1678
|
+
res.not_found_response = out
|
1679
|
+
end
|
1147
1680
|
elsif r.status == 408
|
1148
1681
|
res.headers = r.headers
|
1149
|
-
|
1150
|
-
|
1682
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1683
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1684
|
+
res.request_timed_out_response = out
|
1685
|
+
end
|
1686
|
+
elsif r.status == 409
|
1687
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1688
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1689
|
+
res.conflict_response = out
|
1690
|
+
end
|
1691
|
+
elsif r.status == 412
|
1692
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1693
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1694
|
+
res.precondition_failed_response = out
|
1695
|
+
end
|
1696
|
+
elsif r.status == 422
|
1697
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1698
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1699
|
+
res.unprocessable_entity_response = out
|
1700
|
+
end
|
1701
|
+
elsif r.status == 429
|
1702
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1703
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1704
|
+
res.too_many_requests_response = out
|
1705
|
+
end
|
1706
|
+
elsif r.status == 500
|
1707
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1708
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1709
|
+
res.internal_server_error_response = out
|
1710
|
+
end
|
1711
|
+
elsif r.status == 501
|
1712
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1713
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1714
|
+
res.not_implemented_response = out
|
1715
|
+
end
|
1716
|
+
elsif r.status == 502
|
1717
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1718
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1719
|
+
res.bad_gateway_response = out
|
1720
|
+
end
|
1151
1721
|
end
|
1152
1722
|
|
1153
1723
|
res
|
@@ -1195,7 +1765,7 @@ module StackOne
|
|
1195
1765
|
|
1196
1766
|
hook_ctx = SDKHooks::HookContext.new(
|
1197
1767
|
base_url: base_url,
|
1198
|
-
oauth2_scopes:
|
1768
|
+
oauth2_scopes: nil,
|
1199
1769
|
operation_id: 'marketing_get_omni_channel_template',
|
1200
1770
|
security_source: @sdk_configuration.security_source
|
1201
1771
|
)
|
@@ -1253,10 +1823,67 @@ module StackOne
|
|
1253
1823
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TemplateResult)
|
1254
1824
|
res.template_result = out
|
1255
1825
|
end
|
1826
|
+
elsif r.status == 400
|
1827
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1828
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1829
|
+
res.bad_request_response = out
|
1830
|
+
end
|
1831
|
+
elsif r.status == 401
|
1832
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1833
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1834
|
+
res.unauthorized_response = out
|
1835
|
+
end
|
1836
|
+
elsif r.status == 403
|
1837
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1838
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1839
|
+
res.forbidden_response = out
|
1840
|
+
end
|
1841
|
+
elsif r.status == 404
|
1842
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1843
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1844
|
+
res.not_found_response = out
|
1845
|
+
end
|
1256
1846
|
elsif r.status == 408
|
1257
1847
|
res.headers = r.headers
|
1258
|
-
|
1259
|
-
|
1848
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1849
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1850
|
+
res.request_timed_out_response = out
|
1851
|
+
end
|
1852
|
+
elsif r.status == 409
|
1853
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1854
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1855
|
+
res.conflict_response = out
|
1856
|
+
end
|
1857
|
+
elsif r.status == 412
|
1858
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1859
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1860
|
+
res.precondition_failed_response = out
|
1861
|
+
end
|
1862
|
+
elsif r.status == 422
|
1863
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1864
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1865
|
+
res.unprocessable_entity_response = out
|
1866
|
+
end
|
1867
|
+
elsif r.status == 429
|
1868
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1869
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1870
|
+
res.too_many_requests_response = out
|
1871
|
+
end
|
1872
|
+
elsif r.status == 500
|
1873
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1874
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1875
|
+
res.internal_server_error_response = out
|
1876
|
+
end
|
1877
|
+
elsif r.status == 501
|
1878
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1879
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1880
|
+
res.not_implemented_response = out
|
1881
|
+
end
|
1882
|
+
elsif r.status == 502
|
1883
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1884
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1885
|
+
res.bad_gateway_response = out
|
1886
|
+
end
|
1260
1887
|
end
|
1261
1888
|
|
1262
1889
|
res
|
@@ -1302,7 +1929,7 @@ module StackOne
|
|
1302
1929
|
|
1303
1930
|
hook_ctx = SDKHooks::HookContext.new(
|
1304
1931
|
base_url: base_url,
|
1305
|
-
oauth2_scopes:
|
1932
|
+
oauth2_scopes: nil,
|
1306
1933
|
operation_id: 'marketing_get_push_template',
|
1307
1934
|
security_source: @sdk_configuration.security_source
|
1308
1935
|
)
|
@@ -1360,10 +1987,67 @@ module StackOne
|
|
1360
1987
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PushTemplateResult)
|
1361
1988
|
res.push_template_result = out
|
1362
1989
|
end
|
1990
|
+
elsif r.status == 400
|
1991
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1992
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1993
|
+
res.bad_request_response = out
|
1994
|
+
end
|
1995
|
+
elsif r.status == 401
|
1996
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1997
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1998
|
+
res.unauthorized_response = out
|
1999
|
+
end
|
2000
|
+
elsif r.status == 403
|
2001
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2002
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2003
|
+
res.forbidden_response = out
|
2004
|
+
end
|
2005
|
+
elsif r.status == 404
|
2006
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2007
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2008
|
+
res.not_found_response = out
|
2009
|
+
end
|
1363
2010
|
elsif r.status == 408
|
1364
2011
|
res.headers = r.headers
|
1365
|
-
|
1366
|
-
|
2012
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2013
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2014
|
+
res.request_timed_out_response = out
|
2015
|
+
end
|
2016
|
+
elsif r.status == 409
|
2017
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2018
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2019
|
+
res.conflict_response = out
|
2020
|
+
end
|
2021
|
+
elsif r.status == 412
|
2022
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2023
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2024
|
+
res.precondition_failed_response = out
|
2025
|
+
end
|
2026
|
+
elsif r.status == 422
|
2027
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2028
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2029
|
+
res.unprocessable_entity_response = out
|
2030
|
+
end
|
2031
|
+
elsif r.status == 429
|
2032
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2033
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2034
|
+
res.too_many_requests_response = out
|
2035
|
+
end
|
2036
|
+
elsif r.status == 500
|
2037
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2038
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2039
|
+
res.internal_server_error_response = out
|
2040
|
+
end
|
2041
|
+
elsif r.status == 501
|
2042
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2043
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2044
|
+
res.not_implemented_response = out
|
2045
|
+
end
|
2046
|
+
elsif r.status == 502
|
2047
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2048
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2049
|
+
res.bad_gateway_response = out
|
2050
|
+
end
|
1367
2051
|
end
|
1368
2052
|
|
1369
2053
|
res
|
@@ -1409,7 +2093,7 @@ module StackOne
|
|
1409
2093
|
|
1410
2094
|
hook_ctx = SDKHooks::HookContext.new(
|
1411
2095
|
base_url: base_url,
|
1412
|
-
oauth2_scopes:
|
2096
|
+
oauth2_scopes: nil,
|
1413
2097
|
operation_id: 'marketing_get_sms_template',
|
1414
2098
|
security_source: @sdk_configuration.security_source
|
1415
2099
|
)
|
@@ -1467,10 +2151,67 @@ module StackOne
|
|
1467
2151
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::SmsTemplateResult)
|
1468
2152
|
res.sms_template_result = out
|
1469
2153
|
end
|
2154
|
+
elsif r.status == 400
|
2155
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2156
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2157
|
+
res.bad_request_response = out
|
2158
|
+
end
|
2159
|
+
elsif r.status == 401
|
2160
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2161
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2162
|
+
res.unauthorized_response = out
|
2163
|
+
end
|
2164
|
+
elsif r.status == 403
|
2165
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2166
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2167
|
+
res.forbidden_response = out
|
2168
|
+
end
|
2169
|
+
elsif r.status == 404
|
2170
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2171
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2172
|
+
res.not_found_response = out
|
2173
|
+
end
|
1470
2174
|
elsif r.status == 408
|
1471
2175
|
res.headers = r.headers
|
1472
|
-
|
1473
|
-
|
2176
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2177
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2178
|
+
res.request_timed_out_response = out
|
2179
|
+
end
|
2180
|
+
elsif r.status == 409
|
2181
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2182
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2183
|
+
res.conflict_response = out
|
2184
|
+
end
|
2185
|
+
elsif r.status == 412
|
2186
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2187
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2188
|
+
res.precondition_failed_response = out
|
2189
|
+
end
|
2190
|
+
elsif r.status == 422
|
2191
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2192
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2193
|
+
res.unprocessable_entity_response = out
|
2194
|
+
end
|
2195
|
+
elsif r.status == 429
|
2196
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2197
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2198
|
+
res.too_many_requests_response = out
|
2199
|
+
end
|
2200
|
+
elsif r.status == 500
|
2201
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2202
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2203
|
+
res.internal_server_error_response = out
|
2204
|
+
end
|
2205
|
+
elsif r.status == 501
|
2206
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2207
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2208
|
+
res.not_implemented_response = out
|
2209
|
+
end
|
2210
|
+
elsif r.status == 502
|
2211
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2212
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2213
|
+
res.bad_gateway_response = out
|
2214
|
+
end
|
1474
2215
|
end
|
1475
2216
|
|
1476
2217
|
res
|
@@ -1511,7 +2252,7 @@ module StackOne
|
|
1511
2252
|
|
1512
2253
|
hook_ctx = SDKHooks::HookContext.new(
|
1513
2254
|
base_url: base_url,
|
1514
|
-
oauth2_scopes:
|
2255
|
+
oauth2_scopes: nil,
|
1515
2256
|
operation_id: 'marketing_list_campaigns',
|
1516
2257
|
security_source: @sdk_configuration.security_source
|
1517
2258
|
)
|
@@ -1569,10 +2310,67 @@ module StackOne
|
|
1569
2310
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CampaignsPaginated)
|
1570
2311
|
res.campaigns_paginated = out
|
1571
2312
|
end
|
2313
|
+
elsif r.status == 400
|
2314
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2315
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2316
|
+
res.bad_request_response = out
|
2317
|
+
end
|
2318
|
+
elsif r.status == 401
|
2319
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2320
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2321
|
+
res.unauthorized_response = out
|
2322
|
+
end
|
2323
|
+
elsif r.status == 403
|
2324
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2325
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2326
|
+
res.forbidden_response = out
|
2327
|
+
end
|
2328
|
+
elsif r.status == 404
|
2329
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2330
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2331
|
+
res.not_found_response = out
|
2332
|
+
end
|
1572
2333
|
elsif r.status == 408
|
1573
2334
|
res.headers = r.headers
|
1574
|
-
|
1575
|
-
|
2335
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2336
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2337
|
+
res.request_timed_out_response = out
|
2338
|
+
end
|
2339
|
+
elsif r.status == 409
|
2340
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2341
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2342
|
+
res.conflict_response = out
|
2343
|
+
end
|
2344
|
+
elsif r.status == 412
|
2345
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2346
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2347
|
+
res.precondition_failed_response = out
|
2348
|
+
end
|
2349
|
+
elsif r.status == 422
|
2350
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2351
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2352
|
+
res.unprocessable_entity_response = out
|
2353
|
+
end
|
2354
|
+
elsif r.status == 429
|
2355
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2356
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2357
|
+
res.too_many_requests_response = out
|
2358
|
+
end
|
2359
|
+
elsif r.status == 500
|
2360
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2361
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2362
|
+
res.internal_server_error_response = out
|
2363
|
+
end
|
2364
|
+
elsif r.status == 501
|
2365
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2366
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2367
|
+
res.not_implemented_response = out
|
2368
|
+
end
|
2369
|
+
elsif r.status == 502
|
2370
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2371
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2372
|
+
res.bad_gateway_response = out
|
2373
|
+
end
|
1576
2374
|
end
|
1577
2375
|
|
1578
2376
|
res
|
@@ -1613,7 +2411,7 @@ module StackOne
|
|
1613
2411
|
|
1614
2412
|
hook_ctx = SDKHooks::HookContext.new(
|
1615
2413
|
base_url: base_url,
|
1616
|
-
oauth2_scopes:
|
2414
|
+
oauth2_scopes: nil,
|
1617
2415
|
operation_id: 'marketing_list_content_blocks',
|
1618
2416
|
security_source: @sdk_configuration.security_source
|
1619
2417
|
)
|
@@ -1671,10 +2469,67 @@ module StackOne
|
|
1671
2469
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ContentBlocksPaginated)
|
1672
2470
|
res.content_blocks_paginated = out
|
1673
2471
|
end
|
2472
|
+
elsif r.status == 400
|
2473
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2474
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2475
|
+
res.bad_request_response = out
|
2476
|
+
end
|
2477
|
+
elsif r.status == 401
|
2478
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2479
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2480
|
+
res.unauthorized_response = out
|
2481
|
+
end
|
2482
|
+
elsif r.status == 403
|
2483
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2484
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2485
|
+
res.forbidden_response = out
|
2486
|
+
end
|
2487
|
+
elsif r.status == 404
|
2488
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2489
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2490
|
+
res.not_found_response = out
|
2491
|
+
end
|
1674
2492
|
elsif r.status == 408
|
1675
2493
|
res.headers = r.headers
|
1676
|
-
|
1677
|
-
|
2494
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2495
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2496
|
+
res.request_timed_out_response = out
|
2497
|
+
end
|
2498
|
+
elsif r.status == 409
|
2499
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2500
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2501
|
+
res.conflict_response = out
|
2502
|
+
end
|
2503
|
+
elsif r.status == 412
|
2504
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2505
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2506
|
+
res.precondition_failed_response = out
|
2507
|
+
end
|
2508
|
+
elsif r.status == 422
|
2509
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2510
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2511
|
+
res.unprocessable_entity_response = out
|
2512
|
+
end
|
2513
|
+
elsif r.status == 429
|
2514
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2515
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2516
|
+
res.too_many_requests_response = out
|
2517
|
+
end
|
2518
|
+
elsif r.status == 500
|
2519
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2520
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2521
|
+
res.internal_server_error_response = out
|
2522
|
+
end
|
2523
|
+
elsif r.status == 501
|
2524
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2525
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2526
|
+
res.not_implemented_response = out
|
2527
|
+
end
|
2528
|
+
elsif r.status == 502
|
2529
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2530
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2531
|
+
res.bad_gateway_response = out
|
2532
|
+
end
|
1678
2533
|
end
|
1679
2534
|
|
1680
2535
|
res
|
@@ -1715,7 +2570,7 @@ module StackOne
|
|
1715
2570
|
|
1716
2571
|
hook_ctx = SDKHooks::HookContext.new(
|
1717
2572
|
base_url: base_url,
|
1718
|
-
oauth2_scopes:
|
2573
|
+
oauth2_scopes: nil,
|
1719
2574
|
operation_id: 'marketing_list_email_templates',
|
1720
2575
|
security_source: @sdk_configuration.security_source
|
1721
2576
|
)
|
@@ -1773,10 +2628,67 @@ module StackOne
|
|
1773
2628
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::EmailTemplatesPaginated)
|
1774
2629
|
res.email_templates_paginated = out
|
1775
2630
|
end
|
2631
|
+
elsif r.status == 400
|
2632
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2633
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2634
|
+
res.bad_request_response = out
|
2635
|
+
end
|
2636
|
+
elsif r.status == 401
|
2637
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2638
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2639
|
+
res.unauthorized_response = out
|
2640
|
+
end
|
2641
|
+
elsif r.status == 403
|
2642
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2643
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2644
|
+
res.forbidden_response = out
|
2645
|
+
end
|
2646
|
+
elsif r.status == 404
|
2647
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2648
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2649
|
+
res.not_found_response = out
|
2650
|
+
end
|
1776
2651
|
elsif r.status == 408
|
1777
2652
|
res.headers = r.headers
|
1778
|
-
|
1779
|
-
|
2653
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2654
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2655
|
+
res.request_timed_out_response = out
|
2656
|
+
end
|
2657
|
+
elsif r.status == 409
|
2658
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2659
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2660
|
+
res.conflict_response = out
|
2661
|
+
end
|
2662
|
+
elsif r.status == 412
|
2663
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2664
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2665
|
+
res.precondition_failed_response = out
|
2666
|
+
end
|
2667
|
+
elsif r.status == 422
|
2668
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2669
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2670
|
+
res.unprocessable_entity_response = out
|
2671
|
+
end
|
2672
|
+
elsif r.status == 429
|
2673
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2674
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2675
|
+
res.too_many_requests_response = out
|
2676
|
+
end
|
2677
|
+
elsif r.status == 500
|
2678
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2679
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2680
|
+
res.internal_server_error_response = out
|
2681
|
+
end
|
2682
|
+
elsif r.status == 501
|
2683
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2684
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2685
|
+
res.not_implemented_response = out
|
2686
|
+
end
|
2687
|
+
elsif r.status == 502
|
2688
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2689
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2690
|
+
res.bad_gateway_response = out
|
2691
|
+
end
|
1780
2692
|
end
|
1781
2693
|
|
1782
2694
|
res
|
@@ -1817,7 +2729,7 @@ module StackOne
|
|
1817
2729
|
|
1818
2730
|
hook_ctx = SDKHooks::HookContext.new(
|
1819
2731
|
base_url: base_url,
|
1820
|
-
oauth2_scopes:
|
2732
|
+
oauth2_scopes: nil,
|
1821
2733
|
operation_id: 'marketing_list_in_app_templates',
|
1822
2734
|
security_source: @sdk_configuration.security_source
|
1823
2735
|
)
|
@@ -1875,10 +2787,67 @@ module StackOne
|
|
1875
2787
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InAppTemplatesPaginated)
|
1876
2788
|
res.in_app_templates_paginated = out
|
1877
2789
|
end
|
2790
|
+
elsif r.status == 400
|
2791
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2792
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2793
|
+
res.bad_request_response = out
|
2794
|
+
end
|
2795
|
+
elsif r.status == 401
|
2796
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2797
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2798
|
+
res.unauthorized_response = out
|
2799
|
+
end
|
2800
|
+
elsif r.status == 403
|
2801
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2802
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2803
|
+
res.forbidden_response = out
|
2804
|
+
end
|
2805
|
+
elsif r.status == 404
|
2806
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2807
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2808
|
+
res.not_found_response = out
|
2809
|
+
end
|
1878
2810
|
elsif r.status == 408
|
1879
2811
|
res.headers = r.headers
|
1880
|
-
|
1881
|
-
|
2812
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2813
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2814
|
+
res.request_timed_out_response = out
|
2815
|
+
end
|
2816
|
+
elsif r.status == 409
|
2817
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2818
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2819
|
+
res.conflict_response = out
|
2820
|
+
end
|
2821
|
+
elsif r.status == 412
|
2822
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2823
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2824
|
+
res.precondition_failed_response = out
|
2825
|
+
end
|
2826
|
+
elsif r.status == 422
|
2827
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2828
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2829
|
+
res.unprocessable_entity_response = out
|
2830
|
+
end
|
2831
|
+
elsif r.status == 429
|
2832
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2833
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2834
|
+
res.too_many_requests_response = out
|
2835
|
+
end
|
2836
|
+
elsif r.status == 500
|
2837
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2838
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2839
|
+
res.internal_server_error_response = out
|
2840
|
+
end
|
2841
|
+
elsif r.status == 501
|
2842
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2843
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2844
|
+
res.not_implemented_response = out
|
2845
|
+
end
|
2846
|
+
elsif r.status == 502
|
2847
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2848
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2849
|
+
res.bad_gateway_response = out
|
2850
|
+
end
|
1882
2851
|
end
|
1883
2852
|
|
1884
2853
|
res
|
@@ -1921,7 +2890,7 @@ module StackOne
|
|
1921
2890
|
|
1922
2891
|
hook_ctx = SDKHooks::HookContext.new(
|
1923
2892
|
base_url: base_url,
|
1924
|
-
oauth2_scopes:
|
2893
|
+
oauth2_scopes: nil,
|
1925
2894
|
operation_id: 'marketing_list_omni_channel_templates',
|
1926
2895
|
security_source: @sdk_configuration.security_source
|
1927
2896
|
)
|
@@ -1979,10 +2948,67 @@ module StackOne
|
|
1979
2948
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TemplatesPaginated)
|
1980
2949
|
res.templates_paginated = out
|
1981
2950
|
end
|
2951
|
+
elsif r.status == 400
|
2952
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2953
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2954
|
+
res.bad_request_response = out
|
2955
|
+
end
|
2956
|
+
elsif r.status == 401
|
2957
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2958
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2959
|
+
res.unauthorized_response = out
|
2960
|
+
end
|
2961
|
+
elsif r.status == 403
|
2962
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2963
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2964
|
+
res.forbidden_response = out
|
2965
|
+
end
|
2966
|
+
elsif r.status == 404
|
2967
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2968
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2969
|
+
res.not_found_response = out
|
2970
|
+
end
|
1982
2971
|
elsif r.status == 408
|
1983
2972
|
res.headers = r.headers
|
1984
|
-
|
1985
|
-
|
2973
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2974
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2975
|
+
res.request_timed_out_response = out
|
2976
|
+
end
|
2977
|
+
elsif r.status == 409
|
2978
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2979
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2980
|
+
res.conflict_response = out
|
2981
|
+
end
|
2982
|
+
elsif r.status == 412
|
2983
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2984
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2985
|
+
res.precondition_failed_response = out
|
2986
|
+
end
|
2987
|
+
elsif r.status == 422
|
2988
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2989
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2990
|
+
res.unprocessable_entity_response = out
|
2991
|
+
end
|
2992
|
+
elsif r.status == 429
|
2993
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2994
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2995
|
+
res.too_many_requests_response = out
|
2996
|
+
end
|
2997
|
+
elsif r.status == 500
|
2998
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2999
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3000
|
+
res.internal_server_error_response = out
|
3001
|
+
end
|
3002
|
+
elsif r.status == 501
|
3003
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3004
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3005
|
+
res.not_implemented_response = out
|
3006
|
+
end
|
3007
|
+
elsif r.status == 502
|
3008
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3009
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3010
|
+
res.bad_gateway_response = out
|
3011
|
+
end
|
1986
3012
|
end
|
1987
3013
|
|
1988
3014
|
res
|
@@ -2023,7 +3049,7 @@ module StackOne
|
|
2023
3049
|
|
2024
3050
|
hook_ctx = SDKHooks::HookContext.new(
|
2025
3051
|
base_url: base_url,
|
2026
|
-
oauth2_scopes:
|
3052
|
+
oauth2_scopes: nil,
|
2027
3053
|
operation_id: 'marketing_list_push_templates',
|
2028
3054
|
security_source: @sdk_configuration.security_source
|
2029
3055
|
)
|
@@ -2081,10 +3107,67 @@ module StackOne
|
|
2081
3107
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PushTemplatesPaginated)
|
2082
3108
|
res.push_templates_paginated = out
|
2083
3109
|
end
|
3110
|
+
elsif r.status == 400
|
3111
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3112
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3113
|
+
res.bad_request_response = out
|
3114
|
+
end
|
3115
|
+
elsif r.status == 401
|
3116
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3117
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3118
|
+
res.unauthorized_response = out
|
3119
|
+
end
|
3120
|
+
elsif r.status == 403
|
3121
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3122
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3123
|
+
res.forbidden_response = out
|
3124
|
+
end
|
3125
|
+
elsif r.status == 404
|
3126
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3127
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3128
|
+
res.not_found_response = out
|
3129
|
+
end
|
2084
3130
|
elsif r.status == 408
|
2085
3131
|
res.headers = r.headers
|
2086
|
-
|
2087
|
-
|
3132
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3133
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3134
|
+
res.request_timed_out_response = out
|
3135
|
+
end
|
3136
|
+
elsif r.status == 409
|
3137
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3138
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3139
|
+
res.conflict_response = out
|
3140
|
+
end
|
3141
|
+
elsif r.status == 412
|
3142
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3143
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3144
|
+
res.precondition_failed_response = out
|
3145
|
+
end
|
3146
|
+
elsif r.status == 422
|
3147
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3148
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3149
|
+
res.unprocessable_entity_response = out
|
3150
|
+
end
|
3151
|
+
elsif r.status == 429
|
3152
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3153
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3154
|
+
res.too_many_requests_response = out
|
3155
|
+
end
|
3156
|
+
elsif r.status == 500
|
3157
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3158
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3159
|
+
res.internal_server_error_response = out
|
3160
|
+
end
|
3161
|
+
elsif r.status == 501
|
3162
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3163
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3164
|
+
res.not_implemented_response = out
|
3165
|
+
end
|
3166
|
+
elsif r.status == 502
|
3167
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3168
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3169
|
+
res.bad_gateway_response = out
|
3170
|
+
end
|
2088
3171
|
end
|
2089
3172
|
|
2090
3173
|
res
|
@@ -2125,7 +3208,7 @@ module StackOne
|
|
2125
3208
|
|
2126
3209
|
hook_ctx = SDKHooks::HookContext.new(
|
2127
3210
|
base_url: base_url,
|
2128
|
-
oauth2_scopes:
|
3211
|
+
oauth2_scopes: nil,
|
2129
3212
|
operation_id: 'marketing_list_sms_templates',
|
2130
3213
|
security_source: @sdk_configuration.security_source
|
2131
3214
|
)
|
@@ -2183,10 +3266,67 @@ module StackOne
|
|
2183
3266
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::SmsTemplatesPaginated)
|
2184
3267
|
res.sms_templates_paginated = out
|
2185
3268
|
end
|
3269
|
+
elsif r.status == 400
|
3270
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3271
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3272
|
+
res.bad_request_response = out
|
3273
|
+
end
|
3274
|
+
elsif r.status == 401
|
3275
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3276
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3277
|
+
res.unauthorized_response = out
|
3278
|
+
end
|
3279
|
+
elsif r.status == 403
|
3280
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3281
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3282
|
+
res.forbidden_response = out
|
3283
|
+
end
|
3284
|
+
elsif r.status == 404
|
3285
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3286
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3287
|
+
res.not_found_response = out
|
3288
|
+
end
|
2186
3289
|
elsif r.status == 408
|
2187
3290
|
res.headers = r.headers
|
2188
|
-
|
2189
|
-
|
3291
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3292
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3293
|
+
res.request_timed_out_response = out
|
3294
|
+
end
|
3295
|
+
elsif r.status == 409
|
3296
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3297
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3298
|
+
res.conflict_response = out
|
3299
|
+
end
|
3300
|
+
elsif r.status == 412
|
3301
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3302
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3303
|
+
res.precondition_failed_response = out
|
3304
|
+
end
|
3305
|
+
elsif r.status == 422
|
3306
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3307
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3308
|
+
res.unprocessable_entity_response = out
|
3309
|
+
end
|
3310
|
+
elsif r.status == 429
|
3311
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3312
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3313
|
+
res.too_many_requests_response = out
|
3314
|
+
end
|
3315
|
+
elsif r.status == 500
|
3316
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3317
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3318
|
+
res.internal_server_error_response = out
|
3319
|
+
end
|
3320
|
+
elsif r.status == 501
|
3321
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3322
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3323
|
+
res.not_implemented_response = out
|
3324
|
+
end
|
3325
|
+
elsif r.status == 502
|
3326
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3327
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3328
|
+
res.bad_gateway_response = out
|
3329
|
+
end
|
2190
3330
|
end
|
2191
3331
|
|
2192
3332
|
res
|
@@ -2248,7 +3388,7 @@ module StackOne
|
|
2248
3388
|
|
2249
3389
|
hook_ctx = SDKHooks::HookContext.new(
|
2250
3390
|
base_url: base_url,
|
2251
|
-
oauth2_scopes:
|
3391
|
+
oauth2_scopes: nil,
|
2252
3392
|
operation_id: 'marketing_update_content_block',
|
2253
3393
|
security_source: @sdk_configuration.security_source
|
2254
3394
|
)
|
@@ -2306,10 +3446,67 @@ module StackOne
|
|
2306
3446
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
2307
3447
|
res.create_result = out
|
2308
3448
|
end
|
3449
|
+
elsif r.status == 400
|
3450
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3451
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3452
|
+
res.bad_request_response = out
|
3453
|
+
end
|
3454
|
+
elsif r.status == 401
|
3455
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3456
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3457
|
+
res.unauthorized_response = out
|
3458
|
+
end
|
3459
|
+
elsif r.status == 403
|
3460
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3461
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3462
|
+
res.forbidden_response = out
|
3463
|
+
end
|
3464
|
+
elsif r.status == 404
|
3465
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3466
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3467
|
+
res.not_found_response = out
|
3468
|
+
end
|
2309
3469
|
elsif r.status == 408
|
2310
3470
|
res.headers = r.headers
|
2311
|
-
|
2312
|
-
|
3471
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3472
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3473
|
+
res.request_timed_out_response = out
|
3474
|
+
end
|
3475
|
+
elsif r.status == 409
|
3476
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3477
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3478
|
+
res.conflict_response = out
|
3479
|
+
end
|
3480
|
+
elsif r.status == 412
|
3481
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3482
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3483
|
+
res.precondition_failed_response = out
|
3484
|
+
end
|
3485
|
+
elsif r.status == 422
|
3486
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3487
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3488
|
+
res.unprocessable_entity_response = out
|
3489
|
+
end
|
3490
|
+
elsif r.status == 429
|
3491
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3492
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3493
|
+
res.too_many_requests_response = out
|
3494
|
+
end
|
3495
|
+
elsif r.status == 500
|
3496
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3497
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3498
|
+
res.internal_server_error_response = out
|
3499
|
+
end
|
3500
|
+
elsif r.status == 501
|
3501
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3502
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3503
|
+
res.not_implemented_response = out
|
3504
|
+
end
|
3505
|
+
elsif r.status == 502
|
3506
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3507
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3508
|
+
res.bad_gateway_response = out
|
3509
|
+
end
|
2313
3510
|
end
|
2314
3511
|
|
2315
3512
|
res
|
@@ -2371,7 +3568,7 @@ module StackOne
|
|
2371
3568
|
|
2372
3569
|
hook_ctx = SDKHooks::HookContext.new(
|
2373
3570
|
base_url: base_url,
|
2374
|
-
oauth2_scopes:
|
3571
|
+
oauth2_scopes: nil,
|
2375
3572
|
operation_id: 'marketing_update_email_template',
|
2376
3573
|
security_source: @sdk_configuration.security_source
|
2377
3574
|
)
|
@@ -2429,10 +3626,67 @@ module StackOne
|
|
2429
3626
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
2430
3627
|
res.create_result = out
|
2431
3628
|
end
|
3629
|
+
elsif r.status == 400
|
3630
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3631
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3632
|
+
res.bad_request_response = out
|
3633
|
+
end
|
3634
|
+
elsif r.status == 401
|
3635
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3636
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3637
|
+
res.unauthorized_response = out
|
3638
|
+
end
|
3639
|
+
elsif r.status == 403
|
3640
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3641
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3642
|
+
res.forbidden_response = out
|
3643
|
+
end
|
3644
|
+
elsif r.status == 404
|
3645
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3646
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3647
|
+
res.not_found_response = out
|
3648
|
+
end
|
2432
3649
|
elsif r.status == 408
|
2433
3650
|
res.headers = r.headers
|
2434
|
-
|
2435
|
-
|
3651
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3652
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3653
|
+
res.request_timed_out_response = out
|
3654
|
+
end
|
3655
|
+
elsif r.status == 409
|
3656
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3657
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3658
|
+
res.conflict_response = out
|
3659
|
+
end
|
3660
|
+
elsif r.status == 412
|
3661
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3662
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3663
|
+
res.precondition_failed_response = out
|
3664
|
+
end
|
3665
|
+
elsif r.status == 422
|
3666
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3667
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3668
|
+
res.unprocessable_entity_response = out
|
3669
|
+
end
|
3670
|
+
elsif r.status == 429
|
3671
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3672
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3673
|
+
res.too_many_requests_response = out
|
3674
|
+
end
|
3675
|
+
elsif r.status == 500
|
3676
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3677
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3678
|
+
res.internal_server_error_response = out
|
3679
|
+
end
|
3680
|
+
elsif r.status == 501
|
3681
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3682
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3683
|
+
res.not_implemented_response = out
|
3684
|
+
end
|
3685
|
+
elsif r.status == 502
|
3686
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3687
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3688
|
+
res.bad_gateway_response = out
|
3689
|
+
end
|
2436
3690
|
end
|
2437
3691
|
|
2438
3692
|
res
|
@@ -2494,7 +3748,7 @@ module StackOne
|
|
2494
3748
|
|
2495
3749
|
hook_ctx = SDKHooks::HookContext.new(
|
2496
3750
|
base_url: base_url,
|
2497
|
-
oauth2_scopes:
|
3751
|
+
oauth2_scopes: nil,
|
2498
3752
|
operation_id: 'marketing_update_in_app_template',
|
2499
3753
|
security_source: @sdk_configuration.security_source
|
2500
3754
|
)
|
@@ -2552,10 +3806,67 @@ module StackOne
|
|
2552
3806
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
2553
3807
|
res.create_result = out
|
2554
3808
|
end
|
3809
|
+
elsif r.status == 400
|
3810
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3811
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3812
|
+
res.bad_request_response = out
|
3813
|
+
end
|
3814
|
+
elsif r.status == 401
|
3815
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3816
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3817
|
+
res.unauthorized_response = out
|
3818
|
+
end
|
3819
|
+
elsif r.status == 403
|
3820
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3821
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3822
|
+
res.forbidden_response = out
|
3823
|
+
end
|
3824
|
+
elsif r.status == 404
|
3825
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3826
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3827
|
+
res.not_found_response = out
|
3828
|
+
end
|
2555
3829
|
elsif r.status == 408
|
2556
3830
|
res.headers = r.headers
|
2557
|
-
|
2558
|
-
|
3831
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3832
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3833
|
+
res.request_timed_out_response = out
|
3834
|
+
end
|
3835
|
+
elsif r.status == 409
|
3836
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3837
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3838
|
+
res.conflict_response = out
|
3839
|
+
end
|
3840
|
+
elsif r.status == 412
|
3841
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3842
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3843
|
+
res.precondition_failed_response = out
|
3844
|
+
end
|
3845
|
+
elsif r.status == 422
|
3846
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3847
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3848
|
+
res.unprocessable_entity_response = out
|
3849
|
+
end
|
3850
|
+
elsif r.status == 429
|
3851
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3852
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3853
|
+
res.too_many_requests_response = out
|
3854
|
+
end
|
3855
|
+
elsif r.status == 500
|
3856
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3857
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3858
|
+
res.internal_server_error_response = out
|
3859
|
+
end
|
3860
|
+
elsif r.status == 501
|
3861
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3862
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3863
|
+
res.not_implemented_response = out
|
3864
|
+
end
|
3865
|
+
elsif r.status == 502
|
3866
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3867
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3868
|
+
res.bad_gateway_response = out
|
3869
|
+
end
|
2559
3870
|
end
|
2560
3871
|
|
2561
3872
|
res
|
@@ -2619,7 +3930,7 @@ module StackOne
|
|
2619
3930
|
|
2620
3931
|
hook_ctx = SDKHooks::HookContext.new(
|
2621
3932
|
base_url: base_url,
|
2622
|
-
oauth2_scopes:
|
3933
|
+
oauth2_scopes: nil,
|
2623
3934
|
operation_id: 'marketing_update_omni_channel_template',
|
2624
3935
|
security_source: @sdk_configuration.security_source
|
2625
3936
|
)
|
@@ -2677,10 +3988,67 @@ module StackOne
|
|
2677
3988
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
2678
3989
|
res.create_result = out
|
2679
3990
|
end
|
3991
|
+
elsif r.status == 400
|
3992
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3993
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3994
|
+
res.bad_request_response = out
|
3995
|
+
end
|
3996
|
+
elsif r.status == 401
|
3997
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3998
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3999
|
+
res.unauthorized_response = out
|
4000
|
+
end
|
4001
|
+
elsif r.status == 403
|
4002
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4003
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
4004
|
+
res.forbidden_response = out
|
4005
|
+
end
|
4006
|
+
elsif r.status == 404
|
4007
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4008
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
4009
|
+
res.not_found_response = out
|
4010
|
+
end
|
2680
4011
|
elsif r.status == 408
|
2681
4012
|
res.headers = r.headers
|
2682
|
-
|
2683
|
-
|
4013
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4014
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
4015
|
+
res.request_timed_out_response = out
|
4016
|
+
end
|
4017
|
+
elsif r.status == 409
|
4018
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4019
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
4020
|
+
res.conflict_response = out
|
4021
|
+
end
|
4022
|
+
elsif r.status == 412
|
4023
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4024
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
4025
|
+
res.precondition_failed_response = out
|
4026
|
+
end
|
4027
|
+
elsif r.status == 422
|
4028
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4029
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
4030
|
+
res.unprocessable_entity_response = out
|
4031
|
+
end
|
4032
|
+
elsif r.status == 429
|
4033
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4034
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
4035
|
+
res.too_many_requests_response = out
|
4036
|
+
end
|
4037
|
+
elsif r.status == 500
|
4038
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4039
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
4040
|
+
res.internal_server_error_response = out
|
4041
|
+
end
|
4042
|
+
elsif r.status == 501
|
4043
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4044
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
4045
|
+
res.not_implemented_response = out
|
4046
|
+
end
|
4047
|
+
elsif r.status == 502
|
4048
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4049
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
4050
|
+
res.bad_gateway_response = out
|
4051
|
+
end
|
2684
4052
|
end
|
2685
4053
|
|
2686
4054
|
res
|
@@ -2742,7 +4110,7 @@ module StackOne
|
|
2742
4110
|
|
2743
4111
|
hook_ctx = SDKHooks::HookContext.new(
|
2744
4112
|
base_url: base_url,
|
2745
|
-
oauth2_scopes:
|
4113
|
+
oauth2_scopes: nil,
|
2746
4114
|
operation_id: 'marketing_update_push_template',
|
2747
4115
|
security_source: @sdk_configuration.security_source
|
2748
4116
|
)
|
@@ -2800,10 +4168,67 @@ module StackOne
|
|
2800
4168
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
2801
4169
|
res.create_result = out
|
2802
4170
|
end
|
4171
|
+
elsif r.status == 400
|
4172
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4173
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
4174
|
+
res.bad_request_response = out
|
4175
|
+
end
|
4176
|
+
elsif r.status == 401
|
4177
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4178
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
4179
|
+
res.unauthorized_response = out
|
4180
|
+
end
|
4181
|
+
elsif r.status == 403
|
4182
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4183
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
4184
|
+
res.forbidden_response = out
|
4185
|
+
end
|
4186
|
+
elsif r.status == 404
|
4187
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4188
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
4189
|
+
res.not_found_response = out
|
4190
|
+
end
|
2803
4191
|
elsif r.status == 408
|
2804
4192
|
res.headers = r.headers
|
2805
|
-
|
2806
|
-
|
4193
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4194
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
4195
|
+
res.request_timed_out_response = out
|
4196
|
+
end
|
4197
|
+
elsif r.status == 409
|
4198
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4199
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
4200
|
+
res.conflict_response = out
|
4201
|
+
end
|
4202
|
+
elsif r.status == 412
|
4203
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4204
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
4205
|
+
res.precondition_failed_response = out
|
4206
|
+
end
|
4207
|
+
elsif r.status == 422
|
4208
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4209
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
4210
|
+
res.unprocessable_entity_response = out
|
4211
|
+
end
|
4212
|
+
elsif r.status == 429
|
4213
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4214
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
4215
|
+
res.too_many_requests_response = out
|
4216
|
+
end
|
4217
|
+
elsif r.status == 500
|
4218
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4219
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
4220
|
+
res.internal_server_error_response = out
|
4221
|
+
end
|
4222
|
+
elsif r.status == 501
|
4223
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4224
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
4225
|
+
res.not_implemented_response = out
|
4226
|
+
end
|
4227
|
+
elsif r.status == 502
|
4228
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4229
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
4230
|
+
res.bad_gateway_response = out
|
4231
|
+
end
|
2807
4232
|
end
|
2808
4233
|
|
2809
4234
|
res
|
@@ -2865,7 +4290,7 @@ module StackOne
|
|
2865
4290
|
|
2866
4291
|
hook_ctx = SDKHooks::HookContext.new(
|
2867
4292
|
base_url: base_url,
|
2868
|
-
oauth2_scopes:
|
4293
|
+
oauth2_scopes: nil,
|
2869
4294
|
operation_id: 'marketing_update_sms_template',
|
2870
4295
|
security_source: @sdk_configuration.security_source
|
2871
4296
|
)
|
@@ -2923,10 +4348,67 @@ module StackOne
|
|
2923
4348
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
2924
4349
|
res.create_result = out
|
2925
4350
|
end
|
4351
|
+
elsif r.status == 400
|
4352
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4353
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
4354
|
+
res.bad_request_response = out
|
4355
|
+
end
|
4356
|
+
elsif r.status == 401
|
4357
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4358
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
4359
|
+
res.unauthorized_response = out
|
4360
|
+
end
|
4361
|
+
elsif r.status == 403
|
4362
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4363
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
4364
|
+
res.forbidden_response = out
|
4365
|
+
end
|
4366
|
+
elsif r.status == 404
|
4367
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4368
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
4369
|
+
res.not_found_response = out
|
4370
|
+
end
|
2926
4371
|
elsif r.status == 408
|
2927
4372
|
res.headers = r.headers
|
2928
|
-
|
2929
|
-
|
4373
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4374
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
4375
|
+
res.request_timed_out_response = out
|
4376
|
+
end
|
4377
|
+
elsif r.status == 409
|
4378
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4379
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
4380
|
+
res.conflict_response = out
|
4381
|
+
end
|
4382
|
+
elsif r.status == 412
|
4383
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4384
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
4385
|
+
res.precondition_failed_response = out
|
4386
|
+
end
|
4387
|
+
elsif r.status == 422
|
4388
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4389
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
4390
|
+
res.unprocessable_entity_response = out
|
4391
|
+
end
|
4392
|
+
elsif r.status == 429
|
4393
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4394
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
4395
|
+
res.too_many_requests_response = out
|
4396
|
+
end
|
4397
|
+
elsif r.status == 500
|
4398
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4399
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
4400
|
+
res.internal_server_error_response = out
|
4401
|
+
end
|
4402
|
+
elsif r.status == 501
|
4403
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4404
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
4405
|
+
res.not_implemented_response = out
|
4406
|
+
end
|
4407
|
+
elsif r.status == 502
|
4408
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4409
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
4410
|
+
res.bad_gateway_response = out
|
4411
|
+
end
|
2930
4412
|
end
|
2931
4413
|
|
2932
4414
|
res
|