Module: OryKratosClient::UpdateSettingsFlowBody

Defined in:
lib/ory-kratos-client/models/update_settings_flow_body.rb

Overview

Update Settings Flow Request Body

Class Method Summary collapse

Class Method Details

.build(data) ⇒ Object

Builds the object

Parameters:

  • Data (Mixed)

    to be matched against the list of oneOf items

Returns:

  • (Object)

    Returns the model or the data itself



54
55
56
57
58
59
60
61
62
# File 'lib/ory-kratos-client/models/update_settings_flow_body.rb', line 54

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_mappingObject

Discriminator’s mapping (OpenAPI v3)



39
40
41
42
43
44
45
46
47
48
49
# File 'lib/ory-kratos-client/models/update_settings_flow_body.rb', line 39

def openapi_discriminator_mapping
  {
    :'lookup_secret' => :'UpdateSettingsFlowWithLookupMethod',
    :'oidc' => :'UpdateSettingsFlowWithOidcMethod',
    :'passkey' => :'UpdateSettingsFlowWithPasskeyMethod',
    :'password' => :'UpdateSettingsFlowWithPasswordMethod',
    :'profile' => :'UpdateSettingsFlowWithProfileMethod',
    :'totp' => :'UpdateSettingsFlowWithTotpMethod',
    :'webauthn' => :'UpdateSettingsFlowWithWebAuthnMethod'
  }
end

.openapi_discriminator_nameObject

Discriminator’s property name (OpenAPI v3)



34
35
36
# File 'lib/ory-kratos-client/models/update_settings_flow_body.rb', line 34

def openapi_discriminator_name
  :'method'
end

.openapi_one_ofObject

List of class defined in oneOf (OpenAPI v3)



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/ory-kratos-client/models/update_settings_flow_body.rb', line 21

def openapi_one_of
  [
    :'UpdateSettingsFlowWithLookupMethod',
    :'UpdateSettingsFlowWithOidcMethod',
    :'UpdateSettingsFlowWithPasskeyMethod',
    :'UpdateSettingsFlowWithPasswordMethod',
    :'UpdateSettingsFlowWithProfileMethod',
    :'UpdateSettingsFlowWithTotpMethod',
    :'UpdateSettingsFlowWithWebAuthnMethod'
  ]
end