Sha256: a8d06d1d94d087519a3d10282be262f78a924fdeaa7a22d43882b1bbcaffb828

Contents?: true

Size: 1.85 KB

Versions: 4

Compression:

Stored size: 1.85 KB

Contents

# OryKratosClient::UpdateLoginFlowBody

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'ory-kratos-client'

OryKratosClient::UpdateLoginFlowBody.openapi_one_of
# =>
# [
#   :'UpdateLoginFlowWithLookupSecretMethod',
#   :'UpdateLoginFlowWithOidcMethod',
#   :'UpdateLoginFlowWithPasswordMethod',
#   :'UpdateLoginFlowWithTotpMethod',
#   :'UpdateLoginFlowWithWebAuthnMethod'
# ]
```

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

```ruby
require 'ory-kratos-client'

OryKratosClient::UpdateLoginFlowBody.openapi_discriminator_name
# => :'method'
```

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

```ruby
require 'ory-kratos-client'

OryKratosClient::UpdateLoginFlowBody.openapi_discriminator_mapping
# =>
# {
#   :'lookup_secret' => :'UpdateLoginFlowWithLookupSecretMethod',
#   :'oidc' => :'UpdateLoginFlowWithOidcMethod',
#   :'password' => :'UpdateLoginFlowWithPasswordMethod',
#   :'totp' => :'UpdateLoginFlowWithTotpMethod',
#   :'webauthn' => :'UpdateLoginFlowWithWebAuthnMethod'
# }

### build

Find the appropriate object from the `openapi_one_of` list and casts the data into it.

#### Example

```ruby
require 'ory-kratos-client'

OryKratosClient::UpdateLoginFlowBody.build(data)
# => #<UpdateLoginFlowWithLookupSecretMethod:0x00007fdd4aab02a0>

OryKratosClient::UpdateLoginFlowBody.build(data_that_doesnt_match)
# => nil
```

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| **data** | **Mixed** | data to be matched against the list of oneOf items |

#### Return type

- `UpdateLoginFlowWithLookupSecretMethod`
- `UpdateLoginFlowWithOidcMethod`
- `UpdateLoginFlowWithPasswordMethod`
- `UpdateLoginFlowWithTotpMethod`
- `UpdateLoginFlowWithWebAuthnMethod`
- `nil` (if no type matches)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ory-kratos-client-1.0.0 docs/UpdateLoginFlowBody.md
ory-kratos-client-0.13.1 docs/UpdateLoginFlowBody.md
ory-kratos-client-0.11.1 docs/UpdateLoginFlowBody.md
ory-kratos-client-0.11.0 docs/UpdateLoginFlowBody.md