feat: complete node pool api, sdk and ui

Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
allanice001
2025-11-08 10:22:45 +00:00
parent c478a8d10f
commit 334df457ce
130 changed files with 19675 additions and 187 deletions

View File

@@ -0,0 +1,124 @@
/*
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 DtoAttachTaintsRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DtoAttachTaintsRequest{}
// DtoAttachTaintsRequest struct for DtoAttachTaintsRequest
type DtoAttachTaintsRequest struct {
TaintIds []string `json:"taint_ids,omitempty"`
}
// NewDtoAttachTaintsRequest instantiates a new DtoAttachTaintsRequest 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 NewDtoAttachTaintsRequest() *DtoAttachTaintsRequest {
this := DtoAttachTaintsRequest{}
return &this
}
// NewDtoAttachTaintsRequestWithDefaults instantiates a new DtoAttachTaintsRequest 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 NewDtoAttachTaintsRequestWithDefaults() *DtoAttachTaintsRequest {
this := DtoAttachTaintsRequest{}
return &this
}
// GetTaintIds returns the TaintIds field value if set, zero value otherwise.
func (o *DtoAttachTaintsRequest) GetTaintIds() []string {
if o == nil || IsNil(o.TaintIds) {
var ret []string
return ret
}
return o.TaintIds
}
// GetTaintIdsOk returns a tuple with the TaintIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DtoAttachTaintsRequest) GetTaintIdsOk() ([]string, bool) {
if o == nil || IsNil(o.TaintIds) {
return nil, false
}
return o.TaintIds, true
}
// HasTaintIds returns a boolean if a field has been set.
func (o *DtoAttachTaintsRequest) HasTaintIds() bool {
if o != nil && !IsNil(o.TaintIds) {
return true
}
return false
}
// SetTaintIds gets a reference to the given []string and assigns it to the TaintIds field.
func (o *DtoAttachTaintsRequest) SetTaintIds(v []string) {
o.TaintIds = v
}
func (o DtoAttachTaintsRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DtoAttachTaintsRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.TaintIds) {
toSerialize["taint_ids"] = o.TaintIds
}
return toSerialize, nil
}
type NullableDtoAttachTaintsRequest struct {
value *DtoAttachTaintsRequest
isSet bool
}
func (v NullableDtoAttachTaintsRequest) Get() *DtoAttachTaintsRequest {
return v.value
}
func (v *NullableDtoAttachTaintsRequest) Set(val *DtoAttachTaintsRequest) {
v.value = val
v.isSet = true
}
func (v NullableDtoAttachTaintsRequest) IsSet() bool {
return v.isSet
}
func (v *NullableDtoAttachTaintsRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDtoAttachTaintsRequest(val *DtoAttachTaintsRequest) *NullableDtoAttachTaintsRequest {
return &NullableDtoAttachTaintsRequest{value: val, isSet: true}
}
func (v NullableDtoAttachTaintsRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDtoAttachTaintsRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}