snapshot of https://github.com/ory/kratos.git (master, 2026-09-15; blobs > 131072B omitted)
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
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
This commit is contained in:
339
pkg/client-go/model_device_authn_android_key_description.go
Normal file
339
pkg/client-go/model_device_authn_android_key_description.go
Normal file
@@ -0,0 +1,339 @@
|
||||
/*
|
||||
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 DeviceAuthnAndroidKeyDescription type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DeviceAuthnAndroidKeyDescription{}
|
||||
|
||||
// DeviceAuthnAndroidKeyDescription Schema: https://source.android.com/docs/security/features/keystore/attestation#schema
|
||||
type DeviceAuthnAndroidKeyDescription struct {
|
||||
AttestationSecurityLevel *int64 `json:"attestation_security_level,omitempty"`
|
||||
AttestationVersion *int64 `json:"attestation_version,omitempty"`
|
||||
KeymasterSecurityLevel *int64 `json:"keymaster_security_level,omitempty"`
|
||||
KeymasterVersion *int64 `json:"keymaster_version,omitempty"`
|
||||
SoftwareEnforced *DeviceAuthnAndroidAuthorizationList `json:"software_enforced,omitempty"`
|
||||
TeeEnforced *DeviceAuthnAndroidAuthorizationList `json:"tee_enforced,omitempty"`
|
||||
AdditionalProperties map[string]interface{}
|
||||
}
|
||||
|
||||
type _DeviceAuthnAndroidKeyDescription DeviceAuthnAndroidKeyDescription
|
||||
|
||||
// NewDeviceAuthnAndroidKeyDescription instantiates a new DeviceAuthnAndroidKeyDescription 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 NewDeviceAuthnAndroidKeyDescription() *DeviceAuthnAndroidKeyDescription {
|
||||
this := DeviceAuthnAndroidKeyDescription{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDeviceAuthnAndroidKeyDescriptionWithDefaults instantiates a new DeviceAuthnAndroidKeyDescription 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 NewDeviceAuthnAndroidKeyDescriptionWithDefaults() *DeviceAuthnAndroidKeyDescription {
|
||||
this := DeviceAuthnAndroidKeyDescription{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAttestationSecurityLevel returns the AttestationSecurityLevel field value if set, zero value otherwise.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetAttestationSecurityLevel() int64 {
|
||||
if o == nil || IsNil(o.AttestationSecurityLevel) {
|
||||
var ret int64
|
||||
return ret
|
||||
}
|
||||
return *o.AttestationSecurityLevel
|
||||
}
|
||||
|
||||
// GetAttestationSecurityLevelOk returns a tuple with the AttestationSecurityLevel field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetAttestationSecurityLevelOk() (*int64, bool) {
|
||||
if o == nil || IsNil(o.AttestationSecurityLevel) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AttestationSecurityLevel, true
|
||||
}
|
||||
|
||||
// HasAttestationSecurityLevel returns a boolean if a field has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) HasAttestationSecurityLevel() bool {
|
||||
if o != nil && !IsNil(o.AttestationSecurityLevel) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAttestationSecurityLevel gets a reference to the given int64 and assigns it to the AttestationSecurityLevel field.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) SetAttestationSecurityLevel(v int64) {
|
||||
o.AttestationSecurityLevel = &v
|
||||
}
|
||||
|
||||
// GetAttestationVersion returns the AttestationVersion field value if set, zero value otherwise.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetAttestationVersion() int64 {
|
||||
if o == nil || IsNil(o.AttestationVersion) {
|
||||
var ret int64
|
||||
return ret
|
||||
}
|
||||
return *o.AttestationVersion
|
||||
}
|
||||
|
||||
// GetAttestationVersionOk returns a tuple with the AttestationVersion field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetAttestationVersionOk() (*int64, bool) {
|
||||
if o == nil || IsNil(o.AttestationVersion) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AttestationVersion, true
|
||||
}
|
||||
|
||||
// HasAttestationVersion returns a boolean if a field has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) HasAttestationVersion() bool {
|
||||
if o != nil && !IsNil(o.AttestationVersion) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAttestationVersion gets a reference to the given int64 and assigns it to the AttestationVersion field.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) SetAttestationVersion(v int64) {
|
||||
o.AttestationVersion = &v
|
||||
}
|
||||
|
||||
// GetKeymasterSecurityLevel returns the KeymasterSecurityLevel field value if set, zero value otherwise.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetKeymasterSecurityLevel() int64 {
|
||||
if o == nil || IsNil(o.KeymasterSecurityLevel) {
|
||||
var ret int64
|
||||
return ret
|
||||
}
|
||||
return *o.KeymasterSecurityLevel
|
||||
}
|
||||
|
||||
// GetKeymasterSecurityLevelOk returns a tuple with the KeymasterSecurityLevel field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetKeymasterSecurityLevelOk() (*int64, bool) {
|
||||
if o == nil || IsNil(o.KeymasterSecurityLevel) {
|
||||
return nil, false
|
||||
}
|
||||
return o.KeymasterSecurityLevel, true
|
||||
}
|
||||
|
||||
// HasKeymasterSecurityLevel returns a boolean if a field has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) HasKeymasterSecurityLevel() bool {
|
||||
if o != nil && !IsNil(o.KeymasterSecurityLevel) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKeymasterSecurityLevel gets a reference to the given int64 and assigns it to the KeymasterSecurityLevel field.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) SetKeymasterSecurityLevel(v int64) {
|
||||
o.KeymasterSecurityLevel = &v
|
||||
}
|
||||
|
||||
// GetKeymasterVersion returns the KeymasterVersion field value if set, zero value otherwise.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetKeymasterVersion() int64 {
|
||||
if o == nil || IsNil(o.KeymasterVersion) {
|
||||
var ret int64
|
||||
return ret
|
||||
}
|
||||
return *o.KeymasterVersion
|
||||
}
|
||||
|
||||
// GetKeymasterVersionOk returns a tuple with the KeymasterVersion field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetKeymasterVersionOk() (*int64, bool) {
|
||||
if o == nil || IsNil(o.KeymasterVersion) {
|
||||
return nil, false
|
||||
}
|
||||
return o.KeymasterVersion, true
|
||||
}
|
||||
|
||||
// HasKeymasterVersion returns a boolean if a field has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) HasKeymasterVersion() bool {
|
||||
if o != nil && !IsNil(o.KeymasterVersion) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKeymasterVersion gets a reference to the given int64 and assigns it to the KeymasterVersion field.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) SetKeymasterVersion(v int64) {
|
||||
o.KeymasterVersion = &v
|
||||
}
|
||||
|
||||
// GetSoftwareEnforced returns the SoftwareEnforced field value if set, zero value otherwise.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetSoftwareEnforced() DeviceAuthnAndroidAuthorizationList {
|
||||
if o == nil || IsNil(o.SoftwareEnforced) {
|
||||
var ret DeviceAuthnAndroidAuthorizationList
|
||||
return ret
|
||||
}
|
||||
return *o.SoftwareEnforced
|
||||
}
|
||||
|
||||
// GetSoftwareEnforcedOk returns a tuple with the SoftwareEnforced field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetSoftwareEnforcedOk() (*DeviceAuthnAndroidAuthorizationList, bool) {
|
||||
if o == nil || IsNil(o.SoftwareEnforced) {
|
||||
return nil, false
|
||||
}
|
||||
return o.SoftwareEnforced, true
|
||||
}
|
||||
|
||||
// HasSoftwareEnforced returns a boolean if a field has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) HasSoftwareEnforced() bool {
|
||||
if o != nil && !IsNil(o.SoftwareEnforced) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSoftwareEnforced gets a reference to the given DeviceAuthnAndroidAuthorizationList and assigns it to the SoftwareEnforced field.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) SetSoftwareEnforced(v DeviceAuthnAndroidAuthorizationList) {
|
||||
o.SoftwareEnforced = &v
|
||||
}
|
||||
|
||||
// GetTeeEnforced returns the TeeEnforced field value if set, zero value otherwise.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetTeeEnforced() DeviceAuthnAndroidAuthorizationList {
|
||||
if o == nil || IsNil(o.TeeEnforced) {
|
||||
var ret DeviceAuthnAndroidAuthorizationList
|
||||
return ret
|
||||
}
|
||||
return *o.TeeEnforced
|
||||
}
|
||||
|
||||
// GetTeeEnforcedOk returns a tuple with the TeeEnforced field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) GetTeeEnforcedOk() (*DeviceAuthnAndroidAuthorizationList, bool) {
|
||||
if o == nil || IsNil(o.TeeEnforced) {
|
||||
return nil, false
|
||||
}
|
||||
return o.TeeEnforced, true
|
||||
}
|
||||
|
||||
// HasTeeEnforced returns a boolean if a field has been set.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) HasTeeEnforced() bool {
|
||||
if o != nil && !IsNil(o.TeeEnforced) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTeeEnforced gets a reference to the given DeviceAuthnAndroidAuthorizationList and assigns it to the TeeEnforced field.
|
||||
func (o *DeviceAuthnAndroidKeyDescription) SetTeeEnforced(v DeviceAuthnAndroidAuthorizationList) {
|
||||
o.TeeEnforced = &v
|
||||
}
|
||||
|
||||
func (o DeviceAuthnAndroidKeyDescription) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DeviceAuthnAndroidKeyDescription) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.AttestationSecurityLevel) {
|
||||
toSerialize["attestation_security_level"] = o.AttestationSecurityLevel
|
||||
}
|
||||
if !IsNil(o.AttestationVersion) {
|
||||
toSerialize["attestation_version"] = o.AttestationVersion
|
||||
}
|
||||
if !IsNil(o.KeymasterSecurityLevel) {
|
||||
toSerialize["keymaster_security_level"] = o.KeymasterSecurityLevel
|
||||
}
|
||||
if !IsNil(o.KeymasterVersion) {
|
||||
toSerialize["keymaster_version"] = o.KeymasterVersion
|
||||
}
|
||||
if !IsNil(o.SoftwareEnforced) {
|
||||
toSerialize["software_enforced"] = o.SoftwareEnforced
|
||||
}
|
||||
if !IsNil(o.TeeEnforced) {
|
||||
toSerialize["tee_enforced"] = o.TeeEnforced
|
||||
}
|
||||
|
||||
for key, value := range o.AdditionalProperties {
|
||||
toSerialize[key] = value
|
||||
}
|
||||
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
func (o *DeviceAuthnAndroidKeyDescription) UnmarshalJSON(data []byte) (err error) {
|
||||
varDeviceAuthnAndroidKeyDescription := _DeviceAuthnAndroidKeyDescription{}
|
||||
|
||||
err = json.Unmarshal(data, &varDeviceAuthnAndroidKeyDescription)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
*o = DeviceAuthnAndroidKeyDescription(varDeviceAuthnAndroidKeyDescription)
|
||||
|
||||
additionalProperties := make(map[string]interface{})
|
||||
|
||||
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
||||
delete(additionalProperties, "attestation_security_level")
|
||||
delete(additionalProperties, "attestation_version")
|
||||
delete(additionalProperties, "keymaster_security_level")
|
||||
delete(additionalProperties, "keymaster_version")
|
||||
delete(additionalProperties, "software_enforced")
|
||||
delete(additionalProperties, "tee_enforced")
|
||||
o.AdditionalProperties = additionalProperties
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
type NullableDeviceAuthnAndroidKeyDescription struct {
|
||||
value *DeviceAuthnAndroidKeyDescription
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDeviceAuthnAndroidKeyDescription) Get() *DeviceAuthnAndroidKeyDescription {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDeviceAuthnAndroidKeyDescription) Set(val *DeviceAuthnAndroidKeyDescription) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDeviceAuthnAndroidKeyDescription) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDeviceAuthnAndroidKeyDescription) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDeviceAuthnAndroidKeyDescription(val *DeviceAuthnAndroidKeyDescription) *NullableDeviceAuthnAndroidKeyDescription {
|
||||
return &NullableDeviceAuthnAndroidKeyDescription{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDeviceAuthnAndroidKeyDescription) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDeviceAuthnAndroidKeyDescription) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Reference in New Issue
Block a user