Module: OryKratosClient::UpdateLoginFlowBody
- Defined in:
- lib/ory-kratos-client/models/update_login_flow_body.rb
Class Method Summary collapse
-
.build(data) ⇒ Object
Builds the object.
-
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3).
-
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3).
-
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3).
Class Method Details
.build(data) ⇒ Object
Builds the object
53 54 55 56 57 58 59 60 61 |
# File 'lib/ory-kratos-client/models/update_login_flow_body.rb', line 53 def build(data) discriminator_value = data[openapi_discriminator_name] return nil if discriminator_value.nil? klass = openapi_discriminator_mapping[discriminator_value.to_s.to_sym] return nil unless klass OryKratosClient.const_get(klass).build_from_hash(data) end |
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3)
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/ory-kratos-client/models/update_login_flow_body.rb', line 38 def openapi_discriminator_mapping { :'code' => :'UpdateLoginFlowWithCodeMethod', :'lookup_secret' => :'UpdateLoginFlowWithLookupSecretMethod', :'oidc' => :'UpdateLoginFlowWithOidcMethod', :'passkey' => :'UpdateLoginFlowWithPasskeyMethod', :'password' => :'UpdateLoginFlowWithPasswordMethod', :'totp' => :'UpdateLoginFlowWithTotpMethod', :'webauthn' => :'UpdateLoginFlowWithWebAuthnMethod' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
33 34 35 |
# File 'lib/ory-kratos-client/models/update_login_flow_body.rb', line 33 def openapi_discriminator_name :'method' end |
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3)
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ory-kratos-client/models/update_login_flow_body.rb', line 20 def openapi_one_of [ :'UpdateLoginFlowWithCodeMethod', :'UpdateLoginFlowWithLookupSecretMethod', :'UpdateLoginFlowWithOidcMethod', :'UpdateLoginFlowWithPasskeyMethod', :'UpdateLoginFlowWithPasswordMethod', :'UpdateLoginFlowWithTotpMethod', :'UpdateLoginFlowWithWebAuthnMethod' ] end |