mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-14 13:20:05 +01:00
feat: complete node pool api, sdk and ui
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
124
sdk/go/model_dto_attach_servers_request.go
Normal file
124
sdk/go/model_dto_attach_servers_request.go
Normal 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 DtoAttachServersRequest type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DtoAttachServersRequest{}
|
||||
|
||||
// DtoAttachServersRequest struct for DtoAttachServersRequest
|
||||
type DtoAttachServersRequest struct {
|
||||
ServerIds []string `json:"server_ids,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoAttachServersRequest instantiates a new DtoAttachServersRequest 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 NewDtoAttachServersRequest() *DtoAttachServersRequest {
|
||||
this := DtoAttachServersRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDtoAttachServersRequestWithDefaults instantiates a new DtoAttachServersRequest 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 NewDtoAttachServersRequestWithDefaults() *DtoAttachServersRequest {
|
||||
this := DtoAttachServersRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetServerIds returns the ServerIds field value if set, zero value otherwise.
|
||||
func (o *DtoAttachServersRequest) GetServerIds() []string {
|
||||
if o == nil || IsNil(o.ServerIds) {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return o.ServerIds
|
||||
}
|
||||
|
||||
// GetServerIdsOk returns a tuple with the ServerIds field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DtoAttachServersRequest) GetServerIdsOk() ([]string, bool) {
|
||||
if o == nil || IsNil(o.ServerIds) {
|
||||
return nil, false
|
||||
}
|
||||
return o.ServerIds, true
|
||||
}
|
||||
|
||||
// HasServerIds returns a boolean if a field has been set.
|
||||
func (o *DtoAttachServersRequest) HasServerIds() bool {
|
||||
if o != nil && !IsNil(o.ServerIds) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetServerIds gets a reference to the given []string and assigns it to the ServerIds field.
|
||||
func (o *DtoAttachServersRequest) SetServerIds(v []string) {
|
||||
o.ServerIds = v
|
||||
}
|
||||
|
||||
func (o DtoAttachServersRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o DtoAttachServersRequest) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.ServerIds) {
|
||||
toSerialize["server_ids"] = o.ServerIds
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDtoAttachServersRequest struct {
|
||||
value *DtoAttachServersRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachServersRequest) Get() *DtoAttachServersRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachServersRequest) Set(val *DtoAttachServersRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachServersRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachServersRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDtoAttachServersRequest(val *DtoAttachServersRequest) *NullableDtoAttachServersRequest {
|
||||
return &NullableDtoAttachServersRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDtoAttachServersRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDtoAttachServersRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Reference in New Issue
Block a user