-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_v0_0_37_job_properties.go
2754 lines (2368 loc) · 78.9 KB
/
model_v0_0_37_job_properties.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"
"bytes"
"fmt"
)
// checks if the V0037JobProperties type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &V0037JobProperties{}
// V0037JobProperties struct for V0037JobProperties
type V0037JobProperties struct {
// Charge resources used by this job to specified account.
Account *string `json:"account,omitempty"`
// Define the job accounting and profiling sampling intervals.
AccountGatherFreqency *string `json:"account_gather_freqency,omitempty"`
// Arguments to the script.
Argv []string `json:"argv,omitempty"`
// Submit a job array, multiple jobs to be executed with identical parameters. The indexes specification identifies what array index values should be used.
Array *string `json:"array,omitempty"`
// features required for batch script's node
BatchFeatures *string `json:"batch_features,omitempty"`
// Submit the batch script to the Slurm controller immediately, like normal, but tell the controller to defer the allocation of the job until the specified time.
BeginTime *int64 `json:"begin_time,omitempty"`
// Burst buffer specification.
BurstBuffer *string `json:"burst_buffer,omitempty"`
// Specifies features that a federated cluster must have to have a sibling job submitted to it.
ClusterConstraints *string `json:"cluster_constraints,omitempty"`
// An arbitrary comment.
Comment *string `json:"comment,omitempty"`
// node features required by job.
Constraints *string `json:"constraints,omitempty"`
// Count of specialized threads per node reserved by the job for system operations and not used by the application.
CoreSpecification *int32 `json:"core_specification,omitempty"`
// Restrict node selection to nodes with at least the specified number of cores per socket.
CoresPerSocket *int32 `json:"cores_per_socket,omitempty"`
// Cpu binding
CpuBinding *string `json:"cpu_binding,omitempty"`
// Cpu binding hint
CpuBindingHint *string `json:"cpu_binding_hint,omitempty"`
// Request that job steps initiated by srun commands inside this sbatch script be run at some requested frequency if possible, on the CPUs selected for the step on the compute node(s).
CpuFrequency *string `json:"cpu_frequency,omitempty"`
// Number of CPUs requested per allocated GPU.
CpusPerGpu *string `json:"cpus_per_gpu,omitempty"`
// Advise the Slurm controller that ensuing job steps will require ncpus number of processors per task.
CpusPerTask *int32 `json:"cpus_per_task,omitempty"`
// Instruct Slurm to connect the batch script's standard output directly to the file name.
CurrentWorkingDirectory *string `json:"current_working_directory,omitempty"`
// Remove the job if no ending is possible before this deadline (start > (deadline - time[-min])).
Deadline *string `json:"deadline,omitempty"`
// Do not reboot nodes in order to satisfied this job's feature specification if the job has been eligible to run for less than this time period.
DelayBoot *int32 `json:"delay_boot,omitempty"`
// Defer the start of this job until the specified dependencies have been satisfied completed.
Dependency *string `json:"dependency,omitempty"`
// Specify alternate distribution methods for remote processes.
Distribution *string `json:"distribution,omitempty"`
// Dictionary of environment entries.
Environment map[string]interface{} `json:"environment"`
// The job allocation can share nodes just other users with the \"user\" option or with the \"mcs\" option).
Exclusive *string `json:"exclusive,omitempty"`
// Load new login environment for user on job node.
GetUserEnvironment *bool `json:"get_user_environment,omitempty"`
// Specifies a comma delimited list of generic consumable resources.
Gres *string `json:"gres,omitempty"`
// Specify generic resource task binding options.
GresFlags *string `json:"gres_flags,omitempty"`
// Requested binding of tasks to GPU.
GpuBinding *string `json:"gpu_binding,omitempty"`
// Requested GPU frequency.
GpuFrequency *string `json:"gpu_frequency,omitempty"`
// GPUs per job.
Gpus *string `json:"gpus,omitempty"`
// GPUs per node.
GpusPerNode *string `json:"gpus_per_node,omitempty"`
// GPUs per socket.
GpusPerSocket *string `json:"gpus_per_socket,omitempty"`
// GPUs per task.
GpusPerTask *string `json:"gpus_per_task,omitempty"`
// Specify the job is to be submitted in a held state (priority of zero).
Hold *bool `json:"hold,omitempty"`
// If a job has an invalid dependency, then Slurm is to terminate it.
KillOnInvalidDependency *bool `json:"kill_on_invalid_dependency,omitempty"`
// Specification of licenses (or other resources available on all nodes of the cluster) which must be allocated to this job.
Licenses *string `json:"licenses,omitempty"`
// Notify user by email when certain event types occur.
MailType *string `json:"mail_type,omitempty"`
// User to receive email notification of state changes as defined by mail_type.
MailUser *string `json:"mail_user,omitempty"`
// This parameter is a group among the groups of the user.
McsLabel *string `json:"mcs_label,omitempty"`
// Bind tasks to memory.
MemoryBinding *string `json:"memory_binding,omitempty"`
// Minimum real memory per cpu (MB).
MemoryPerCpu *int32 `json:"memory_per_cpu,omitempty"`
// Minimum memory required per allocated GPU.
MemoryPerGpu *int32 `json:"memory_per_gpu,omitempty"`
// Minimum real memory per node (MB).
MemoryPerNode *int32 `json:"memory_per_node,omitempty"`
// Minimum number of CPUs per node.
MinimumCpusPerNode *int32 `json:"minimum_cpus_per_node,omitempty"`
// If a range of node counts is given, prefer the smaller count.
MinimumNodes *bool `json:"minimum_nodes,omitempty"`
// Specify a name for the job allocation.
Name *string `json:"name,omitempty"`
// Run the job with an adjusted scheduling priority within Slurm.
Nice *string `json:"nice,omitempty"`
// Do not automatically terminate a job if one of the nodes it has been allocated fails.
NoKill *bool `json:"no_kill,omitempty"`
// Request that a minimum of minnodes nodes and a maximum node count.
Nodes []int32 `json:"nodes,omitempty"`
// Open the output and error files using append or truncate mode as specified.
OpenMode *string `json:"open_mode,omitempty"`
// Request a specific partition for the resource allocation.
Partition *string `json:"partition,omitempty"`
// Request a specific job priority.
Priority *string `json:"priority,omitempty"`
// Request a quality of service for the job.
Qos *string `json:"qos,omitempty"`
// Specifies that the batch job should eligible to being requeue.
Requeue *bool `json:"requeue,omitempty"`
// Allocate resources for the job from the named reservation.
Reservation *string `json:"reservation,omitempty"`
// When a job is within sig_time seconds of its end time, send it the signal sig_num.
Signal *string `json:"signal,omitempty"`
// Restrict node selection to nodes with at least the specified number of sockets.
SocketsPerNode *int32 `json:"sockets_per_node,omitempty"`
// Spread the job allocation over as many nodes as possible and attempt to evenly distribute tasks across the allocated nodes.
SpreadJob *bool `json:"spread_job,omitempty"`
// Instruct Slurm to connect the batch script's standard error directly to the file name.
StandardError *string `json:"standard_error,omitempty"`
// Instruct Slurm to connect the batch script's standard input directly to the file name specified.
StandardInput *string `json:"standard_input,omitempty"`
// Instruct Slurm to connect the batch script's standard output directly to the file name.
StandardOutput *string `json:"standard_output,omitempty"`
// Advises the Slurm controller that job steps run within the allocation will launch a maximum of number tasks and to provide for sufficient resources.
Tasks *int32 `json:"tasks,omitempty"`
// Request the maximum ntasks be invoked on each core.
TasksPerCore *int32 `json:"tasks_per_core,omitempty"`
// Request the maximum ntasks be invoked on each node.
TasksPerNode *int32 `json:"tasks_per_node,omitempty"`
// Request the maximum ntasks be invoked on each socket.
TasksPerSocket *int32 `json:"tasks_per_socket,omitempty"`
// Count of specialized threads per node reserved by the job for system operations and not used by the application.
ThreadSpecification *int32 `json:"thread_specification,omitempty"`
// Restrict node selection to nodes with at least the specified number of threads per core.
ThreadsPerCore *int32 `json:"threads_per_core,omitempty"`
// Step time limit.
TimeLimit *int32 `json:"time_limit,omitempty"`
// Minimum run time in minutes.
TimeMinimum *int32 `json:"time_minimum,omitempty"`
// Do not begin execution until all nodes are ready for use.
WaitAllNodes *bool `json:"wait_all_nodes,omitempty"`
// Specify wckey to be used with job.
Wckey *string `json:"wckey,omitempty"`
}
type _V0037JobProperties V0037JobProperties
// NewV0037JobProperties instantiates a new V0037JobProperties 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 NewV0037JobProperties(environment map[string]interface{}) *V0037JobProperties {
this := V0037JobProperties{}
this.Environment = environment
var openMode string = "append"
this.OpenMode = &openMode
return &this
}
// NewV0037JobPropertiesWithDefaults instantiates a new V0037JobProperties 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 NewV0037JobPropertiesWithDefaults() *V0037JobProperties {
this := V0037JobProperties{}
var openMode string = "append"
this.OpenMode = &openMode
return &this
}
// GetAccount returns the Account field value if set, zero value otherwise.
func (o *V0037JobProperties) GetAccount() string {
if o == nil || IsNil(o.Account) {
var ret string
return ret
}
return *o.Account
}
// GetAccountOk returns a tuple with the Account field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetAccountOk() (*string, bool) {
if o == nil || IsNil(o.Account) {
return nil, false
}
return o.Account, true
}
// HasAccount returns a boolean if a field has been set.
func (o *V0037JobProperties) HasAccount() bool {
if o != nil && !IsNil(o.Account) {
return true
}
return false
}
// SetAccount gets a reference to the given string and assigns it to the Account field.
func (o *V0037JobProperties) SetAccount(v string) {
o.Account = &v
}
// GetAccountGatherFreqency returns the AccountGatherFreqency field value if set, zero value otherwise.
func (o *V0037JobProperties) GetAccountGatherFreqency() string {
if o == nil || IsNil(o.AccountGatherFreqency) {
var ret string
return ret
}
return *o.AccountGatherFreqency
}
// GetAccountGatherFreqencyOk returns a tuple with the AccountGatherFreqency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetAccountGatherFreqencyOk() (*string, bool) {
if o == nil || IsNil(o.AccountGatherFreqency) {
return nil, false
}
return o.AccountGatherFreqency, true
}
// HasAccountGatherFreqency returns a boolean if a field has been set.
func (o *V0037JobProperties) HasAccountGatherFreqency() bool {
if o != nil && !IsNil(o.AccountGatherFreqency) {
return true
}
return false
}
// SetAccountGatherFreqency gets a reference to the given string and assigns it to the AccountGatherFreqency field.
func (o *V0037JobProperties) SetAccountGatherFreqency(v string) {
o.AccountGatherFreqency = &v
}
// GetArgv returns the Argv field value if set, zero value otherwise.
func (o *V0037JobProperties) GetArgv() []string {
if o == nil || IsNil(o.Argv) {
var ret []string
return ret
}
return o.Argv
}
// GetArgvOk returns a tuple with the Argv field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetArgvOk() ([]string, bool) {
if o == nil || IsNil(o.Argv) {
return nil, false
}
return o.Argv, true
}
// HasArgv returns a boolean if a field has been set.
func (o *V0037JobProperties) HasArgv() bool {
if o != nil && !IsNil(o.Argv) {
return true
}
return false
}
// SetArgv gets a reference to the given []string and assigns it to the Argv field.
func (o *V0037JobProperties) SetArgv(v []string) {
o.Argv = v
}
// GetArray returns the Array field value if set, zero value otherwise.
func (o *V0037JobProperties) GetArray() string {
if o == nil || IsNil(o.Array) {
var ret string
return ret
}
return *o.Array
}
// GetArrayOk returns a tuple with the Array field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetArrayOk() (*string, bool) {
if o == nil || IsNil(o.Array) {
return nil, false
}
return o.Array, true
}
// HasArray returns a boolean if a field has been set.
func (o *V0037JobProperties) HasArray() bool {
if o != nil && !IsNil(o.Array) {
return true
}
return false
}
// SetArray gets a reference to the given string and assigns it to the Array field.
func (o *V0037JobProperties) SetArray(v string) {
o.Array = &v
}
// GetBatchFeatures returns the BatchFeatures field value if set, zero value otherwise.
func (o *V0037JobProperties) GetBatchFeatures() string {
if o == nil || IsNil(o.BatchFeatures) {
var ret string
return ret
}
return *o.BatchFeatures
}
// GetBatchFeaturesOk returns a tuple with the BatchFeatures field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetBatchFeaturesOk() (*string, bool) {
if o == nil || IsNil(o.BatchFeatures) {
return nil, false
}
return o.BatchFeatures, true
}
// HasBatchFeatures returns a boolean if a field has been set.
func (o *V0037JobProperties) HasBatchFeatures() bool {
if o != nil && !IsNil(o.BatchFeatures) {
return true
}
return false
}
// SetBatchFeatures gets a reference to the given string and assigns it to the BatchFeatures field.
func (o *V0037JobProperties) SetBatchFeatures(v string) {
o.BatchFeatures = &v
}
// GetBeginTime returns the BeginTime field value if set, zero value otherwise.
func (o *V0037JobProperties) GetBeginTime() int64 {
if o == nil || IsNil(o.BeginTime) {
var ret int64
return ret
}
return *o.BeginTime
}
// GetBeginTimeOk returns a tuple with the BeginTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetBeginTimeOk() (*int64, bool) {
if o == nil || IsNil(o.BeginTime) {
return nil, false
}
return o.BeginTime, true
}
// HasBeginTime returns a boolean if a field has been set.
func (o *V0037JobProperties) HasBeginTime() bool {
if o != nil && !IsNil(o.BeginTime) {
return true
}
return false
}
// SetBeginTime gets a reference to the given int64 and assigns it to the BeginTime field.
func (o *V0037JobProperties) SetBeginTime(v int64) {
o.BeginTime = &v
}
// GetBurstBuffer returns the BurstBuffer field value if set, zero value otherwise.
func (o *V0037JobProperties) GetBurstBuffer() string {
if o == nil || IsNil(o.BurstBuffer) {
var ret string
return ret
}
return *o.BurstBuffer
}
// GetBurstBufferOk returns a tuple with the BurstBuffer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetBurstBufferOk() (*string, bool) {
if o == nil || IsNil(o.BurstBuffer) {
return nil, false
}
return o.BurstBuffer, true
}
// HasBurstBuffer returns a boolean if a field has been set.
func (o *V0037JobProperties) HasBurstBuffer() bool {
if o != nil && !IsNil(o.BurstBuffer) {
return true
}
return false
}
// SetBurstBuffer gets a reference to the given string and assigns it to the BurstBuffer field.
func (o *V0037JobProperties) SetBurstBuffer(v string) {
o.BurstBuffer = &v
}
// GetClusterConstraints returns the ClusterConstraints field value if set, zero value otherwise.
func (o *V0037JobProperties) GetClusterConstraints() string {
if o == nil || IsNil(o.ClusterConstraints) {
var ret string
return ret
}
return *o.ClusterConstraints
}
// GetClusterConstraintsOk returns a tuple with the ClusterConstraints field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetClusterConstraintsOk() (*string, bool) {
if o == nil || IsNil(o.ClusterConstraints) {
return nil, false
}
return o.ClusterConstraints, true
}
// HasClusterConstraints returns a boolean if a field has been set.
func (o *V0037JobProperties) HasClusterConstraints() bool {
if o != nil && !IsNil(o.ClusterConstraints) {
return true
}
return false
}
// SetClusterConstraints gets a reference to the given string and assigns it to the ClusterConstraints field.
func (o *V0037JobProperties) SetClusterConstraints(v string) {
o.ClusterConstraints = &v
}
// GetComment returns the Comment field value if set, zero value otherwise.
func (o *V0037JobProperties) GetComment() string {
if o == nil || IsNil(o.Comment) {
var ret string
return ret
}
return *o.Comment
}
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetCommentOk() (*string, bool) {
if o == nil || IsNil(o.Comment) {
return nil, false
}
return o.Comment, true
}
// HasComment returns a boolean if a field has been set.
func (o *V0037JobProperties) HasComment() bool {
if o != nil && !IsNil(o.Comment) {
return true
}
return false
}
// SetComment gets a reference to the given string and assigns it to the Comment field.
func (o *V0037JobProperties) SetComment(v string) {
o.Comment = &v
}
// GetConstraints returns the Constraints field value if set, zero value otherwise.
func (o *V0037JobProperties) GetConstraints() string {
if o == nil || IsNil(o.Constraints) {
var ret string
return ret
}
return *o.Constraints
}
// GetConstraintsOk returns a tuple with the Constraints field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetConstraintsOk() (*string, bool) {
if o == nil || IsNil(o.Constraints) {
return nil, false
}
return o.Constraints, true
}
// HasConstraints returns a boolean if a field has been set.
func (o *V0037JobProperties) HasConstraints() bool {
if o != nil && !IsNil(o.Constraints) {
return true
}
return false
}
// SetConstraints gets a reference to the given string and assigns it to the Constraints field.
func (o *V0037JobProperties) SetConstraints(v string) {
o.Constraints = &v
}
// GetCoreSpecification returns the CoreSpecification field value if set, zero value otherwise.
func (o *V0037JobProperties) GetCoreSpecification() int32 {
if o == nil || IsNil(o.CoreSpecification) {
var ret int32
return ret
}
return *o.CoreSpecification
}
// GetCoreSpecificationOk returns a tuple with the CoreSpecification field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetCoreSpecificationOk() (*int32, bool) {
if o == nil || IsNil(o.CoreSpecification) {
return nil, false
}
return o.CoreSpecification, true
}
// HasCoreSpecification returns a boolean if a field has been set.
func (o *V0037JobProperties) HasCoreSpecification() bool {
if o != nil && !IsNil(o.CoreSpecification) {
return true
}
return false
}
// SetCoreSpecification gets a reference to the given int32 and assigns it to the CoreSpecification field.
func (o *V0037JobProperties) SetCoreSpecification(v int32) {
o.CoreSpecification = &v
}
// GetCoresPerSocket returns the CoresPerSocket field value if set, zero value otherwise.
func (o *V0037JobProperties) GetCoresPerSocket() int32 {
if o == nil || IsNil(o.CoresPerSocket) {
var ret int32
return ret
}
return *o.CoresPerSocket
}
// GetCoresPerSocketOk returns a tuple with the CoresPerSocket field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetCoresPerSocketOk() (*int32, bool) {
if o == nil || IsNil(o.CoresPerSocket) {
return nil, false
}
return o.CoresPerSocket, true
}
// HasCoresPerSocket returns a boolean if a field has been set.
func (o *V0037JobProperties) HasCoresPerSocket() bool {
if o != nil && !IsNil(o.CoresPerSocket) {
return true
}
return false
}
// SetCoresPerSocket gets a reference to the given int32 and assigns it to the CoresPerSocket field.
func (o *V0037JobProperties) SetCoresPerSocket(v int32) {
o.CoresPerSocket = &v
}
// GetCpuBinding returns the CpuBinding field value if set, zero value otherwise.
func (o *V0037JobProperties) GetCpuBinding() string {
if o == nil || IsNil(o.CpuBinding) {
var ret string
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 *V0037JobProperties) GetCpuBindingOk() (*string, 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 *V0037JobProperties) HasCpuBinding() bool {
if o != nil && !IsNil(o.CpuBinding) {
return true
}
return false
}
// SetCpuBinding gets a reference to the given string and assigns it to the CpuBinding field.
func (o *V0037JobProperties) SetCpuBinding(v string) {
o.CpuBinding = &v
}
// GetCpuBindingHint returns the CpuBindingHint field value if set, zero value otherwise.
func (o *V0037JobProperties) GetCpuBindingHint() string {
if o == nil || IsNil(o.CpuBindingHint) {
var ret string
return ret
}
return *o.CpuBindingHint
}
// GetCpuBindingHintOk returns a tuple with the CpuBindingHint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetCpuBindingHintOk() (*string, bool) {
if o == nil || IsNil(o.CpuBindingHint) {
return nil, false
}
return o.CpuBindingHint, true
}
// HasCpuBindingHint returns a boolean if a field has been set.
func (o *V0037JobProperties) HasCpuBindingHint() bool {
if o != nil && !IsNil(o.CpuBindingHint) {
return true
}
return false
}
// SetCpuBindingHint gets a reference to the given string and assigns it to the CpuBindingHint field.
func (o *V0037JobProperties) SetCpuBindingHint(v string) {
o.CpuBindingHint = &v
}
// GetCpuFrequency returns the CpuFrequency field value if set, zero value otherwise.
func (o *V0037JobProperties) GetCpuFrequency() string {
if o == nil || IsNil(o.CpuFrequency) {
var ret string
return ret
}
return *o.CpuFrequency
}
// GetCpuFrequencyOk returns a tuple with the CpuFrequency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetCpuFrequencyOk() (*string, bool) {
if o == nil || IsNil(o.CpuFrequency) {
return nil, false
}
return o.CpuFrequency, true
}
// HasCpuFrequency returns a boolean if a field has been set.
func (o *V0037JobProperties) HasCpuFrequency() bool {
if o != nil && !IsNil(o.CpuFrequency) {
return true
}
return false
}
// SetCpuFrequency gets a reference to the given string and assigns it to the CpuFrequency field.
func (o *V0037JobProperties) SetCpuFrequency(v string) {
o.CpuFrequency = &v
}
// GetCpusPerGpu returns the CpusPerGpu field value if set, zero value otherwise.
func (o *V0037JobProperties) GetCpusPerGpu() string {
if o == nil || IsNil(o.CpusPerGpu) {
var ret string
return ret
}
return *o.CpusPerGpu
}
// GetCpusPerGpuOk returns a tuple with the CpusPerGpu field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetCpusPerGpuOk() (*string, bool) {
if o == nil || IsNil(o.CpusPerGpu) {
return nil, false
}
return o.CpusPerGpu, true
}
// HasCpusPerGpu returns a boolean if a field has been set.
func (o *V0037JobProperties) HasCpusPerGpu() bool {
if o != nil && !IsNil(o.CpusPerGpu) {
return true
}
return false
}
// SetCpusPerGpu gets a reference to the given string and assigns it to the CpusPerGpu field.
func (o *V0037JobProperties) SetCpusPerGpu(v string) {
o.CpusPerGpu = &v
}
// GetCpusPerTask returns the CpusPerTask field value if set, zero value otherwise.
func (o *V0037JobProperties) GetCpusPerTask() int32 {
if o == nil || IsNil(o.CpusPerTask) {
var ret int32
return ret
}
return *o.CpusPerTask
}
// GetCpusPerTaskOk returns a tuple with the CpusPerTask field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetCpusPerTaskOk() (*int32, bool) {
if o == nil || IsNil(o.CpusPerTask) {
return nil, false
}
return o.CpusPerTask, true
}
// HasCpusPerTask returns a boolean if a field has been set.
func (o *V0037JobProperties) HasCpusPerTask() bool {
if o != nil && !IsNil(o.CpusPerTask) {
return true
}
return false
}
// SetCpusPerTask gets a reference to the given int32 and assigns it to the CpusPerTask field.
func (o *V0037JobProperties) SetCpusPerTask(v int32) {
o.CpusPerTask = &v
}
// GetCurrentWorkingDirectory returns the CurrentWorkingDirectory field value if set, zero value otherwise.
func (o *V0037JobProperties) GetCurrentWorkingDirectory() string {
if o == nil || IsNil(o.CurrentWorkingDirectory) {
var ret string
return ret
}
return *o.CurrentWorkingDirectory
}
// GetCurrentWorkingDirectoryOk returns a tuple with the CurrentWorkingDirectory field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetCurrentWorkingDirectoryOk() (*string, bool) {
if o == nil || IsNil(o.CurrentWorkingDirectory) {
return nil, false
}
return o.CurrentWorkingDirectory, true
}
// HasCurrentWorkingDirectory returns a boolean if a field has been set.
func (o *V0037JobProperties) HasCurrentWorkingDirectory() bool {
if o != nil && !IsNil(o.CurrentWorkingDirectory) {
return true
}
return false
}
// SetCurrentWorkingDirectory gets a reference to the given string and assigns it to the CurrentWorkingDirectory field.
func (o *V0037JobProperties) SetCurrentWorkingDirectory(v string) {
o.CurrentWorkingDirectory = &v
}
// GetDeadline returns the Deadline field value if set, zero value otherwise.
func (o *V0037JobProperties) GetDeadline() string {
if o == nil || IsNil(o.Deadline) {
var ret string
return ret
}
return *o.Deadline
}
// GetDeadlineOk returns a tuple with the Deadline field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetDeadlineOk() (*string, bool) {
if o == nil || IsNil(o.Deadline) {
return nil, false
}
return o.Deadline, true
}
// HasDeadline returns a boolean if a field has been set.
func (o *V0037JobProperties) HasDeadline() bool {
if o != nil && !IsNil(o.Deadline) {
return true
}
return false
}
// SetDeadline gets a reference to the given string and assigns it to the Deadline field.
func (o *V0037JobProperties) SetDeadline(v string) {
o.Deadline = &v
}
// GetDelayBoot returns the DelayBoot field value if set, zero value otherwise.
func (o *V0037JobProperties) GetDelayBoot() int32 {
if o == nil || IsNil(o.DelayBoot) {
var ret int32
return ret
}
return *o.DelayBoot
}
// GetDelayBootOk returns a tuple with the DelayBoot field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetDelayBootOk() (*int32, bool) {
if o == nil || IsNil(o.DelayBoot) {
return nil, false
}
return o.DelayBoot, true
}
// HasDelayBoot returns a boolean if a field has been set.
func (o *V0037JobProperties) HasDelayBoot() bool {
if o != nil && !IsNil(o.DelayBoot) {
return true
}
return false
}
// SetDelayBoot gets a reference to the given int32 and assigns it to the DelayBoot field.
func (o *V0037JobProperties) SetDelayBoot(v int32) {
o.DelayBoot = &v
}
// GetDependency returns the Dependency field value if set, zero value otherwise.
func (o *V0037JobProperties) GetDependency() string {
if o == nil || IsNil(o.Dependency) {
var ret string
return ret
}
return *o.Dependency
}
// GetDependencyOk returns a tuple with the Dependency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetDependencyOk() (*string, bool) {
if o == nil || IsNil(o.Dependency) {
return nil, false
}
return o.Dependency, true
}
// HasDependency returns a boolean if a field has been set.
func (o *V0037JobProperties) HasDependency() bool {
if o != nil && !IsNil(o.Dependency) {
return true
}
return false
}
// SetDependency gets a reference to the given string and assigns it to the Dependency field.
func (o *V0037JobProperties) SetDependency(v string) {
o.Dependency = &v
}
// GetDistribution returns the Distribution field value if set, zero value otherwise.
func (o *V0037JobProperties) GetDistribution() string {
if o == nil || IsNil(o.Distribution) {
var ret string
return ret
}
return *o.Distribution
}
// GetDistributionOk returns a tuple with the Distribution field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetDistributionOk() (*string, bool) {
if o == nil || IsNil(o.Distribution) {
return nil, false
}
return o.Distribution, true
}
// HasDistribution returns a boolean if a field has been set.
func (o *V0037JobProperties) HasDistribution() bool {
if o != nil && !IsNil(o.Distribution) {
return true
}
return false
}
// SetDistribution gets a reference to the given string and assigns it to the Distribution field.
func (o *V0037JobProperties) SetDistribution(v string) {
o.Distribution = &v
}
// GetEnvironment returns the Environment field value
func (o *V0037JobProperties) GetEnvironment() map[string]interface{} {
if o == nil {
var ret map[string]interface{}
return ret
}
return o.Environment
}
// GetEnvironmentOk returns a tuple with the Environment field value
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetEnvironmentOk() (map[string]interface{}, bool) {
if o == nil {
return map[string]interface{}{}, false
}
return o.Environment, true
}
// SetEnvironment sets field value
func (o *V0037JobProperties) SetEnvironment(v map[string]interface{}) {
o.Environment = v
}
// GetExclusive returns the Exclusive field value if set, zero value otherwise.
func (o *V0037JobProperties) GetExclusive() string {
if o == nil || IsNil(o.Exclusive) {
var ret string
return ret
}
return *o.Exclusive
}
// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetExclusiveOk() (*string, bool) {
if o == nil || IsNil(o.Exclusive) {
return nil, false
}
return o.Exclusive, true
}
// HasExclusive returns a boolean if a field has been set.
func (o *V0037JobProperties) HasExclusive() bool {
if o != nil && !IsNil(o.Exclusive) {
return true
}
return false
}
// SetExclusive gets a reference to the given string and assigns it to the Exclusive field.
func (o *V0037JobProperties) SetExclusive(v string) {
o.Exclusive = &v
}
// GetGetUserEnvironment returns the GetUserEnvironment field value if set, zero value otherwise.
func (o *V0037JobProperties) GetGetUserEnvironment() bool {
if o == nil || IsNil(o.GetUserEnvironment) {
var ret bool
return ret
}
return *o.GetUserEnvironment
}
// GetGetUserEnvironmentOk returns a tuple with the GetUserEnvironment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V0037JobProperties) GetGetUserEnvironmentOk() (*bool, bool) {
if o == nil || IsNil(o.GetUserEnvironment) {
return nil, false
}
return o.GetUserEnvironment, true
}
// HasGetUserEnvironment returns a boolean if a field has been set.
func (o *V0037JobProperties) HasGetUserEnvironment() bool {
if o != nil && !IsNil(o.GetUserEnvironment) {
return true
}
return false
}
// SetGetUserEnvironment gets a reference to the given bool and assigns it to the GetUserEnvironment field.
func (o *V0037JobProperties) SetGetUserEnvironment(v bool) {
o.GetUserEnvironment = &v
}
// GetGres returns the Gres field value if set, zero value otherwise.
func (o *V0037JobProperties) 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 *V0037JobProperties) GetGresOk() (*string, bool) {
if o == nil || IsNil(o.Gres) {
return nil, false
}
return o.Gres, true