Sha256: 3a5a2299777a5e127ebb594258ec1649097298513ac412a6d53c02feb7b9103b
Contents?: true
Size: 1.83 KB
Versions: 7
Compression:
Stored size: 1.83 KB
Contents
# OryKratosClient::SubmitSelfServiceSettingsFlowBody ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceSettingsFlowBody.openapi_one_of # => # [ # :'SubmitSelfServiceSettingsFlowWithOidcMethodBody', # :'SubmitSelfServiceSettingsFlowWithPasswordMethodBody', # :'SubmitSelfServiceSettingsFlowWithProfileMethodBody' # ] ``` ### `openapi_discriminator_name` Returns the discriminator's property name. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceSettingsFlowBody.openapi_discriminator_name # => :'method' ``` ### `openapi_discriminator_name` Returns the discriminator's mapping. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceSettingsFlowBody.openapi_discriminator_mapping # => # { # :'oidc' => :'SubmitSelfServiceSettingsFlowWithOidcMethodBody', # :'password' => :'SubmitSelfServiceSettingsFlowWithPasswordMethodBody', # :'profile' => :'SubmitSelfServiceSettingsFlowWithProfileMethodBody' # } ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceSettingsFlowBody.build(data) # => #<SubmitSelfServiceSettingsFlowWithOidcMethodBody:0x00007fdd4aab02a0> OryKratosClient::SubmitSelfServiceSettingsFlowBody.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `SubmitSelfServiceSettingsFlowWithOidcMethodBody` - `SubmitSelfServiceSettingsFlowWithPasswordMethodBody` - `SubmitSelfServiceSettingsFlowWithProfileMethodBody` - `nil` (if no type matches)
Version data entries
7 entries across 7 versions & 1 rubygems