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 OrganizationServiceListOrganizationsRequest
|
18
18
|
attr_accessor :query
|
19
19
|
|
@@ -78,17 +78,19 @@ module ZitadelClient
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# Initializes the object
|
81
|
-
# @param [Hash] attributes
|
81
|
+
# @param [Hash] attributes Models attributes in the form of hash
|
82
82
|
def initialize(attributes = {})
|
83
83
|
if (!attributes.is_a?(Hash))
|
84
|
-
|
84
|
+
# MODIFIED: Updated class name in error message
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZitadelClient::Models::OrganizationServiceListOrganizationsRequest` initialize method"
|
85
86
|
end
|
86
87
|
|
87
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
88
89
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
89
90
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
90
91
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
91
|
-
|
92
|
+
# MODIFIED: Updated class name in error message
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZitadelClient::Models::OrganizationServiceListOrganizationsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
92
94
|
end
|
93
95
|
h[k.to_sym] = v
|
94
96
|
}
|
@@ -147,117 +149,125 @@ module ZitadelClient
|
|
147
149
|
[query, sorting_column, queries].hash
|
148
150
|
end
|
149
151
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
end
|
166
|
-
elsif !attributes[attribute_map[key]].nil?
|
167
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
168
|
-
end
|
152
|
+
# Builds the object from hash
|
153
|
+
# @param [Hash] attributes Models attributes in the form of hash
|
154
|
+
# @return [Object] Returns the model itself
|
155
|
+
def self.build_from_hash(attributes)
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
157
|
+
attributes = attributes.transform_keys(&:to_sym)
|
158
|
+
transformed_hash = {}
|
159
|
+
openapi_types.each_pair do |key, type|
|
160
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
161
|
+
transformed_hash["#{key}"] = nil
|
162
|
+
elsif type =~ /\AArray<(.*)>/i
|
163
|
+
# check to ensure the input is an array given that the attribute
|
164
|
+
# is documented as an array but the input is not
|
165
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
166
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
169
167
|
end
|
170
|
-
|
168
|
+
elsif !attributes[attribute_map[key]].nil?
|
169
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
171
170
|
end
|
171
|
+
end
|
172
|
+
new(transformed_hash) # `new` will call the initialize method of the specific model class.
|
173
|
+
end
|
172
174
|
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
end
|
208
|
-
end
|
209
|
-
else # model
|
210
|
-
# models (e.g. Pet) or oneOf
|
211
|
-
klass = ZitadelClient.const_get(type)
|
212
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
|
+
# Deserializes the data based on type
|
176
|
+
# @param string type Data type
|
177
|
+
# @param string value Value to be deserialized
|
178
|
+
# @return [Object] Deserialized data
|
179
|
+
def self._deserialize(type, value)
|
180
|
+
case type.to_sym
|
181
|
+
when :Time
|
182
|
+
Time.parse(value)
|
183
|
+
when :Date
|
184
|
+
Date.parse(value)
|
185
|
+
when :String
|
186
|
+
value.to_s
|
187
|
+
when :Integer
|
188
|
+
value.to_i
|
189
|
+
when :Float
|
190
|
+
value.to_f
|
191
|
+
when :Boolean
|
192
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
193
|
+
true
|
194
|
+
else
|
195
|
+
false
|
196
|
+
end
|
197
|
+
when :Object
|
198
|
+
# generic object (usually a Hash), return directly
|
199
|
+
value
|
200
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
201
|
+
inner_type = Regexp.last_match[:inner_type]
|
202
|
+
value.map { |v| _deserialize(inner_type, v) }
|
203
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
204
|
+
k_type = Regexp.last_match[:k_type]
|
205
|
+
v_type = Regexp.last_match[:v_type]
|
206
|
+
{}.tap do |hash|
|
207
|
+
value.each do |k, v|
|
208
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
213
209
|
end
|
214
210
|
end
|
215
|
-
|
216
|
-
#
|
217
|
-
#
|
218
|
-
|
219
|
-
|
211
|
+
else # model
|
212
|
+
# models (e.g. Pet) or oneOf/anyOf constructs that resolve to a model name
|
213
|
+
# MODIFIED: Ensure model is looked up in the Models namespace
|
214
|
+
# 'type' here is expected to be the simple class name (e.g., "User", "OrderDetails")
|
215
|
+
klass = ZitadelClient::Models.const_get(type)
|
216
|
+
# The `klass.build` method is for oneOf/anyOf types (defined in partial_oneof_module.mustache / partial_anyof_module.mustache)
|
217
|
+
# The `klass.build_from_hash` is for regular model types (defined in this base_object.mustache itself)
|
218
|
+
if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_allOf)
|
219
|
+
klass.build(value) # For oneOf/anyOf/allOf, delegate to their specific build method
|
220
|
+
else
|
221
|
+
klass.build_from_hash(value) # For regular models
|
220
222
|
end
|
223
|
+
end
|
224
|
+
end
|
221
225
|
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
226
|
+
# Returns the string representation of the object
|
227
|
+
# @return [String] String presentation of the object
|
228
|
+
def to_s
|
229
|
+
to_hash.to_s
|
230
|
+
end
|
227
231
|
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
value = self.send(attr)
|
234
|
-
if value.nil?
|
235
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
236
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
237
|
-
end
|
232
|
+
# to_body is an alias to to_hash (backward compatibility)
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
234
|
+
def to_body
|
235
|
+
to_hash
|
236
|
+
end
|
238
237
|
|
239
|
-
|
240
|
-
|
241
|
-
|
238
|
+
# Returns the object in the form of hash
|
239
|
+
# @return [Hash] Returns the object in the form of hash
|
240
|
+
def to_hash
|
241
|
+
hash = {} # Calls super.to_hash if parent exists
|
242
|
+
self.class.attribute_map.each_pair do |attr, param|
|
243
|
+
value = self.send(attr)
|
244
|
+
if value.nil?
|
245
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
246
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
247
|
end
|
243
248
|
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
end
|
249
|
+
hash[param] = _to_hash(value)
|
250
|
+
end
|
251
|
+
hash
|
252
|
+
end
|
253
|
+
|
254
|
+
# Outputs non-array value in the form of hash
|
255
|
+
# For object, use to_hash. Otherwise, just return the value
|
256
|
+
# @param [Object] value Any valid value
|
257
|
+
# @return [Hash] Returns the value in the form of hash
|
258
|
+
def _to_hash(value)
|
259
|
+
if value.is_a?(Array)
|
260
|
+
value.compact.map { |v| _to_hash(v) }
|
261
|
+
elsif value.is_a?(Hash)
|
262
|
+
{}.tap do |hash|
|
263
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
260
264
|
end
|
265
|
+
elsif value.respond_to? :to_hash
|
266
|
+
value.to_hash
|
267
|
+
else
|
268
|
+
value
|
269
|
+
end
|
270
|
+
end
|
261
271
|
|
262
272
|
end
|
263
273
|
|
@@ -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 OrganizationServiceListOrganizationsResponse
|
18
18
|
attr_accessor :details
|
19
19
|
|
@@ -78,17 +78,19 @@ module ZitadelClient
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# Initializes the object
|
81
|
-
# @param [Hash] attributes
|
81
|
+
# @param [Hash] attributes Models attributes in the form of hash
|
82
82
|
def initialize(attributes = {})
|
83
83
|
if (!attributes.is_a?(Hash))
|
84
|
-
|
84
|
+
# MODIFIED: Updated class name in error message
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZitadelClient::Models::OrganizationServiceListOrganizationsResponse` initialize method"
|
85
86
|
end
|
86
87
|
|
87
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
88
89
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
89
90
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
90
91
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
91
|
-
|
92
|
+
# MODIFIED: Updated class name in error message
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZitadelClient::Models::OrganizationServiceListOrganizationsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
92
94
|
end
|
93
95
|
h[k.to_sym] = v
|
94
96
|
}
|
@@ -147,117 +149,125 @@ module ZitadelClient
|
|
147
149
|
[details, sorting_column, result].hash
|
148
150
|
end
|
149
151
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
end
|
166
|
-
elsif !attributes[attribute_map[key]].nil?
|
167
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
168
|
-
end
|
152
|
+
# Builds the object from hash
|
153
|
+
# @param [Hash] attributes Models attributes in the form of hash
|
154
|
+
# @return [Object] Returns the model itself
|
155
|
+
def self.build_from_hash(attributes)
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
157
|
+
attributes = attributes.transform_keys(&:to_sym)
|
158
|
+
transformed_hash = {}
|
159
|
+
openapi_types.each_pair do |key, type|
|
160
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
161
|
+
transformed_hash["#{key}"] = nil
|
162
|
+
elsif type =~ /\AArray<(.*)>/i
|
163
|
+
# check to ensure the input is an array given that the attribute
|
164
|
+
# is documented as an array but the input is not
|
165
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
166
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
169
167
|
end
|
170
|
-
|
168
|
+
elsif !attributes[attribute_map[key]].nil?
|
169
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
171
170
|
end
|
171
|
+
end
|
172
|
+
new(transformed_hash) # `new` will call the initialize method of the specific model class.
|
173
|
+
end
|
172
174
|
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
end
|
208
|
-
end
|
209
|
-
else # model
|
210
|
-
# models (e.g. Pet) or oneOf
|
211
|
-
klass = ZitadelClient.const_get(type)
|
212
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
|
+
# Deserializes the data based on type
|
176
|
+
# @param string type Data type
|
177
|
+
# @param string value Value to be deserialized
|
178
|
+
# @return [Object] Deserialized data
|
179
|
+
def self._deserialize(type, value)
|
180
|
+
case type.to_sym
|
181
|
+
when :Time
|
182
|
+
Time.parse(value)
|
183
|
+
when :Date
|
184
|
+
Date.parse(value)
|
185
|
+
when :String
|
186
|
+
value.to_s
|
187
|
+
when :Integer
|
188
|
+
value.to_i
|
189
|
+
when :Float
|
190
|
+
value.to_f
|
191
|
+
when :Boolean
|
192
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
193
|
+
true
|
194
|
+
else
|
195
|
+
false
|
196
|
+
end
|
197
|
+
when :Object
|
198
|
+
# generic object (usually a Hash), return directly
|
199
|
+
value
|
200
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
201
|
+
inner_type = Regexp.last_match[:inner_type]
|
202
|
+
value.map { |v| _deserialize(inner_type, v) }
|
203
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
204
|
+
k_type = Regexp.last_match[:k_type]
|
205
|
+
v_type = Regexp.last_match[:v_type]
|
206
|
+
{}.tap do |hash|
|
207
|
+
value.each do |k, v|
|
208
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
213
209
|
end
|
214
210
|
end
|
215
|
-
|
216
|
-
#
|
217
|
-
#
|
218
|
-
|
219
|
-
|
211
|
+
else # model
|
212
|
+
# models (e.g. Pet) or oneOf/anyOf constructs that resolve to a model name
|
213
|
+
# MODIFIED: Ensure model is looked up in the Models namespace
|
214
|
+
# 'type' here is expected to be the simple class name (e.g., "User", "OrderDetails")
|
215
|
+
klass = ZitadelClient::Models.const_get(type)
|
216
|
+
# The `klass.build` method is for oneOf/anyOf types (defined in partial_oneof_module.mustache / partial_anyof_module.mustache)
|
217
|
+
# The `klass.build_from_hash` is for regular model types (defined in this base_object.mustache itself)
|
218
|
+
if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_allOf)
|
219
|
+
klass.build(value) # For oneOf/anyOf/allOf, delegate to their specific build method
|
220
|
+
else
|
221
|
+
klass.build_from_hash(value) # For regular models
|
220
222
|
end
|
223
|
+
end
|
224
|
+
end
|
221
225
|
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
226
|
+
# Returns the string representation of the object
|
227
|
+
# @return [String] String presentation of the object
|
228
|
+
def to_s
|
229
|
+
to_hash.to_s
|
230
|
+
end
|
227
231
|
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
value = self.send(attr)
|
234
|
-
if value.nil?
|
235
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
236
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
237
|
-
end
|
232
|
+
# to_body is an alias to to_hash (backward compatibility)
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
234
|
+
def to_body
|
235
|
+
to_hash
|
236
|
+
end
|
238
237
|
|
239
|
-
|
240
|
-
|
241
|
-
|
238
|
+
# Returns the object in the form of hash
|
239
|
+
# @return [Hash] Returns the object in the form of hash
|
240
|
+
def to_hash
|
241
|
+
hash = {} # Calls super.to_hash if parent exists
|
242
|
+
self.class.attribute_map.each_pair do |attr, param|
|
243
|
+
value = self.send(attr)
|
244
|
+
if value.nil?
|
245
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
246
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
247
|
end
|
243
248
|
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
end
|
249
|
+
hash[param] = _to_hash(value)
|
250
|
+
end
|
251
|
+
hash
|
252
|
+
end
|
253
|
+
|
254
|
+
# Outputs non-array value in the form of hash
|
255
|
+
# For object, use to_hash. Otherwise, just return the value
|
256
|
+
# @param [Object] value Any valid value
|
257
|
+
# @return [Hash] Returns the value in the form of hash
|
258
|
+
def _to_hash(value)
|
259
|
+
if value.is_a?(Array)
|
260
|
+
value.compact.map { |v| _to_hash(v) }
|
261
|
+
elsif value.is_a?(Hash)
|
262
|
+
{}.tap do |hash|
|
263
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
260
264
|
end
|
265
|
+
elsif value.respond_to? :to_hash
|
266
|
+
value.to_hash
|
267
|
+
else
|
268
|
+
value
|
269
|
+
end
|
270
|
+
end
|
261
271
|
|
262
272
|
end
|
263
273
|
|