mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
125 lines
3.6 KiB
Go
125 lines
3.6 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 DtoAttachAnnotationsRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &DtoAttachAnnotationsRequest{}
|
|
|
|
// DtoAttachAnnotationsRequest struct for DtoAttachAnnotationsRequest
|
|
type DtoAttachAnnotationsRequest struct {
|
|
AnnotationIds []string `json:"annotation_ids,omitempty"`
|
|
}
|
|
|
|
// NewDtoAttachAnnotationsRequest instantiates a new DtoAttachAnnotationsRequest 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 NewDtoAttachAnnotationsRequest() *DtoAttachAnnotationsRequest {
|
|
this := DtoAttachAnnotationsRequest{}
|
|
return &this
|
|
}
|
|
|
|
// NewDtoAttachAnnotationsRequestWithDefaults instantiates a new DtoAttachAnnotationsRequest 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 NewDtoAttachAnnotationsRequestWithDefaults() *DtoAttachAnnotationsRequest {
|
|
this := DtoAttachAnnotationsRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetAnnotationIds returns the AnnotationIds field value if set, zero value otherwise.
|
|
func (o *DtoAttachAnnotationsRequest) GetAnnotationIds() []string {
|
|
if o == nil || IsNil(o.AnnotationIds) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.AnnotationIds
|
|
}
|
|
|
|
// GetAnnotationIdsOk returns a tuple with the AnnotationIds field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DtoAttachAnnotationsRequest) GetAnnotationIdsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.AnnotationIds) {
|
|
return nil, false
|
|
}
|
|
return o.AnnotationIds, true
|
|
}
|
|
|
|
// HasAnnotationIds returns a boolean if a field has been set.
|
|
func (o *DtoAttachAnnotationsRequest) HasAnnotationIds() bool {
|
|
if o != nil && !IsNil(o.AnnotationIds) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAnnotationIds gets a reference to the given []string and assigns it to the AnnotationIds field.
|
|
func (o *DtoAttachAnnotationsRequest) SetAnnotationIds(v []string) {
|
|
o.AnnotationIds = v
|
|
}
|
|
|
|
func (o DtoAttachAnnotationsRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o DtoAttachAnnotationsRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AnnotationIds) {
|
|
toSerialize["annotation_ids"] = o.AnnotationIds
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableDtoAttachAnnotationsRequest struct {
|
|
value *DtoAttachAnnotationsRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDtoAttachAnnotationsRequest) Get() *DtoAttachAnnotationsRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDtoAttachAnnotationsRequest) Set(val *DtoAttachAnnotationsRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDtoAttachAnnotationsRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDtoAttachAnnotationsRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDtoAttachAnnotationsRequest(val *DtoAttachAnnotationsRequest) *NullableDtoAttachAnnotationsRequest {
|
|
return &NullableDtoAttachAnnotationsRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDtoAttachAnnotationsRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDtoAttachAnnotationsRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|