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.6.2 docs/UpdateSettingsFlowBody.md
ory-client-1.6.1 docs/UpdateSettingsFlowBody.md
ory-client-1.5.2 docs/UpdateSettingsFlowBody.md
ory-client-1.5.1 docs/UpdateSettingsFlowBody.md
ory-client-1.5.0 docs/UpdateSettingsFlowBody.md
ory-client-1.4.9 docs/UpdateSettingsFlowBody.md
ory-client-1.4.8 docs/UpdateSettingsFlowBody.md
ory-client-1.4.7 docs/UpdateSettingsFlowBody.md
ory-client-1.4.6 docs/UpdateSettingsFlowBody.md
ory-client-1.4.5 docs/UpdateSettingsFlowBody.md
ory-client-1.4.4 docs/UpdateSettingsFlowBody.md
ory-client-1.4.3 docs/UpdateSettingsFlowBody.md
ory-client-1.4.2 docs/UpdateSettingsFlowBody.md
ory-client-1.4.1 docs/UpdateSettingsFlowBody.md
ory-client-1.4.0 docs/UpdateSettingsFlowBody.md
ory-client-1.3.0 docs/UpdateSettingsFlowBody.md
ory-client-1.2.17 docs/UpdateSettingsFlowBody.md
ory-client-1.2.16 docs/UpdateSettingsFlowBody.md
ory-client-1.2.15 docs/UpdateSettingsFlowBody.md
ory-client-1.2.14 docs/UpdateSettingsFlowBody.md