Sha256: 9b9a8383a79c4686e76586db049c10e7364a195fdbdb856f83699ada69a54527

Contents?: true

Size: 1.96 KB

Versions: 84

Compression:

Stored size: 1.96 KB

Contents

# OryClient::UpdateSettingsFlowBody

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'ory-client'

OryClient::UpdateSettingsFlowBody.openapi_one_of
# =>
# [
#   :'UpdateSettingsFlowWithLookupMethod',
#   :'UpdateSettingsFlowWithOidcMethod',
#   :'UpdateSettingsFlowWithPasswordMethod',
#   :'UpdateSettingsFlowWithProfileMethod',
#   :'UpdateSettingsFlowWithTotpMethod',
#   :'UpdateSettingsFlowWithWebAuthnMethod'
# ]
```

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

```ruby
require 'ory-client'

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

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

```ruby
require 'ory-client'

OryClient::UpdateSettingsFlowBody.openapi_discriminator_mapping
# =>
# {
#   :'lookup_secret' => :'UpdateSettingsFlowWithLookupMethod',
#   :'oidc' => :'UpdateSettingsFlowWithOidcMethod',
#   :'password' => :'UpdateSettingsFlowWithPasswordMethod',
#   :'profile' => :'UpdateSettingsFlowWithProfileMethod',
#   :'totp' => :'UpdateSettingsFlowWithTotpMethod',
#   :'webauthn' => :'UpdateSettingsFlowWithWebAuthnMethod'
# }

### build

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

#### Example

```ruby
require 'ory-client'

OryClient::UpdateSettingsFlowBody.build(data)
# => #<UpdateSettingsFlowWithLookupMethod:0x00007fdd4aab02a0>

OryClient::UpdateSettingsFlowBody.build(data_that_doesnt_match)
# => nil
```

#### Parameters

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

#### Return type

- `UpdateSettingsFlowWithLookupMethod`
- `UpdateSettingsFlowWithOidcMethod`
- `UpdateSettingsFlowWithPasswordMethod`
- `UpdateSettingsFlowWithProfileMethod`
- `UpdateSettingsFlowWithTotpMethod`
- `UpdateSettingsFlowWithWebAuthnMethod`
- `nil` (if no type matches)

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
ory-client-1.1.22 docs/UpdateSettingsFlowBody.md
ory-client-1.1.21 docs/UpdateSettingsFlowBody.md
ory-client-1.1.20 docs/UpdateSettingsFlowBody.md
ory-client-1.1.19 docs/UpdateSettingsFlowBody.md
ory-client-1.1.18 docs/UpdateSettingsFlowBody.md
ory-client-1.1.17 docs/UpdateSettingsFlowBody.md
ory-client-1.1.16 docs/UpdateSettingsFlowBody.md
ory-client-1.1.15 docs/UpdateSettingsFlowBody.md
ory-client-1.1.14 docs/UpdateSettingsFlowBody.md
ory-client-1.1.13 docs/UpdateSettingsFlowBody.md
ory-client-1.1.12 docs/UpdateSettingsFlowBody.md
ory-client-1.1.11 docs/UpdateSettingsFlowBody.md
ory-client-1.1.10 docs/UpdateSettingsFlowBody.md
ory-client-1.1.7 docs/UpdateSettingsFlowBody.md
ory-client-1.1.5 docs/UpdateSettingsFlowBody.md
ory-client-1.1.4 docs/UpdateSettingsFlowBody.md
ory-client-1.1.3 docs/UpdateSettingsFlowBody.md
ory-client-1.1.2 docs/UpdateSettingsFlowBody.md
ory-client-1.1.1 docs/UpdateSettingsFlowBody.md
ory-client-1.1.0 docs/UpdateSettingsFlowBody.md