ory-kratos-client 0.7.6.alpha7 → 0.8.0.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +57 -40
- data/docs/AdminCreateIdentityBody.md +2 -0
- data/docs/AuthenticatorAssuranceLevel.md +15 -0
- data/docs/ErrorAuthenticatorAssuranceLevelNotSatisfied.md +34 -0
- data/docs/GenericError.md +2 -0
- data/docs/IdentityCredentials.md +1 -1
- data/docs/IdentityCredentialsType.md +15 -0
- data/docs/IdentitySchema.md +20 -0
- data/docs/MetadataApi.md +0 -61
- data/docs/NeedsPrivilegedSessionError.md +34 -0
- data/docs/SelfServiceBrowserLocationChangeRequiredError.md +34 -0
- data/docs/SelfServiceFlowExpiredError.md +36 -0
- data/docs/SelfServiceLoginFlow.md +7 -3
- data/docs/SelfServiceLogoutUrl.md +3 -1
- data/docs/SelfServiceRecoveryFlow.md +2 -0
- data/docs/SelfServiceRegistrationFlow.md +3 -1
- data/docs/SelfServiceSettingsFlow.md +2 -0
- data/docs/SelfServiceVerificationFlow.md +2 -0
- data/docs/Session.md +7 -3
- data/docs/SessionAuthenticationMethod.md +20 -0
- data/docs/SessionDevice.md +18 -0
- data/docs/SubmitSelfServiceLoginFlowBody.md +5 -2
- data/docs/SubmitSelfServiceLoginFlowWithLookupSecretMethodBody.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +3 -1
- data/docs/SubmitSelfServiceLoginFlowWithTotpMethodBody.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithWebAuthnMethodBody.md +22 -0
- data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +3 -1
- data/docs/SubmitSelfServiceSettingsFlowBody.md +5 -2
- data/docs/SubmitSelfServiceSettingsFlowWithLookupMethodBody.md +28 -0
- data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +2 -0
- data/docs/SubmitSelfServiceSettingsFlowWithTotpMethodBody.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody.md +26 -0
- data/docs/UiNode.md +1 -1
- data/docs/UiNodeAnchorAttributes.md +4 -0
- data/docs/UiNodeAttributes.md +34 -0
- data/docs/UiNodeImageAttributes.md +9 -1
- data/docs/UiNodeInputAttributes.md +4 -0
- data/docs/{Meta.md → UiNodeMeta.md} +2 -2
- data/docs/UiNodeScriptAttributes.md +32 -0
- data/docs/UiNodeTextAttributes.md +4 -0
- data/docs/{V0alpha1Api.md → V0alpha2Api.md} +405 -172
- data/lib/ory-kratos-client/api/metadata_api.rb +1 -56
- data/lib/ory-kratos-client/api/{v0alpha1_api.rb → v0alpha2_api.rb} +372 -149
- data/lib/ory-kratos-client/api_client.rb +1 -1
- data/lib/ory-kratos-client/api_error.rb +1 -1
- data/lib/ory-kratos-client/configuration.rb +1 -1
- data/lib/ory-kratos-client/models/admin_create_identity_body.rb +11 -2
- data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
- data/lib/ory-kratos-client/models/admin_update_identity_body.rb +1 -1
- data/lib/ory-kratos-client/models/authenticator_assurance_level.rb +39 -0
- data/lib/ory-kratos-client/models/error_authenticator_assurance_level_not_satisfied.rb +305 -0
- data/lib/ory-kratos-client/models/generic_error.rb +12 -2
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-kratos-client/models/health_status.rb +1 -1
- data/lib/ory-kratos-client/models/identity.rb +1 -1
- data/lib/ory-kratos-client/models/identity_credentials.rb +2 -3
- data/lib/ory-kratos-client/models/identity_credentials_type.rb +38 -0
- data/lib/ory-kratos-client/models/{successful_self_service_settings_without_browser.rb → identity_schema.rb} +19 -28
- data/lib/ory-kratos-client/models/identity_state.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
- data/lib/ory-kratos-client/models/json_error.rb +1 -1
- data/lib/ory-kratos-client/models/needs_privileged_session_error.rb +311 -0
- data/lib/ory-kratos-client/models/recovery_address.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_browser_location_change_required_error.rb +306 -0
- data/lib/ory-kratos-client/models/self_service_error.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_flow_expired_error.rb +316 -0
- data/lib/ory-kratos-client/models/self_service_login_flow.rb +32 -14
- data/lib/ory-kratos-client/models/self_service_logout_url.rb +18 -3
- data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +12 -2
- data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_recovery_link.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_registration_flow.rb +13 -4
- data/lib/ory-kratos-client/models/self_service_settings_flow.rb +12 -2
- data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_verification_flow.rb +12 -2
- data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-kratos-client/models/session.rb +26 -5
- data/lib/ory-kratos-client/models/session_authentication_method.rb +263 -0
- data/lib/ory-kratos-client/models/session_device.rb +219 -0
- data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_body.rb +5 -3
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +249 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +16 -6
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_totp_method_body.rb +249 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +244 -0
- data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +16 -6
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_body.rb +5 -3
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +274 -0
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +12 -2
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +254 -0
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +264 -0
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +1 -1
- data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +1 -1
- data/lib/ory-kratos-client/models/ui_container.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node.rb +2 -2
- data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +31 -2
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +23 -69
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +54 -5
- data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +26 -2
- data/lib/ory-kratos-client/models/{meta.rb → ui_node_meta.rb} +4 -4
- data/lib/ory-kratos-client/models/ui_node_script_attributes.rb +328 -0
- data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +31 -2
- data/lib/ory-kratos-client/models/ui_text.rb +1 -1
- data/lib/ory-kratos-client/models/verifiable_identity_address.rb +1 -1
- data/lib/ory-kratos-client/models/version.rb +1 -1
- data/lib/ory-kratos-client/version.rb +2 -2
- data/lib/ory-kratos-client.rb +19 -4
- data/ory-kratos-client.gemspec +1 -1
- data/spec/api/metadata_api_spec.rb +1 -12
- data/spec/api/{v0alpha1_api_spec.rb → v0alpha2_api_spec.rb} +67 -22
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/admin_create_identity_body_spec.rb +7 -1
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
- data/spec/models/admin_update_identity_body_spec.rb +1 -1
- data/spec/models/authenticator_assurance_level_spec.rb +28 -0
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +82 -0
- data/spec/models/generic_error_spec.rb +7 -1
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/identity_credentials_spec.rb +1 -1
- data/spec/models/identity_credentials_type_spec.rb +28 -0
- data/spec/models/{successful_self_service_settings_without_browser_spec.rb → identity_schema_spec.rb} +9 -9
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/inline_response503_spec.rb +1 -1
- data/spec/models/json_error_spec.rb +1 -1
- data/spec/models/needs_privileged_session_error_spec.rb +82 -0
- data/spec/models/recovery_address_spec.rb +1 -1
- data/spec/models/self_service_browser_location_change_required_error_spec.rb +82 -0
- data/spec/models/self_service_error_spec.rb +1 -1
- data/spec/models/self_service_flow_expired_error_spec.rb +88 -0
- data/spec/models/self_service_login_flow_spec.rb +16 -4
- data/spec/models/self_service_logout_url_spec.rb +7 -1
- data/spec/models/self_service_recovery_flow_spec.rb +7 -1
- data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
- data/spec/models/self_service_recovery_link_spec.rb +1 -1
- data/spec/models/self_service_registration_flow_spec.rb +7 -1
- data/spec/models/self_service_settings_flow_spec.rb +7 -1
- data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_spec.rb +7 -1
- data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
- data/spec/models/session_authentication_method_spec.rb +44 -0
- data/spec/models/session_device_spec.rb +34 -0
- data/spec/models/session_spec.rb +13 -1
- data/spec/models/settings_profile_form_config_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +7 -1
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +7 -1
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +64 -0
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +7 -1
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +52 -0
- data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +58 -0
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
- data/spec/models/ui_container_spec.rb +1 -1
- data/spec/models/ui_node_anchor_attributes_spec.rb +13 -1
- data/spec/models/ui_node_attributes_spec.rb +13 -1
- data/spec/models/ui_node_image_attributes_spec.rb +25 -1
- data/spec/models/ui_node_input_attributes_spec.rb +13 -1
- data/spec/models/{meta_spec.rb → ui_node_meta_spec.rb} +7 -7
- data/spec/models/ui_node_script_attributes_spec.rb +76 -0
- data/spec/models/ui_node_spec.rb +1 -1
- data/spec/models/ui_node_text_attributes_spec.rb +13 -1
- data/spec/models/ui_text_spec.rb +1 -1
- data/spec/models/verifiable_identity_address_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/cache/ethon-0.15.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.2.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.1 → psych-4.0.2}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.1 → psych-4.0.2}/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.1 → psych-4.0.2}/mkmf.log +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.1 → psych-4.0.2}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/.github/workflows/ruby.yml +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/.rspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/CHANGELOG.md +5 -1
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/Guardfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/ethon.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curl.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/classes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/codes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/constants.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/form_options.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/functions.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/infos.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/messages.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/options.rb +33 -2
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/settings.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/callbacks.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/debug_info.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/features.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/form.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/header.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/actionable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/custom.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/delete.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/get.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/head.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/options.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/patch.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/post.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/postable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/put.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/putable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/informations.rb +19 -1
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/mirror.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/operations.rb +1 -15
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/options.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/params.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/queryable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/response_callbacks.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/util.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/ethon_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/global_init.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/invalid_option.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/invalid_value.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_add.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_fdset.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_remove.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_timeout.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/select.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/libc.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/loggable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi/operations.rb +45 -8
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi/options.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi/stack.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/version.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/benchmarks.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/memory_leaks.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/perf_spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/support/memory_test_helpers.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/support/os_memory_leak_tracker.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/support/ruby_object_leak_tracker.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/curl_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/callbacks_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/debug_info_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/features_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/form_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/header_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/custom_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/delete_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/get_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/head_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/patch_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/post_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/put_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/informations_spec.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/mirror_spec.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/operations_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/queryable_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/response_callbacks_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/util_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/libc_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/loggable_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/multi/operations_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/multi/options_spec.rb +182 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/multi/stack_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/multi_spec.rb +152 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/support/localhost_server.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/support/server.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/Mavenfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/Rakefile +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/bin/console +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/bin/setup +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/depend +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1/lib → psych-4.0.2/ext/psych}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_emitter.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_parser.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_to_ruby.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_to_ruby.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_yaml_tree.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_yaml_tree.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/api.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/config.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/dumper.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/loader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/reader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/scanner.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/writer.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/yaml.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/yaml_private.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/class_loader.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/coder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/core_ext.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/exception.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/handler.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/handlers/document_stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/handlers/recorder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/ruby_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/yaml_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/alias.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/document.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/mapping.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/node.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/scalar.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/sequence.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/omap.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/parser.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/scalar_scanner.rb +8 -9
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/set.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/streaming.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/syntax_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/versions.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/depth_first.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/emitter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/json_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/to_ruby.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/visitor.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/yaml_tree.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/y.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1/ext/psych → psych-4.0.2/lib}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/psych.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/specifications/{ethon-0.14.0.gemspec → ethon-0.15.0.gemspec} +3 -3
- data/vendor/bundle/ruby/2.5.0/specifications/{psych-4.0.1.gemspec → psych-4.0.2.gemspec} +3 -3
- metadata +271 -211
- data/docs/SuccessfulSelfServiceSettingsWithoutBrowser.md +0 -20
- data/vendor/bundle/ruby/2.5.0/cache/ethon-0.14.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ethon-0.14.0/spec/ethon/multi/options_spec.rb +0 -69
- data/vendor/bundle/ruby/2.5.0/gems/ethon-0.14.0/spec/ethon/multi_spec.rb +0 -22
data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb
ADDED
@@ -0,0 +1,249 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory Kratos API
|
3
|
+
|
4
|
+
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.8.0-alpha.2
|
7
|
+
Contact: hi@ory.sh
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OryKratosClient
|
17
|
+
class SubmitSelfServiceLoginFlowWithLookupSecretMethodBody
|
18
|
+
# Sending the anti-csrf token is only required for browser login flows.
|
19
|
+
attr_accessor :csrf_token
|
20
|
+
|
21
|
+
# The lookup secret.
|
22
|
+
attr_accessor :lookup_secret
|
23
|
+
|
24
|
+
# Method should be set to \"lookup_secret\" when logging in using the lookup_secret strategy.
|
25
|
+
attr_accessor :method
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'csrf_token' => :'csrf_token',
|
31
|
+
:'lookup_secret' => :'lookup_secret',
|
32
|
+
:'method' => :'method'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'csrf_token' => :'String',
|
45
|
+
:'lookup_secret' => :'String',
|
46
|
+
:'method' => :'String'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# List of attributes with nullable: true
|
51
|
+
def self.openapi_nullable
|
52
|
+
Set.new([
|
53
|
+
])
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::SubmitSelfServiceLoginFlowWithLookupSecretMethodBody` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::SubmitSelfServiceLoginFlowWithLookupSecretMethodBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
|
+
end
|
68
|
+
h[k.to_sym] = v
|
69
|
+
}
|
70
|
+
|
71
|
+
if attributes.key?(:'csrf_token')
|
72
|
+
self.csrf_token = attributes[:'csrf_token']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.key?(:'lookup_secret')
|
76
|
+
self.lookup_secret = attributes[:'lookup_secret']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'method')
|
80
|
+
self.method = attributes[:'method']
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
85
|
+
# @return Array for valid properties with the reasons
|
86
|
+
def list_invalid_properties
|
87
|
+
invalid_properties = Array.new
|
88
|
+
if @lookup_secret.nil?
|
89
|
+
invalid_properties.push('invalid value for "lookup_secret", lookup_secret cannot be nil.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if @method.nil?
|
93
|
+
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
invalid_properties
|
97
|
+
end
|
98
|
+
|
99
|
+
# Check to see if the all the properties in the model are valid
|
100
|
+
# @return true if the model is valid
|
101
|
+
def valid?
|
102
|
+
return false if @lookup_secret.nil?
|
103
|
+
return false if @method.nil?
|
104
|
+
true
|
105
|
+
end
|
106
|
+
|
107
|
+
# Checks equality by comparing each attribute.
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def ==(o)
|
110
|
+
return true if self.equal?(o)
|
111
|
+
self.class == o.class &&
|
112
|
+
csrf_token == o.csrf_token &&
|
113
|
+
lookup_secret == o.lookup_secret &&
|
114
|
+
method == o.method
|
115
|
+
end
|
116
|
+
|
117
|
+
# @see the `==` method
|
118
|
+
# @param [Object] Object to be compared
|
119
|
+
def eql?(o)
|
120
|
+
self == o
|
121
|
+
end
|
122
|
+
|
123
|
+
# Calculates hash code according to all attributes.
|
124
|
+
# @return [Integer] Hash code
|
125
|
+
def hash
|
126
|
+
[csrf_token, lookup_secret, method].hash
|
127
|
+
end
|
128
|
+
|
129
|
+
# Builds the object from hash
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
+
# @return [Object] Returns the model itself
|
132
|
+
def self.build_from_hash(attributes)
|
133
|
+
new.build_from_hash(attributes)
|
134
|
+
end
|
135
|
+
|
136
|
+
# Builds the object from hash
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
# @return [Object] Returns the model itself
|
139
|
+
def build_from_hash(attributes)
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
141
|
+
self.class.openapi_types.each_pair do |key, type|
|
142
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
143
|
+
self.send("#{key}=", nil)
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
145
|
+
# check to ensure the input is an array given that the attribute
|
146
|
+
# is documented as an array but the input is not
|
147
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
148
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
149
|
+
end
|
150
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
151
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
self
|
156
|
+
end
|
157
|
+
|
158
|
+
# Deserializes the data based on type
|
159
|
+
# @param string type Data type
|
160
|
+
# @param string value Value to be deserialized
|
161
|
+
# @return [Object] Deserialized data
|
162
|
+
def _deserialize(type, value)
|
163
|
+
case type.to_sym
|
164
|
+
when :Time
|
165
|
+
Time.parse(value)
|
166
|
+
when :Date
|
167
|
+
Date.parse(value)
|
168
|
+
when :String
|
169
|
+
value.to_s
|
170
|
+
when :Integer
|
171
|
+
value.to_i
|
172
|
+
when :Float
|
173
|
+
value.to_f
|
174
|
+
when :Boolean
|
175
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
176
|
+
true
|
177
|
+
else
|
178
|
+
false
|
179
|
+
end
|
180
|
+
when :Object
|
181
|
+
# generic object (usually a Hash), return directly
|
182
|
+
value
|
183
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
184
|
+
inner_type = Regexp.last_match[:inner_type]
|
185
|
+
value.map { |v| _deserialize(inner_type, v) }
|
186
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
187
|
+
k_type = Regexp.last_match[:k_type]
|
188
|
+
v_type = Regexp.last_match[:v_type]
|
189
|
+
{}.tap do |hash|
|
190
|
+
value.each do |k, v|
|
191
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
else # model
|
195
|
+
# models (e.g. Pet) or oneOf
|
196
|
+
klass = OryKratosClient.const_get(type)
|
197
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the string representation of the object
|
202
|
+
# @return [String] String presentation of the object
|
203
|
+
def to_s
|
204
|
+
to_hash.to_s
|
205
|
+
end
|
206
|
+
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_body
|
210
|
+
to_hash
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns the object in the form of hash
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
215
|
+
def to_hash
|
216
|
+
hash = {}
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
218
|
+
value = self.send(attr)
|
219
|
+
if value.nil?
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
|
+
end
|
223
|
+
|
224
|
+
hash[param] = _to_hash(value)
|
225
|
+
end
|
226
|
+
hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Outputs non-array value in the form of hash
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
231
|
+
# @param [Object] value Any valid value
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
233
|
+
def _to_hash(value)
|
234
|
+
if value.is_a?(Array)
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
236
|
+
elsif value.is_a?(Hash)
|
237
|
+
{}.tap do |hash|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
239
|
+
end
|
240
|
+
elsif value.respond_to? :to_hash
|
241
|
+
value.to_hash
|
242
|
+
else
|
243
|
+
value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
end
|
248
|
+
|
249
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.
|
6
|
+
The version of the OpenAPI document: v0.8.0-alpha.2
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1
|
@@ -23,6 +23,9 @@ module OryKratosClient
|
|
23
23
|
attr_accessor :method
|
24
24
|
|
25
25
|
# The provider to register with
|
26
|
+
attr_accessor :provider
|
27
|
+
|
28
|
+
# The identity traits. This is a placeholder for the registration flow.
|
26
29
|
attr_accessor :traits
|
27
30
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -30,6 +33,7 @@ module OryKratosClient
|
|
30
33
|
{
|
31
34
|
:'csrf_token' => :'csrf_token',
|
32
35
|
:'method' => :'method',
|
36
|
+
:'provider' => :'provider',
|
33
37
|
:'traits' => :'traits'
|
34
38
|
}
|
35
39
|
end
|
@@ -44,7 +48,8 @@ module OryKratosClient
|
|
44
48
|
{
|
45
49
|
:'csrf_token' => :'String',
|
46
50
|
:'method' => :'String',
|
47
|
-
:'
|
51
|
+
:'provider' => :'String',
|
52
|
+
:'traits' => :'Object'
|
48
53
|
}
|
49
54
|
end
|
50
55
|
|
@@ -77,6 +82,10 @@ module OryKratosClient
|
|
77
82
|
self.method = attributes[:'method']
|
78
83
|
end
|
79
84
|
|
85
|
+
if attributes.key?(:'provider')
|
86
|
+
self.provider = attributes[:'provider']
|
87
|
+
end
|
88
|
+
|
80
89
|
if attributes.key?(:'traits')
|
81
90
|
self.traits = attributes[:'traits']
|
82
91
|
end
|
@@ -90,8 +99,8 @@ module OryKratosClient
|
|
90
99
|
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
91
100
|
end
|
92
101
|
|
93
|
-
if @
|
94
|
-
invalid_properties.push('invalid value for "
|
102
|
+
if @provider.nil?
|
103
|
+
invalid_properties.push('invalid value for "provider", provider cannot be nil.')
|
95
104
|
end
|
96
105
|
|
97
106
|
invalid_properties
|
@@ -101,7 +110,7 @@ module OryKratosClient
|
|
101
110
|
# @return true if the model is valid
|
102
111
|
def valid?
|
103
112
|
return false if @method.nil?
|
104
|
-
return false if @
|
113
|
+
return false if @provider.nil?
|
105
114
|
true
|
106
115
|
end
|
107
116
|
|
@@ -112,6 +121,7 @@ module OryKratosClient
|
|
112
121
|
self.class == o.class &&
|
113
122
|
csrf_token == o.csrf_token &&
|
114
123
|
method == o.method &&
|
124
|
+
provider == o.provider &&
|
115
125
|
traits == o.traits
|
116
126
|
end
|
117
127
|
|
@@ -124,7 +134,7 @@ module OryKratosClient
|
|
124
134
|
# Calculates hash code according to all attributes.
|
125
135
|
# @return [Integer] Hash code
|
126
136
|
def hash
|
127
|
-
[csrf_token, method, traits].hash
|
137
|
+
[csrf_token, method, provider, traits].hash
|
128
138
|
end
|
129
139
|
|
130
140
|
# Builds the object from hash
|
data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.
|
6
|
+
The version of the OpenAPI document: v0.8.0-alpha.2
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1
|
@@ -0,0 +1,249 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory Kratos API
|
3
|
+
|
4
|
+
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.8.0-alpha.2
|
7
|
+
Contact: hi@ory.sh
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OryKratosClient
|
17
|
+
class SubmitSelfServiceLoginFlowWithTotpMethodBody
|
18
|
+
# Sending the anti-csrf token is only required for browser login flows.
|
19
|
+
attr_accessor :csrf_token
|
20
|
+
|
21
|
+
# Method should be set to \"totp\" when logging in using the TOTP strategy.
|
22
|
+
attr_accessor :method
|
23
|
+
|
24
|
+
# The TOTP code.
|
25
|
+
attr_accessor :totp_code
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'csrf_token' => :'csrf_token',
|
31
|
+
:'method' => :'method',
|
32
|
+
:'totp_code' => :'totp_code'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'csrf_token' => :'String',
|
45
|
+
:'method' => :'String',
|
46
|
+
:'totp_code' => :'String'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# List of attributes with nullable: true
|
51
|
+
def self.openapi_nullable
|
52
|
+
Set.new([
|
53
|
+
])
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::SubmitSelfServiceLoginFlowWithTotpMethodBody` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::SubmitSelfServiceLoginFlowWithTotpMethodBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
|
+
end
|
68
|
+
h[k.to_sym] = v
|
69
|
+
}
|
70
|
+
|
71
|
+
if attributes.key?(:'csrf_token')
|
72
|
+
self.csrf_token = attributes[:'csrf_token']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.key?(:'method')
|
76
|
+
self.method = attributes[:'method']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'totp_code')
|
80
|
+
self.totp_code = attributes[:'totp_code']
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
85
|
+
# @return Array for valid properties with the reasons
|
86
|
+
def list_invalid_properties
|
87
|
+
invalid_properties = Array.new
|
88
|
+
if @method.nil?
|
89
|
+
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if @totp_code.nil?
|
93
|
+
invalid_properties.push('invalid value for "totp_code", totp_code cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
invalid_properties
|
97
|
+
end
|
98
|
+
|
99
|
+
# Check to see if the all the properties in the model are valid
|
100
|
+
# @return true if the model is valid
|
101
|
+
def valid?
|
102
|
+
return false if @method.nil?
|
103
|
+
return false if @totp_code.nil?
|
104
|
+
true
|
105
|
+
end
|
106
|
+
|
107
|
+
# Checks equality by comparing each attribute.
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def ==(o)
|
110
|
+
return true if self.equal?(o)
|
111
|
+
self.class == o.class &&
|
112
|
+
csrf_token == o.csrf_token &&
|
113
|
+
method == o.method &&
|
114
|
+
totp_code == o.totp_code
|
115
|
+
end
|
116
|
+
|
117
|
+
# @see the `==` method
|
118
|
+
# @param [Object] Object to be compared
|
119
|
+
def eql?(o)
|
120
|
+
self == o
|
121
|
+
end
|
122
|
+
|
123
|
+
# Calculates hash code according to all attributes.
|
124
|
+
# @return [Integer] Hash code
|
125
|
+
def hash
|
126
|
+
[csrf_token, method, totp_code].hash
|
127
|
+
end
|
128
|
+
|
129
|
+
# Builds the object from hash
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
+
# @return [Object] Returns the model itself
|
132
|
+
def self.build_from_hash(attributes)
|
133
|
+
new.build_from_hash(attributes)
|
134
|
+
end
|
135
|
+
|
136
|
+
# Builds the object from hash
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
# @return [Object] Returns the model itself
|
139
|
+
def build_from_hash(attributes)
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
141
|
+
self.class.openapi_types.each_pair do |key, type|
|
142
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
143
|
+
self.send("#{key}=", nil)
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
145
|
+
# check to ensure the input is an array given that the attribute
|
146
|
+
# is documented as an array but the input is not
|
147
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
148
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
149
|
+
end
|
150
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
151
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
self
|
156
|
+
end
|
157
|
+
|
158
|
+
# Deserializes the data based on type
|
159
|
+
# @param string type Data type
|
160
|
+
# @param string value Value to be deserialized
|
161
|
+
# @return [Object] Deserialized data
|
162
|
+
def _deserialize(type, value)
|
163
|
+
case type.to_sym
|
164
|
+
when :Time
|
165
|
+
Time.parse(value)
|
166
|
+
when :Date
|
167
|
+
Date.parse(value)
|
168
|
+
when :String
|
169
|
+
value.to_s
|
170
|
+
when :Integer
|
171
|
+
value.to_i
|
172
|
+
when :Float
|
173
|
+
value.to_f
|
174
|
+
when :Boolean
|
175
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
176
|
+
true
|
177
|
+
else
|
178
|
+
false
|
179
|
+
end
|
180
|
+
when :Object
|
181
|
+
# generic object (usually a Hash), return directly
|
182
|
+
value
|
183
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
184
|
+
inner_type = Regexp.last_match[:inner_type]
|
185
|
+
value.map { |v| _deserialize(inner_type, v) }
|
186
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
187
|
+
k_type = Regexp.last_match[:k_type]
|
188
|
+
v_type = Regexp.last_match[:v_type]
|
189
|
+
{}.tap do |hash|
|
190
|
+
value.each do |k, v|
|
191
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
else # model
|
195
|
+
# models (e.g. Pet) or oneOf
|
196
|
+
klass = OryKratosClient.const_get(type)
|
197
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the string representation of the object
|
202
|
+
# @return [String] String presentation of the object
|
203
|
+
def to_s
|
204
|
+
to_hash.to_s
|
205
|
+
end
|
206
|
+
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_body
|
210
|
+
to_hash
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns the object in the form of hash
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
215
|
+
def to_hash
|
216
|
+
hash = {}
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
218
|
+
value = self.send(attr)
|
219
|
+
if value.nil?
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
|
+
end
|
223
|
+
|
224
|
+
hash[param] = _to_hash(value)
|
225
|
+
end
|
226
|
+
hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Outputs non-array value in the form of hash
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
231
|
+
# @param [Object] value Any valid value
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
233
|
+
def _to_hash(value)
|
234
|
+
if value.is_a?(Array)
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
236
|
+
elsif value.is_a?(Hash)
|
237
|
+
{}.tap do |hash|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
239
|
+
end
|
240
|
+
elsif value.respond_to? :to_hash
|
241
|
+
value.to_hash
|
242
|
+
else
|
243
|
+
value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
end
|
248
|
+
|
249
|
+
end
|