mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
269 lines
6.5 KiB
Go
269 lines
6.5 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 DtoQueueInfo type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &DtoQueueInfo{}
|
|
|
|
// DtoQueueInfo struct for DtoQueueInfo
|
|
type DtoQueueInfo struct {
|
|
Failed *int32 `json:"failed,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Pending *int32 `json:"pending,omitempty"`
|
|
Running *int32 `json:"running,omitempty"`
|
|
Scheduled *int32 `json:"scheduled,omitempty"`
|
|
}
|
|
|
|
// NewDtoQueueInfo instantiates a new DtoQueueInfo 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 NewDtoQueueInfo() *DtoQueueInfo {
|
|
this := DtoQueueInfo{}
|
|
return &this
|
|
}
|
|
|
|
// NewDtoQueueInfoWithDefaults instantiates a new DtoQueueInfo 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 NewDtoQueueInfoWithDefaults() *DtoQueueInfo {
|
|
this := DtoQueueInfo{}
|
|
return &this
|
|
}
|
|
|
|
// GetFailed returns the Failed field value if set, zero value otherwise.
|
|
func (o *DtoQueueInfo) GetFailed() int32 {
|
|
if o == nil || IsNil(o.Failed) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Failed
|
|
}
|
|
|
|
// GetFailedOk returns a tuple with the Failed field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DtoQueueInfo) GetFailedOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Failed) {
|
|
return nil, false
|
|
}
|
|
return o.Failed, true
|
|
}
|
|
|
|
// HasFailed returns a boolean if a field has been set.
|
|
func (o *DtoQueueInfo) HasFailed() bool {
|
|
if o != nil && !IsNil(o.Failed) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFailed gets a reference to the given int32 and assigns it to the Failed field.
|
|
func (o *DtoQueueInfo) SetFailed(v int32) {
|
|
o.Failed = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *DtoQueueInfo) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DtoQueueInfo) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *DtoQueueInfo) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *DtoQueueInfo) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetPending returns the Pending field value if set, zero value otherwise.
|
|
func (o *DtoQueueInfo) GetPending() int32 {
|
|
if o == nil || IsNil(o.Pending) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Pending
|
|
}
|
|
|
|
// GetPendingOk returns a tuple with the Pending field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DtoQueueInfo) GetPendingOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Pending) {
|
|
return nil, false
|
|
}
|
|
return o.Pending, true
|
|
}
|
|
|
|
// HasPending returns a boolean if a field has been set.
|
|
func (o *DtoQueueInfo) HasPending() bool {
|
|
if o != nil && !IsNil(o.Pending) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPending gets a reference to the given int32 and assigns it to the Pending field.
|
|
func (o *DtoQueueInfo) SetPending(v int32) {
|
|
o.Pending = &v
|
|
}
|
|
|
|
// GetRunning returns the Running field value if set, zero value otherwise.
|
|
func (o *DtoQueueInfo) GetRunning() int32 {
|
|
if o == nil || IsNil(o.Running) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Running
|
|
}
|
|
|
|
// GetRunningOk returns a tuple with the Running field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DtoQueueInfo) GetRunningOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Running) {
|
|
return nil, false
|
|
}
|
|
return o.Running, true
|
|
}
|
|
|
|
// HasRunning returns a boolean if a field has been set.
|
|
func (o *DtoQueueInfo) HasRunning() bool {
|
|
if o != nil && !IsNil(o.Running) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRunning gets a reference to the given int32 and assigns it to the Running field.
|
|
func (o *DtoQueueInfo) SetRunning(v int32) {
|
|
o.Running = &v
|
|
}
|
|
|
|
// GetScheduled returns the Scheduled field value if set, zero value otherwise.
|
|
func (o *DtoQueueInfo) GetScheduled() int32 {
|
|
if o == nil || IsNil(o.Scheduled) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Scheduled
|
|
}
|
|
|
|
// GetScheduledOk returns a tuple with the Scheduled field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DtoQueueInfo) GetScheduledOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Scheduled) {
|
|
return nil, false
|
|
}
|
|
return o.Scheduled, true
|
|
}
|
|
|
|
// HasScheduled returns a boolean if a field has been set.
|
|
func (o *DtoQueueInfo) HasScheduled() bool {
|
|
if o != nil && !IsNil(o.Scheduled) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetScheduled gets a reference to the given int32 and assigns it to the Scheduled field.
|
|
func (o *DtoQueueInfo) SetScheduled(v int32) {
|
|
o.Scheduled = &v
|
|
}
|
|
|
|
func (o DtoQueueInfo) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o DtoQueueInfo) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Failed) {
|
|
toSerialize["failed"] = o.Failed
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Pending) {
|
|
toSerialize["pending"] = o.Pending
|
|
}
|
|
if !IsNil(o.Running) {
|
|
toSerialize["running"] = o.Running
|
|
}
|
|
if !IsNil(o.Scheduled) {
|
|
toSerialize["scheduled"] = o.Scheduled
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableDtoQueueInfo struct {
|
|
value *DtoQueueInfo
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDtoQueueInfo) Get() *DtoQueueInfo {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDtoQueueInfo) Set(val *DtoQueueInfo) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDtoQueueInfo) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDtoQueueInfo) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDtoQueueInfo(val *DtoQueueInfo) *NullableDtoQueueInfo {
|
|
return &NullableDtoQueueInfo{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDtoQueueInfo) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDtoQueueInfo) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|