Sha256: a66c0619a154ce53ad9879d44d6ed1e478250e913430c52dcbb34d0095ab5648

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 KB

Contents

# OryKratosClient::SubmitSelfServiceRegistrationFlowBody

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

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

OryKratosClient::SubmitSelfServiceRegistrationFlowBody.openapi_one_of
# =>
# [
#   :'SubmitSelfServiceRegistrationFlowWithOidcMethodBody',
#   :'SubmitSelfServiceRegistrationFlowWithPasswordMethodBody',
#   :'SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody'
# ]
```

### `openapi_discriminator_name`

Returns the discriminator's property name.

#### Example

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

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

### `openapi_discriminator_name`

Returns the discriminator's mapping.

#### Example

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

OryKratosClient::SubmitSelfServiceRegistrationFlowBody.openapi_discriminator_mapping
# =>
# {
#   :'oidc' => :'SubmitSelfServiceRegistrationFlowWithOidcMethodBody',
#   :'password' => :'SubmitSelfServiceRegistrationFlowWithPasswordMethodBody',
#   :'webauthn' => :'SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody'
# }

### build

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

#### Example

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

OryKratosClient::SubmitSelfServiceRegistrationFlowBody.build(data)
# => #<SubmitSelfServiceRegistrationFlowWithOidcMethodBody:0x00007fdd4aab02a0>

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

#### Parameters

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

#### Return type

- `SubmitSelfServiceRegistrationFlowWithOidcMethodBody`
- `SubmitSelfServiceRegistrationFlowWithPasswordMethodBody`
- `SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody`
- `nil` (if no type matches)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ory-kratos-client-0.10.1 docs/SubmitSelfServiceRegistrationFlowBody.md
ory-kratos-client-0.9.0.alpha3 docs/SubmitSelfServiceRegistrationFlowBody.md
ory-kratos-client-0.9.0.alpha2 docs/SubmitSelfServiceRegistrationFlowBody.md