mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
125 lines
3.3 KiB
Go
125 lines
3.3 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 DtoAttachLabelsRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &DtoAttachLabelsRequest{}
|
|
|
|
// DtoAttachLabelsRequest struct for DtoAttachLabelsRequest
|
|
type DtoAttachLabelsRequest struct {
|
|
LabelIds []string `json:"label_ids,omitempty"`
|
|
}
|
|
|
|
// NewDtoAttachLabelsRequest instantiates a new DtoAttachLabelsRequest 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 NewDtoAttachLabelsRequest() *DtoAttachLabelsRequest {
|
|
this := DtoAttachLabelsRequest{}
|
|
return &this
|
|
}
|
|
|
|
// NewDtoAttachLabelsRequestWithDefaults instantiates a new DtoAttachLabelsRequest 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 NewDtoAttachLabelsRequestWithDefaults() *DtoAttachLabelsRequest {
|
|
this := DtoAttachLabelsRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetLabelIds returns the LabelIds field value if set, zero value otherwise.
|
|
func (o *DtoAttachLabelsRequest) GetLabelIds() []string {
|
|
if o == nil || IsNil(o.LabelIds) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.LabelIds
|
|
}
|
|
|
|
// GetLabelIdsOk returns a tuple with the LabelIds field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DtoAttachLabelsRequest) GetLabelIdsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.LabelIds) {
|
|
return nil, false
|
|
}
|
|
return o.LabelIds, true
|
|
}
|
|
|
|
// HasLabelIds returns a boolean if a field has been set.
|
|
func (o *DtoAttachLabelsRequest) HasLabelIds() bool {
|
|
if o != nil && !IsNil(o.LabelIds) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLabelIds gets a reference to the given []string and assigns it to the LabelIds field.
|
|
func (o *DtoAttachLabelsRequest) SetLabelIds(v []string) {
|
|
o.LabelIds = v
|
|
}
|
|
|
|
func (o DtoAttachLabelsRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o DtoAttachLabelsRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.LabelIds) {
|
|
toSerialize["label_ids"] = o.LabelIds
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableDtoAttachLabelsRequest struct {
|
|
value *DtoAttachLabelsRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDtoAttachLabelsRequest) Get() *DtoAttachLabelsRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDtoAttachLabelsRequest) Set(val *DtoAttachLabelsRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDtoAttachLabelsRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDtoAttachLabelsRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDtoAttachLabelsRequest(val *DtoAttachLabelsRequest) *NullableDtoAttachLabelsRequest {
|
|
return &NullableDtoAttachLabelsRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDtoAttachLabelsRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDtoAttachLabelsRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|