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/iam.rb
CHANGED
@@ -65,7 +65,7 @@ module StackOne
|
|
65
65
|
|
66
66
|
hook_ctx = SDKHooks::HookContext.new(
|
67
67
|
base_url: base_url,
|
68
|
-
oauth2_scopes:
|
68
|
+
oauth2_scopes: nil,
|
69
69
|
operation_id: 'iam_delete_user',
|
70
70
|
security_source: @sdk_configuration.security_source
|
71
71
|
)
|
@@ -123,10 +123,67 @@ module StackOne
|
|
123
123
|
res.delete_result = out
|
124
124
|
end
|
125
125
|
elsif r.status == 204
|
126
|
+
elsif r.status == 400
|
127
|
+
if Utils.match_content_type(content_type, 'application/json')
|
128
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
129
|
+
res.bad_request_response = out
|
130
|
+
end
|
131
|
+
elsif r.status == 401
|
132
|
+
if Utils.match_content_type(content_type, 'application/json')
|
133
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
134
|
+
res.unauthorized_response = out
|
135
|
+
end
|
136
|
+
elsif r.status == 403
|
137
|
+
if Utils.match_content_type(content_type, 'application/json')
|
138
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
139
|
+
res.forbidden_response = out
|
140
|
+
end
|
141
|
+
elsif r.status == 404
|
142
|
+
if Utils.match_content_type(content_type, 'application/json')
|
143
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
144
|
+
res.not_found_response = out
|
145
|
+
end
|
126
146
|
elsif r.status == 408
|
127
147
|
res.headers = r.headers
|
128
|
-
|
129
|
-
|
148
|
+
if Utils.match_content_type(content_type, 'application/json')
|
149
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
150
|
+
res.request_timed_out_response = out
|
151
|
+
end
|
152
|
+
elsif r.status == 409
|
153
|
+
if Utils.match_content_type(content_type, 'application/json')
|
154
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
155
|
+
res.conflict_response = out
|
156
|
+
end
|
157
|
+
elsif r.status == 412
|
158
|
+
if Utils.match_content_type(content_type, 'application/json')
|
159
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
160
|
+
res.precondition_failed_response = out
|
161
|
+
end
|
162
|
+
elsif r.status == 422
|
163
|
+
if Utils.match_content_type(content_type, 'application/json')
|
164
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
165
|
+
res.unprocessable_entity_response = out
|
166
|
+
end
|
167
|
+
elsif r.status == 429
|
168
|
+
if Utils.match_content_type(content_type, 'application/json')
|
169
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
170
|
+
res.too_many_requests_response = out
|
171
|
+
end
|
172
|
+
elsif r.status == 500
|
173
|
+
if Utils.match_content_type(content_type, 'application/json')
|
174
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
175
|
+
res.internal_server_error_response = out
|
176
|
+
end
|
177
|
+
elsif r.status == 501
|
178
|
+
if Utils.match_content_type(content_type, 'application/json')
|
179
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
180
|
+
res.not_implemented_response = out
|
181
|
+
end
|
182
|
+
elsif r.status == 502
|
183
|
+
if Utils.match_content_type(content_type, 'application/json')
|
184
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
185
|
+
res.bad_gateway_response = out
|
186
|
+
end
|
130
187
|
end
|
131
188
|
|
132
189
|
res
|
@@ -172,7 +229,7 @@ module StackOne
|
|
172
229
|
|
173
230
|
hook_ctx = SDKHooks::HookContext.new(
|
174
231
|
base_url: base_url,
|
175
|
-
oauth2_scopes:
|
232
|
+
oauth2_scopes: nil,
|
176
233
|
operation_id: 'iam_get_group',
|
177
234
|
security_source: @sdk_configuration.security_source
|
178
235
|
)
|
@@ -230,10 +287,67 @@ module StackOne
|
|
230
287
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::IamGroupResult)
|
231
288
|
res.iam_group_result = out
|
232
289
|
end
|
290
|
+
elsif r.status == 400
|
291
|
+
if Utils.match_content_type(content_type, 'application/json')
|
292
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
293
|
+
res.bad_request_response = out
|
294
|
+
end
|
295
|
+
elsif r.status == 401
|
296
|
+
if Utils.match_content_type(content_type, 'application/json')
|
297
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
298
|
+
res.unauthorized_response = out
|
299
|
+
end
|
300
|
+
elsif r.status == 403
|
301
|
+
if Utils.match_content_type(content_type, 'application/json')
|
302
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
303
|
+
res.forbidden_response = out
|
304
|
+
end
|
305
|
+
elsif r.status == 404
|
306
|
+
if Utils.match_content_type(content_type, 'application/json')
|
307
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
308
|
+
res.not_found_response = out
|
309
|
+
end
|
233
310
|
elsif r.status == 408
|
234
311
|
res.headers = r.headers
|
235
|
-
|
236
|
-
|
312
|
+
if Utils.match_content_type(content_type, 'application/json')
|
313
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
314
|
+
res.request_timed_out_response = out
|
315
|
+
end
|
316
|
+
elsif r.status == 409
|
317
|
+
if Utils.match_content_type(content_type, 'application/json')
|
318
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
319
|
+
res.conflict_response = out
|
320
|
+
end
|
321
|
+
elsif r.status == 412
|
322
|
+
if Utils.match_content_type(content_type, 'application/json')
|
323
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
324
|
+
res.precondition_failed_response = out
|
325
|
+
end
|
326
|
+
elsif r.status == 422
|
327
|
+
if Utils.match_content_type(content_type, 'application/json')
|
328
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
329
|
+
res.unprocessable_entity_response = out
|
330
|
+
end
|
331
|
+
elsif r.status == 429
|
332
|
+
if Utils.match_content_type(content_type, 'application/json')
|
333
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
334
|
+
res.too_many_requests_response = out
|
335
|
+
end
|
336
|
+
elsif r.status == 500
|
337
|
+
if Utils.match_content_type(content_type, 'application/json')
|
338
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
339
|
+
res.internal_server_error_response = out
|
340
|
+
end
|
341
|
+
elsif r.status == 501
|
342
|
+
if Utils.match_content_type(content_type, 'application/json')
|
343
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
344
|
+
res.not_implemented_response = out
|
345
|
+
end
|
346
|
+
elsif r.status == 502
|
347
|
+
if Utils.match_content_type(content_type, 'application/json')
|
348
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
349
|
+
res.bad_gateway_response = out
|
350
|
+
end
|
237
351
|
end
|
238
352
|
|
239
353
|
res
|
@@ -279,7 +393,7 @@ module StackOne
|
|
279
393
|
|
280
394
|
hook_ctx = SDKHooks::HookContext.new(
|
281
395
|
base_url: base_url,
|
282
|
-
oauth2_scopes:
|
396
|
+
oauth2_scopes: nil,
|
283
397
|
operation_id: 'iam_get_policy',
|
284
398
|
security_source: @sdk_configuration.security_source
|
285
399
|
)
|
@@ -337,10 +451,67 @@ module StackOne
|
|
337
451
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::IamPolicyResult)
|
338
452
|
res.iam_policy_result = out
|
339
453
|
end
|
454
|
+
elsif r.status == 400
|
455
|
+
if Utils.match_content_type(content_type, 'application/json')
|
456
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
457
|
+
res.bad_request_response = out
|
458
|
+
end
|
459
|
+
elsif r.status == 401
|
460
|
+
if Utils.match_content_type(content_type, 'application/json')
|
461
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
462
|
+
res.unauthorized_response = out
|
463
|
+
end
|
464
|
+
elsif r.status == 403
|
465
|
+
if Utils.match_content_type(content_type, 'application/json')
|
466
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
467
|
+
res.forbidden_response = out
|
468
|
+
end
|
469
|
+
elsif r.status == 404
|
470
|
+
if Utils.match_content_type(content_type, 'application/json')
|
471
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
472
|
+
res.not_found_response = out
|
473
|
+
end
|
340
474
|
elsif r.status == 408
|
341
475
|
res.headers = r.headers
|
342
|
-
|
343
|
-
|
476
|
+
if Utils.match_content_type(content_type, 'application/json')
|
477
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
478
|
+
res.request_timed_out_response = out
|
479
|
+
end
|
480
|
+
elsif r.status == 409
|
481
|
+
if Utils.match_content_type(content_type, 'application/json')
|
482
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
483
|
+
res.conflict_response = out
|
484
|
+
end
|
485
|
+
elsif r.status == 412
|
486
|
+
if Utils.match_content_type(content_type, 'application/json')
|
487
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
488
|
+
res.precondition_failed_response = out
|
489
|
+
end
|
490
|
+
elsif r.status == 422
|
491
|
+
if Utils.match_content_type(content_type, 'application/json')
|
492
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
493
|
+
res.unprocessable_entity_response = out
|
494
|
+
end
|
495
|
+
elsif r.status == 429
|
496
|
+
if Utils.match_content_type(content_type, 'application/json')
|
497
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
498
|
+
res.too_many_requests_response = out
|
499
|
+
end
|
500
|
+
elsif r.status == 500
|
501
|
+
if Utils.match_content_type(content_type, 'application/json')
|
502
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
503
|
+
res.internal_server_error_response = out
|
504
|
+
end
|
505
|
+
elsif r.status == 501
|
506
|
+
if Utils.match_content_type(content_type, 'application/json')
|
507
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
508
|
+
res.not_implemented_response = out
|
509
|
+
end
|
510
|
+
elsif r.status == 502
|
511
|
+
if Utils.match_content_type(content_type, 'application/json')
|
512
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
513
|
+
res.bad_gateway_response = out
|
514
|
+
end
|
344
515
|
end
|
345
516
|
|
346
517
|
res
|
@@ -386,7 +557,7 @@ module StackOne
|
|
386
557
|
|
387
558
|
hook_ctx = SDKHooks::HookContext.new(
|
388
559
|
base_url: base_url,
|
389
|
-
oauth2_scopes:
|
560
|
+
oauth2_scopes: nil,
|
390
561
|
operation_id: 'iam_get_role',
|
391
562
|
security_source: @sdk_configuration.security_source
|
392
563
|
)
|
@@ -444,10 +615,67 @@ module StackOne
|
|
444
615
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::IamRoleResult)
|
445
616
|
res.iam_role_result = out
|
446
617
|
end
|
618
|
+
elsif r.status == 400
|
619
|
+
if Utils.match_content_type(content_type, 'application/json')
|
620
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
621
|
+
res.bad_request_response = out
|
622
|
+
end
|
623
|
+
elsif r.status == 401
|
624
|
+
if Utils.match_content_type(content_type, 'application/json')
|
625
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
626
|
+
res.unauthorized_response = out
|
627
|
+
end
|
628
|
+
elsif r.status == 403
|
629
|
+
if Utils.match_content_type(content_type, 'application/json')
|
630
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
631
|
+
res.forbidden_response = out
|
632
|
+
end
|
633
|
+
elsif r.status == 404
|
634
|
+
if Utils.match_content_type(content_type, 'application/json')
|
635
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
636
|
+
res.not_found_response = out
|
637
|
+
end
|
447
638
|
elsif r.status == 408
|
448
639
|
res.headers = r.headers
|
449
|
-
|
450
|
-
|
640
|
+
if Utils.match_content_type(content_type, 'application/json')
|
641
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
642
|
+
res.request_timed_out_response = out
|
643
|
+
end
|
644
|
+
elsif r.status == 409
|
645
|
+
if Utils.match_content_type(content_type, 'application/json')
|
646
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
647
|
+
res.conflict_response = out
|
648
|
+
end
|
649
|
+
elsif r.status == 412
|
650
|
+
if Utils.match_content_type(content_type, 'application/json')
|
651
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
652
|
+
res.precondition_failed_response = out
|
653
|
+
end
|
654
|
+
elsif r.status == 422
|
655
|
+
if Utils.match_content_type(content_type, 'application/json')
|
656
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
657
|
+
res.unprocessable_entity_response = out
|
658
|
+
end
|
659
|
+
elsif r.status == 429
|
660
|
+
if Utils.match_content_type(content_type, 'application/json')
|
661
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
662
|
+
res.too_many_requests_response = out
|
663
|
+
end
|
664
|
+
elsif r.status == 500
|
665
|
+
if Utils.match_content_type(content_type, 'application/json')
|
666
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
667
|
+
res.internal_server_error_response = out
|
668
|
+
end
|
669
|
+
elsif r.status == 501
|
670
|
+
if Utils.match_content_type(content_type, 'application/json')
|
671
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
672
|
+
res.not_implemented_response = out
|
673
|
+
end
|
674
|
+
elsif r.status == 502
|
675
|
+
if Utils.match_content_type(content_type, 'application/json')
|
676
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
677
|
+
res.bad_gateway_response = out
|
678
|
+
end
|
451
679
|
end
|
452
680
|
|
453
681
|
res
|
@@ -493,7 +721,7 @@ module StackOne
|
|
493
721
|
|
494
722
|
hook_ctx = SDKHooks::HookContext.new(
|
495
723
|
base_url: base_url,
|
496
|
-
oauth2_scopes:
|
724
|
+
oauth2_scopes: nil,
|
497
725
|
operation_id: 'iam_get_user',
|
498
726
|
security_source: @sdk_configuration.security_source
|
499
727
|
)
|
@@ -551,10 +779,67 @@ module StackOne
|
|
551
779
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::IamUserResult)
|
552
780
|
res.iam_user_result = out
|
553
781
|
end
|
782
|
+
elsif r.status == 400
|
783
|
+
if Utils.match_content_type(content_type, 'application/json')
|
784
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
785
|
+
res.bad_request_response = out
|
786
|
+
end
|
787
|
+
elsif r.status == 401
|
788
|
+
if Utils.match_content_type(content_type, 'application/json')
|
789
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
790
|
+
res.unauthorized_response = out
|
791
|
+
end
|
792
|
+
elsif r.status == 403
|
793
|
+
if Utils.match_content_type(content_type, 'application/json')
|
794
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
795
|
+
res.forbidden_response = out
|
796
|
+
end
|
797
|
+
elsif r.status == 404
|
798
|
+
if Utils.match_content_type(content_type, 'application/json')
|
799
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
800
|
+
res.not_found_response = out
|
801
|
+
end
|
554
802
|
elsif r.status == 408
|
555
803
|
res.headers = r.headers
|
556
|
-
|
557
|
-
|
804
|
+
if Utils.match_content_type(content_type, 'application/json')
|
805
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
806
|
+
res.request_timed_out_response = out
|
807
|
+
end
|
808
|
+
elsif r.status == 409
|
809
|
+
if Utils.match_content_type(content_type, 'application/json')
|
810
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
811
|
+
res.conflict_response = out
|
812
|
+
end
|
813
|
+
elsif r.status == 412
|
814
|
+
if Utils.match_content_type(content_type, 'application/json')
|
815
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
816
|
+
res.precondition_failed_response = out
|
817
|
+
end
|
818
|
+
elsif r.status == 422
|
819
|
+
if Utils.match_content_type(content_type, 'application/json')
|
820
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
821
|
+
res.unprocessable_entity_response = out
|
822
|
+
end
|
823
|
+
elsif r.status == 429
|
824
|
+
if Utils.match_content_type(content_type, 'application/json')
|
825
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
826
|
+
res.too_many_requests_response = out
|
827
|
+
end
|
828
|
+
elsif r.status == 500
|
829
|
+
if Utils.match_content_type(content_type, 'application/json')
|
830
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
831
|
+
res.internal_server_error_response = out
|
832
|
+
end
|
833
|
+
elsif r.status == 501
|
834
|
+
if Utils.match_content_type(content_type, 'application/json')
|
835
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
836
|
+
res.not_implemented_response = out
|
837
|
+
end
|
838
|
+
elsif r.status == 502
|
839
|
+
if Utils.match_content_type(content_type, 'application/json')
|
840
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
841
|
+
res.bad_gateway_response = out
|
842
|
+
end
|
558
843
|
end
|
559
844
|
|
560
845
|
res
|
@@ -595,7 +880,7 @@ module StackOne
|
|
595
880
|
|
596
881
|
hook_ctx = SDKHooks::HookContext.new(
|
597
882
|
base_url: base_url,
|
598
|
-
oauth2_scopes:
|
883
|
+
oauth2_scopes: nil,
|
599
884
|
operation_id: 'iam_list_groups',
|
600
885
|
security_source: @sdk_configuration.security_source
|
601
886
|
)
|
@@ -653,10 +938,67 @@ module StackOne
|
|
653
938
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::IamGroupsPaginated)
|
654
939
|
res.iam_groups_paginated = out
|
655
940
|
end
|
941
|
+
elsif r.status == 400
|
942
|
+
if Utils.match_content_type(content_type, 'application/json')
|
943
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
944
|
+
res.bad_request_response = out
|
945
|
+
end
|
946
|
+
elsif r.status == 401
|
947
|
+
if Utils.match_content_type(content_type, 'application/json')
|
948
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
949
|
+
res.unauthorized_response = out
|
950
|
+
end
|
951
|
+
elsif r.status == 403
|
952
|
+
if Utils.match_content_type(content_type, 'application/json')
|
953
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
954
|
+
res.forbidden_response = out
|
955
|
+
end
|
956
|
+
elsif r.status == 404
|
957
|
+
if Utils.match_content_type(content_type, 'application/json')
|
958
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
959
|
+
res.not_found_response = out
|
960
|
+
end
|
656
961
|
elsif r.status == 408
|
657
962
|
res.headers = r.headers
|
658
|
-
|
659
|
-
|
963
|
+
if Utils.match_content_type(content_type, 'application/json')
|
964
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
965
|
+
res.request_timed_out_response = out
|
966
|
+
end
|
967
|
+
elsif r.status == 409
|
968
|
+
if Utils.match_content_type(content_type, 'application/json')
|
969
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
970
|
+
res.conflict_response = out
|
971
|
+
end
|
972
|
+
elsif r.status == 412
|
973
|
+
if Utils.match_content_type(content_type, 'application/json')
|
974
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
975
|
+
res.precondition_failed_response = out
|
976
|
+
end
|
977
|
+
elsif r.status == 422
|
978
|
+
if Utils.match_content_type(content_type, 'application/json')
|
979
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
980
|
+
res.unprocessable_entity_response = out
|
981
|
+
end
|
982
|
+
elsif r.status == 429
|
983
|
+
if Utils.match_content_type(content_type, 'application/json')
|
984
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
985
|
+
res.too_many_requests_response = out
|
986
|
+
end
|
987
|
+
elsif r.status == 500
|
988
|
+
if Utils.match_content_type(content_type, 'application/json')
|
989
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
990
|
+
res.internal_server_error_response = out
|
991
|
+
end
|
992
|
+
elsif r.status == 501
|
993
|
+
if Utils.match_content_type(content_type, 'application/json')
|
994
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
995
|
+
res.not_implemented_response = out
|
996
|
+
end
|
997
|
+
elsif r.status == 502
|
998
|
+
if Utils.match_content_type(content_type, 'application/json')
|
999
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1000
|
+
res.bad_gateway_response = out
|
1001
|
+
end
|
660
1002
|
end
|
661
1003
|
|
662
1004
|
res
|
@@ -697,7 +1039,7 @@ module StackOne
|
|
697
1039
|
|
698
1040
|
hook_ctx = SDKHooks::HookContext.new(
|
699
1041
|
base_url: base_url,
|
700
|
-
oauth2_scopes:
|
1042
|
+
oauth2_scopes: nil,
|
701
1043
|
operation_id: 'iam_list_policies',
|
702
1044
|
security_source: @sdk_configuration.security_source
|
703
1045
|
)
|
@@ -755,10 +1097,67 @@ module StackOne
|
|
755
1097
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::IamPoliciesPaginated)
|
756
1098
|
res.iam_policies_paginated = out
|
757
1099
|
end
|
1100
|
+
elsif r.status == 400
|
1101
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1102
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1103
|
+
res.bad_request_response = out
|
1104
|
+
end
|
1105
|
+
elsif r.status == 401
|
1106
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1107
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1108
|
+
res.unauthorized_response = out
|
1109
|
+
end
|
1110
|
+
elsif r.status == 403
|
1111
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1112
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1113
|
+
res.forbidden_response = out
|
1114
|
+
end
|
1115
|
+
elsif r.status == 404
|
1116
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1117
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1118
|
+
res.not_found_response = out
|
1119
|
+
end
|
758
1120
|
elsif r.status == 408
|
759
1121
|
res.headers = r.headers
|
760
|
-
|
761
|
-
|
1122
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1123
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1124
|
+
res.request_timed_out_response = out
|
1125
|
+
end
|
1126
|
+
elsif r.status == 409
|
1127
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1128
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1129
|
+
res.conflict_response = out
|
1130
|
+
end
|
1131
|
+
elsif r.status == 412
|
1132
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1133
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1134
|
+
res.precondition_failed_response = out
|
1135
|
+
end
|
1136
|
+
elsif r.status == 422
|
1137
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1138
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1139
|
+
res.unprocessable_entity_response = out
|
1140
|
+
end
|
1141
|
+
elsif r.status == 429
|
1142
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1143
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1144
|
+
res.too_many_requests_response = out
|
1145
|
+
end
|
1146
|
+
elsif r.status == 500
|
1147
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1148
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1149
|
+
res.internal_server_error_response = out
|
1150
|
+
end
|
1151
|
+
elsif r.status == 501
|
1152
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1153
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1154
|
+
res.not_implemented_response = out
|
1155
|
+
end
|
1156
|
+
elsif r.status == 502
|
1157
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1158
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1159
|
+
res.bad_gateway_response = out
|
1160
|
+
end
|
762
1161
|
end
|
763
1162
|
|
764
1163
|
res
|
@@ -799,7 +1198,7 @@ module StackOne
|
|
799
1198
|
|
800
1199
|
hook_ctx = SDKHooks::HookContext.new(
|
801
1200
|
base_url: base_url,
|
802
|
-
oauth2_scopes:
|
1201
|
+
oauth2_scopes: nil,
|
803
1202
|
operation_id: 'iam_list_roles',
|
804
1203
|
security_source: @sdk_configuration.security_source
|
805
1204
|
)
|
@@ -857,10 +1256,67 @@ module StackOne
|
|
857
1256
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::IamRolesPaginated)
|
858
1257
|
res.iam_roles_paginated = out
|
859
1258
|
end
|
1259
|
+
elsif r.status == 400
|
1260
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1261
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1262
|
+
res.bad_request_response = out
|
1263
|
+
end
|
1264
|
+
elsif r.status == 401
|
1265
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1266
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1267
|
+
res.unauthorized_response = out
|
1268
|
+
end
|
1269
|
+
elsif r.status == 403
|
1270
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1271
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1272
|
+
res.forbidden_response = out
|
1273
|
+
end
|
1274
|
+
elsif r.status == 404
|
1275
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1276
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1277
|
+
res.not_found_response = out
|
1278
|
+
end
|
860
1279
|
elsif r.status == 408
|
861
1280
|
res.headers = r.headers
|
862
|
-
|
863
|
-
|
1281
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1282
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1283
|
+
res.request_timed_out_response = out
|
1284
|
+
end
|
1285
|
+
elsif r.status == 409
|
1286
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1287
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1288
|
+
res.conflict_response = out
|
1289
|
+
end
|
1290
|
+
elsif r.status == 412
|
1291
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1292
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1293
|
+
res.precondition_failed_response = out
|
1294
|
+
end
|
1295
|
+
elsif r.status == 422
|
1296
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1297
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1298
|
+
res.unprocessable_entity_response = out
|
1299
|
+
end
|
1300
|
+
elsif r.status == 429
|
1301
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1302
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1303
|
+
res.too_many_requests_response = out
|
1304
|
+
end
|
1305
|
+
elsif r.status == 500
|
1306
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1307
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1308
|
+
res.internal_server_error_response = out
|
1309
|
+
end
|
1310
|
+
elsif r.status == 501
|
1311
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1312
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1313
|
+
res.not_implemented_response = out
|
1314
|
+
end
|
1315
|
+
elsif r.status == 502
|
1316
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1317
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1318
|
+
res.bad_gateway_response = out
|
1319
|
+
end
|
864
1320
|
end
|
865
1321
|
|
866
1322
|
res
|
@@ -901,7 +1357,7 @@ module StackOne
|
|
901
1357
|
|
902
1358
|
hook_ctx = SDKHooks::HookContext.new(
|
903
1359
|
base_url: base_url,
|
904
|
-
oauth2_scopes:
|
1360
|
+
oauth2_scopes: nil,
|
905
1361
|
operation_id: 'iam_list_users',
|
906
1362
|
security_source: @sdk_configuration.security_source
|
907
1363
|
)
|
@@ -959,10 +1415,67 @@ module StackOne
|
|
959
1415
|
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::IamUsersPaginated)
|
960
1416
|
res.iam_users_paginated = out
|
961
1417
|
end
|
1418
|
+
elsif r.status == 400
|
1419
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1420
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1421
|
+
res.bad_request_response = out
|
1422
|
+
end
|
1423
|
+
elsif r.status == 401
|
1424
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1425
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1426
|
+
res.unauthorized_response = out
|
1427
|
+
end
|
1428
|
+
elsif r.status == 403
|
1429
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1430
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1431
|
+
res.forbidden_response = out
|
1432
|
+
end
|
1433
|
+
elsif r.status == 404
|
1434
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1435
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1436
|
+
res.not_found_response = out
|
1437
|
+
end
|
962
1438
|
elsif r.status == 408
|
963
1439
|
res.headers = r.headers
|
964
|
-
|
965
|
-
|
1440
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1441
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1442
|
+
res.request_timed_out_response = out
|
1443
|
+
end
|
1444
|
+
elsif r.status == 409
|
1445
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1446
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1447
|
+
res.conflict_response = out
|
1448
|
+
end
|
1449
|
+
elsif r.status == 412
|
1450
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1451
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1452
|
+
res.precondition_failed_response = out
|
1453
|
+
end
|
1454
|
+
elsif r.status == 422
|
1455
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1456
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1457
|
+
res.unprocessable_entity_response = out
|
1458
|
+
end
|
1459
|
+
elsif r.status == 429
|
1460
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1461
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1462
|
+
res.too_many_requests_response = out
|
1463
|
+
end
|
1464
|
+
elsif r.status == 500
|
1465
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1466
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1467
|
+
res.internal_server_error_response = out
|
1468
|
+
end
|
1469
|
+
elsif r.status == 501
|
1470
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1471
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1472
|
+
res.not_implemented_response = out
|
1473
|
+
end
|
1474
|
+
elsif r.status == 502
|
1475
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1476
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1477
|
+
res.bad_gateway_response = out
|
1478
|
+
end
|
966
1479
|
end
|
967
1480
|
|
968
1481
|
res
|
@@ -1024,7 +1537,7 @@ module StackOne
|
|
1024
1537
|
|
1025
1538
|
hook_ctx = SDKHooks::HookContext.new(
|
1026
1539
|
base_url: base_url,
|
1027
|
-
oauth2_scopes:
|
1540
|
+
oauth2_scopes: nil,
|
1028
1541
|
operation_id: 'iam_update_user',
|
1029
1542
|
security_source: @sdk_configuration.security_source
|
1030
1543
|
)
|
@@ -1079,13 +1592,70 @@ module StackOne
|
|
1079
1592
|
)
|
1080
1593
|
if r.status == 200
|
1081
1594
|
if Utils.match_content_type(content_type, 'application/json')
|
1082
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::
|
1083
|
-
res.
|
1595
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UpdateResult)
|
1596
|
+
res.update_result = out
|
1597
|
+
end
|
1598
|
+
elsif r.status == 400
|
1599
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1600
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadRequestResponse)
|
1601
|
+
res.bad_request_response = out
|
1602
|
+
end
|
1603
|
+
elsif r.status == 401
|
1604
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1605
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnauthorizedResponse)
|
1606
|
+
res.unauthorized_response = out
|
1607
|
+
end
|
1608
|
+
elsif r.status == 403
|
1609
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1610
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ForbiddenResponse)
|
1611
|
+
res.forbidden_response = out
|
1612
|
+
end
|
1613
|
+
elsif r.status == 404
|
1614
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1615
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotFoundResponse)
|
1616
|
+
res.not_found_response = out
|
1084
1617
|
end
|
1085
1618
|
elsif r.status == 408
|
1086
1619
|
res.headers = r.headers
|
1087
|
-
|
1088
|
-
|
1620
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1621
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::RequestTimedOutResponse)
|
1622
|
+
res.request_timed_out_response = out
|
1623
|
+
end
|
1624
|
+
elsif r.status == 409
|
1625
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1626
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::ConflictResponse)
|
1627
|
+
res.conflict_response = out
|
1628
|
+
end
|
1629
|
+
elsif r.status == 412
|
1630
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1631
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::PreconditionFailedResponse)
|
1632
|
+
res.precondition_failed_response = out
|
1633
|
+
end
|
1634
|
+
elsif r.status == 422
|
1635
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1636
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::UnprocessableEntityResponse)
|
1637
|
+
res.unprocessable_entity_response = out
|
1638
|
+
end
|
1639
|
+
elsif r.status == 429
|
1640
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1641
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::TooManyRequestsResponse)
|
1642
|
+
res.too_many_requests_response = out
|
1643
|
+
end
|
1644
|
+
elsif r.status == 500
|
1645
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1646
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::InternalServerErrorResponse)
|
1647
|
+
res.internal_server_error_response = out
|
1648
|
+
end
|
1649
|
+
elsif r.status == 501
|
1650
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1651
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::NotImplementedResponse)
|
1652
|
+
res.not_implemented_response = out
|
1653
|
+
end
|
1654
|
+
elsif r.status == 502
|
1655
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1656
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::BadGatewayResponse)
|
1657
|
+
res.bad_gateway_response = out
|
1658
|
+
end
|
1089
1659
|
end
|
1090
1660
|
|
1091
1661
|
res
|