mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
fix: rename sdk to match repo & introduce git subtree
This commit is contained in:
@@ -1,196 +0,0 @@
|
||||
/*
|
||||
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 DtoCreateTaintRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoCreateTaintRequest{}
|
||||
|
||||
// DtoCreateTaintRequest struct for DtoCreateTaintRequest
|
||||
type DtoCreateTaintRequest struct {
|
||||
Effect *string `json:"effect,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoCreateTaintRequest instantiates a new DtoCreateTaintRequest 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 NewDtoCreateTaintRequest() *DtoCreateTaintRequest {
|
||||
this := DtoCreateTaintRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoCreateTaintRequestWithDefaults instantiates a new DtoCreateTaintRequest 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 NewDtoCreateTaintRequestWithDefaults() *DtoCreateTaintRequest {
|
||||
this := DtoCreateTaintRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetEffect returns the Effect field value if set, zero value otherwise.
|
||||
func (o *DtoCreateTaintRequest) GetEffect() string {
|
||||
if o == nil || IsNil(o.Effect) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Effect
|
||||
}
|
||||
|
||||
// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateTaintRequest) GetEffectOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Effect) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Effect, true
|
||||
}
|
||||
|
||||
// HasEffect returns a boolean if a field has been set.
|
||||
func (o *DtoCreateTaintRequest) HasEffect() bool {
|
||||
if o != nil && !IsNil(o.Effect) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetEffect gets a reference to the given string and assigns it to the Effect field.
|
||||
func (o *DtoCreateTaintRequest) SetEffect(v string) {
|
||||
o.Effect = &v
|
||||
}
|
||||
|
||||
// GetKey returns the Key field value if set, zero value otherwise.
|
||||
func (o *DtoCreateTaintRequest) GetKey() string {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Key
|
||||
}
|
||||
|
||||
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateTaintRequest) GetKeyOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Key) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Key, true
|
||||
}
|
||||
|
||||
// HasKey returns a boolean if a field has been set.
|
||||
func (o *DtoCreateTaintRequest) HasKey() bool {
|
||||
if o != nil && !IsNil(o.Key) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetKey gets a reference to the given string and assigns it to the Key field.
|
||||
func (o *DtoCreateTaintRequest) SetKey(v string) {
|
||||
o.Key = &v
|
||||
}
|
||||
|
||||
// GetValue returns the Value field value if set, zero value otherwise.
|
||||
func (o *DtoCreateTaintRequest) GetValue() string {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Value
|
||||
}
|
||||
|
||||
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoCreateTaintRequest) GetValueOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Value) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// HasValue returns a boolean if a field has been set.
|
||||
func (o *DtoCreateTaintRequest) HasValue() bool {
|
||||
if o != nil && !IsNil(o.Value) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetValue gets a reference to the given string and assigns it to the Value field.
|
||||
func (o *DtoCreateTaintRequest) SetValue(v string) {
|
||||
o.Value = &v
|
||||
}
|
||||
|
||||
func (o DtoCreateTaintRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoCreateTaintRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Effect) {
|
||||
toSerialize["effect"] = o.Effect
|
||||
}
|
||||
if !IsNil(o.Key) {
|
||||
toSerialize["key"] = o.Key
|
||||
}
|
||||
if !IsNil(o.Value) {
|
||||
toSerialize["value"] = o.Value
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoCreateTaintRequest struct {
|
||||
value *DtoCreateTaintRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateTaintRequest) Get() *DtoCreateTaintRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateTaintRequest) Set(val *DtoCreateTaintRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateTaintRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateTaintRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoCreateTaintRequest(val *DtoCreateTaintRequest) *NullableDtoCreateTaintRequest {
|
||||
return &NullableDtoCreateTaintRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoCreateTaintRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoCreateTaintRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Reference in New Issue
Block a user