Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
266 lines
8.1 KiB
Go
266 lines
8.1 KiB
Go
/*
|
|
Ory Identities API
|
|
|
|
This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more.
|
|
|
|
API version:
|
|
Contact: office@ory.sh
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package client
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the IdentityCredentialsWebAuthnFlags type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &IdentityCredentialsWebAuthnFlags{}
|
|
|
|
// IdentityCredentialsWebAuthnFlags struct for IdentityCredentialsWebAuthnFlags
|
|
type IdentityCredentialsWebAuthnFlags struct {
|
|
BackupEligible *bool `json:"backup_eligible,omitempty"`
|
|
BackupState *bool `json:"backup_state,omitempty"`
|
|
UserPresent *bool `json:"user_present,omitempty"`
|
|
UserVerified *bool `json:"user_verified,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _IdentityCredentialsWebAuthnFlags IdentityCredentialsWebAuthnFlags
|
|
|
|
// NewIdentityCredentialsWebAuthnFlags instantiates a new IdentityCredentialsWebAuthnFlags object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewIdentityCredentialsWebAuthnFlags() *IdentityCredentialsWebAuthnFlags {
|
|
this := IdentityCredentialsWebAuthnFlags{}
|
|
return &this
|
|
}
|
|
|
|
// NewIdentityCredentialsWebAuthnFlagsWithDefaults instantiates a new IdentityCredentialsWebAuthnFlags object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewIdentityCredentialsWebAuthnFlagsWithDefaults() *IdentityCredentialsWebAuthnFlags {
|
|
this := IdentityCredentialsWebAuthnFlags{}
|
|
return &this
|
|
}
|
|
|
|
// GetBackupEligible returns the BackupEligible field value if set, zero value otherwise.
|
|
func (o *IdentityCredentialsWebAuthnFlags) GetBackupEligible() bool {
|
|
if o == nil || IsNil(o.BackupEligible) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.BackupEligible
|
|
}
|
|
|
|
// GetBackupEligibleOk returns a tuple with the BackupEligible field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IdentityCredentialsWebAuthnFlags) GetBackupEligibleOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.BackupEligible) {
|
|
return nil, false
|
|
}
|
|
return o.BackupEligible, true
|
|
}
|
|
|
|
// HasBackupEligible returns a boolean if a field has been set.
|
|
func (o *IdentityCredentialsWebAuthnFlags) HasBackupEligible() bool {
|
|
if o != nil && !IsNil(o.BackupEligible) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBackupEligible gets a reference to the given bool and assigns it to the BackupEligible field.
|
|
func (o *IdentityCredentialsWebAuthnFlags) SetBackupEligible(v bool) {
|
|
o.BackupEligible = &v
|
|
}
|
|
|
|
// GetBackupState returns the BackupState field value if set, zero value otherwise.
|
|
func (o *IdentityCredentialsWebAuthnFlags) GetBackupState() bool {
|
|
if o == nil || IsNil(o.BackupState) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.BackupState
|
|
}
|
|
|
|
// GetBackupStateOk returns a tuple with the BackupState field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IdentityCredentialsWebAuthnFlags) GetBackupStateOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.BackupState) {
|
|
return nil, false
|
|
}
|
|
return o.BackupState, true
|
|
}
|
|
|
|
// HasBackupState returns a boolean if a field has been set.
|
|
func (o *IdentityCredentialsWebAuthnFlags) HasBackupState() bool {
|
|
if o != nil && !IsNil(o.BackupState) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBackupState gets a reference to the given bool and assigns it to the BackupState field.
|
|
func (o *IdentityCredentialsWebAuthnFlags) SetBackupState(v bool) {
|
|
o.BackupState = &v
|
|
}
|
|
|
|
// GetUserPresent returns the UserPresent field value if set, zero value otherwise.
|
|
func (o *IdentityCredentialsWebAuthnFlags) GetUserPresent() bool {
|
|
if o == nil || IsNil(o.UserPresent) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.UserPresent
|
|
}
|
|
|
|
// GetUserPresentOk returns a tuple with the UserPresent field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IdentityCredentialsWebAuthnFlags) GetUserPresentOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.UserPresent) {
|
|
return nil, false
|
|
}
|
|
return o.UserPresent, true
|
|
}
|
|
|
|
// HasUserPresent returns a boolean if a field has been set.
|
|
func (o *IdentityCredentialsWebAuthnFlags) HasUserPresent() bool {
|
|
if o != nil && !IsNil(o.UserPresent) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserPresent gets a reference to the given bool and assigns it to the UserPresent field.
|
|
func (o *IdentityCredentialsWebAuthnFlags) SetUserPresent(v bool) {
|
|
o.UserPresent = &v
|
|
}
|
|
|
|
// GetUserVerified returns the UserVerified field value if set, zero value otherwise.
|
|
func (o *IdentityCredentialsWebAuthnFlags) GetUserVerified() bool {
|
|
if o == nil || IsNil(o.UserVerified) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.UserVerified
|
|
}
|
|
|
|
// GetUserVerifiedOk returns a tuple with the UserVerified field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IdentityCredentialsWebAuthnFlags) GetUserVerifiedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.UserVerified) {
|
|
return nil, false
|
|
}
|
|
return o.UserVerified, true
|
|
}
|
|
|
|
// HasUserVerified returns a boolean if a field has been set.
|
|
func (o *IdentityCredentialsWebAuthnFlags) HasUserVerified() bool {
|
|
if o != nil && !IsNil(o.UserVerified) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserVerified gets a reference to the given bool and assigns it to the UserVerified field.
|
|
func (o *IdentityCredentialsWebAuthnFlags) SetUserVerified(v bool) {
|
|
o.UserVerified = &v
|
|
}
|
|
|
|
func (o IdentityCredentialsWebAuthnFlags) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o IdentityCredentialsWebAuthnFlags) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.BackupEligible) {
|
|
toSerialize["backup_eligible"] = o.BackupEligible
|
|
}
|
|
if !IsNil(o.BackupState) {
|
|
toSerialize["backup_state"] = o.BackupState
|
|
}
|
|
if !IsNil(o.UserPresent) {
|
|
toSerialize["user_present"] = o.UserPresent
|
|
}
|
|
if !IsNil(o.UserVerified) {
|
|
toSerialize["user_verified"] = o.UserVerified
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *IdentityCredentialsWebAuthnFlags) UnmarshalJSON(data []byte) (err error) {
|
|
varIdentityCredentialsWebAuthnFlags := _IdentityCredentialsWebAuthnFlags{}
|
|
|
|
err = json.Unmarshal(data, &varIdentityCredentialsWebAuthnFlags)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = IdentityCredentialsWebAuthnFlags(varIdentityCredentialsWebAuthnFlags)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "backup_eligible")
|
|
delete(additionalProperties, "backup_state")
|
|
delete(additionalProperties, "user_present")
|
|
delete(additionalProperties, "user_verified")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableIdentityCredentialsWebAuthnFlags struct {
|
|
value *IdentityCredentialsWebAuthnFlags
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableIdentityCredentialsWebAuthnFlags) Get() *IdentityCredentialsWebAuthnFlags {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableIdentityCredentialsWebAuthnFlags) Set(val *IdentityCredentialsWebAuthnFlags) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableIdentityCredentialsWebAuthnFlags) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableIdentityCredentialsWebAuthnFlags) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableIdentityCredentialsWebAuthnFlags(val *IdentityCredentialsWebAuthnFlags) *NullableIdentityCredentialsWebAuthnFlags {
|
|
return &NullableIdentityCredentialsWebAuthnFlags{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableIdentityCredentialsWebAuthnFlags) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableIdentityCredentialsWebAuthnFlags) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|