Sha256: ccd7163c2b1a054a56395023722423751c8402edab81d7aeb6544d8276c388f4
Contents?: true
Size: 1.77 KB
Versions: 2
Compression:
Stored size: 1.77 KB
Contents
# OryKratosClient::SubmitSelfServiceLoginFlowBody ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceLoginFlowBody.openapi_one_of # => # [ # :'SubmitSelfServiceLoginFlowWithOidcMethodBody', # :'SubmitSelfServiceLoginFlowWithPasswordMethodBody', # :'SubmitSelfServiceLoginFlowWithTotpMethodBody' # ] ``` ### `openapi_discriminator_name` Returns the discriminator's property name. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceLoginFlowBody.openapi_discriminator_name # => :'method' ``` ### `openapi_discriminator_name` Returns the discriminator's mapping. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceLoginFlowBody.openapi_discriminator_mapping # => # { # :'oidc' => :'SubmitSelfServiceLoginFlowWithOidcMethodBody', # :'password' => :'SubmitSelfServiceLoginFlowWithPasswordMethodBody', # :'totp' => :'SubmitSelfServiceLoginFlowWithTotpMethodBody' # } ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'ory-kratos-client' OryKratosClient::SubmitSelfServiceLoginFlowBody.build(data) # => #<SubmitSelfServiceLoginFlowWithOidcMethodBody:0x00007fdd4aab02a0> OryKratosClient::SubmitSelfServiceLoginFlowBody.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `SubmitSelfServiceLoginFlowWithOidcMethodBody` - `SubmitSelfServiceLoginFlowWithPasswordMethodBody` - `SubmitSelfServiceLoginFlowWithTotpMethodBody` - `nil` (if no type matches)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ory-kratos-client-0.8.2.alpha1 | docs/SubmitSelfServiceLoginFlowBody.md |
ory-kratos-client-0.8.0.alpha2 | docs/SubmitSelfServiceLoginFlowBody.md |