stackone_client 0.7.0 → 0.7.2
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/employee_schemas_national_identity_number_type_value.rb +1 -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/hriscreateemployeerequestdto_schemas_national_identity_number_type_value.rb +1 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_national_identity_number_type_value.rb +1 -0
- data/lib/stack_one/models/shared/internalservererrorresponse.rb +30 -0
- data/lib/stack_one/models/shared/nationalidentitynumberapimodel_schemas_value.rb +1 -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/lms.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: 'lms_batch_upsert_content',
|
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::BatchResultApiModel)
|
130
130
|
res.batch_result_api_model = 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: 'lms_batch_upsert_course',
|
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::BatchResultApiModel)
|
247
304
|
res.batch_result_api_model = 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: 'lms_create_collection',
|
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
|
@@ -428,7 +599,7 @@ module StackOne
|
|
428
599
|
|
429
600
|
hook_ctx = SDKHooks::HookContext.new(
|
430
601
|
base_url: base_url,
|
431
|
-
oauth2_scopes:
|
602
|
+
oauth2_scopes: nil,
|
432
603
|
operation_id: 'lms_create_user_assignment',
|
433
604
|
security_source: @sdk_configuration.security_source
|
434
605
|
)
|
@@ -486,10 +657,67 @@ module StackOne
|
|
486
657
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
487
658
|
res.create_result = out
|
488
659
|
end
|
660
|
+
elsif r.status == 400
|
661
|
+
if Utils.match_content_type(content_type, 'application/json')
|
662
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
663
|
+
res.bad_request_response = out
|
664
|
+
end
|
665
|
+
elsif r.status == 401
|
666
|
+
if Utils.match_content_type(content_type, 'application/json')
|
667
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
668
|
+
res.unauthorized_response = out
|
669
|
+
end
|
670
|
+
elsif r.status == 403
|
671
|
+
if Utils.match_content_type(content_type, 'application/json')
|
672
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
673
|
+
res.forbidden_response = out
|
674
|
+
end
|
675
|
+
elsif r.status == 404
|
676
|
+
if Utils.match_content_type(content_type, 'application/json')
|
677
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
678
|
+
res.not_found_response = out
|
679
|
+
end
|
489
680
|
elsif r.status == 408
|
490
681
|
res.headers = r.headers
|
491
|
-
|
492
|
-
|
682
|
+
if Utils.match_content_type(content_type, 'application/json')
|
683
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
684
|
+
res.request_timed_out_response = out
|
685
|
+
end
|
686
|
+
elsif r.status == 409
|
687
|
+
if Utils.match_content_type(content_type, 'application/json')
|
688
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
689
|
+
res.conflict_response = out
|
690
|
+
end
|
691
|
+
elsif r.status == 412
|
692
|
+
if Utils.match_content_type(content_type, 'application/json')
|
693
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
694
|
+
res.precondition_failed_response = out
|
695
|
+
end
|
696
|
+
elsif r.status == 422
|
697
|
+
if Utils.match_content_type(content_type, 'application/json')
|
698
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
699
|
+
res.unprocessable_entity_response = out
|
700
|
+
end
|
701
|
+
elsif r.status == 429
|
702
|
+
if Utils.match_content_type(content_type, 'application/json')
|
703
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
704
|
+
res.too_many_requests_response = out
|
705
|
+
end
|
706
|
+
elsif r.status == 500
|
707
|
+
if Utils.match_content_type(content_type, 'application/json')
|
708
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
709
|
+
res.internal_server_error_response = out
|
710
|
+
end
|
711
|
+
elsif r.status == 501
|
712
|
+
if Utils.match_content_type(content_type, 'application/json')
|
713
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
714
|
+
res.not_implemented_response = out
|
715
|
+
end
|
716
|
+
elsif r.status == 502
|
717
|
+
if Utils.match_content_type(content_type, 'application/json')
|
718
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
719
|
+
res.bad_gateway_response = out
|
720
|
+
end
|
493
721
|
end
|
494
722
|
|
495
723
|
res
|
@@ -551,7 +779,7 @@ module StackOne
|
|
551
779
|
|
552
780
|
hook_ctx = SDKHooks::HookContext.new(
|
553
781
|
base_url: base_url,
|
554
|
-
oauth2_scopes:
|
782
|
+
oauth2_scopes: nil,
|
555
783
|
operation_id: 'lms_create_user_completion',
|
556
784
|
security_source: @sdk_configuration.security_source
|
557
785
|
)
|
@@ -609,10 +837,67 @@ module StackOne
|
|
609
837
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CreateResult)
|
610
838
|
res.create_result = out
|
611
839
|
end
|
840
|
+
elsif r.status == 400
|
841
|
+
if Utils.match_content_type(content_type, 'application/json')
|
842
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
843
|
+
res.bad_request_response = out
|
844
|
+
end
|
845
|
+
elsif r.status == 401
|
846
|
+
if Utils.match_content_type(content_type, 'application/json')
|
847
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
848
|
+
res.unauthorized_response = out
|
849
|
+
end
|
850
|
+
elsif r.status == 403
|
851
|
+
if Utils.match_content_type(content_type, 'application/json')
|
852
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
853
|
+
res.forbidden_response = out
|
854
|
+
end
|
855
|
+
elsif r.status == 404
|
856
|
+
if Utils.match_content_type(content_type, 'application/json')
|
857
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
858
|
+
res.not_found_response = out
|
859
|
+
end
|
612
860
|
elsif r.status == 408
|
613
861
|
res.headers = r.headers
|
614
|
-
|
615
|
-
|
862
|
+
if Utils.match_content_type(content_type, 'application/json')
|
863
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
864
|
+
res.request_timed_out_response = out
|
865
|
+
end
|
866
|
+
elsif r.status == 409
|
867
|
+
if Utils.match_content_type(content_type, 'application/json')
|
868
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
869
|
+
res.conflict_response = out
|
870
|
+
end
|
871
|
+
elsif r.status == 412
|
872
|
+
if Utils.match_content_type(content_type, 'application/json')
|
873
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
874
|
+
res.precondition_failed_response = out
|
875
|
+
end
|
876
|
+
elsif r.status == 422
|
877
|
+
if Utils.match_content_type(content_type, 'application/json')
|
878
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
879
|
+
res.unprocessable_entity_response = out
|
880
|
+
end
|
881
|
+
elsif r.status == 429
|
882
|
+
if Utils.match_content_type(content_type, 'application/json')
|
883
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
884
|
+
res.too_many_requests_response = out
|
885
|
+
end
|
886
|
+
elsif r.status == 500
|
887
|
+
if Utils.match_content_type(content_type, 'application/json')
|
888
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
889
|
+
res.internal_server_error_response = out
|
890
|
+
end
|
891
|
+
elsif r.status == 501
|
892
|
+
if Utils.match_content_type(content_type, 'application/json')
|
893
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
894
|
+
res.not_implemented_response = out
|
895
|
+
end
|
896
|
+
elsif r.status == 502
|
897
|
+
if Utils.match_content_type(content_type, 'application/json')
|
898
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
899
|
+
res.bad_gateway_response = out
|
900
|
+
end
|
616
901
|
end
|
617
902
|
|
618
903
|
res
|
@@ -663,7 +948,7 @@ module StackOne
|
|
663
948
|
|
664
949
|
hook_ctx = SDKHooks::HookContext.new(
|
665
950
|
base_url: base_url,
|
666
|
-
oauth2_scopes:
|
951
|
+
oauth2_scopes: nil,
|
667
952
|
operation_id: 'lms_delete_user_completion',
|
668
953
|
security_source: @sdk_configuration.security_source
|
669
954
|
)
|
@@ -721,10 +1006,67 @@ module StackOne
|
|
721
1006
|
res.delete_result = out
|
722
1007
|
end
|
723
1008
|
elsif r.status == 204
|
1009
|
+
elsif r.status == 400
|
1010
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1011
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1012
|
+
res.bad_request_response = out
|
1013
|
+
end
|
1014
|
+
elsif r.status == 401
|
1015
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1016
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1017
|
+
res.unauthorized_response = out
|
1018
|
+
end
|
1019
|
+
elsif r.status == 403
|
1020
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1021
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1022
|
+
res.forbidden_response = out
|
1023
|
+
end
|
1024
|
+
elsif r.status == 404
|
1025
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1026
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1027
|
+
res.not_found_response = out
|
1028
|
+
end
|
724
1029
|
elsif r.status == 408
|
725
1030
|
res.headers = r.headers
|
726
|
-
|
727
|
-
|
1031
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1032
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1033
|
+
res.request_timed_out_response = out
|
1034
|
+
end
|
1035
|
+
elsif r.status == 409
|
1036
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1037
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1038
|
+
res.conflict_response = out
|
1039
|
+
end
|
1040
|
+
elsif r.status == 412
|
1041
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1042
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1043
|
+
res.precondition_failed_response = out
|
1044
|
+
end
|
1045
|
+
elsif r.status == 422
|
1046
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1047
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1048
|
+
res.unprocessable_entity_response = out
|
1049
|
+
end
|
1050
|
+
elsif r.status == 429
|
1051
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1052
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1053
|
+
res.too_many_requests_response = out
|
1054
|
+
end
|
1055
|
+
elsif r.status == 500
|
1056
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1057
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1058
|
+
res.internal_server_error_response = out
|
1059
|
+
end
|
1060
|
+
elsif r.status == 501
|
1061
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1062
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1063
|
+
res.not_implemented_response = out
|
1064
|
+
end
|
1065
|
+
elsif r.status == 502
|
1066
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1067
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1068
|
+
res.bad_gateway_response = out
|
1069
|
+
end
|
728
1070
|
end
|
729
1071
|
|
730
1072
|
res
|
@@ -770,7 +1112,7 @@ module StackOne
|
|
770
1112
|
|
771
1113
|
hook_ctx = SDKHooks::HookContext.new(
|
772
1114
|
base_url: base_url,
|
773
|
-
oauth2_scopes:
|
1115
|
+
oauth2_scopes: nil,
|
774
1116
|
operation_id: 'lms_get_assignment',
|
775
1117
|
security_source: @sdk_configuration.security_source
|
776
1118
|
)
|
@@ -828,10 +1170,67 @@ module StackOne
|
|
828
1170
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::AssignmentResult)
|
829
1171
|
res.assignment_result = out
|
830
1172
|
end
|
1173
|
+
elsif r.status == 400
|
1174
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1175
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1176
|
+
res.bad_request_response = out
|
1177
|
+
end
|
1178
|
+
elsif r.status == 401
|
1179
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1180
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1181
|
+
res.unauthorized_response = out
|
1182
|
+
end
|
1183
|
+
elsif r.status == 403
|
1184
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1185
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1186
|
+
res.forbidden_response = out
|
1187
|
+
end
|
1188
|
+
elsif r.status == 404
|
1189
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1190
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1191
|
+
res.not_found_response = out
|
1192
|
+
end
|
831
1193
|
elsif r.status == 408
|
832
1194
|
res.headers = r.headers
|
833
|
-
|
834
|
-
|
1195
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1196
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1197
|
+
res.request_timed_out_response = out
|
1198
|
+
end
|
1199
|
+
elsif r.status == 409
|
1200
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1201
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1202
|
+
res.conflict_response = out
|
1203
|
+
end
|
1204
|
+
elsif r.status == 412
|
1205
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1206
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1207
|
+
res.precondition_failed_response = out
|
1208
|
+
end
|
1209
|
+
elsif r.status == 422
|
1210
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1211
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1212
|
+
res.unprocessable_entity_response = out
|
1213
|
+
end
|
1214
|
+
elsif r.status == 429
|
1215
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1216
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1217
|
+
res.too_many_requests_response = out
|
1218
|
+
end
|
1219
|
+
elsif r.status == 500
|
1220
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1221
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1222
|
+
res.internal_server_error_response = out
|
1223
|
+
end
|
1224
|
+
elsif r.status == 501
|
1225
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1226
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1227
|
+
res.not_implemented_response = out
|
1228
|
+
end
|
1229
|
+
elsif r.status == 502
|
1230
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1231
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1232
|
+
res.bad_gateway_response = out
|
1233
|
+
end
|
835
1234
|
end
|
836
1235
|
|
837
1236
|
res
|
@@ -877,7 +1276,7 @@ module StackOne
|
|
877
1276
|
|
878
1277
|
hook_ctx = SDKHooks::HookContext.new(
|
879
1278
|
base_url: base_url,
|
880
|
-
oauth2_scopes:
|
1279
|
+
oauth2_scopes: nil,
|
881
1280
|
operation_id: 'lms_get_category',
|
882
1281
|
security_source: @sdk_configuration.security_source
|
883
1282
|
)
|
@@ -935,10 +1334,67 @@ module StackOne
|
|
935
1334
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CategoryResult)
|
936
1335
|
res.category_result = out
|
937
1336
|
end
|
1337
|
+
elsif r.status == 400
|
1338
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1339
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1340
|
+
res.bad_request_response = out
|
1341
|
+
end
|
1342
|
+
elsif r.status == 401
|
1343
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1344
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1345
|
+
res.unauthorized_response = out
|
1346
|
+
end
|
1347
|
+
elsif r.status == 403
|
1348
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1349
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1350
|
+
res.forbidden_response = out
|
1351
|
+
end
|
1352
|
+
elsif r.status == 404
|
1353
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1354
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1355
|
+
res.not_found_response = out
|
1356
|
+
end
|
938
1357
|
elsif r.status == 408
|
939
1358
|
res.headers = r.headers
|
940
|
-
|
941
|
-
|
1359
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1360
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1361
|
+
res.request_timed_out_response = out
|
1362
|
+
end
|
1363
|
+
elsif r.status == 409
|
1364
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1365
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1366
|
+
res.conflict_response = out
|
1367
|
+
end
|
1368
|
+
elsif r.status == 412
|
1369
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1370
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1371
|
+
res.precondition_failed_response = out
|
1372
|
+
end
|
1373
|
+
elsif r.status == 422
|
1374
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1375
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1376
|
+
res.unprocessable_entity_response = out
|
1377
|
+
end
|
1378
|
+
elsif r.status == 429
|
1379
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1380
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1381
|
+
res.too_many_requests_response = out
|
1382
|
+
end
|
1383
|
+
elsif r.status == 500
|
1384
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1385
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1386
|
+
res.internal_server_error_response = out
|
1387
|
+
end
|
1388
|
+
elsif r.status == 501
|
1389
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1390
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1391
|
+
res.not_implemented_response = out
|
1392
|
+
end
|
1393
|
+
elsif r.status == 502
|
1394
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1395
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1396
|
+
res.bad_gateway_response = out
|
1397
|
+
end
|
942
1398
|
end
|
943
1399
|
|
944
1400
|
res
|
@@ -984,7 +1440,7 @@ module StackOne
|
|
984
1440
|
|
985
1441
|
hook_ctx = SDKHooks::HookContext.new(
|
986
1442
|
base_url: base_url,
|
987
|
-
oauth2_scopes:
|
1443
|
+
oauth2_scopes: nil,
|
988
1444
|
operation_id: 'lms_get_completion',
|
989
1445
|
security_source: @sdk_configuration.security_source
|
990
1446
|
)
|
@@ -1042,10 +1498,67 @@ module StackOne
|
|
1042
1498
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CompletionResult)
|
1043
1499
|
res.completion_result = out
|
1044
1500
|
end
|
1501
|
+
elsif r.status == 400
|
1502
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1503
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1504
|
+
res.bad_request_response = out
|
1505
|
+
end
|
1506
|
+
elsif r.status == 401
|
1507
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1508
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1509
|
+
res.unauthorized_response = out
|
1510
|
+
end
|
1511
|
+
elsif r.status == 403
|
1512
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1513
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1514
|
+
res.forbidden_response = out
|
1515
|
+
end
|
1516
|
+
elsif r.status == 404
|
1517
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1518
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1519
|
+
res.not_found_response = out
|
1520
|
+
end
|
1045
1521
|
elsif r.status == 408
|
1046
1522
|
res.headers = r.headers
|
1047
|
-
|
1048
|
-
|
1523
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1524
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1525
|
+
res.request_timed_out_response = out
|
1526
|
+
end
|
1527
|
+
elsif r.status == 409
|
1528
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1529
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1530
|
+
res.conflict_response = out
|
1531
|
+
end
|
1532
|
+
elsif r.status == 412
|
1533
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1534
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1535
|
+
res.precondition_failed_response = out
|
1536
|
+
end
|
1537
|
+
elsif r.status == 422
|
1538
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1539
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1540
|
+
res.unprocessable_entity_response = out
|
1541
|
+
end
|
1542
|
+
elsif r.status == 429
|
1543
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1544
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1545
|
+
res.too_many_requests_response = out
|
1546
|
+
end
|
1547
|
+
elsif r.status == 500
|
1548
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1549
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1550
|
+
res.internal_server_error_response = out
|
1551
|
+
end
|
1552
|
+
elsif r.status == 501
|
1553
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1554
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1555
|
+
res.not_implemented_response = out
|
1556
|
+
end
|
1557
|
+
elsif r.status == 502
|
1558
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1559
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1560
|
+
res.bad_gateway_response = out
|
1561
|
+
end
|
1049
1562
|
end
|
1050
1563
|
|
1051
1564
|
res
|
@@ -1091,7 +1604,7 @@ module StackOne
|
|
1091
1604
|
|
1092
1605
|
hook_ctx = SDKHooks::HookContext.new(
|
1093
1606
|
base_url: base_url,
|
1094
|
-
oauth2_scopes:
|
1607
|
+
oauth2_scopes: nil,
|
1095
1608
|
operation_id: 'lms_get_content',
|
1096
1609
|
security_source: @sdk_configuration.security_source
|
1097
1610
|
)
|
@@ -1149,10 +1662,67 @@ module StackOne
|
|
1149
1662
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ContentResult)
|
1150
1663
|
res.content_result = out
|
1151
1664
|
end
|
1665
|
+
elsif r.status == 400
|
1666
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1667
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1668
|
+
res.bad_request_response = out
|
1669
|
+
end
|
1670
|
+
elsif r.status == 401
|
1671
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1672
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1673
|
+
res.unauthorized_response = out
|
1674
|
+
end
|
1675
|
+
elsif r.status == 403
|
1676
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1677
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1678
|
+
res.forbidden_response = out
|
1679
|
+
end
|
1680
|
+
elsif r.status == 404
|
1681
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1682
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1683
|
+
res.not_found_response = out
|
1684
|
+
end
|
1152
1685
|
elsif r.status == 408
|
1153
1686
|
res.headers = r.headers
|
1154
|
-
|
1155
|
-
|
1687
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1688
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1689
|
+
res.request_timed_out_response = out
|
1690
|
+
end
|
1691
|
+
elsif r.status == 409
|
1692
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1693
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1694
|
+
res.conflict_response = out
|
1695
|
+
end
|
1696
|
+
elsif r.status == 412
|
1697
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1698
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1699
|
+
res.precondition_failed_response = out
|
1700
|
+
end
|
1701
|
+
elsif r.status == 422
|
1702
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1703
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1704
|
+
res.unprocessable_entity_response = out
|
1705
|
+
end
|
1706
|
+
elsif r.status == 429
|
1707
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1708
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1709
|
+
res.too_many_requests_response = out
|
1710
|
+
end
|
1711
|
+
elsif r.status == 500
|
1712
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1713
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1714
|
+
res.internal_server_error_response = out
|
1715
|
+
end
|
1716
|
+
elsif r.status == 501
|
1717
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1718
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1719
|
+
res.not_implemented_response = out
|
1720
|
+
end
|
1721
|
+
elsif r.status == 502
|
1722
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1723
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1724
|
+
res.bad_gateway_response = out
|
1725
|
+
end
|
1156
1726
|
end
|
1157
1727
|
|
1158
1728
|
res
|
@@ -1198,7 +1768,7 @@ module StackOne
|
|
1198
1768
|
|
1199
1769
|
hook_ctx = SDKHooks::HookContext.new(
|
1200
1770
|
base_url: base_url,
|
1201
|
-
oauth2_scopes:
|
1771
|
+
oauth2_scopes: nil,
|
1202
1772
|
operation_id: 'lms_get_course',
|
1203
1773
|
security_source: @sdk_configuration.security_source
|
1204
1774
|
)
|
@@ -1256,18 +1826,75 @@ module StackOne
|
|
1256
1826
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CourseResult)
|
1257
1827
|
res.course_result = out
|
1258
1828
|
end
|
1829
|
+
elsif r.status == 400
|
1830
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1831
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1832
|
+
res.bad_request_response = out
|
1833
|
+
end
|
1834
|
+
elsif r.status == 401
|
1835
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1836
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1837
|
+
res.unauthorized_response = out
|
1838
|
+
end
|
1839
|
+
elsif r.status == 403
|
1840
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1841
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1842
|
+
res.forbidden_response = out
|
1843
|
+
end
|
1844
|
+
elsif r.status == 404
|
1845
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1846
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1847
|
+
res.not_found_response = out
|
1848
|
+
end
|
1259
1849
|
elsif r.status == 408
|
1260
1850
|
res.headers = r.headers
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1851
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1852
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1853
|
+
res.request_timed_out_response = out
|
1854
|
+
end
|
1855
|
+
elsif r.status == 409
|
1856
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1857
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1858
|
+
res.conflict_response = out
|
1859
|
+
end
|
1860
|
+
elsif r.status == 412
|
1861
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1862
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1863
|
+
res.precondition_failed_response = out
|
1864
|
+
end
|
1865
|
+
elsif r.status == 422
|
1866
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1867
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1868
|
+
res.unprocessable_entity_response = out
|
1869
|
+
end
|
1870
|
+
elsif r.status == 429
|
1871
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1872
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1873
|
+
res.too_many_requests_response = out
|
1874
|
+
end
|
1875
|
+
elsif r.status == 500
|
1876
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1877
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1878
|
+
res.internal_server_error_response = out
|
1879
|
+
end
|
1880
|
+
elsif r.status == 501
|
1881
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1882
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1883
|
+
res.not_implemented_response = out
|
1884
|
+
end
|
1885
|
+
elsif r.status == 502
|
1886
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1887
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1888
|
+
res.bad_gateway_response = out
|
1889
|
+
end
|
1890
|
+
end
|
1891
|
+
|
1892
|
+
res
|
1893
|
+
end
|
1894
|
+
|
1895
|
+
|
1896
|
+
sig { params(request: T.nilable(::StackOne::Operations::LmsGetSkillRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(::StackOne::Operations::LmsGetSkillResponse) }
|
1897
|
+
def get_skill(request, retries = nil, timeout_ms = nil)
|
1271
1898
|
# get_skill - Get Skill
|
1272
1899
|
url, params = @sdk_configuration.get_server_details
|
1273
1900
|
base_url = Utils.template_url(url, params)
|
@@ -1305,7 +1932,7 @@ module StackOne
|
|
1305
1932
|
|
1306
1933
|
hook_ctx = SDKHooks::HookContext.new(
|
1307
1934
|
base_url: base_url,
|
1308
|
-
oauth2_scopes:
|
1935
|
+
oauth2_scopes: nil,
|
1309
1936
|
operation_id: 'lms_get_skill',
|
1310
1937
|
security_source: @sdk_configuration.security_source
|
1311
1938
|
)
|
@@ -1363,10 +1990,67 @@ module StackOne
|
|
1363
1990
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::SkillResult)
|
1364
1991
|
res.skill_result = out
|
1365
1992
|
end
|
1993
|
+
elsif r.status == 400
|
1994
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1995
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1996
|
+
res.bad_request_response = out
|
1997
|
+
end
|
1998
|
+
elsif r.status == 401
|
1999
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2000
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2001
|
+
res.unauthorized_response = out
|
2002
|
+
end
|
2003
|
+
elsif r.status == 403
|
2004
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2005
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2006
|
+
res.forbidden_response = out
|
2007
|
+
end
|
2008
|
+
elsif r.status == 404
|
2009
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2010
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2011
|
+
res.not_found_response = out
|
2012
|
+
end
|
1366
2013
|
elsif r.status == 408
|
1367
2014
|
res.headers = r.headers
|
1368
|
-
|
1369
|
-
|
2015
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2016
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2017
|
+
res.request_timed_out_response = out
|
2018
|
+
end
|
2019
|
+
elsif r.status == 409
|
2020
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2021
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2022
|
+
res.conflict_response = out
|
2023
|
+
end
|
2024
|
+
elsif r.status == 412
|
2025
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2026
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2027
|
+
res.precondition_failed_response = out
|
2028
|
+
end
|
2029
|
+
elsif r.status == 422
|
2030
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2031
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2032
|
+
res.unprocessable_entity_response = out
|
2033
|
+
end
|
2034
|
+
elsif r.status == 429
|
2035
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2036
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2037
|
+
res.too_many_requests_response = out
|
2038
|
+
end
|
2039
|
+
elsif r.status == 500
|
2040
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2041
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2042
|
+
res.internal_server_error_response = out
|
2043
|
+
end
|
2044
|
+
elsif r.status == 501
|
2045
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2046
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2047
|
+
res.not_implemented_response = out
|
2048
|
+
end
|
2049
|
+
elsif r.status == 502
|
2050
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2051
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2052
|
+
res.bad_gateway_response = out
|
2053
|
+
end
|
1370
2054
|
end
|
1371
2055
|
|
1372
2056
|
res
|
@@ -1412,7 +2096,7 @@ module StackOne
|
|
1412
2096
|
|
1413
2097
|
hook_ctx = SDKHooks::HookContext.new(
|
1414
2098
|
base_url: base_url,
|
1415
|
-
oauth2_scopes:
|
2099
|
+
oauth2_scopes: nil,
|
1416
2100
|
operation_id: 'lms_get_user',
|
1417
2101
|
security_source: @sdk_configuration.security_source
|
1418
2102
|
)
|
@@ -1470,10 +2154,67 @@ module StackOne
|
|
1470
2154
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UserResult)
|
1471
2155
|
res.user_result = out
|
1472
2156
|
end
|
2157
|
+
elsif r.status == 400
|
2158
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2159
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2160
|
+
res.bad_request_response = out
|
2161
|
+
end
|
2162
|
+
elsif r.status == 401
|
2163
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2164
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2165
|
+
res.unauthorized_response = out
|
2166
|
+
end
|
2167
|
+
elsif r.status == 403
|
2168
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2169
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2170
|
+
res.forbidden_response = out
|
2171
|
+
end
|
2172
|
+
elsif r.status == 404
|
2173
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2174
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2175
|
+
res.not_found_response = out
|
2176
|
+
end
|
1473
2177
|
elsif r.status == 408
|
1474
2178
|
res.headers = r.headers
|
1475
|
-
|
1476
|
-
|
2179
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2180
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2181
|
+
res.request_timed_out_response = out
|
2182
|
+
end
|
2183
|
+
elsif r.status == 409
|
2184
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2185
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2186
|
+
res.conflict_response = out
|
2187
|
+
end
|
2188
|
+
elsif r.status == 412
|
2189
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2190
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2191
|
+
res.precondition_failed_response = out
|
2192
|
+
end
|
2193
|
+
elsif r.status == 422
|
2194
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2195
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2196
|
+
res.unprocessable_entity_response = out
|
2197
|
+
end
|
2198
|
+
elsif r.status == 429
|
2199
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2200
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2201
|
+
res.too_many_requests_response = out
|
2202
|
+
end
|
2203
|
+
elsif r.status == 500
|
2204
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2205
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2206
|
+
res.internal_server_error_response = out
|
2207
|
+
end
|
2208
|
+
elsif r.status == 501
|
2209
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2210
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2211
|
+
res.not_implemented_response = out
|
2212
|
+
end
|
2213
|
+
elsif r.status == 502
|
2214
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2215
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2216
|
+
res.bad_gateway_response = out
|
2217
|
+
end
|
1477
2218
|
end
|
1478
2219
|
|
1479
2220
|
res
|
@@ -1519,7 +2260,7 @@ module StackOne
|
|
1519
2260
|
|
1520
2261
|
hook_ctx = SDKHooks::HookContext.new(
|
1521
2262
|
base_url: base_url,
|
1522
|
-
oauth2_scopes:
|
2263
|
+
oauth2_scopes: nil,
|
1523
2264
|
operation_id: 'lms_get_user_assignment',
|
1524
2265
|
security_source: @sdk_configuration.security_source
|
1525
2266
|
)
|
@@ -1577,10 +2318,67 @@ module StackOne
|
|
1577
2318
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::AssignmentResult)
|
1578
2319
|
res.assignment_result = out
|
1579
2320
|
end
|
2321
|
+
elsif r.status == 400
|
2322
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2323
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2324
|
+
res.bad_request_response = out
|
2325
|
+
end
|
2326
|
+
elsif r.status == 401
|
2327
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2328
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2329
|
+
res.unauthorized_response = out
|
2330
|
+
end
|
2331
|
+
elsif r.status == 403
|
2332
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2333
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2334
|
+
res.forbidden_response = out
|
2335
|
+
end
|
2336
|
+
elsif r.status == 404
|
2337
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2338
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2339
|
+
res.not_found_response = out
|
2340
|
+
end
|
1580
2341
|
elsif r.status == 408
|
1581
2342
|
res.headers = r.headers
|
1582
|
-
|
1583
|
-
|
2343
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2344
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2345
|
+
res.request_timed_out_response = out
|
2346
|
+
end
|
2347
|
+
elsif r.status == 409
|
2348
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2349
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2350
|
+
res.conflict_response = out
|
2351
|
+
end
|
2352
|
+
elsif r.status == 412
|
2353
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2354
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2355
|
+
res.precondition_failed_response = out
|
2356
|
+
end
|
2357
|
+
elsif r.status == 422
|
2358
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2359
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2360
|
+
res.unprocessable_entity_response = out
|
2361
|
+
end
|
2362
|
+
elsif r.status == 429
|
2363
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2364
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2365
|
+
res.too_many_requests_response = out
|
2366
|
+
end
|
2367
|
+
elsif r.status == 500
|
2368
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2369
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2370
|
+
res.internal_server_error_response = out
|
2371
|
+
end
|
2372
|
+
elsif r.status == 501
|
2373
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2374
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2375
|
+
res.not_implemented_response = out
|
2376
|
+
end
|
2377
|
+
elsif r.status == 502
|
2378
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2379
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2380
|
+
res.bad_gateway_response = out
|
2381
|
+
end
|
1584
2382
|
end
|
1585
2383
|
|
1586
2384
|
res
|
@@ -1626,7 +2424,7 @@ module StackOne
|
|
1626
2424
|
|
1627
2425
|
hook_ctx = SDKHooks::HookContext.new(
|
1628
2426
|
base_url: base_url,
|
1629
|
-
oauth2_scopes:
|
2427
|
+
oauth2_scopes: nil,
|
1630
2428
|
operation_id: 'lms_get_user_completion',
|
1631
2429
|
security_source: @sdk_configuration.security_source
|
1632
2430
|
)
|
@@ -1684,10 +2482,67 @@ module StackOne
|
|
1684
2482
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CompletionResult)
|
1685
2483
|
res.completion_result = out
|
1686
2484
|
end
|
2485
|
+
elsif r.status == 400
|
2486
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2487
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2488
|
+
res.bad_request_response = out
|
2489
|
+
end
|
2490
|
+
elsif r.status == 401
|
2491
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2492
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2493
|
+
res.unauthorized_response = out
|
2494
|
+
end
|
2495
|
+
elsif r.status == 403
|
2496
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2497
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2498
|
+
res.forbidden_response = out
|
2499
|
+
end
|
2500
|
+
elsif r.status == 404
|
2501
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2502
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2503
|
+
res.not_found_response = out
|
2504
|
+
end
|
1687
2505
|
elsif r.status == 408
|
1688
2506
|
res.headers = r.headers
|
1689
|
-
|
1690
|
-
|
2507
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2508
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2509
|
+
res.request_timed_out_response = out
|
2510
|
+
end
|
2511
|
+
elsif r.status == 409
|
2512
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2513
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2514
|
+
res.conflict_response = out
|
2515
|
+
end
|
2516
|
+
elsif r.status == 412
|
2517
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2518
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2519
|
+
res.precondition_failed_response = out
|
2520
|
+
end
|
2521
|
+
elsif r.status == 422
|
2522
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2523
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2524
|
+
res.unprocessable_entity_response = out
|
2525
|
+
end
|
2526
|
+
elsif r.status == 429
|
2527
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2528
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2529
|
+
res.too_many_requests_response = out
|
2530
|
+
end
|
2531
|
+
elsif r.status == 500
|
2532
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2533
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2534
|
+
res.internal_server_error_response = out
|
2535
|
+
end
|
2536
|
+
elsif r.status == 501
|
2537
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2538
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2539
|
+
res.not_implemented_response = out
|
2540
|
+
end
|
2541
|
+
elsif r.status == 502
|
2542
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2543
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2544
|
+
res.bad_gateway_response = out
|
2545
|
+
end
|
1691
2546
|
end
|
1692
2547
|
|
1693
2548
|
res
|
@@ -1728,7 +2583,7 @@ module StackOne
|
|
1728
2583
|
|
1729
2584
|
hook_ctx = SDKHooks::HookContext.new(
|
1730
2585
|
base_url: base_url,
|
1731
|
-
oauth2_scopes:
|
2586
|
+
oauth2_scopes: nil,
|
1732
2587
|
operation_id: 'lms_list_assignments',
|
1733
2588
|
security_source: @sdk_configuration.security_source
|
1734
2589
|
)
|
@@ -1786,10 +2641,67 @@ module StackOne
|
|
1786
2641
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::AssignmentsPaginated)
|
1787
2642
|
res.assignments_paginated = out
|
1788
2643
|
end
|
2644
|
+
elsif r.status == 400
|
2645
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2646
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2647
|
+
res.bad_request_response = out
|
2648
|
+
end
|
2649
|
+
elsif r.status == 401
|
2650
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2651
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2652
|
+
res.unauthorized_response = out
|
2653
|
+
end
|
2654
|
+
elsif r.status == 403
|
2655
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2656
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2657
|
+
res.forbidden_response = out
|
2658
|
+
end
|
2659
|
+
elsif r.status == 404
|
2660
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2661
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2662
|
+
res.not_found_response = out
|
2663
|
+
end
|
1789
2664
|
elsif r.status == 408
|
1790
2665
|
res.headers = r.headers
|
1791
|
-
|
1792
|
-
|
2666
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2667
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2668
|
+
res.request_timed_out_response = out
|
2669
|
+
end
|
2670
|
+
elsif r.status == 409
|
2671
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2672
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2673
|
+
res.conflict_response = out
|
2674
|
+
end
|
2675
|
+
elsif r.status == 412
|
2676
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2677
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2678
|
+
res.precondition_failed_response = out
|
2679
|
+
end
|
2680
|
+
elsif r.status == 422
|
2681
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2682
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2683
|
+
res.unprocessable_entity_response = out
|
2684
|
+
end
|
2685
|
+
elsif r.status == 429
|
2686
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2687
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2688
|
+
res.too_many_requests_response = out
|
2689
|
+
end
|
2690
|
+
elsif r.status == 500
|
2691
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2692
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2693
|
+
res.internal_server_error_response = out
|
2694
|
+
end
|
2695
|
+
elsif r.status == 501
|
2696
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2697
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2698
|
+
res.not_implemented_response = out
|
2699
|
+
end
|
2700
|
+
elsif r.status == 502
|
2701
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2702
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2703
|
+
res.bad_gateway_response = out
|
2704
|
+
end
|
1793
2705
|
end
|
1794
2706
|
|
1795
2707
|
res
|
@@ -1830,7 +2742,7 @@ module StackOne
|
|
1830
2742
|
|
1831
2743
|
hook_ctx = SDKHooks::HookContext.new(
|
1832
2744
|
base_url: base_url,
|
1833
|
-
oauth2_scopes:
|
2745
|
+
oauth2_scopes: nil,
|
1834
2746
|
operation_id: 'lms_list_categories',
|
1835
2747
|
security_source: @sdk_configuration.security_source
|
1836
2748
|
)
|
@@ -1888,10 +2800,67 @@ module StackOne
|
|
1888
2800
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CategoriesPaginated)
|
1889
2801
|
res.categories_paginated = out
|
1890
2802
|
end
|
2803
|
+
elsif r.status == 400
|
2804
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2805
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2806
|
+
res.bad_request_response = out
|
2807
|
+
end
|
2808
|
+
elsif r.status == 401
|
2809
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2810
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2811
|
+
res.unauthorized_response = out
|
2812
|
+
end
|
2813
|
+
elsif r.status == 403
|
2814
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2815
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2816
|
+
res.forbidden_response = out
|
2817
|
+
end
|
2818
|
+
elsif r.status == 404
|
2819
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2820
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2821
|
+
res.not_found_response = out
|
2822
|
+
end
|
1891
2823
|
elsif r.status == 408
|
1892
2824
|
res.headers = r.headers
|
1893
|
-
|
1894
|
-
|
2825
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2826
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2827
|
+
res.request_timed_out_response = out
|
2828
|
+
end
|
2829
|
+
elsif r.status == 409
|
2830
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2831
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2832
|
+
res.conflict_response = out
|
2833
|
+
end
|
2834
|
+
elsif r.status == 412
|
2835
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2836
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2837
|
+
res.precondition_failed_response = out
|
2838
|
+
end
|
2839
|
+
elsif r.status == 422
|
2840
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2841
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
2842
|
+
res.unprocessable_entity_response = out
|
2843
|
+
end
|
2844
|
+
elsif r.status == 429
|
2845
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2846
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
2847
|
+
res.too_many_requests_response = out
|
2848
|
+
end
|
2849
|
+
elsif r.status == 500
|
2850
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2851
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
2852
|
+
res.internal_server_error_response = out
|
2853
|
+
end
|
2854
|
+
elsif r.status == 501
|
2855
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2856
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
2857
|
+
res.not_implemented_response = out
|
2858
|
+
end
|
2859
|
+
elsif r.status == 502
|
2860
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2861
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
2862
|
+
res.bad_gateway_response = out
|
2863
|
+
end
|
1895
2864
|
end
|
1896
2865
|
|
1897
2866
|
res
|
@@ -1932,7 +2901,7 @@ module StackOne
|
|
1932
2901
|
|
1933
2902
|
hook_ctx = SDKHooks::HookContext.new(
|
1934
2903
|
base_url: base_url,
|
1935
|
-
oauth2_scopes:
|
2904
|
+
oauth2_scopes: nil,
|
1936
2905
|
operation_id: 'lms_list_completions',
|
1937
2906
|
security_source: @sdk_configuration.security_source
|
1938
2907
|
)
|
@@ -1990,10 +2959,67 @@ module StackOne
|
|
1990
2959
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CompletionsPaginated)
|
1991
2960
|
res.completions_paginated = out
|
1992
2961
|
end
|
2962
|
+
elsif r.status == 400
|
2963
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2964
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
2965
|
+
res.bad_request_response = out
|
2966
|
+
end
|
2967
|
+
elsif r.status == 401
|
2968
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2969
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
2970
|
+
res.unauthorized_response = out
|
2971
|
+
end
|
2972
|
+
elsif r.status == 403
|
2973
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2974
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
2975
|
+
res.forbidden_response = out
|
2976
|
+
end
|
2977
|
+
elsif r.status == 404
|
2978
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2979
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
2980
|
+
res.not_found_response = out
|
2981
|
+
end
|
1993
2982
|
elsif r.status == 408
|
1994
2983
|
res.headers = r.headers
|
1995
|
-
|
1996
|
-
|
2984
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2985
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
2986
|
+
res.request_timed_out_response = out
|
2987
|
+
end
|
2988
|
+
elsif r.status == 409
|
2989
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2990
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
2991
|
+
res.conflict_response = out
|
2992
|
+
end
|
2993
|
+
elsif r.status == 412
|
2994
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2995
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
2996
|
+
res.precondition_failed_response = out
|
2997
|
+
end
|
2998
|
+
elsif r.status == 422
|
2999
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3000
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3001
|
+
res.unprocessable_entity_response = out
|
3002
|
+
end
|
3003
|
+
elsif r.status == 429
|
3004
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3005
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3006
|
+
res.too_many_requests_response = out
|
3007
|
+
end
|
3008
|
+
elsif r.status == 500
|
3009
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3010
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3011
|
+
res.internal_server_error_response = out
|
3012
|
+
end
|
3013
|
+
elsif r.status == 501
|
3014
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3015
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3016
|
+
res.not_implemented_response = out
|
3017
|
+
end
|
3018
|
+
elsif r.status == 502
|
3019
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3020
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3021
|
+
res.bad_gateway_response = out
|
3022
|
+
end
|
1997
3023
|
end
|
1998
3024
|
|
1999
3025
|
res
|
@@ -2034,7 +3060,7 @@ module StackOne
|
|
2034
3060
|
|
2035
3061
|
hook_ctx = SDKHooks::HookContext.new(
|
2036
3062
|
base_url: base_url,
|
2037
|
-
oauth2_scopes:
|
3063
|
+
oauth2_scopes: nil,
|
2038
3064
|
operation_id: 'lms_list_content',
|
2039
3065
|
security_source: @sdk_configuration.security_source
|
2040
3066
|
)
|
@@ -2092,10 +3118,67 @@ module StackOne
|
|
2092
3118
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ContentPaginated)
|
2093
3119
|
res.content_paginated = out
|
2094
3120
|
end
|
3121
|
+
elsif r.status == 400
|
3122
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3123
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3124
|
+
res.bad_request_response = out
|
3125
|
+
end
|
3126
|
+
elsif r.status == 401
|
3127
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3128
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3129
|
+
res.unauthorized_response = out
|
3130
|
+
end
|
3131
|
+
elsif r.status == 403
|
3132
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3133
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3134
|
+
res.forbidden_response = out
|
3135
|
+
end
|
3136
|
+
elsif r.status == 404
|
3137
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3138
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3139
|
+
res.not_found_response = out
|
3140
|
+
end
|
2095
3141
|
elsif r.status == 408
|
2096
3142
|
res.headers = r.headers
|
2097
|
-
|
2098
|
-
|
3143
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3144
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3145
|
+
res.request_timed_out_response = out
|
3146
|
+
end
|
3147
|
+
elsif r.status == 409
|
3148
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3149
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3150
|
+
res.conflict_response = out
|
3151
|
+
end
|
3152
|
+
elsif r.status == 412
|
3153
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3154
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3155
|
+
res.precondition_failed_response = out
|
3156
|
+
end
|
3157
|
+
elsif r.status == 422
|
3158
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3159
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3160
|
+
res.unprocessable_entity_response = out
|
3161
|
+
end
|
3162
|
+
elsif r.status == 429
|
3163
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3164
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3165
|
+
res.too_many_requests_response = out
|
3166
|
+
end
|
3167
|
+
elsif r.status == 500
|
3168
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3169
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3170
|
+
res.internal_server_error_response = out
|
3171
|
+
end
|
3172
|
+
elsif r.status == 501
|
3173
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3174
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3175
|
+
res.not_implemented_response = out
|
3176
|
+
end
|
3177
|
+
elsif r.status == 502
|
3178
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3179
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3180
|
+
res.bad_gateway_response = out
|
3181
|
+
end
|
2099
3182
|
end
|
2100
3183
|
|
2101
3184
|
res
|
@@ -2136,7 +3219,7 @@ module StackOne
|
|
2136
3219
|
|
2137
3220
|
hook_ctx = SDKHooks::HookContext.new(
|
2138
3221
|
base_url: base_url,
|
2139
|
-
oauth2_scopes:
|
3222
|
+
oauth2_scopes: nil,
|
2140
3223
|
operation_id: 'lms_list_courses',
|
2141
3224
|
security_source: @sdk_configuration.security_source
|
2142
3225
|
)
|
@@ -2194,10 +3277,67 @@ module StackOne
|
|
2194
3277
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CoursePaginated)
|
2195
3278
|
res.course_paginated = out
|
2196
3279
|
end
|
3280
|
+
elsif r.status == 400
|
3281
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3282
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3283
|
+
res.bad_request_response = out
|
3284
|
+
end
|
3285
|
+
elsif r.status == 401
|
3286
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3287
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3288
|
+
res.unauthorized_response = out
|
3289
|
+
end
|
3290
|
+
elsif r.status == 403
|
3291
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3292
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3293
|
+
res.forbidden_response = out
|
3294
|
+
end
|
3295
|
+
elsif r.status == 404
|
3296
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3297
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3298
|
+
res.not_found_response = out
|
3299
|
+
end
|
2197
3300
|
elsif r.status == 408
|
2198
3301
|
res.headers = r.headers
|
2199
|
-
|
2200
|
-
|
3302
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3303
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3304
|
+
res.request_timed_out_response = out
|
3305
|
+
end
|
3306
|
+
elsif r.status == 409
|
3307
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3308
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3309
|
+
res.conflict_response = out
|
3310
|
+
end
|
3311
|
+
elsif r.status == 412
|
3312
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3313
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3314
|
+
res.precondition_failed_response = out
|
3315
|
+
end
|
3316
|
+
elsif r.status == 422
|
3317
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3318
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3319
|
+
res.unprocessable_entity_response = out
|
3320
|
+
end
|
3321
|
+
elsif r.status == 429
|
3322
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3323
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3324
|
+
res.too_many_requests_response = out
|
3325
|
+
end
|
3326
|
+
elsif r.status == 500
|
3327
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3328
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3329
|
+
res.internal_server_error_response = out
|
3330
|
+
end
|
3331
|
+
elsif r.status == 501
|
3332
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3333
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3334
|
+
res.not_implemented_response = out
|
3335
|
+
end
|
3336
|
+
elsif r.status == 502
|
3337
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3338
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3339
|
+
res.bad_gateway_response = out
|
3340
|
+
end
|
2201
3341
|
end
|
2202
3342
|
|
2203
3343
|
res
|
@@ -2238,7 +3378,7 @@ module StackOne
|
|
2238
3378
|
|
2239
3379
|
hook_ctx = SDKHooks::HookContext.new(
|
2240
3380
|
base_url: base_url,
|
2241
|
-
oauth2_scopes:
|
3381
|
+
oauth2_scopes: nil,
|
2242
3382
|
operation_id: 'lms_list_skills',
|
2243
3383
|
security_source: @sdk_configuration.security_source
|
2244
3384
|
)
|
@@ -2296,10 +3436,67 @@ module StackOne
|
|
2296
3436
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::SkillsPaginated)
|
2297
3437
|
res.skills_paginated = out
|
2298
3438
|
end
|
3439
|
+
elsif r.status == 400
|
3440
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3441
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3442
|
+
res.bad_request_response = out
|
3443
|
+
end
|
3444
|
+
elsif r.status == 401
|
3445
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3446
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3447
|
+
res.unauthorized_response = out
|
3448
|
+
end
|
3449
|
+
elsif r.status == 403
|
3450
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3451
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3452
|
+
res.forbidden_response = out
|
3453
|
+
end
|
3454
|
+
elsif r.status == 404
|
3455
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3456
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3457
|
+
res.not_found_response = out
|
3458
|
+
end
|
2299
3459
|
elsif r.status == 408
|
2300
3460
|
res.headers = r.headers
|
2301
|
-
|
2302
|
-
|
3461
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3462
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3463
|
+
res.request_timed_out_response = out
|
3464
|
+
end
|
3465
|
+
elsif r.status == 409
|
3466
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3467
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3468
|
+
res.conflict_response = out
|
3469
|
+
end
|
3470
|
+
elsif r.status == 412
|
3471
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3472
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3473
|
+
res.precondition_failed_response = out
|
3474
|
+
end
|
3475
|
+
elsif r.status == 422
|
3476
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3477
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3478
|
+
res.unprocessable_entity_response = out
|
3479
|
+
end
|
3480
|
+
elsif r.status == 429
|
3481
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3482
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3483
|
+
res.too_many_requests_response = out
|
3484
|
+
end
|
3485
|
+
elsif r.status == 500
|
3486
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3487
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3488
|
+
res.internal_server_error_response = out
|
3489
|
+
end
|
3490
|
+
elsif r.status == 501
|
3491
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3492
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3493
|
+
res.not_implemented_response = out
|
3494
|
+
end
|
3495
|
+
elsif r.status == 502
|
3496
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3497
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3498
|
+
res.bad_gateway_response = out
|
3499
|
+
end
|
2303
3500
|
end
|
2304
3501
|
|
2305
3502
|
res
|
@@ -2345,7 +3542,7 @@ module StackOne
|
|
2345
3542
|
|
2346
3543
|
hook_ctx = SDKHooks::HookContext.new(
|
2347
3544
|
base_url: base_url,
|
2348
|
-
oauth2_scopes:
|
3545
|
+
oauth2_scopes: nil,
|
2349
3546
|
operation_id: 'lms_list_user_assignments',
|
2350
3547
|
security_source: @sdk_configuration.security_source
|
2351
3548
|
)
|
@@ -2403,10 +3600,67 @@ module StackOne
|
|
2403
3600
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::AssignmentsPaginated)
|
2404
3601
|
res.assignments_paginated = out
|
2405
3602
|
end
|
3603
|
+
elsif r.status == 400
|
3604
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3605
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3606
|
+
res.bad_request_response = out
|
3607
|
+
end
|
3608
|
+
elsif r.status == 401
|
3609
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3610
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3611
|
+
res.unauthorized_response = out
|
3612
|
+
end
|
3613
|
+
elsif r.status == 403
|
3614
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3615
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3616
|
+
res.forbidden_response = out
|
3617
|
+
end
|
3618
|
+
elsif r.status == 404
|
3619
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3620
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3621
|
+
res.not_found_response = out
|
3622
|
+
end
|
2406
3623
|
elsif r.status == 408
|
2407
3624
|
res.headers = r.headers
|
2408
|
-
|
2409
|
-
|
3625
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3626
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3627
|
+
res.request_timed_out_response = out
|
3628
|
+
end
|
3629
|
+
elsif r.status == 409
|
3630
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3631
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3632
|
+
res.conflict_response = out
|
3633
|
+
end
|
3634
|
+
elsif r.status == 412
|
3635
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3636
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3637
|
+
res.precondition_failed_response = out
|
3638
|
+
end
|
3639
|
+
elsif r.status == 422
|
3640
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3641
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3642
|
+
res.unprocessable_entity_response = out
|
3643
|
+
end
|
3644
|
+
elsif r.status == 429
|
3645
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3646
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3647
|
+
res.too_many_requests_response = out
|
3648
|
+
end
|
3649
|
+
elsif r.status == 500
|
3650
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3651
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3652
|
+
res.internal_server_error_response = out
|
3653
|
+
end
|
3654
|
+
elsif r.status == 501
|
3655
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3656
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3657
|
+
res.not_implemented_response = out
|
3658
|
+
end
|
3659
|
+
elsif r.status == 502
|
3660
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3661
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3662
|
+
res.bad_gateway_response = out
|
3663
|
+
end
|
2410
3664
|
end
|
2411
3665
|
|
2412
3666
|
res
|
@@ -2452,7 +3706,7 @@ module StackOne
|
|
2452
3706
|
|
2453
3707
|
hook_ctx = SDKHooks::HookContext.new(
|
2454
3708
|
base_url: base_url,
|
2455
|
-
oauth2_scopes:
|
3709
|
+
oauth2_scopes: nil,
|
2456
3710
|
operation_id: 'lms_list_user_completions',
|
2457
3711
|
security_source: @sdk_configuration.security_source
|
2458
3712
|
)
|
@@ -2510,10 +3764,67 @@ module StackOne
|
|
2510
3764
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::CompletionsPaginated)
|
2511
3765
|
res.completions_paginated = out
|
2512
3766
|
end
|
3767
|
+
elsif r.status == 400
|
3768
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3769
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3770
|
+
res.bad_request_response = out
|
3771
|
+
end
|
3772
|
+
elsif r.status == 401
|
3773
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3774
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3775
|
+
res.unauthorized_response = out
|
3776
|
+
end
|
3777
|
+
elsif r.status == 403
|
3778
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3779
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3780
|
+
res.forbidden_response = out
|
3781
|
+
end
|
3782
|
+
elsif r.status == 404
|
3783
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3784
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3785
|
+
res.not_found_response = out
|
3786
|
+
end
|
2513
3787
|
elsif r.status == 408
|
2514
3788
|
res.headers = r.headers
|
2515
|
-
|
2516
|
-
|
3789
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3790
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3791
|
+
res.request_timed_out_response = out
|
3792
|
+
end
|
3793
|
+
elsif r.status == 409
|
3794
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3795
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3796
|
+
res.conflict_response = out
|
3797
|
+
end
|
3798
|
+
elsif r.status == 412
|
3799
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3800
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3801
|
+
res.precondition_failed_response = out
|
3802
|
+
end
|
3803
|
+
elsif r.status == 422
|
3804
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3805
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3806
|
+
res.unprocessable_entity_response = out
|
3807
|
+
end
|
3808
|
+
elsif r.status == 429
|
3809
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3810
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3811
|
+
res.too_many_requests_response = out
|
3812
|
+
end
|
3813
|
+
elsif r.status == 500
|
3814
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3815
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3816
|
+
res.internal_server_error_response = out
|
3817
|
+
end
|
3818
|
+
elsif r.status == 501
|
3819
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3820
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3821
|
+
res.not_implemented_response = out
|
3822
|
+
end
|
3823
|
+
elsif r.status == 502
|
3824
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3825
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3826
|
+
res.bad_gateway_response = out
|
3827
|
+
end
|
2517
3828
|
end
|
2518
3829
|
|
2519
3830
|
res
|
@@ -2554,7 +3865,7 @@ module StackOne
|
|
2554
3865
|
|
2555
3866
|
hook_ctx = SDKHooks::HookContext.new(
|
2556
3867
|
base_url: base_url,
|
2557
|
-
oauth2_scopes:
|
3868
|
+
oauth2_scopes: nil,
|
2558
3869
|
operation_id: 'lms_list_users',
|
2559
3870
|
security_source: @sdk_configuration.security_source
|
2560
3871
|
)
|
@@ -2612,10 +3923,67 @@ module StackOne
|
|
2612
3923
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UsersPaginated)
|
2613
3924
|
res.users_paginated = out
|
2614
3925
|
end
|
3926
|
+
elsif r.status == 400
|
3927
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3928
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
3929
|
+
res.bad_request_response = out
|
3930
|
+
end
|
3931
|
+
elsif r.status == 401
|
3932
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3933
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
3934
|
+
res.unauthorized_response = out
|
3935
|
+
end
|
3936
|
+
elsif r.status == 403
|
3937
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3938
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
3939
|
+
res.forbidden_response = out
|
3940
|
+
end
|
3941
|
+
elsif r.status == 404
|
3942
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3943
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
3944
|
+
res.not_found_response = out
|
3945
|
+
end
|
2615
3946
|
elsif r.status == 408
|
2616
3947
|
res.headers = r.headers
|
2617
|
-
|
2618
|
-
|
3948
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3949
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
3950
|
+
res.request_timed_out_response = out
|
3951
|
+
end
|
3952
|
+
elsif r.status == 409
|
3953
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3954
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
3955
|
+
res.conflict_response = out
|
3956
|
+
end
|
3957
|
+
elsif r.status == 412
|
3958
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3959
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
3960
|
+
res.precondition_failed_response = out
|
3961
|
+
end
|
3962
|
+
elsif r.status == 422
|
3963
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3964
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
3965
|
+
res.unprocessable_entity_response = out
|
3966
|
+
end
|
3967
|
+
elsif r.status == 429
|
3968
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3969
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
3970
|
+
res.too_many_requests_response = out
|
3971
|
+
end
|
3972
|
+
elsif r.status == 500
|
3973
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3974
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
3975
|
+
res.internal_server_error_response = out
|
3976
|
+
end
|
3977
|
+
elsif r.status == 501
|
3978
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3979
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
3980
|
+
res.not_implemented_response = out
|
3981
|
+
end
|
3982
|
+
elsif r.status == 502
|
3983
|
+
if Utils.match_content_type(content_type, 'application/json')
|
3984
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
3985
|
+
res.bad_gateway_response = out
|
3986
|
+
end
|
2619
3987
|
end
|
2620
3988
|
|
2621
3989
|
res
|
@@ -2677,7 +4045,7 @@ module StackOne
|
|
2677
4045
|
|
2678
4046
|
hook_ctx = SDKHooks::HookContext.new(
|
2679
4047
|
base_url: base_url,
|
2680
|
-
oauth2_scopes:
|
4048
|
+
oauth2_scopes: nil,
|
2681
4049
|
operation_id: 'lms_update_collection',
|
2682
4050
|
security_source: @sdk_configuration.security_source
|
2683
4051
|
)
|
@@ -2735,10 +4103,67 @@ module StackOne
|
|
2735
4103
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UpdateResult)
|
2736
4104
|
res.update_result = out
|
2737
4105
|
end
|
4106
|
+
elsif r.status == 400
|
4107
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4108
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
4109
|
+
res.bad_request_response = out
|
4110
|
+
end
|
4111
|
+
elsif r.status == 401
|
4112
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4113
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
4114
|
+
res.unauthorized_response = out
|
4115
|
+
end
|
4116
|
+
elsif r.status == 403
|
4117
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4118
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
4119
|
+
res.forbidden_response = out
|
4120
|
+
end
|
4121
|
+
elsif r.status == 404
|
4122
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4123
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
4124
|
+
res.not_found_response = out
|
4125
|
+
end
|
2738
4126
|
elsif r.status == 408
|
2739
4127
|
res.headers = r.headers
|
2740
|
-
|
2741
|
-
|
4128
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4129
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
4130
|
+
res.request_timed_out_response = out
|
4131
|
+
end
|
4132
|
+
elsif r.status == 409
|
4133
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4134
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
4135
|
+
res.conflict_response = out
|
4136
|
+
end
|
4137
|
+
elsif r.status == 412
|
4138
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4139
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
4140
|
+
res.precondition_failed_response = out
|
4141
|
+
end
|
4142
|
+
elsif r.status == 422
|
4143
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4144
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
4145
|
+
res.unprocessable_entity_response = out
|
4146
|
+
end
|
4147
|
+
elsif r.status == 429
|
4148
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4149
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
4150
|
+
res.too_many_requests_response = out
|
4151
|
+
end
|
4152
|
+
elsif r.status == 500
|
4153
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4154
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
4155
|
+
res.internal_server_error_response = out
|
4156
|
+
end
|
4157
|
+
elsif r.status == 501
|
4158
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4159
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
4160
|
+
res.not_implemented_response = out
|
4161
|
+
end
|
4162
|
+
elsif r.status == 502
|
4163
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4164
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
4165
|
+
res.bad_gateway_response = out
|
4166
|
+
end
|
2742
4167
|
end
|
2743
4168
|
|
2744
4169
|
res
|
@@ -2794,7 +4219,7 @@ module StackOne
|
|
2794
4219
|
|
2795
4220
|
hook_ctx = SDKHooks::HookContext.new(
|
2796
4221
|
base_url: base_url,
|
2797
|
-
oauth2_scopes:
|
4222
|
+
oauth2_scopes: nil,
|
2798
4223
|
operation_id: 'lms_upsert_content',
|
2799
4224
|
security_source: @sdk_configuration.security_source
|
2800
4225
|
)
|
@@ -2852,10 +4277,67 @@ module StackOne
|
|
2852
4277
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UpsertResult)
|
2853
4278
|
res.upsert_result = out
|
2854
4279
|
end
|
4280
|
+
elsif r.status == 400
|
4281
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4282
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
4283
|
+
res.bad_request_response = out
|
4284
|
+
end
|
4285
|
+
elsif r.status == 401
|
4286
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4287
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
4288
|
+
res.unauthorized_response = out
|
4289
|
+
end
|
4290
|
+
elsif r.status == 403
|
4291
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4292
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
4293
|
+
res.forbidden_response = out
|
4294
|
+
end
|
4295
|
+
elsif r.status == 404
|
4296
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4297
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
4298
|
+
res.not_found_response = out
|
4299
|
+
end
|
2855
4300
|
elsif r.status == 408
|
2856
4301
|
res.headers = r.headers
|
2857
|
-
|
2858
|
-
|
4302
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4303
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
4304
|
+
res.request_timed_out_response = out
|
4305
|
+
end
|
4306
|
+
elsif r.status == 409
|
4307
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4308
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
4309
|
+
res.conflict_response = out
|
4310
|
+
end
|
4311
|
+
elsif r.status == 412
|
4312
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4313
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
4314
|
+
res.precondition_failed_response = out
|
4315
|
+
end
|
4316
|
+
elsif r.status == 422
|
4317
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4318
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
4319
|
+
res.unprocessable_entity_response = out
|
4320
|
+
end
|
4321
|
+
elsif r.status == 429
|
4322
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4323
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
4324
|
+
res.too_many_requests_response = out
|
4325
|
+
end
|
4326
|
+
elsif r.status == 500
|
4327
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4328
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
4329
|
+
res.internal_server_error_response = out
|
4330
|
+
end
|
4331
|
+
elsif r.status == 501
|
4332
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4333
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
4334
|
+
res.not_implemented_response = out
|
4335
|
+
end
|
4336
|
+
elsif r.status == 502
|
4337
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4338
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
4339
|
+
res.bad_gateway_response = out
|
4340
|
+
end
|
2859
4341
|
end
|
2860
4342
|
|
2861
4343
|
res
|
@@ -2911,7 +4393,7 @@ module StackOne
|
|
2911
4393
|
|
2912
4394
|
hook_ctx = SDKHooks::HookContext.new(
|
2913
4395
|
base_url: base_url,
|
2914
|
-
oauth2_scopes:
|
4396
|
+
oauth2_scopes: nil,
|
2915
4397
|
operation_id: 'lms_upsert_course',
|
2916
4398
|
security_source: @sdk_configuration.security_source
|
2917
4399
|
)
|
@@ -2969,10 +4451,67 @@ module StackOne
|
|
2969
4451
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UpsertResult)
|
2970
4452
|
res.upsert_result = out
|
2971
4453
|
end
|
4454
|
+
elsif r.status == 400
|
4455
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4456
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
4457
|
+
res.bad_request_response = out
|
4458
|
+
end
|
4459
|
+
elsif r.status == 401
|
4460
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4461
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
4462
|
+
res.unauthorized_response = out
|
4463
|
+
end
|
4464
|
+
elsif r.status == 403
|
4465
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4466
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
4467
|
+
res.forbidden_response = out
|
4468
|
+
end
|
4469
|
+
elsif r.status == 404
|
4470
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4471
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
4472
|
+
res.not_found_response = out
|
4473
|
+
end
|
2972
4474
|
elsif r.status == 408
|
2973
4475
|
res.headers = r.headers
|
2974
|
-
|
2975
|
-
|
4476
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4477
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
4478
|
+
res.request_timed_out_response = out
|
4479
|
+
end
|
4480
|
+
elsif r.status == 409
|
4481
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4482
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
4483
|
+
res.conflict_response = out
|
4484
|
+
end
|
4485
|
+
elsif r.status == 412
|
4486
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4487
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
4488
|
+
res.precondition_failed_response = out
|
4489
|
+
end
|
4490
|
+
elsif r.status == 422
|
4491
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4492
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
4493
|
+
res.unprocessable_entity_response = out
|
4494
|
+
end
|
4495
|
+
elsif r.status == 429
|
4496
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4497
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
4498
|
+
res.too_many_requests_response = out
|
4499
|
+
end
|
4500
|
+
elsif r.status == 500
|
4501
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4502
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
4503
|
+
res.internal_server_error_response = out
|
4504
|
+
end
|
4505
|
+
elsif r.status == 501
|
4506
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4507
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
4508
|
+
res.not_implemented_response = out
|
4509
|
+
end
|
4510
|
+
elsif r.status == 502
|
4511
|
+
if Utils.match_content_type(content_type, 'application/json')
|
4512
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
4513
|
+
res.bad_gateway_response = out
|
4514
|
+
end
|
2976
4515
|
end
|
2977
4516
|
|
2978
4517
|
res
|