-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_v0_0_39_job_time.go
451 lines (380 loc) · 11.7 KB
/
model_v0_0_39_job_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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
/*
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 V0039JobTime type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &V0039JobTime{}
// V0039JobTime struct for V0039JobTime
type V0039JobTime struct {
Elapsed *int32 `json:"elapsed,omitempty"`
Eligible *int64 `json:"eligible,omitempty"`
End *int64 `json:"end,omitempty"`
Start *int64 `json:"start,omitempty"`
Submission *int64 `json:"submission,omitempty"`
Suspended *int32 `json:"suspended,omitempty"`
System *V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem `json:"system,omitempty"`
Limit *V0039Uint32NoVal `json:"limit,omitempty"`
Total *V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem `json:"total,omitempty"`
User *V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem `json:"user,omitempty"`
}
// NewV0039JobTime instantiates a new V0039JobTime 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 NewV0039JobTime() *V0039JobTime {
this := V0039JobTime{}
return &this
}
// NewV0039JobTimeWithDefaults instantiates a new V0039JobTime 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 NewV0039JobTimeWithDefaults() *V0039JobTime {
this := V0039JobTime{}
return &this
}
// GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *V0039JobTime) 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 *V0039JobTime) 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 *V0039JobTime) 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 *V0039JobTime) SetElapsed(v int32) {
o.Elapsed = &v
}
// GetEligible returns the Eligible field value if set, zero value otherwise.
func (o *V0039JobTime) GetEligible() int64 {
if o == nil || IsNil(o.Eligible) {
var ret int64
return ret
}
return *o.Eligible
}
// GetEligibleOk returns a tuple with the Eligible field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039JobTime) GetEligibleOk() (*int64, bool) {
if o == nil || IsNil(o.Eligible) {
return nil, false
}
return o.Eligible, true
}
// HasEligible returns a boolean if a field has been set.
func (o *V0039JobTime) HasEligible() bool {
if o != nil && !IsNil(o.Eligible) {
return true
}
return false
}
// SetEligible gets a reference to the given int64 and assigns it to the Eligible field.
func (o *V0039JobTime) SetEligible(v int64) {
o.Eligible = &v
}
// GetEnd returns the End field value if set, zero value otherwise.
func (o *V0039JobTime) 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 *V0039JobTime) 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 *V0039JobTime) 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 *V0039JobTime) SetEnd(v int64) {
o.End = &v
}
// GetStart returns the Start field value if set, zero value otherwise.
func (o *V0039JobTime) 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 *V0039JobTime) 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 *V0039JobTime) 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 *V0039JobTime) SetStart(v int64) {
o.Start = &v
}
// GetSubmission returns the Submission field value if set, zero value otherwise.
func (o *V0039JobTime) GetSubmission() int64 {
if o == nil || IsNil(o.Submission) {
var ret int64
return ret
}
return *o.Submission
}
// GetSubmissionOk returns a tuple with the Submission field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039JobTime) GetSubmissionOk() (*int64, bool) {
if o == nil || IsNil(o.Submission) {
return nil, false
}
return o.Submission, true
}
// HasSubmission returns a boolean if a field has been set.
func (o *V0039JobTime) HasSubmission() bool {
if o != nil && !IsNil(o.Submission) {
return true
}
return false
}
// SetSubmission gets a reference to the given int64 and assigns it to the Submission field.
func (o *V0039JobTime) SetSubmission(v int64) {
o.Submission = &v
}
// GetSuspended returns the Suspended field value if set, zero value otherwise.
func (o *V0039JobTime) 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 *V0039JobTime) 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 *V0039JobTime) 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 *V0039JobTime) SetSuspended(v int32) {
o.Suspended = &v
}
// GetSystem returns the System field value if set, zero value otherwise.
func (o *V0039JobTime) GetSystem() V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem {
if o == nil || IsNil(o.System) {
var ret V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem
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 *V0039JobTime) GetSystemOk() (*V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem, 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 *V0039JobTime) HasSystem() bool {
if o != nil && !IsNil(o.System) {
return true
}
return false
}
// SetSystem gets a reference to the given V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem and assigns it to the System field.
func (o *V0039JobTime) SetSystem(v V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem) {
o.System = &v
}
// GetLimit returns the Limit field value if set, zero value otherwise.
func (o *V0039JobTime) GetLimit() V0039Uint32NoVal {
if o == nil || IsNil(o.Limit) {
var ret V0039Uint32NoVal
return ret
}
return *o.Limit
}
// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0039JobTime) GetLimitOk() (*V0039Uint32NoVal, bool) {
if o == nil || IsNil(o.Limit) {
return nil, false
}
return o.Limit, true
}
// HasLimit returns a boolean if a field has been set.
func (o *V0039JobTime) HasLimit() bool {
if o != nil && !IsNil(o.Limit) {
return true
}
return false
}
// SetLimit gets a reference to the given V0039Uint32NoVal and assigns it to the Limit field.
func (o *V0039JobTime) SetLimit(v V0039Uint32NoVal) {
o.Limit = &v
}
// GetTotal returns the Total field value if set, zero value otherwise.
func (o *V0039JobTime) GetTotal() V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem {
if o == nil || IsNil(o.Total) {
var ret V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem
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 *V0039JobTime) GetTotalOk() (*V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem, 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 *V0039JobTime) HasTotal() bool {
if o != nil && !IsNil(o.Total) {
return true
}
return false
}
// SetTotal gets a reference to the given V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem and assigns it to the Total field.
func (o *V0039JobTime) SetTotal(v V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem) {
o.Total = &v
}
// GetUser returns the User field value if set, zero value otherwise.
func (o *V0039JobTime) GetUser() V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem {
if o == nil || IsNil(o.User) {
var ret V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem
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 *V0039JobTime) GetUserOk() (*V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem, 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 *V0039JobTime) HasUser() bool {
if o != nil && !IsNil(o.User) {
return true
}
return false
}
// SetUser gets a reference to the given V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem and assigns it to the User field.
func (o *V0039JobTime) SetUser(v V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem) {
o.User = &v
}
func (o V0039JobTime) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o V0039JobTime) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Elapsed) {
toSerialize["elapsed"] = o.Elapsed
}
if !IsNil(o.Eligible) {
toSerialize["eligible"] = o.Eligible
}
if !IsNil(o.End) {
toSerialize["end"] = o.End
}
if !IsNil(o.Start) {
toSerialize["start"] = o.Start
}
if !IsNil(o.Submission) {
toSerialize["submission"] = o.Submission
}
if !IsNil(o.Suspended) {
toSerialize["suspended"] = o.Suspended
}
if !IsNil(o.System) {
toSerialize["system"] = o.System
}
if !IsNil(o.Limit) {
toSerialize["limit"] = o.Limit
}
if !IsNil(o.Total) {
toSerialize["total"] = o.Total
}
if !IsNil(o.User) {
toSerialize["user"] = o.User
}
return toSerialize, nil
}
type NullableV0039JobTime struct {
value *V0039JobTime
isSet bool
}
func (v NullableV0039JobTime) Get() *V0039JobTime {
return v.value
}
func (v *NullableV0039JobTime) Set(val *V0039JobTime) {
v.value = val
v.isSet = true
}
func (v NullableV0039JobTime) IsSet() bool {
return v.isSet
}
func (v *NullableV0039JobTime) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableV0039JobTime(val *V0039JobTime) *NullableV0039JobTime {
return &NullableV0039JobTime{value: val, isSet: true}
}
func (v NullableV0039JobTime) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableV0039JobTime) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}