Sha256: 975b45e5345b742825fd84069d42bd920cfbe8e8dedaccff1822f9918ebe9a4d

Contents?: true

Size: 1.9 KB

Versions: 32

Compression:

Stored size: 1.9 KB

Contents

# OryClient::UpdateLoginFlowBody

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'ory-client'

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

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

```ruby
require 'ory-client'

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

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

```ruby
require 'ory-client'

OryClient::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-client'

OryClient::UpdateLoginFlowBody.build(data)
# => #<UpdateLoginFlowWithCodeMethod:0x00007fdd4aab02a0>

OryClient::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

32 entries across 32 versions & 1 rubygems

Version Path
ory-client-1.6.2 docs/UpdateLoginFlowBody.md
ory-client-1.6.1 docs/UpdateLoginFlowBody.md
ory-client-1.5.2 docs/UpdateLoginFlowBody.md
ory-client-1.5.1 docs/UpdateLoginFlowBody.md
ory-client-1.5.0 docs/UpdateLoginFlowBody.md
ory-client-1.4.9 docs/UpdateLoginFlowBody.md
ory-client-1.4.8 docs/UpdateLoginFlowBody.md
ory-client-1.4.7 docs/UpdateLoginFlowBody.md
ory-client-1.4.6 docs/UpdateLoginFlowBody.md
ory-client-1.4.5 docs/UpdateLoginFlowBody.md
ory-client-1.4.4 docs/UpdateLoginFlowBody.md
ory-client-1.4.3 docs/UpdateLoginFlowBody.md
ory-client-1.4.2 docs/UpdateLoginFlowBody.md
ory-client-1.4.1 docs/UpdateLoginFlowBody.md
ory-client-1.4.0 docs/UpdateLoginFlowBody.md
ory-client-1.3.0 docs/UpdateLoginFlowBody.md
ory-client-1.2.17 docs/UpdateLoginFlowBody.md
ory-client-1.2.16 docs/UpdateLoginFlowBody.md
ory-client-1.2.15 docs/UpdateLoginFlowBody.md
ory-client-1.2.14 docs/UpdateLoginFlowBody.md