mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
feat: sdk migration in progress
This commit is contained in:
340
sdk/go/model_dto_jwk.go
Normal file
340
sdk/go/model_dto_jwk.go
Normal file
@@ -0,0 +1,340 @@
|
||||
/*
|
||||
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 DtoJWK type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoJWK{}
|
||||
|
||||
// DtoJWK struct for DtoJWK
|
||||
type DtoJWK struct {
|
||||
Alg *string `json:"alg,omitempty"`
|
||||
E *string `json:"e,omitempty"`
|
||||
Kid *string `json:"kid,omitempty"`
|
||||
Kty *string `json:"kty,omitempty"`
|
||||
N *string `json:"n,omitempty"`
|
||||
Use *string `json:"use,omitempty"`
|
||||
X *string `json:"x,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoJWK instantiates a new DtoJWK 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 NewDtoJWK() *DtoJWK {
|
||||
this := DtoJWK{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoJWKWithDefaults instantiates a new DtoJWK 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 NewDtoJWKWithDefaults() *DtoJWK {
|
||||
this := DtoJWK{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAlg returns the Alg field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetAlg() string {
|
||||
if o == nil || IsNil(o.Alg) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Alg
|
||||
}
|
||||
|
||||
// GetAlgOk returns a tuple with the Alg field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetAlgOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Alg) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Alg, true
|
||||
}
|
||||
|
||||
// HasAlg returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasAlg() bool {
|
||||
if o != nil && !IsNil(o.Alg) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAlg gets a reference to the given string and assigns it to the Alg field.
|
||||
func (o *DtoJWK) SetAlg(v string) {
|
||||
o.Alg = &v
|
||||
}
|
||||
|
||||
// GetE returns the E field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetE() string {
|
||||
if o == nil || IsNil(o.E) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.E
|
||||
}
|
||||
|
||||
// GetEOk returns a tuple with the E field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetEOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.E) {
|
||||
return nil, false
|
||||
}
|
||||
return o.E, true
|
||||
}
|
||||
|
||||
// HasE returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasE() bool {
|
||||
if o != nil && !IsNil(o.E) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetE gets a reference to the given string and assigns it to the E field.
|
||||
func (o *DtoJWK) SetE(v string) {
|
||||
o.E = &v
|
||||
}
|
||||
|
||||
// GetKid returns the Kid field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetKid() string {
|
||||
if o == nil || IsNil(o.Kid) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Kid
|
||||
}
|
||||
|
||||
// GetKidOk returns a tuple with the Kid field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetKidOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Kid) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Kid, true
|
||||
}
|
||||
|
||||
// HasKid returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasKid() bool {
|
||||
if o != nil && !IsNil(o.Kid) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKid gets a reference to the given string and assigns it to the Kid field.
|
||||
func (o *DtoJWK) SetKid(v string) {
|
||||
o.Kid = &v
|
||||
}
|
||||
|
||||
// GetKty returns the Kty field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetKty() string {
|
||||
if o == nil || IsNil(o.Kty) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Kty
|
||||
}
|
||||
|
||||
// GetKtyOk returns a tuple with the Kty field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetKtyOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Kty) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Kty, true
|
||||
}
|
||||
|
||||
// HasKty returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasKty() bool {
|
||||
if o != nil && !IsNil(o.Kty) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKty gets a reference to the given string and assigns it to the Kty field.
|
||||
func (o *DtoJWK) SetKty(v string) {
|
||||
o.Kty = &v
|
||||
}
|
||||
|
||||
// GetN returns the N field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetN() string {
|
||||
if o == nil || IsNil(o.N) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.N
|
||||
}
|
||||
|
||||
// GetNOk returns a tuple with the N field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetNOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.N) {
|
||||
return nil, false
|
||||
}
|
||||
return o.N, true
|
||||
}
|
||||
|
||||
// HasN returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasN() bool {
|
||||
if o != nil && !IsNil(o.N) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetN gets a reference to the given string and assigns it to the N field.
|
||||
func (o *DtoJWK) SetN(v string) {
|
||||
o.N = &v
|
||||
}
|
||||
|
||||
// GetUse returns the Use field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetUse() string {
|
||||
if o == nil || IsNil(o.Use) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Use
|
||||
}
|
||||
|
||||
// GetUseOk returns a tuple with the Use field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetUseOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Use) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Use, true
|
||||
}
|
||||
|
||||
// HasUse returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasUse() bool {
|
||||
if o != nil && !IsNil(o.Use) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUse gets a reference to the given string and assigns it to the Use field.
|
||||
func (o *DtoJWK) SetUse(v string) {
|
||||
o.Use = &v
|
||||
}
|
||||
|
||||
// GetX returns the X field value if set, zero value otherwise.
|
||||
func (o *DtoJWK) GetX() string {
|
||||
if o == nil || IsNil(o.X) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.X
|
||||
}
|
||||
|
||||
// GetXOk returns a tuple with the X field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoJWK) GetXOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.X) {
|
||||
return nil, false
|
||||
}
|
||||
return o.X, true
|
||||
}
|
||||
|
||||
// HasX returns a boolean if a field has been set.
|
||||
func (o *DtoJWK) HasX() bool {
|
||||
if o != nil && !IsNil(o.X) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetX gets a reference to the given string and assigns it to the X field.
|
||||
func (o *DtoJWK) SetX(v string) {
|
||||
o.X = &v
|
||||
}
|
||||
|
||||
func (o DtoJWK) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoJWK) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Alg) {
|
||||
toSerialize["alg"] = o.Alg
|
||||
}
|
||||
if !IsNil(o.E) {
|
||||
toSerialize["e"] = o.E
|
||||
}
|
||||
if !IsNil(o.Kid) {
|
||||
toSerialize["kid"] = o.Kid
|
||||
}
|
||||
if !IsNil(o.Kty) {
|
||||
toSerialize["kty"] = o.Kty
|
||||
}
|
||||
if !IsNil(o.N) {
|
||||
toSerialize["n"] = o.N
|
||||
}
|
||||
if !IsNil(o.Use) {
|
||||
toSerialize["use"] = o.Use
|
||||
}
|
||||
if !IsNil(o.X) {
|
||||
toSerialize["x"] = o.X
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoJWK struct {
|
||||
value *DtoJWK
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoJWK) Get() *DtoJWK {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoJWK) Set(val *DtoJWK) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoJWK) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoJWK) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoJWK(val *DtoJWK) *NullableDtoJWK {
|
||||
return &NullableDtoJWK{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoJWK) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoJWK) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Reference in New Issue
Block a user