-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_v0_0_37_node.go
1644 lines (1413 loc) · 42.9 KB
/
model_v0_0_37_node.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
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Slurm Rest API
API to access and control Slurm.
API version: 0.0.37
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package slurmclient
import (
"encoding/json"
)
// checks if the V0037Node type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &V0037Node{}
// V0037Node struct for V0037Node
type V0037Node struct {
// computer architecture
Architecture *string `json:"architecture,omitempty"`
// BcastAddr
BurstbufferNetworkAddress *string `json:"burstbuffer_network_address,omitempty"`
// total number of boards per node
Boards *int32 `json:"boards,omitempty"`
// timestamp of node boot
BootTime *int64 `json:"boot_time,omitempty"`
// number of cores per socket
Cores *int32 `json:"cores,omitempty"`
// Default task binding
CpuBinding *int32 `json:"cpu_binding,omitempty"`
// CPU load * 100
CpuLoad *int64 `json:"cpu_load,omitempty"`
// free memory in MiB
FreeMemory *int32 `json:"free_memory,omitempty"`
// configured count of cpus running on the node
Cpus *int32 `json:"cpus,omitempty"`
Features *string `json:"features,omitempty"`
// list of a node's available features
ActiveFeatures *string `json:"active_features,omitempty"`
// list of a node's generic resources
Gres *string `json:"gres,omitempty"`
// list of drained GRES
GresDrained *string `json:"gres_drained,omitempty"`
// list of GRES in current use
GresUsed *string `json:"gres_used,omitempty"`
// mcs label if mcs plugin in use
McsLabel *string `json:"mcs_label,omitempty"`
// node name to slurm
Name *string `json:"name,omitempty"`
// state after reboot
NextStateAfterReboot *string `json:"next_state_after_reboot,omitempty"`
// node state flags
NextStateAfterRebootFlags []string `json:"next_state_after_reboot_flags,omitempty"`
// state after reboot
Address *string `json:"address,omitempty"`
// node's hostname
Hostname *string `json:"hostname,omitempty"`
// current node state
State *string `json:"state,omitempty"`
// node state flags
StateFlags []string `json:"state_flags,omitempty"`
// operating system
OperatingSystem *string `json:"operating_system,omitempty"`
// User allowed to use this node
Owner *string `json:"owner,omitempty"`
// assigned partitions
Partitions []string `json:"partitions,omitempty"`
// TCP port number of the slurmd
Port *int32 `json:"port,omitempty"`
// configured MB of real memory on the node
RealMemory *int32 `json:"real_memory,omitempty"`
// reason for node being DOWN or DRAINING
Reason *string `json:"reason,omitempty"`
// Time stamp when reason was set
ReasonChangedAt *int32 `json:"reason_changed_at,omitempty"`
// User that set the reason
ReasonSetByUser *string `json:"reason_set_by_user,omitempty"`
// timestamp of slurmd startup
SlurmdStartTime *int64 `json:"slurmd_start_time,omitempty"`
// total number of sockets per node
Sockets *int32 `json:"sockets,omitempty"`
// number of threads per core
Threads *int32 `json:"threads,omitempty"`
// configured MB of total disk in TMP_FS
TemporaryDisk *int32 `json:"temporary_disk,omitempty"`
// arbitrary priority of node for scheduling
Weight *int32 `json:"weight,omitempty"`
// TRES on node
Tres *string `json:"tres,omitempty"`
// TRES used on node
TresUsed *string `json:"tres_used,omitempty"`
// TRES weight used on node
TresWeighted *float64 `json:"tres_weighted,omitempty"`
// Slurmd version
SlurmdVersion *string `json:"slurmd_version,omitempty"`
// Allocated CPUs
AllocCpus *int64 `json:"alloc_cpus,omitempty"`
// Idle CPUs
IdleCpus *int64 `json:"idle_cpus,omitempty"`
// Allocated memory (MB)
AllocMemory *int64 `json:"alloc_memory,omitempty"`
}
// NewV0037Node instantiates a new V0037Node 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 NewV0037Node() *V0037Node {
this := V0037Node{}
return &this
}
// NewV0037NodeWithDefaults instantiates a new V0037Node 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 NewV0037NodeWithDefaults() *V0037Node {
this := V0037Node{}
return &this
}
// GetArchitecture returns the Architecture field value if set, zero value otherwise.
func (o *V0037Node) GetArchitecture() string {
if o == nil || IsNil(o.Architecture) {
var ret string
return ret
}
return *o.Architecture
}
// GetArchitectureOk returns a tuple with the Architecture field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetArchitectureOk() (*string, bool) {
if o == nil || IsNil(o.Architecture) {
return nil, false
}
return o.Architecture, true
}
// HasArchitecture returns a boolean if a field has been set.
func (o *V0037Node) HasArchitecture() bool {
if o != nil && !IsNil(o.Architecture) {
return true
}
return false
}
// SetArchitecture gets a reference to the given string and assigns it to the Architecture field.
func (o *V0037Node) SetArchitecture(v string) {
o.Architecture = &v
}
// GetBurstbufferNetworkAddress returns the BurstbufferNetworkAddress field value if set, zero value otherwise.
func (o *V0037Node) GetBurstbufferNetworkAddress() string {
if o == nil || IsNil(o.BurstbufferNetworkAddress) {
var ret string
return ret
}
return *o.BurstbufferNetworkAddress
}
// GetBurstbufferNetworkAddressOk returns a tuple with the BurstbufferNetworkAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetBurstbufferNetworkAddressOk() (*string, bool) {
if o == nil || IsNil(o.BurstbufferNetworkAddress) {
return nil, false
}
return o.BurstbufferNetworkAddress, true
}
// HasBurstbufferNetworkAddress returns a boolean if a field has been set.
func (o *V0037Node) HasBurstbufferNetworkAddress() bool {
if o != nil && !IsNil(o.BurstbufferNetworkAddress) {
return true
}
return false
}
// SetBurstbufferNetworkAddress gets a reference to the given string and assigns it to the BurstbufferNetworkAddress field.
func (o *V0037Node) SetBurstbufferNetworkAddress(v string) {
o.BurstbufferNetworkAddress = &v
}
// GetBoards returns the Boards field value if set, zero value otherwise.
func (o *V0037Node) GetBoards() int32 {
if o == nil || IsNil(o.Boards) {
var ret int32
return ret
}
return *o.Boards
}
// GetBoardsOk returns a tuple with the Boards field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetBoardsOk() (*int32, bool) {
if o == nil || IsNil(o.Boards) {
return nil, false
}
return o.Boards, true
}
// HasBoards returns a boolean if a field has been set.
func (o *V0037Node) HasBoards() bool {
if o != nil && !IsNil(o.Boards) {
return true
}
return false
}
// SetBoards gets a reference to the given int32 and assigns it to the Boards field.
func (o *V0037Node) SetBoards(v int32) {
o.Boards = &v
}
// GetBootTime returns the BootTime field value if set, zero value otherwise.
func (o *V0037Node) GetBootTime() int64 {
if o == nil || IsNil(o.BootTime) {
var ret int64
return ret
}
return *o.BootTime
}
// GetBootTimeOk returns a tuple with the BootTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetBootTimeOk() (*int64, bool) {
if o == nil || IsNil(o.BootTime) {
return nil, false
}
return o.BootTime, true
}
// HasBootTime returns a boolean if a field has been set.
func (o *V0037Node) HasBootTime() bool {
if o != nil && !IsNil(o.BootTime) {
return true
}
return false
}
// SetBootTime gets a reference to the given int64 and assigns it to the BootTime field.
func (o *V0037Node) SetBootTime(v int64) {
o.BootTime = &v
}
// GetCores returns the Cores field value if set, zero value otherwise.
func (o *V0037Node) GetCores() int32 {
if o == nil || IsNil(o.Cores) {
var ret int32
return ret
}
return *o.Cores
}
// GetCoresOk returns a tuple with the Cores field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetCoresOk() (*int32, bool) {
if o == nil || IsNil(o.Cores) {
return nil, false
}
return o.Cores, true
}
// HasCores returns a boolean if a field has been set.
func (o *V0037Node) HasCores() bool {
if o != nil && !IsNil(o.Cores) {
return true
}
return false
}
// SetCores gets a reference to the given int32 and assigns it to the Cores field.
func (o *V0037Node) SetCores(v int32) {
o.Cores = &v
}
// GetCpuBinding returns the CpuBinding field value if set, zero value otherwise.
func (o *V0037Node) GetCpuBinding() int32 {
if o == nil || IsNil(o.CpuBinding) {
var ret int32
return ret
}
return *o.CpuBinding
}
// GetCpuBindingOk returns a tuple with the CpuBinding field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetCpuBindingOk() (*int32, bool) {
if o == nil || IsNil(o.CpuBinding) {
return nil, false
}
return o.CpuBinding, true
}
// HasCpuBinding returns a boolean if a field has been set.
func (o *V0037Node) HasCpuBinding() bool {
if o != nil && !IsNil(o.CpuBinding) {
return true
}
return false
}
// SetCpuBinding gets a reference to the given int32 and assigns it to the CpuBinding field.
func (o *V0037Node) SetCpuBinding(v int32) {
o.CpuBinding = &v
}
// GetCpuLoad returns the CpuLoad field value if set, zero value otherwise.
func (o *V0037Node) GetCpuLoad() int64 {
if o == nil || IsNil(o.CpuLoad) {
var ret int64
return ret
}
return *o.CpuLoad
}
// GetCpuLoadOk returns a tuple with the CpuLoad field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetCpuLoadOk() (*int64, bool) {
if o == nil || IsNil(o.CpuLoad) {
return nil, false
}
return o.CpuLoad, true
}
// HasCpuLoad returns a boolean if a field has been set.
func (o *V0037Node) HasCpuLoad() bool {
if o != nil && !IsNil(o.CpuLoad) {
return true
}
return false
}
// SetCpuLoad gets a reference to the given int64 and assigns it to the CpuLoad field.
func (o *V0037Node) SetCpuLoad(v int64) {
o.CpuLoad = &v
}
// GetFreeMemory returns the FreeMemory field value if set, zero value otherwise.
func (o *V0037Node) GetFreeMemory() int32 {
if o == nil || IsNil(o.FreeMemory) {
var ret int32
return ret
}
return *o.FreeMemory
}
// GetFreeMemoryOk returns a tuple with the FreeMemory field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetFreeMemoryOk() (*int32, bool) {
if o == nil || IsNil(o.FreeMemory) {
return nil, false
}
return o.FreeMemory, true
}
// HasFreeMemory returns a boolean if a field has been set.
func (o *V0037Node) HasFreeMemory() bool {
if o != nil && !IsNil(o.FreeMemory) {
return true
}
return false
}
// SetFreeMemory gets a reference to the given int32 and assigns it to the FreeMemory field.
func (o *V0037Node) SetFreeMemory(v int32) {
o.FreeMemory = &v
}
// GetCpus returns the Cpus field value if set, zero value otherwise.
func (o *V0037Node) GetCpus() int32 {
if o == nil || IsNil(o.Cpus) {
var ret int32
return ret
}
return *o.Cpus
}
// GetCpusOk returns a tuple with the Cpus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetCpusOk() (*int32, bool) {
if o == nil || IsNil(o.Cpus) {
return nil, false
}
return o.Cpus, true
}
// HasCpus returns a boolean if a field has been set.
func (o *V0037Node) HasCpus() bool {
if o != nil && !IsNil(o.Cpus) {
return true
}
return false
}
// SetCpus gets a reference to the given int32 and assigns it to the Cpus field.
func (o *V0037Node) SetCpus(v int32) {
o.Cpus = &v
}
// GetFeatures returns the Features field value if set, zero value otherwise.
func (o *V0037Node) GetFeatures() string {
if o == nil || IsNil(o.Features) {
var ret string
return ret
}
return *o.Features
}
// GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetFeaturesOk() (*string, bool) {
if o == nil || IsNil(o.Features) {
return nil, false
}
return o.Features, true
}
// HasFeatures returns a boolean if a field has been set.
func (o *V0037Node) HasFeatures() bool {
if o != nil && !IsNil(o.Features) {
return true
}
return false
}
// SetFeatures gets a reference to the given string and assigns it to the Features field.
func (o *V0037Node) SetFeatures(v string) {
o.Features = &v
}
// GetActiveFeatures returns the ActiveFeatures field value if set, zero value otherwise.
func (o *V0037Node) GetActiveFeatures() string {
if o == nil || IsNil(o.ActiveFeatures) {
var ret string
return ret
}
return *o.ActiveFeatures
}
// GetActiveFeaturesOk returns a tuple with the ActiveFeatures field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetActiveFeaturesOk() (*string, bool) {
if o == nil || IsNil(o.ActiveFeatures) {
return nil, false
}
return o.ActiveFeatures, true
}
// HasActiveFeatures returns a boolean if a field has been set.
func (o *V0037Node) HasActiveFeatures() bool {
if o != nil && !IsNil(o.ActiveFeatures) {
return true
}
return false
}
// SetActiveFeatures gets a reference to the given string and assigns it to the ActiveFeatures field.
func (o *V0037Node) SetActiveFeatures(v string) {
o.ActiveFeatures = &v
}
// GetGres returns the Gres field value if set, zero value otherwise.
func (o *V0037Node) GetGres() string {
if o == nil || IsNil(o.Gres) {
var ret string
return ret
}
return *o.Gres
}
// GetGresOk returns a tuple with the Gres field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetGresOk() (*string, bool) {
if o == nil || IsNil(o.Gres) {
return nil, false
}
return o.Gres, true
}
// HasGres returns a boolean if a field has been set.
func (o *V0037Node) HasGres() bool {
if o != nil && !IsNil(o.Gres) {
return true
}
return false
}
// SetGres gets a reference to the given string and assigns it to the Gres field.
func (o *V0037Node) SetGres(v string) {
o.Gres = &v
}
// GetGresDrained returns the GresDrained field value if set, zero value otherwise.
func (o *V0037Node) GetGresDrained() string {
if o == nil || IsNil(o.GresDrained) {
var ret string
return ret
}
return *o.GresDrained
}
// GetGresDrainedOk returns a tuple with the GresDrained field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetGresDrainedOk() (*string, bool) {
if o == nil || IsNil(o.GresDrained) {
return nil, false
}
return o.GresDrained, true
}
// HasGresDrained returns a boolean if a field has been set.
func (o *V0037Node) HasGresDrained() bool {
if o != nil && !IsNil(o.GresDrained) {
return true
}
return false
}
// SetGresDrained gets a reference to the given string and assigns it to the GresDrained field.
func (o *V0037Node) SetGresDrained(v string) {
o.GresDrained = &v
}
// GetGresUsed returns the GresUsed field value if set, zero value otherwise.
func (o *V0037Node) GetGresUsed() string {
if o == nil || IsNil(o.GresUsed) {
var ret string
return ret
}
return *o.GresUsed
}
// GetGresUsedOk returns a tuple with the GresUsed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetGresUsedOk() (*string, bool) {
if o == nil || IsNil(o.GresUsed) {
return nil, false
}
return o.GresUsed, true
}
// HasGresUsed returns a boolean if a field has been set.
func (o *V0037Node) HasGresUsed() bool {
if o != nil && !IsNil(o.GresUsed) {
return true
}
return false
}
// SetGresUsed gets a reference to the given string and assigns it to the GresUsed field.
func (o *V0037Node) SetGresUsed(v string) {
o.GresUsed = &v
}
// GetMcsLabel returns the McsLabel field value if set, zero value otherwise.
func (o *V0037Node) GetMcsLabel() string {
if o == nil || IsNil(o.McsLabel) {
var ret string
return ret
}
return *o.McsLabel
}
// GetMcsLabelOk returns a tuple with the McsLabel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetMcsLabelOk() (*string, bool) {
if o == nil || IsNil(o.McsLabel) {
return nil, false
}
return o.McsLabel, true
}
// HasMcsLabel returns a boolean if a field has been set.
func (o *V0037Node) HasMcsLabel() bool {
if o != nil && !IsNil(o.McsLabel) {
return true
}
return false
}
// SetMcsLabel gets a reference to the given string and assigns it to the McsLabel field.
func (o *V0037Node) SetMcsLabel(v string) {
o.McsLabel = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *V0037Node) 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 *V0037Node) 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 *V0037Node) 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 *V0037Node) SetName(v string) {
o.Name = &v
}
// GetNextStateAfterReboot returns the NextStateAfterReboot field value if set, zero value otherwise.
func (o *V0037Node) GetNextStateAfterReboot() string {
if o == nil || IsNil(o.NextStateAfterReboot) {
var ret string
return ret
}
return *o.NextStateAfterReboot
}
// GetNextStateAfterRebootOk returns a tuple with the NextStateAfterReboot field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetNextStateAfterRebootOk() (*string, bool) {
if o == nil || IsNil(o.NextStateAfterReboot) {
return nil, false
}
return o.NextStateAfterReboot, true
}
// HasNextStateAfterReboot returns a boolean if a field has been set.
func (o *V0037Node) HasNextStateAfterReboot() bool {
if o != nil && !IsNil(o.NextStateAfterReboot) {
return true
}
return false
}
// SetNextStateAfterReboot gets a reference to the given string and assigns it to the NextStateAfterReboot field.
func (o *V0037Node) SetNextStateAfterReboot(v string) {
o.NextStateAfterReboot = &v
}
// GetNextStateAfterRebootFlags returns the NextStateAfterRebootFlags field value if set, zero value otherwise.
func (o *V0037Node) GetNextStateAfterRebootFlags() []string {
if o == nil || IsNil(o.NextStateAfterRebootFlags) {
var ret []string
return ret
}
return o.NextStateAfterRebootFlags
}
// GetNextStateAfterRebootFlagsOk returns a tuple with the NextStateAfterRebootFlags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetNextStateAfterRebootFlagsOk() ([]string, bool) {
if o == nil || IsNil(o.NextStateAfterRebootFlags) {
return nil, false
}
return o.NextStateAfterRebootFlags, true
}
// HasNextStateAfterRebootFlags returns a boolean if a field has been set.
func (o *V0037Node) HasNextStateAfterRebootFlags() bool {
if o != nil && !IsNil(o.NextStateAfterRebootFlags) {
return true
}
return false
}
// SetNextStateAfterRebootFlags gets a reference to the given []string and assigns it to the NextStateAfterRebootFlags field.
func (o *V0037Node) SetNextStateAfterRebootFlags(v []string) {
o.NextStateAfterRebootFlags = v
}
// GetAddress returns the Address field value if set, zero value otherwise.
func (o *V0037Node) GetAddress() string {
if o == nil || IsNil(o.Address) {
var ret string
return ret
}
return *o.Address
}
// GetAddressOk returns a tuple with the Address field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetAddressOk() (*string, bool) {
if o == nil || IsNil(o.Address) {
return nil, false
}
return o.Address, true
}
// HasAddress returns a boolean if a field has been set.
func (o *V0037Node) HasAddress() bool {
if o != nil && !IsNil(o.Address) {
return true
}
return false
}
// SetAddress gets a reference to the given string and assigns it to the Address field.
func (o *V0037Node) SetAddress(v string) {
o.Address = &v
}
// GetHostname returns the Hostname field value if set, zero value otherwise.
func (o *V0037Node) GetHostname() string {
if o == nil || IsNil(o.Hostname) {
var ret string
return ret
}
return *o.Hostname
}
// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetHostnameOk() (*string, bool) {
if o == nil || IsNil(o.Hostname) {
return nil, false
}
return o.Hostname, true
}
// HasHostname returns a boolean if a field has been set.
func (o *V0037Node) HasHostname() bool {
if o != nil && !IsNil(o.Hostname) {
return true
}
return false
}
// SetHostname gets a reference to the given string and assigns it to the Hostname field.
func (o *V0037Node) SetHostname(v string) {
o.Hostname = &v
}
// GetState returns the State field value if set, zero value otherwise.
func (o *V0037Node) GetState() string {
if o == nil || IsNil(o.State) {
var ret string
return ret
}
return *o.State
}
// GetStateOk returns a tuple with the State field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetStateOk() (*string, bool) {
if o == nil || IsNil(o.State) {
return nil, false
}
return o.State, true
}
// HasState returns a boolean if a field has been set.
func (o *V0037Node) HasState() bool {
if o != nil && !IsNil(o.State) {
return true
}
return false
}
// SetState gets a reference to the given string and assigns it to the State field.
func (o *V0037Node) SetState(v string) {
o.State = &v
}
// GetStateFlags returns the StateFlags field value if set, zero value otherwise.
func (o *V0037Node) GetStateFlags() []string {
if o == nil || IsNil(o.StateFlags) {
var ret []string
return ret
}
return o.StateFlags
}
// GetStateFlagsOk returns a tuple with the StateFlags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetStateFlagsOk() ([]string, bool) {
if o == nil || IsNil(o.StateFlags) {
return nil, false
}
return o.StateFlags, true
}
// HasStateFlags returns a boolean if a field has been set.
func (o *V0037Node) HasStateFlags() bool {
if o != nil && !IsNil(o.StateFlags) {
return true
}
return false
}
// SetStateFlags gets a reference to the given []string and assigns it to the StateFlags field.
func (o *V0037Node) SetStateFlags(v []string) {
o.StateFlags = v
}
// GetOperatingSystem returns the OperatingSystem field value if set, zero value otherwise.
func (o *V0037Node) GetOperatingSystem() string {
if o == nil || IsNil(o.OperatingSystem) {
var ret string
return ret
}
return *o.OperatingSystem
}
// GetOperatingSystemOk returns a tuple with the OperatingSystem field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetOperatingSystemOk() (*string, bool) {
if o == nil || IsNil(o.OperatingSystem) {
return nil, false
}
return o.OperatingSystem, true
}
// HasOperatingSystem returns a boolean if a field has been set.
func (o *V0037Node) HasOperatingSystem() bool {
if o != nil && !IsNil(o.OperatingSystem) {
return true
}
return false
}
// SetOperatingSystem gets a reference to the given string and assigns it to the OperatingSystem field.
func (o *V0037Node) SetOperatingSystem(v string) {
o.OperatingSystem = &v
}
// GetOwner returns the Owner field value if set, zero value otherwise.
func (o *V0037Node) GetOwner() string {
if o == nil || IsNil(o.Owner) {
var ret string
return ret
}
return *o.Owner
}
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetOwnerOk() (*string, bool) {
if o == nil || IsNil(o.Owner) {
return nil, false
}
return o.Owner, true
}
// HasOwner returns a boolean if a field has been set.
func (o *V0037Node) HasOwner() bool {
if o != nil && !IsNil(o.Owner) {
return true
}
return false
}
// SetOwner gets a reference to the given string and assigns it to the Owner field.
func (o *V0037Node) SetOwner(v string) {
o.Owner = &v
}
// GetPartitions returns the Partitions field value if set, zero value otherwise.
func (o *V0037Node) GetPartitions() []string {
if o == nil || IsNil(o.Partitions) {
var ret []string
return ret
}
return o.Partitions
}
// GetPartitionsOk returns a tuple with the Partitions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetPartitionsOk() ([]string, bool) {
if o == nil || IsNil(o.Partitions) {
return nil, false
}
return o.Partitions, true
}
// HasPartitions returns a boolean if a field has been set.
func (o *V0037Node) HasPartitions() bool {
if o != nil && !IsNil(o.Partitions) {
return true
}
return false
}
// SetPartitions gets a reference to the given []string and assigns it to the Partitions field.
func (o *V0037Node) SetPartitions(v []string) {
o.Partitions = v
}
// GetPort returns the Port field value if set, zero value otherwise.
func (o *V0037Node) GetPort() int32 {
if o == nil || IsNil(o.Port) {
var ret int32
return ret
}
return *o.Port
}
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetPortOk() (*int32, bool) {
if o == nil || IsNil(o.Port) {
return nil, false
}
return o.Port, true
}
// HasPort returns a boolean if a field has been set.
func (o *V0037Node) HasPort() bool {
if o != nil && !IsNil(o.Port) {
return true
}
return false
}
// SetPort gets a reference to the given int32 and assigns it to the Port field.
func (o *V0037Node) SetPort(v int32) {
o.Port = &v
}
// GetRealMemory returns the RealMemory field value if set, zero value otherwise.
func (o *V0037Node) GetRealMemory() int32 {
if o == nil || IsNil(o.RealMemory) {
var ret int32
return ret
}
return *o.RealMemory
}
// GetRealMemoryOk returns a tuple with the RealMemory field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetRealMemoryOk() (*int32, bool) {
if o == nil || IsNil(o.RealMemory) {
return nil, false
}
return o.RealMemory, true
}
// HasRealMemory returns a boolean if a field has been set.
func (o *V0037Node) HasRealMemory() bool {
if o != nil && !IsNil(o.RealMemory) {
return true
}
return false
}
// SetRealMemory gets a reference to the given int32 and assigns it to the RealMemory field.
func (o *V0037Node) SetRealMemory(v int32) {
o.RealMemory = &v
}
// GetReason returns the Reason field value if set, zero value otherwise.
func (o *V0037Node) GetReason() string {
if o == nil || IsNil(o.Reason) {
var ret string
return ret
}
return *o.Reason
}
// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037Node) GetReasonOk() (*string, bool) {