Sha256: 34c25cd2f3dea7c998623535e3919a023510e418c960a0db4770e516b2300cf0

Contents?: true

Size: 1.96 KB

Versions: 1

Compression:

Stored size: 1.96 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
# =>
# [
#   :'UpdateLoginFlowWithCodeMethod',
#   :'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
# =>
# {
#   :'code' => :'UpdateLoginFlowWithCodeMethod',
#   :'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)
# => #<UpdateLoginFlowWithCodeMethod: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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ory-kratos-client-1.1.0 docs/UpdateLoginFlowBody.md