-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodel_v0_0_39_step_time.go
343 lines (287 loc) · 9.16 KB
/
model_v0_0_39_step_time.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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
/*
Slurm REST API
API to access and control Slurm
API version: Slurm-24.05.2&openapi/dbv0.0.39&openapi/v0.0.39&openapi/slurmdbd&openapi/slurmctld
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package slurmrest
import (
"encoding/json"
)
// checks if the V0039StepTime type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &V0039StepTime{}
// V0039StepTime struct for V0039StepTime
type V0039StepTime struct {
Elapsed *int32 `json:"elapsed,omitempty"`
End *int64 `json:"end,omitempty"`
Start *int64 `json:"start,omitempty"`
Suspended *int32 `json:"suspended,omitempty"`
System *V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem `json:"system,omitempty"`
Total *V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem `json:"total,omitempty"`
User *V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem `json:"user,omitempty"`
}
// NewV0039StepTime instantiates a new V0039StepTime 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 NewV0039StepTime() *V0039StepTime {
this := V0039StepTime{}
return &this
}
// NewV0039StepTimeWithDefaults instantiates a new V0039StepTime 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 NewV0039StepTimeWithDefaults() *V0039StepTime {
this := V0039StepTime{}
return &this
}
// GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *V0039StepTime) GetElapsed() int32 {
if o == nil || IsNil(o.Elapsed) {
var ret int32
return ret
}
return *o.Elapsed
}
// GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039StepTime) GetElapsedOk() (*int32, bool) {
if o == nil || IsNil(o.Elapsed) {
return nil, false
}
return o.Elapsed, true
}
// HasElapsed returns a boolean if a field has been set.
func (o *V0039StepTime) HasElapsed() bool {
if o != nil && !IsNil(o.Elapsed) {
return true
}
return false
}
// SetElapsed gets a reference to the given int32 and assigns it to the Elapsed field.
func (o *V0039StepTime) SetElapsed(v int32) {
o.Elapsed = &v
}
// GetEnd returns the End field value if set, zero value otherwise.
func (o *V0039StepTime) GetEnd() int64 {
if o == nil || IsNil(o.End) {
var ret int64
return ret
}
return *o.End
}
// GetEndOk returns a tuple with the End field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039StepTime) GetEndOk() (*int64, bool) {
if o == nil || IsNil(o.End) {
return nil, false
}
return o.End, true
}
// HasEnd returns a boolean if a field has been set.
func (o *V0039StepTime) HasEnd() bool {
if o != nil && !IsNil(o.End) {
return true
}
return false
}
// SetEnd gets a reference to the given int64 and assigns it to the End field.
func (o *V0039StepTime) SetEnd(v int64) {
o.End = &v
}
// GetStart returns the Start field value if set, zero value otherwise.
func (o *V0039StepTime) GetStart() int64 {
if o == nil || IsNil(o.Start) {
var ret int64
return ret
}
return *o.Start
}
// GetStartOk returns a tuple with the Start field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039StepTime) GetStartOk() (*int64, bool) {
if o == nil || IsNil(o.Start) {
return nil, false
}
return o.Start, true
}
// HasStart returns a boolean if a field has been set.
func (o *V0039StepTime) HasStart() bool {
if o != nil && !IsNil(o.Start) {
return true
}
return false
}
// SetStart gets a reference to the given int64 and assigns it to the Start field.
func (o *V0039StepTime) SetStart(v int64) {
o.Start = &v
}
// GetSuspended returns the Suspended field value if set, zero value otherwise.
func (o *V0039StepTime) GetSuspended() int32 {
if o == nil || IsNil(o.Suspended) {
var ret int32
return ret
}
return *o.Suspended
}
// GetSuspendedOk returns a tuple with the Suspended field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039StepTime) GetSuspendedOk() (*int32, bool) {
if o == nil || IsNil(o.Suspended) {
return nil, false
}
return o.Suspended, true
}
// HasSuspended returns a boolean if a field has been set.
func (o *V0039StepTime) HasSuspended() bool {
if o != nil && !IsNil(o.Suspended) {
return true
}
return false
}
// SetSuspended gets a reference to the given int32 and assigns it to the Suspended field.
func (o *V0039StepTime) SetSuspended(v int32) {
o.Suspended = &v
}
// GetSystem returns the System field value if set, zero value otherwise.
func (o *V0039StepTime) GetSystem() V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem {
if o == nil || IsNil(o.System) {
var ret V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem
return ret
}
return *o.System
}
// GetSystemOk returns a tuple with the System field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039StepTime) GetSystemOk() (*V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem, bool) {
if o == nil || IsNil(o.System) {
return nil, false
}
return o.System, true
}
// HasSystem returns a boolean if a field has been set.
func (o *V0039StepTime) HasSystem() bool {
if o != nil && !IsNil(o.System) {
return true
}
return false
}
// SetSystem gets a reference to the given V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem and assigns it to the System field.
func (o *V0039StepTime) SetSystem(v V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem) {
o.System = &v
}
// GetTotal returns the Total field value if set, zero value otherwise.
func (o *V0039StepTime) GetTotal() V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem {
if o == nil || IsNil(o.Total) {
var ret V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem
return ret
}
return *o.Total
}
// GetTotalOk returns a tuple with the Total field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039StepTime) GetTotalOk() (*V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem, bool) {
if o == nil || IsNil(o.Total) {
return nil, false
}
return o.Total, true
}
// HasTotal returns a boolean if a field has been set.
func (o *V0039StepTime) HasTotal() bool {
if o != nil && !IsNil(o.Total) {
return true
}
return false
}
// SetTotal gets a reference to the given V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem and assigns it to the Total field.
func (o *V0039StepTime) SetTotal(v V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem) {
o.Total = &v
}
// GetUser returns the User field value if set, zero value otherwise.
func (o *V0039StepTime) GetUser() V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem {
if o == nil || IsNil(o.User) {
var ret V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem
return ret
}
return *o.User
}
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039StepTime) GetUserOk() (*V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
return o.User, true
}
// HasUser returns a boolean if a field has been set.
func (o *V0039StepTime) HasUser() bool {
if o != nil && !IsNil(o.User) {
return true
}
return false
}
// SetUser gets a reference to the given V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem and assigns it to the User field.
func (o *V0039StepTime) SetUser(v V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem) {
o.User = &v
}
func (o V0039StepTime) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o V0039StepTime) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Elapsed) {
toSerialize["elapsed"] = o.Elapsed
}
if !IsNil(o.End) {
toSerialize["end"] = o.End
}
if !IsNil(o.Start) {
toSerialize["start"] = o.Start
}
if !IsNil(o.Suspended) {
toSerialize["suspended"] = o.Suspended
}
if !IsNil(o.System) {
toSerialize["system"] = o.System
}
if !IsNil(o.Total) {
toSerialize["total"] = o.Total
}
if !IsNil(o.User) {
toSerialize["user"] = o.User
}
return toSerialize, nil
}
type NullableV0039StepTime struct {
value *V0039StepTime
isSet bool
}
func (v NullableV0039StepTime) Get() *V0039StepTime {
return v.value
}
func (v *NullableV0039StepTime) Set(val *V0039StepTime) {
v.value = val
v.isSet = true
}
func (v NullableV0039StepTime) IsSet() bool {
return v.isSet
}
func (v *NullableV0039StepTime) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableV0039StepTime(val *V0039StepTime) *NullableV0039StepTime {
return &NullableV0039StepTime{value: val, isSet: true}
}
func (v NullableV0039StepTime) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableV0039StepTime) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}