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