zitadel-client 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/patch.rb +2 -0
- data/lib/zitadel-client/api/feature_service_api.rb +551 -549
- data/lib/zitadel-client/api/identity_provider_service_api.rb +58 -56
- data/lib/zitadel-client/api/o_i_d_c_service_api.rb +208 -206
- data/lib/zitadel-client/api/organization_service_api.rb +102 -100
- data/lib/zitadel-client/api/s_a_m_l_service_api.rb +107 -105
- data/lib/zitadel-client/api/session_service_api.rb +260 -258
- data/lib/zitadel-client/api/settings_api.rb +93 -91
- data/lib/zitadel-client/api/settings_service_api.rb +436 -434
- data/lib/zitadel-client/api/user_service_api.rb +2296 -2294
- data/lib/zitadel-client/api_client.rb +1 -1
- data/lib/zitadel-client/auth/authenticator.rb +58 -56
- data/lib/zitadel-client/auth/client_credentials_authenticator.rb +49 -49
- data/lib/zitadel-client/auth/no_auth_authenticator.rb +22 -20
- data/lib/zitadel-client/auth/o_auth_authenticator.rb +78 -71
- data/lib/zitadel-client/auth/open_id.rb +35 -33
- data/lib/zitadel-client/auth/personal_access_token_authenticator.rb +24 -22
- data/lib/zitadel-client/auth/web_token_authenticator.rb +134 -132
- data/lib/zitadel-client/configuration.rb +1 -1
- data/lib/zitadel-client/models/feature_service_details.rb +116 -106
- data/lib/zitadel-client/models/feature_service_feature_flag.rb +116 -106
- data/lib/zitadel-client/models/feature_service_get_instance_features_response.rb +113 -103
- data/lib/zitadel-client/models/feature_service_get_organization_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_get_system_features_response.rb +113 -103
- data/lib/zitadel-client/models/feature_service_get_user_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_improved_performance.rb +3 -2
- data/lib/zitadel-client/models/feature_service_improved_performance_feature_flag.rb +113 -103
- data/lib/zitadel-client/models/feature_service_login_v2.rb +117 -107
- data/lib/zitadel-client/models/feature_service_login_v2_feature_flag.rb +113 -103
- data/lib/zitadel-client/models/feature_service_protobuf_any.rb +117 -107
- data/lib/zitadel-client/models/feature_service_reset_instance_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_reset_organization_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_reset_system_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_reset_user_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_rpc_status.rb +117 -107
- data/lib/zitadel-client/models/feature_service_set_instance_features_request.rb +113 -103
- data/lib/zitadel-client/models/feature_service_set_instance_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_set_organization_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_set_system_features_request.rb +113 -103
- data/lib/zitadel-client/models/feature_service_set_system_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_set_user_features_response.rb +117 -107
- data/lib/zitadel-client/models/feature_service_source.rb +3 -2
- data/lib/zitadel-client/models/identity_provider_service_apple_config.rb +116 -106
- data/lib/zitadel-client/models/identity_provider_service_auto_linking_option.rb +3 -2
- data/lib/zitadel-client/models/identity_provider_service_azure_a_d_config.rb +116 -106
- data/lib/zitadel-client/models/identity_provider_service_azure_a_d_tenant.rb +117 -107
- data/lib/zitadel-client/models/identity_provider_service_azure_a_d_tenant_type.rb +3 -2
- data/lib/zitadel-client/models/identity_provider_service_details.rb +116 -106
- data/lib/zitadel-client/models/identity_provider_service_generic_o_i_d_c_config.rb +116 -106
- data/lib/zitadel-client/models/identity_provider_service_get_i_d_p_by_i_d_response.rb +117 -107
- data/lib/zitadel-client/models/identity_provider_service_git_hub_config.rb +117 -107
- data/lib/zitadel-client/models/identity_provider_service_git_hub_enterprise_server_config.rb +113 -103
- data/lib/zitadel-client/models/identity_provider_service_git_lab_config.rb +117 -107
- data/lib/zitadel-client/models/identity_provider_service_git_lab_self_hosted_config.rb +117 -107
- data/lib/zitadel-client/models/identity_provider_service_google_config.rb +117 -107
- data/lib/zitadel-client/models/identity_provider_service_i_d_p.rb +113 -103
- data/lib/zitadel-client/models/identity_provider_service_i_d_p_config.rb +113 -103
- data/lib/zitadel-client/models/identity_provider_service_i_d_p_state.rb +3 -2
- data/lib/zitadel-client/models/identity_provider_service_i_d_p_type.rb +3 -2
- data/lib/zitadel-client/models/identity_provider_service_j_w_t_config.rb +116 -106
- data/lib/zitadel-client/models/identity_provider_service_l_d_a_p_attributes.rb +113 -103
- data/lib/zitadel-client/models/identity_provider_service_l_d_a_p_config.rb +113 -103
- data/lib/zitadel-client/models/identity_provider_service_o_auth_config.rb +113 -103
- data/lib/zitadel-client/models/identity_provider_service_options.rb +113 -103
- data/lib/zitadel-client/models/identity_provider_service_protobuf_any.rb +117 -107
- data/lib/zitadel-client/models/identity_provider_service_rpc_status.rb +117 -107
- data/lib/zitadel-client/models/identity_provider_service_s_a_m_l_binding.rb +3 -2
- data/lib/zitadel-client/models/identity_provider_service_s_a_m_l_config.rb +113 -103
- data/lib/zitadel-client/models/identity_provider_service_s_a_m_l_name_i_d_format.rb +3 -2
- data/lib/zitadel-client/models/o_i_d_c_service_auth_request.rb +113 -103
- data/lib/zitadel-client/models/o_i_d_c_service_authorization_error.rb +113 -103
- data/lib/zitadel-client/models/o_i_d_c_service_authorize_or_deny_device_authorization_request.rb +117 -107
- data/lib/zitadel-client/models/o_i_d_c_service_create_callback_request.rb +117 -107
- data/lib/zitadel-client/models/o_i_d_c_service_create_callback_response.rb +117 -107
- data/lib/zitadel-client/models/o_i_d_c_service_details.rb +116 -106
- data/lib/zitadel-client/models/o_i_d_c_service_device_authorization_request.rb +113 -103
- data/lib/zitadel-client/models/o_i_d_c_service_error_reason.rb +3 -2
- data/lib/zitadel-client/models/o_i_d_c_service_get_auth_request_response.rb +117 -107
- data/lib/zitadel-client/models/o_i_d_c_service_get_device_authorization_request_response.rb +117 -107
- data/lib/zitadel-client/models/o_i_d_c_service_prompt.rb +3 -2
- data/lib/zitadel-client/models/o_i_d_c_service_protobuf_any.rb +117 -107
- data/lib/zitadel-client/models/o_i_d_c_service_rpc_status.rb +117 -107
- data/lib/zitadel-client/models/o_i_d_c_service_session.rb +113 -103
- data/lib/zitadel-client/models/organization_service_add_human_user_request.rb +114 -104
- data/lib/zitadel-client/models/organization_service_add_organization_request.rb +113 -103
- data/lib/zitadel-client/models/organization_service_add_organization_request_admin.rb +117 -107
- data/lib/zitadel-client/models/organization_service_add_organization_response.rb +117 -107
- data/lib/zitadel-client/models/organization_service_add_organization_response_created_admin.rb +117 -107
- data/lib/zitadel-client/models/organization_service_details.rb +116 -106
- data/lib/zitadel-client/models/organization_service_gender.rb +3 -2
- data/lib/zitadel-client/models/organization_service_hashed_password.rb +113 -103
- data/lib/zitadel-client/models/organization_service_i_d_p_link.rb +113 -103
- data/lib/zitadel-client/models/organization_service_list_details.rb +117 -107
- data/lib/zitadel-client/models/organization_service_list_organizations_request.rb +113 -103
- data/lib/zitadel-client/models/organization_service_list_organizations_response.rb +113 -103
- data/lib/zitadel-client/models/organization_service_list_query.rb +117 -107
- data/lib/zitadel-client/models/organization_service_organization_domain_query.rb +113 -103
- data/lib/zitadel-client/models/organization_service_organization_field_name.rb +3 -2
- data/lib/zitadel-client/models/organization_service_organization_i_d_query.rb +113 -103
- data/lib/zitadel-client/models/organization_service_organization_name_query.rb +113 -103
- data/lib/zitadel-client/models/organization_service_organization_state.rb +3 -2
- data/lib/zitadel-client/models/organization_service_organization_state_query.rb +117 -107
- data/lib/zitadel-client/models/organization_service_password.rb +113 -103
- data/lib/zitadel-client/models/organization_service_protobuf_any.rb +117 -107
- data/lib/zitadel-client/models/organization_service_rpc_status.rb +117 -107
- data/lib/zitadel-client/models/organization_service_search_query.rb +113 -103
- data/lib/zitadel-client/models/organization_service_send_email_verification_code.rb +116 -106
- data/lib/zitadel-client/models/organization_service_set_human_email.rb +113 -103
- data/lib/zitadel-client/models/organization_service_set_human_phone.rb +113 -103
- data/lib/zitadel-client/models/organization_service_set_human_profile.rb +114 -104
- data/lib/zitadel-client/models/organization_service_set_metadata_entry.rb +113 -103
- data/lib/zitadel-client/models/organization_service_text_query_method.rb +3 -2
- data/lib/zitadel-client/models/s_a_m_l_service_authorization_error.rb +116 -106
- data/lib/zitadel-client/models/s_a_m_l_service_create_response_request.rb +117 -107
- data/lib/zitadel-client/models/s_a_m_l_service_create_response_response.rb +116 -106
- data/lib/zitadel-client/models/s_a_m_l_service_details.rb +116 -106
- data/lib/zitadel-client/models/s_a_m_l_service_error_reason.rb +3 -2
- data/lib/zitadel-client/models/s_a_m_l_service_get_s_a_m_l_request_response.rb +117 -107
- data/lib/zitadel-client/models/s_a_m_l_service_post_response.rb +117 -107
- data/lib/zitadel-client/models/s_a_m_l_service_protobuf_any.rb +117 -107
- data/lib/zitadel-client/models/s_a_m_l_service_rpc_status.rb +117 -107
- data/lib/zitadel-client/models/s_a_m_l_service_s_a_m_l_request.rb +113 -103
- data/lib/zitadel-client/models/s_a_m_l_service_session.rb +113 -103
- data/lib/zitadel-client/models/session_service_challenges.rb +117 -107
- data/lib/zitadel-client/models/session_service_challenges_web_auth_n.rb +117 -107
- data/lib/zitadel-client/models/session_service_check_i_d_p_intent.rb +113 -103
- data/lib/zitadel-client/models/session_service_check_o_t_p.rb +117 -107
- data/lib/zitadel-client/models/session_service_check_password.rb +116 -106
- data/lib/zitadel-client/models/session_service_check_t_o_t_p.rb +116 -106
- data/lib/zitadel-client/models/session_service_check_user.rb +113 -103
- data/lib/zitadel-client/models/session_service_check_web_auth_n.rb +117 -107
- data/lib/zitadel-client/models/session_service_checks.rb +113 -103
- data/lib/zitadel-client/models/session_service_create_session_request.rb +113 -103
- data/lib/zitadel-client/models/session_service_create_session_response.rb +116 -106
- data/lib/zitadel-client/models/session_service_creation_date_query.rb +116 -106
- data/lib/zitadel-client/models/session_service_creator_query.rb +117 -107
- data/lib/zitadel-client/models/session_service_delete_session_request.rb +117 -107
- data/lib/zitadel-client/models/session_service_delete_session_response.rb +117 -107
- data/lib/zitadel-client/models/session_service_details.rb +116 -106
- data/lib/zitadel-client/models/session_service_factors.rb +113 -103
- data/lib/zitadel-client/models/session_service_get_session_response.rb +117 -107
- data/lib/zitadel-client/models/session_service_i_ds_query.rb +117 -107
- data/lib/zitadel-client/models/session_service_intent_factor.rb +117 -107
- data/lib/zitadel-client/models/session_service_list_details.rb +117 -107
- data/lib/zitadel-client/models/session_service_list_query.rb +117 -107
- data/lib/zitadel-client/models/session_service_list_sessions_request.rb +113 -103
- data/lib/zitadel-client/models/session_service_list_sessions_response.rb +117 -107
- data/lib/zitadel-client/models/session_service_o_t_p_email_send_code.rb +116 -106
- data/lib/zitadel-client/models/session_service_o_t_p_factor.rb +117 -107
- data/lib/zitadel-client/models/session_service_password_factor.rb +117 -107
- data/lib/zitadel-client/models/session_service_protobuf_any.rb +117 -107
- data/lib/zitadel-client/models/session_service_request_challenges.rb +117 -107
- data/lib/zitadel-client/models/session_service_request_challenges_o_t_p_email.rb +117 -107
- data/lib/zitadel-client/models/session_service_request_challenges_o_t_p_s_m_s.rb +117 -107
- data/lib/zitadel-client/models/session_service_request_challenges_web_auth_n.rb +113 -103
- data/lib/zitadel-client/models/session_service_rpc_status.rb +117 -107
- data/lib/zitadel-client/models/session_service_search_query.rb +113 -103
- data/lib/zitadel-client/models/session_service_session.rb +113 -103
- data/lib/zitadel-client/models/session_service_session_field_name.rb +3 -2
- data/lib/zitadel-client/models/session_service_set_session_request.rb +113 -103
- data/lib/zitadel-client/models/session_service_set_session_response.rb +117 -107
- data/lib/zitadel-client/models/session_service_t_o_t_p_factor.rb +117 -107
- data/lib/zitadel-client/models/session_service_timestamp_query_method.rb +3 -2
- data/lib/zitadel-client/models/session_service_user_agent.rb +116 -106
- data/lib/zitadel-client/models/session_service_user_agent_header_values.rb +117 -107
- data/lib/zitadel-client/models/session_service_user_agent_query.rb +117 -107
- data/lib/zitadel-client/models/session_service_user_factor.rb +113 -103
- data/lib/zitadel-client/models/session_service_user_i_d_query.rb +117 -107
- data/lib/zitadel-client/models/session_service_user_verification_requirement.rb +3 -2
- data/lib/zitadel-client/models/session_service_web_auth_n_factor.rb +117 -107
- data/lib/zitadel-client/models/settings_service_auto_linking_option.rb +3 -2
- data/lib/zitadel-client/models/settings_service_branding_settings.rb +113 -103
- data/lib/zitadel-client/models/settings_service_details.rb +116 -106
- data/lib/zitadel-client/models/settings_service_domain_settings.rb +113 -103
- data/lib/zitadel-client/models/settings_service_embedded_iframe_settings.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_active_identity_providers_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_branding_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_domain_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_general_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_legal_and_support_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_lockout_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_login_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_password_complexity_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_password_expiry_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_get_security_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_identity_provider.rb +113 -103
- data/lib/zitadel-client/models/settings_service_identity_provider_type.rb +3 -2
- data/lib/zitadel-client/models/settings_service_legal_and_support_settings.rb +113 -103
- data/lib/zitadel-client/models/settings_service_list_details.rb +117 -107
- data/lib/zitadel-client/models/settings_service_lockout_settings.rb +113 -103
- data/lib/zitadel-client/models/settings_service_login_settings.rb +113 -103
- data/lib/zitadel-client/models/settings_service_multi_factor_type.rb +3 -2
- data/lib/zitadel-client/models/settings_service_options.rb +113 -103
- data/lib/zitadel-client/models/settings_service_passkeys_type.rb +3 -2
- data/lib/zitadel-client/models/settings_service_password_complexity_settings.rb +113 -103
- data/lib/zitadel-client/models/settings_service_password_expiry_settings.rb +113 -103
- data/lib/zitadel-client/models/settings_service_protobuf_any.rb +117 -107
- data/lib/zitadel-client/models/settings_service_resource_owner_type.rb +3 -2
- data/lib/zitadel-client/models/settings_service_rpc_status.rb +117 -107
- data/lib/zitadel-client/models/settings_service_second_factor_type.rb +3 -2
- data/lib/zitadel-client/models/settings_service_security_settings.rb +117 -107
- data/lib/zitadel-client/models/settings_service_set_security_settings_request.rb +117 -107
- data/lib/zitadel-client/models/settings_service_set_security_settings_response.rb +117 -107
- data/lib/zitadel-client/models/settings_service_theme.rb +113 -103
- data/lib/zitadel-client/models/settings_service_theme_mode.rb +3 -2
- data/lib/zitadel-client/models/user_service_access_token_type.rb +3 -2
- data/lib/zitadel-client/models/user_service_add_human_user_request.rb +114 -104
- data/lib/zitadel-client/models/user_service_add_human_user_response.rb +116 -106
- data/lib/zitadel-client/models/user_service_add_i_d_p_link_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_add_i_d_p_link_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_add_o_t_p_email_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_add_o_t_p_s_m_s_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_and_query.rb +117 -107
- data/lib/zitadel-client/models/user_service_auth_factor.rb +113 -103
- data/lib/zitadel-client/models/user_service_auth_factor_state.rb +3 -2
- data/lib/zitadel-client/models/user_service_auth_factor_u2_f.rb +117 -107
- data/lib/zitadel-client/models/user_service_authentication_method_type.rb +3 -2
- data/lib/zitadel-client/models/user_service_create_invite_code_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_create_invite_code_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_create_passkey_registration_link_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_create_passkey_registration_link_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_deactivate_user_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_delete_user_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_details.rb +116 -106
- data/lib/zitadel-client/models/user_service_display_name_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_email_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_first_name_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_gender.rb +3 -2
- data/lib/zitadel-client/models/user_service_get_user_by_i_d_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_hashed_password.rb +113 -103
- data/lib/zitadel-client/models/user_service_human_email.rb +113 -103
- data/lib/zitadel-client/models/user_service_human_m_f_a_init_skipped_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_human_phone.rb +116 -106
- data/lib/zitadel-client/models/user_service_human_profile.rb +114 -104
- data/lib/zitadel-client/models/user_service_human_user.rb +113 -103
- data/lib/zitadel-client/models/user_service_i_d_p_information.rb +113 -103
- data/lib/zitadel-client/models/user_service_i_d_p_intent.rb +113 -103
- data/lib/zitadel-client/models/user_service_i_d_p_l_d_a_p_access_information.rb +117 -107
- data/lib/zitadel-client/models/user_service_i_d_p_link.rb +113 -103
- data/lib/zitadel-client/models/user_service_i_d_p_o_auth_access_information.rb +117 -107
- data/lib/zitadel-client/models/user_service_i_d_p_s_a_m_l_access_information.rb +117 -107
- data/lib/zitadel-client/models/user_service_in_user_emails_query.rb +117 -107
- data/lib/zitadel-client/models/user_service_in_user_i_d_query.rb +117 -107
- data/lib/zitadel-client/models/user_service_l_d_a_p_credentials.rb +113 -103
- data/lib/zitadel-client/models/user_service_last_name_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_list_authentication_factors_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_list_authentication_method_types_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_list_details.rb +117 -107
- data/lib/zitadel-client/models/user_service_list_i_d_p_links_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_list_i_d_p_links_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_list_passkeys_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_list_query.rb +117 -107
- data/lib/zitadel-client/models/user_service_list_users_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_list_users_response.rb +113 -103
- data/lib/zitadel-client/models/user_service_lock_user_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_login_name_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_machine_user.rb +113 -103
- data/lib/zitadel-client/models/user_service_nick_name_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_not_query.rb +117 -107
- data/lib/zitadel-client/models/user_service_notification_type.rb +3 -2
- data/lib/zitadel-client/models/user_service_or_query.rb +117 -107
- data/lib/zitadel-client/models/user_service_organization.rb +117 -107
- data/lib/zitadel-client/models/user_service_organization_id_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_passkey.rb +113 -103
- data/lib/zitadel-client/models/user_service_passkey_authenticator.rb +3 -2
- data/lib/zitadel-client/models/user_service_passkey_registration_code.rb +113 -103
- data/lib/zitadel-client/models/user_service_password.rb +113 -103
- data/lib/zitadel-client/models/user_service_password_reset_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_password_reset_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_phone_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_protobuf_any.rb +117 -107
- data/lib/zitadel-client/models/user_service_reactivate_user_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_redirect_u_r_ls.rb +113 -103
- data/lib/zitadel-client/models/user_service_register_passkey_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_register_passkey_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_register_t_o_t_p_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_register_u2_f_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_register_u2_f_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_remove_i_d_p_link_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_remove_o_t_p_email_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_remove_o_t_p_s_m_s_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_remove_passkey_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_remove_phone_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_remove_t_o_t_p_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_remove_u2_f_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_resend_email_code_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_resend_email_code_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_resend_invite_code_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_resend_phone_code_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_resend_phone_code_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_retrieve_identity_provider_intent_request.rb +116 -106
- data/lib/zitadel-client/models/user_service_retrieve_identity_provider_intent_response.rb +116 -106
- data/lib/zitadel-client/models/user_service_rpc_status.rb +117 -107
- data/lib/zitadel-client/models/user_service_search_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_send_email_code_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_send_email_code_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_send_email_verification_code.rb +116 -106
- data/lib/zitadel-client/models/user_service_send_invite_code.rb +113 -103
- data/lib/zitadel-client/models/user_service_send_passkey_registration_link.rb +116 -106
- data/lib/zitadel-client/models/user_service_send_password_reset_link.rb +113 -103
- data/lib/zitadel-client/models/user_service_set_email_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_set_email_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_set_human_email.rb +113 -103
- data/lib/zitadel-client/models/user_service_set_human_phone.rb +113 -103
- data/lib/zitadel-client/models/user_service_set_human_profile.rb +114 -104
- data/lib/zitadel-client/models/user_service_set_metadata_entry.rb +113 -103
- data/lib/zitadel-client/models/user_service_set_password.rb +113 -103
- data/lib/zitadel-client/models/user_service_set_password_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_set_password_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_set_phone_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_set_phone_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_start_identity_provider_intent_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_start_identity_provider_intent_response.rb +116 -106
- data/lib/zitadel-client/models/user_service_state_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_text_query_method.rb +3 -2
- data/lib/zitadel-client/models/user_service_type.rb +3 -2
- data/lib/zitadel-client/models/user_service_type_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_unlock_user_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_update_human_user_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_update_human_user_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_user.rb +113 -103
- data/lib/zitadel-client/models/user_service_user_field_name.rb +3 -2
- data/lib/zitadel-client/models/user_service_user_name_query.rb +113 -103
- data/lib/zitadel-client/models/user_service_user_state.rb +3 -2
- data/lib/zitadel-client/models/user_service_verify_email_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_verify_email_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_verify_invite_code_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_verify_invite_code_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_verify_passkey_registration_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_verify_passkey_registration_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_verify_phone_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_verify_phone_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_verify_t_o_t_p_registration_request.rb +117 -107
- data/lib/zitadel-client/models/user_service_verify_t_o_t_p_registration_response.rb +117 -107
- data/lib/zitadel-client/models/user_service_verify_u2_f_registration_request.rb +113 -103
- data/lib/zitadel-client/models/user_service_verify_u2_f_registration_response.rb +117 -107
- data/lib/zitadel-client/models/zitadelobjectv2_organization.rb +117 -107
- data/lib/zitadel-client/models/zitadelorgv2_organization.rb +113 -103
- data/lib/zitadel-client/utils/url_util.rb +15 -13
- data/lib/zitadel-client/version.rb +1 -1
- data/lib/zitadel-client/zitadel.rb +11 -11
- data/lib/zitadel_client.rb +0 -5
- data/sig/lib/oauth2/oauth2.rbs +3 -0
- data/sig/lib.rbs +113 -106
- metadata +2 -2
@@ -13,7 +13,7 @@ Generator version: 7.12.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module ZitadelClient
|
16
|
+
module ZitadelClient::Models
|
17
17
|
class UserServiceIDPInformation
|
18
18
|
attr_accessor :oauth
|
19
19
|
|
@@ -76,17 +76,19 @@ module ZitadelClient
|
|
76
76
|
end
|
77
77
|
|
78
78
|
# Initializes the object
|
79
|
-
# @param [Hash] attributes
|
79
|
+
# @param [Hash] attributes Models attributes in the form of hash
|
80
80
|
def initialize(attributes = {})
|
81
81
|
if (!attributes.is_a?(Hash))
|
82
|
-
|
82
|
+
# MODIFIED: Updated class name in error message
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZitadelClient::Models::UserServiceIDPInformation` initialize method"
|
83
84
|
end
|
84
85
|
|
85
86
|
# check to see if the attribute exists and convert string to symbol for hash key
|
86
87
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
87
88
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
88
89
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
89
|
-
|
90
|
+
# MODIFIED: Updated class name in error message
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZitadelClient::Models::UserServiceIDPInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
90
92
|
end
|
91
93
|
h[k.to_sym] = v
|
92
94
|
}
|
@@ -161,117 +163,125 @@ module ZitadelClient
|
|
161
163
|
[oauth, ldap, saml, idp_id, user_id, user_name, raw_information].hash
|
162
164
|
end
|
163
165
|
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
end
|
180
|
-
elsif !attributes[attribute_map[key]].nil?
|
181
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
182
|
-
end
|
166
|
+
# Builds the object from hash
|
167
|
+
# @param [Hash] attributes Models attributes in the form of hash
|
168
|
+
# @return [Object] Returns the model itself
|
169
|
+
def self.build_from_hash(attributes)
|
170
|
+
return nil unless attributes.is_a?(Hash)
|
171
|
+
attributes = attributes.transform_keys(&:to_sym)
|
172
|
+
transformed_hash = {}
|
173
|
+
openapi_types.each_pair do |key, type|
|
174
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
175
|
+
transformed_hash["#{key}"] = nil
|
176
|
+
elsif type =~ /\AArray<(.*)>/i
|
177
|
+
# check to ensure the input is an array given that the attribute
|
178
|
+
# is documented as an array but the input is not
|
179
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
180
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
183
181
|
end
|
184
|
-
|
182
|
+
elsif !attributes[attribute_map[key]].nil?
|
183
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
185
184
|
end
|
185
|
+
end
|
186
|
+
new(transformed_hash) # `new` will call the initialize method of the specific model class.
|
187
|
+
end
|
186
188
|
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
end
|
222
|
-
end
|
223
|
-
else # model
|
224
|
-
# models (e.g. Pet) or oneOf
|
225
|
-
klass = ZitadelClient.const_get(type)
|
226
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
|
+
# Deserializes the data based on type
|
190
|
+
# @param string type Data type
|
191
|
+
# @param string value Value to be deserialized
|
192
|
+
# @return [Object] Deserialized data
|
193
|
+
def self._deserialize(type, value)
|
194
|
+
case type.to_sym
|
195
|
+
when :Time
|
196
|
+
Time.parse(value)
|
197
|
+
when :Date
|
198
|
+
Date.parse(value)
|
199
|
+
when :String
|
200
|
+
value.to_s
|
201
|
+
when :Integer
|
202
|
+
value.to_i
|
203
|
+
when :Float
|
204
|
+
value.to_f
|
205
|
+
when :Boolean
|
206
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
207
|
+
true
|
208
|
+
else
|
209
|
+
false
|
210
|
+
end
|
211
|
+
when :Object
|
212
|
+
# generic object (usually a Hash), return directly
|
213
|
+
value
|
214
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
215
|
+
inner_type = Regexp.last_match[:inner_type]
|
216
|
+
value.map { |v| _deserialize(inner_type, v) }
|
217
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
218
|
+
k_type = Regexp.last_match[:k_type]
|
219
|
+
v_type = Regexp.last_match[:v_type]
|
220
|
+
{}.tap do |hash|
|
221
|
+
value.each do |k, v|
|
222
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
227
223
|
end
|
228
224
|
end
|
229
|
-
|
230
|
-
#
|
231
|
-
#
|
232
|
-
|
233
|
-
|
225
|
+
else # model
|
226
|
+
# models (e.g. Pet) or oneOf/anyOf constructs that resolve to a model name
|
227
|
+
# MODIFIED: Ensure model is looked up in the Models namespace
|
228
|
+
# 'type' here is expected to be the simple class name (e.g., "User", "OrderDetails")
|
229
|
+
klass = ZitadelClient::Models.const_get(type)
|
230
|
+
# The `klass.build` method is for oneOf/anyOf types (defined in partial_oneof_module.mustache / partial_anyof_module.mustache)
|
231
|
+
# The `klass.build_from_hash` is for regular model types (defined in this base_object.mustache itself)
|
232
|
+
if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_allOf)
|
233
|
+
klass.build(value) # For oneOf/anyOf/allOf, delegate to their specific build method
|
234
|
+
else
|
235
|
+
klass.build_from_hash(value) # For regular models
|
234
236
|
end
|
237
|
+
end
|
238
|
+
end
|
235
239
|
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
240
|
+
# Returns the string representation of the object
|
241
|
+
# @return [String] String presentation of the object
|
242
|
+
def to_s
|
243
|
+
to_hash.to_s
|
244
|
+
end
|
241
245
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
value = self.send(attr)
|
248
|
-
if value.nil?
|
249
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
250
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
251
|
-
end
|
246
|
+
# to_body is an alias to to_hash (backward compatibility)
|
247
|
+
# @return [Hash] Returns the object in the form of hash
|
248
|
+
def to_body
|
249
|
+
to_hash
|
250
|
+
end
|
252
251
|
|
253
|
-
|
254
|
-
|
255
|
-
|
252
|
+
# Returns the object in the form of hash
|
253
|
+
# @return [Hash] Returns the object in the form of hash
|
254
|
+
def to_hash
|
255
|
+
hash = {} # Calls super.to_hash if parent exists
|
256
|
+
self.class.attribute_map.each_pair do |attr, param|
|
257
|
+
value = self.send(attr)
|
258
|
+
if value.nil?
|
259
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
260
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
256
261
|
end
|
257
262
|
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
end
|
263
|
+
hash[param] = _to_hash(value)
|
264
|
+
end
|
265
|
+
hash
|
266
|
+
end
|
267
|
+
|
268
|
+
# Outputs non-array value in the form of hash
|
269
|
+
# For object, use to_hash. Otherwise, just return the value
|
270
|
+
# @param [Object] value Any valid value
|
271
|
+
# @return [Hash] Returns the value in the form of hash
|
272
|
+
def _to_hash(value)
|
273
|
+
if value.is_a?(Array)
|
274
|
+
value.compact.map { |v| _to_hash(v) }
|
275
|
+
elsif value.is_a?(Hash)
|
276
|
+
{}.tap do |hash|
|
277
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
274
278
|
end
|
279
|
+
elsif value.respond_to? :to_hash
|
280
|
+
value.to_hash
|
281
|
+
else
|
282
|
+
value
|
283
|
+
end
|
284
|
+
end
|
275
285
|
|
276
286
|
end
|
277
287
|
|
@@ -13,7 +13,7 @@ Generator version: 7.12.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module ZitadelClient
|
16
|
+
module ZitadelClient::Models
|
17
17
|
class UserServiceIDPIntent
|
18
18
|
# ID of the IDP intent
|
19
19
|
attr_accessor :idp_intent_id
|
@@ -59,17 +59,19 @@ module ZitadelClient
|
|
59
59
|
end
|
60
60
|
|
61
61
|
# Initializes the object
|
62
|
-
# @param [Hash] attributes
|
62
|
+
# @param [Hash] attributes Models attributes in the form of hash
|
63
63
|
def initialize(attributes = {})
|
64
64
|
if (!attributes.is_a?(Hash))
|
65
|
-
|
65
|
+
# MODIFIED: Updated class name in error message
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZitadelClient::Models::UserServiceIDPIntent` initialize method"
|
66
67
|
end
|
67
68
|
|
68
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
70
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
70
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
72
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
72
|
-
|
73
|
+
# MODIFIED: Updated class name in error message
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZitadelClient::Models::UserServiceIDPIntent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
73
75
|
end
|
74
76
|
h[k.to_sym] = v
|
75
77
|
}
|
@@ -199,117 +201,125 @@ module ZitadelClient
|
|
199
201
|
[idp_intent_id, idp_intent_token, user_id].hash
|
200
202
|
end
|
201
203
|
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
end
|
218
|
-
elsif !attributes[attribute_map[key]].nil?
|
219
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
220
|
-
end
|
204
|
+
# Builds the object from hash
|
205
|
+
# @param [Hash] attributes Models attributes in the form of hash
|
206
|
+
# @return [Object] Returns the model itself
|
207
|
+
def self.build_from_hash(attributes)
|
208
|
+
return nil unless attributes.is_a?(Hash)
|
209
|
+
attributes = attributes.transform_keys(&:to_sym)
|
210
|
+
transformed_hash = {}
|
211
|
+
openapi_types.each_pair do |key, type|
|
212
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
213
|
+
transformed_hash["#{key}"] = nil
|
214
|
+
elsif type =~ /\AArray<(.*)>/i
|
215
|
+
# check to ensure the input is an array given that the attribute
|
216
|
+
# is documented as an array but the input is not
|
217
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
218
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
221
219
|
end
|
222
|
-
|
220
|
+
elsif !attributes[attribute_map[key]].nil?
|
221
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
223
222
|
end
|
223
|
+
end
|
224
|
+
new(transformed_hash) # `new` will call the initialize method of the specific model class.
|
225
|
+
end
|
224
226
|
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
end
|
260
|
-
end
|
261
|
-
else # model
|
262
|
-
# models (e.g. Pet) or oneOf
|
263
|
-
klass = ZitadelClient.const_get(type)
|
264
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
227
|
+
# Deserializes the data based on type
|
228
|
+
# @param string type Data type
|
229
|
+
# @param string value Value to be deserialized
|
230
|
+
# @return [Object] Deserialized data
|
231
|
+
def self._deserialize(type, value)
|
232
|
+
case type.to_sym
|
233
|
+
when :Time
|
234
|
+
Time.parse(value)
|
235
|
+
when :Date
|
236
|
+
Date.parse(value)
|
237
|
+
when :String
|
238
|
+
value.to_s
|
239
|
+
when :Integer
|
240
|
+
value.to_i
|
241
|
+
when :Float
|
242
|
+
value.to_f
|
243
|
+
when :Boolean
|
244
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
245
|
+
true
|
246
|
+
else
|
247
|
+
false
|
248
|
+
end
|
249
|
+
when :Object
|
250
|
+
# generic object (usually a Hash), return directly
|
251
|
+
value
|
252
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
253
|
+
inner_type = Regexp.last_match[:inner_type]
|
254
|
+
value.map { |v| _deserialize(inner_type, v) }
|
255
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
256
|
+
k_type = Regexp.last_match[:k_type]
|
257
|
+
v_type = Regexp.last_match[:v_type]
|
258
|
+
{}.tap do |hash|
|
259
|
+
value.each do |k, v|
|
260
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
265
261
|
end
|
266
262
|
end
|
267
|
-
|
268
|
-
#
|
269
|
-
#
|
270
|
-
|
271
|
-
|
263
|
+
else # model
|
264
|
+
# models (e.g. Pet) or oneOf/anyOf constructs that resolve to a model name
|
265
|
+
# MODIFIED: Ensure model is looked up in the Models namespace
|
266
|
+
# 'type' here is expected to be the simple class name (e.g., "User", "OrderDetails")
|
267
|
+
klass = ZitadelClient::Models.const_get(type)
|
268
|
+
# The `klass.build` method is for oneOf/anyOf types (defined in partial_oneof_module.mustache / partial_anyof_module.mustache)
|
269
|
+
# The `klass.build_from_hash` is for regular model types (defined in this base_object.mustache itself)
|
270
|
+
if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_allOf)
|
271
|
+
klass.build(value) # For oneOf/anyOf/allOf, delegate to their specific build method
|
272
|
+
else
|
273
|
+
klass.build_from_hash(value) # For regular models
|
272
274
|
end
|
275
|
+
end
|
276
|
+
end
|
273
277
|
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
278
|
+
# Returns the string representation of the object
|
279
|
+
# @return [String] String presentation of the object
|
280
|
+
def to_s
|
281
|
+
to_hash.to_s
|
282
|
+
end
|
279
283
|
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
value = self.send(attr)
|
286
|
-
if value.nil?
|
287
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
288
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
289
|
-
end
|
284
|
+
# to_body is an alias to to_hash (backward compatibility)
|
285
|
+
# @return [Hash] Returns the object in the form of hash
|
286
|
+
def to_body
|
287
|
+
to_hash
|
288
|
+
end
|
290
289
|
|
291
|
-
|
292
|
-
|
293
|
-
|
290
|
+
# Returns the object in the form of hash
|
291
|
+
# @return [Hash] Returns the object in the form of hash
|
292
|
+
def to_hash
|
293
|
+
hash = {} # Calls super.to_hash if parent exists
|
294
|
+
self.class.attribute_map.each_pair do |attr, param|
|
295
|
+
value = self.send(attr)
|
296
|
+
if value.nil?
|
297
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
298
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
294
299
|
end
|
295
300
|
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
end
|
301
|
+
hash[param] = _to_hash(value)
|
302
|
+
end
|
303
|
+
hash
|
304
|
+
end
|
305
|
+
|
306
|
+
# Outputs non-array value in the form of hash
|
307
|
+
# For object, use to_hash. Otherwise, just return the value
|
308
|
+
# @param [Object] value Any valid value
|
309
|
+
# @return [Hash] Returns the value in the form of hash
|
310
|
+
def _to_hash(value)
|
311
|
+
if value.is_a?(Array)
|
312
|
+
value.compact.map { |v| _to_hash(v) }
|
313
|
+
elsif value.is_a?(Hash)
|
314
|
+
{}.tap do |hash|
|
315
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
312
316
|
end
|
317
|
+
elsif value.respond_to? :to_hash
|
318
|
+
value.to_hash
|
319
|
+
else
|
320
|
+
value
|
321
|
+
end
|
322
|
+
end
|
313
323
|
|
314
324
|
end
|
315
325
|
|