mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
125 lines
2.7 KiB
Go
125 lines
2.7 KiB
Go
/*
|
|
AutoGlue API
|
|
|
|
API for managing K3s clusters across cloud providers
|
|
|
|
API version: 1.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package autoglue
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the DtoJWKS type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &DtoJWKS{}
|
|
|
|
// DtoJWKS struct for DtoJWKS
|
|
type DtoJWKS struct {
|
|
Keys []DtoJWK `json:"keys,omitempty"`
|
|
}
|
|
|
|
// NewDtoJWKS instantiates a new DtoJWKS 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 NewDtoJWKS() *DtoJWKS {
|
|
this := DtoJWKS{}
|
|
return &this
|
|
}
|
|
|
|
// NewDtoJWKSWithDefaults instantiates a new DtoJWKS 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 NewDtoJWKSWithDefaults() *DtoJWKS {
|
|
this := DtoJWKS{}
|
|
return &this
|
|
}
|
|
|
|
// GetKeys returns the Keys field value if set, zero value otherwise.
|
|
func (o *DtoJWKS) GetKeys() []DtoJWK {
|
|
if o == nil || IsNil(o.Keys) {
|
|
var ret []DtoJWK
|
|
return ret
|
|
}
|
|
return o.Keys
|
|
}
|
|
|
|
// GetKeysOk returns a tuple with the Keys field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DtoJWKS) GetKeysOk() ([]DtoJWK, bool) {
|
|
if o == nil || IsNil(o.Keys) {
|
|
return nil, false
|
|
}
|
|
return o.Keys, true
|
|
}
|
|
|
|
// HasKeys returns a boolean if a field has been set.
|
|
func (o *DtoJWKS) HasKeys() bool {
|
|
if o != nil && !IsNil(o.Keys) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetKeys gets a reference to the given []DtoJWK and assigns it to the Keys field.
|
|
func (o *DtoJWKS) SetKeys(v []DtoJWK) {
|
|
o.Keys = v
|
|
}
|
|
|
|
func (o DtoJWKS) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o DtoJWKS) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Keys) {
|
|
toSerialize["keys"] = o.Keys
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableDtoJWKS struct {
|
|
value *DtoJWKS
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDtoJWKS) Get() *DtoJWKS {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDtoJWKS) Set(val *DtoJWKS) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDtoJWKS) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDtoJWKS) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDtoJWKS(val *DtoJWKS) *NullableDtoJWKS {
|
|
return &NullableDtoJWKS{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDtoJWKS) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDtoJWKS) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|