-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_mysql_statistic_get_load_average_response.go
223 lines (184 loc) · 6.26 KB
/
model_mysql_statistic_get_load_average_response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
/*
API Управляемых сервисов
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: v1.4.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package begetOpenapiCloud
import (
"encoding/json"
)
// MysqlStatisticGetLoadAverageResponse struct for MysqlStatisticGetLoadAverageResponse
type MysqlStatisticGetLoadAverageResponse struct {
Date []string `json:"date,omitempty"`
La1 []float64 `json:"la1,omitempty"`
La5 []float64 `json:"la5,omitempty"`
La15 []float64 `json:"la15,omitempty"`
}
// NewMysqlStatisticGetLoadAverageResponse instantiates a new MysqlStatisticGetLoadAverageResponse 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 NewMysqlStatisticGetLoadAverageResponse() *MysqlStatisticGetLoadAverageResponse {
this := MysqlStatisticGetLoadAverageResponse{}
return &this
}
// NewMysqlStatisticGetLoadAverageResponseWithDefaults instantiates a new MysqlStatisticGetLoadAverageResponse 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 NewMysqlStatisticGetLoadAverageResponseWithDefaults() *MysqlStatisticGetLoadAverageResponse {
this := MysqlStatisticGetLoadAverageResponse{}
return &this
}
// GetDate returns the Date field value if set, zero value otherwise.
func (o *MysqlStatisticGetLoadAverageResponse) GetDate() []string {
if o == nil || isNil(o.Date) {
var ret []string
return ret
}
return o.Date
}
// GetDateOk returns a tuple with the Date field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlStatisticGetLoadAverageResponse) GetDateOk() ([]string, bool) {
if o == nil || isNil(o.Date) {
return nil, false
}
return o.Date, true
}
// HasDate returns a boolean if a field has been set.
func (o *MysqlStatisticGetLoadAverageResponse) HasDate() bool {
if o != nil && !isNil(o.Date) {
return true
}
return false
}
// SetDate gets a reference to the given []string and assigns it to the Date field.
func (o *MysqlStatisticGetLoadAverageResponse) SetDate(v []string) {
o.Date = v
}
// GetLa1 returns the La1 field value if set, zero value otherwise.
func (o *MysqlStatisticGetLoadAverageResponse) GetLa1() []float64 {
if o == nil || isNil(o.La1) {
var ret []float64
return ret
}
return o.La1
}
// GetLa1Ok returns a tuple with the La1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlStatisticGetLoadAverageResponse) GetLa1Ok() ([]float64, bool) {
if o == nil || isNil(o.La1) {
return nil, false
}
return o.La1, true
}
// HasLa1 returns a boolean if a field has been set.
func (o *MysqlStatisticGetLoadAverageResponse) HasLa1() bool {
if o != nil && !isNil(o.La1) {
return true
}
return false
}
// SetLa1 gets a reference to the given []float64 and assigns it to the La1 field.
func (o *MysqlStatisticGetLoadAverageResponse) SetLa1(v []float64) {
o.La1 = v
}
// GetLa5 returns the La5 field value if set, zero value otherwise.
func (o *MysqlStatisticGetLoadAverageResponse) GetLa5() []float64 {
if o == nil || isNil(o.La5) {
var ret []float64
return ret
}
return o.La5
}
// GetLa5Ok returns a tuple with the La5 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlStatisticGetLoadAverageResponse) GetLa5Ok() ([]float64, bool) {
if o == nil || isNil(o.La5) {
return nil, false
}
return o.La5, true
}
// HasLa5 returns a boolean if a field has been set.
func (o *MysqlStatisticGetLoadAverageResponse) HasLa5() bool {
if o != nil && !isNil(o.La5) {
return true
}
return false
}
// SetLa5 gets a reference to the given []float64 and assigns it to the La5 field.
func (o *MysqlStatisticGetLoadAverageResponse) SetLa5(v []float64) {
o.La5 = v
}
// GetLa15 returns the La15 field value if set, zero value otherwise.
func (o *MysqlStatisticGetLoadAverageResponse) GetLa15() []float64 {
if o == nil || isNil(o.La15) {
var ret []float64
return ret
}
return o.La15
}
// GetLa15Ok returns a tuple with the La15 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlStatisticGetLoadAverageResponse) GetLa15Ok() ([]float64, bool) {
if o == nil || isNil(o.La15) {
return nil, false
}
return o.La15, true
}
// HasLa15 returns a boolean if a field has been set.
func (o *MysqlStatisticGetLoadAverageResponse) HasLa15() bool {
if o != nil && !isNil(o.La15) {
return true
}
return false
}
// SetLa15 gets a reference to the given []float64 and assigns it to the La15 field.
func (o *MysqlStatisticGetLoadAverageResponse) SetLa15(v []float64) {
o.La15 = v
}
func (o MysqlStatisticGetLoadAverageResponse) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.Date) {
toSerialize["date"] = o.Date
}
if !isNil(o.La1) {
toSerialize["la1"] = o.La1
}
if !isNil(o.La5) {
toSerialize["la5"] = o.La5
}
if !isNil(o.La15) {
toSerialize["la15"] = o.La15
}
return json.Marshal(toSerialize)
}
type NullableMysqlStatisticGetLoadAverageResponse struct {
value *MysqlStatisticGetLoadAverageResponse
isSet bool
}
func (v NullableMysqlStatisticGetLoadAverageResponse) Get() *MysqlStatisticGetLoadAverageResponse {
return v.value
}
func (v *NullableMysqlStatisticGetLoadAverageResponse) Set(val *MysqlStatisticGetLoadAverageResponse) {
v.value = val
v.isSet = true
}
func (v NullableMysqlStatisticGetLoadAverageResponse) IsSet() bool {
return v.isSet
}
func (v *NullableMysqlStatisticGetLoadAverageResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMysqlStatisticGetLoadAverageResponse(val *MysqlStatisticGetLoadAverageResponse) *NullableMysqlStatisticGetLoadAverageResponse {
return &NullableMysqlStatisticGetLoadAverageResponse{value: val, isSet: true}
}
func (v NullableMysqlStatisticGetLoadAverageResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMysqlStatisticGetLoadAverageResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}