/
model_patched_job.go
1294 lines (1110 loc) · 36.6 KB
/
model_patched_job.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
/*
API Documentation
Source of truth and network automation platform
API version: 1.3.10b1 (1.2)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
"time"
)
// PatchedJob Extends ModelSerializer to render any CustomFields and their values associated with an object.
type PatchedJob struct {
Id *string `json:"id,omitempty"`
Url *string `json:"url,omitempty"`
// Source of the Python code for this job - local, Git repository, or plugins
Source *string `json:"source,omitempty"`
// Dotted name of the Python module providing this job
ModuleName *string `json:"module_name,omitempty"`
// Name of the Python class providing this job
JobClassName *string `json:"job_class_name,omitempty"`
// Human-readable grouping that this job belongs to
Grouping *string `json:"grouping,omitempty"`
// If set, the configured grouping will remain even if the underlying Job source code changes
GroupingOverride *bool `json:"grouping_override,omitempty"`
// Human-readable name of this job
Name *string `json:"name,omitempty"`
// If set, the configured name will remain even if the underlying Job source code changes
NameOverride *bool `json:"name_override,omitempty"`
Slug *string `json:"slug,omitempty"`
// Markdown formatting is supported
Description *string `json:"description,omitempty"`
// If set, the configured description will remain even if the underlying Job source code changes
DescriptionOverride *bool `json:"description_override,omitempty"`
// Whether the Python module and class providing this job are presently installed and loadable
Installed *bool `json:"installed,omitempty"`
// Whether this job can be executed by users
Enabled *bool `json:"enabled,omitempty"`
// Whether this job contains sensitive variables
HasSensitiveVariables *bool `json:"has_sensitive_variables,omitempty"`
// If set, the configured value will remain even if the underlying Job source code changes
HasSensitiveVariablesOverride *bool `json:"has_sensitive_variables_override,omitempty"`
// Whether the job requires approval from another user before running
ApprovalRequired *bool `json:"approval_required,omitempty"`
// If set, the configured value will remain even if the underlying Job source code changes
ApprovalRequiredOverride *bool `json:"approval_required_override,omitempty"`
// Whether the job defaults to committing changes when run, or defaults to a dry-run
CommitDefault *bool `json:"commit_default,omitempty"`
// If set, the configured value will remain even if the underlying Job source code changes
CommitDefaultOverride *bool `json:"commit_default_override,omitempty"`
// Whether the job defaults to not being shown in the UI
Hidden *bool `json:"hidden,omitempty"`
// If set, the configured value will remain even if the underlying Job source code changes
HiddenOverride *bool `json:"hidden_override,omitempty"`
// Whether the job is prevented from making lasting changes to the database
ReadOnly *bool `json:"read_only,omitempty"`
// If set, the configured value will remain even if the underlying Job source code changes
ReadOnlyOverride *bool `json:"read_only_override,omitempty"`
// Maximum runtime in seconds before the job will receive a <code>SoftTimeLimitExceeded</code> exception.<br>Set to 0 to use Nautobot system default
SoftTimeLimit *float64 `json:"soft_time_limit,omitempty"`
// If set, the configured value will remain even if the underlying Job source code changes
SoftTimeLimitOverride *bool `json:"soft_time_limit_override,omitempty"`
// Maximum runtime in seconds before the job will be forcibly terminated.<br>Set to 0 to use Nautobot system default
TimeLimit *float64 `json:"time_limit,omitempty"`
// If set, the configured value will remain even if the underlying Job source code changes
TimeLimitOverride *bool `json:"time_limit_override,omitempty"`
Tags []TagSerializerField `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created *string `json:"created,omitempty"`
LastUpdated *time.Time `json:"last_updated,omitempty"`
// Human friendly display value
Display *string `json:"display,omitempty"`
}
// NewPatchedJob instantiates a new PatchedJob 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 NewPatchedJob() *PatchedJob {
this := PatchedJob{}
return &this
}
// NewPatchedJobWithDefaults instantiates a new PatchedJob 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 NewPatchedJobWithDefaults() *PatchedJob {
this := PatchedJob{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *PatchedJob) GetId() string {
if o == nil || o.Id == nil {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetIdOk() (*string, bool) {
if o == nil || o.Id == nil {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *PatchedJob) HasId() bool {
if o != nil && o.Id != nil {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *PatchedJob) SetId(v string) {
o.Id = &v
}
// GetUrl returns the Url field value if set, zero value otherwise.
func (o *PatchedJob) GetUrl() string {
if o == nil || o.Url == nil {
var ret string
return ret
}
return *o.Url
}
// GetUrlOk returns a tuple with the Url field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetUrlOk() (*string, bool) {
if o == nil || o.Url == nil {
return nil, false
}
return o.Url, true
}
// HasUrl returns a boolean if a field has been set.
func (o *PatchedJob) HasUrl() bool {
if o != nil && o.Url != nil {
return true
}
return false
}
// SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *PatchedJob) SetUrl(v string) {
o.Url = &v
}
// GetSource returns the Source field value if set, zero value otherwise.
func (o *PatchedJob) GetSource() string {
if o == nil || o.Source == nil {
var ret string
return ret
}
return *o.Source
}
// GetSourceOk returns a tuple with the Source field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetSourceOk() (*string, bool) {
if o == nil || o.Source == nil {
return nil, false
}
return o.Source, true
}
// HasSource returns a boolean if a field has been set.
func (o *PatchedJob) HasSource() bool {
if o != nil && o.Source != nil {
return true
}
return false
}
// SetSource gets a reference to the given string and assigns it to the Source field.
func (o *PatchedJob) SetSource(v string) {
o.Source = &v
}
// GetModuleName returns the ModuleName field value if set, zero value otherwise.
func (o *PatchedJob) GetModuleName() string {
if o == nil || o.ModuleName == nil {
var ret string
return ret
}
return *o.ModuleName
}
// GetModuleNameOk returns a tuple with the ModuleName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetModuleNameOk() (*string, bool) {
if o == nil || o.ModuleName == nil {
return nil, false
}
return o.ModuleName, true
}
// HasModuleName returns a boolean if a field has been set.
func (o *PatchedJob) HasModuleName() bool {
if o != nil && o.ModuleName != nil {
return true
}
return false
}
// SetModuleName gets a reference to the given string and assigns it to the ModuleName field.
func (o *PatchedJob) SetModuleName(v string) {
o.ModuleName = &v
}
// GetJobClassName returns the JobClassName field value if set, zero value otherwise.
func (o *PatchedJob) GetJobClassName() string {
if o == nil || o.JobClassName == nil {
var ret string
return ret
}
return *o.JobClassName
}
// GetJobClassNameOk returns a tuple with the JobClassName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetJobClassNameOk() (*string, bool) {
if o == nil || o.JobClassName == nil {
return nil, false
}
return o.JobClassName, true
}
// HasJobClassName returns a boolean if a field has been set.
func (o *PatchedJob) HasJobClassName() bool {
if o != nil && o.JobClassName != nil {
return true
}
return false
}
// SetJobClassName gets a reference to the given string and assigns it to the JobClassName field.
func (o *PatchedJob) SetJobClassName(v string) {
o.JobClassName = &v
}
// GetGrouping returns the Grouping field value if set, zero value otherwise.
func (o *PatchedJob) GetGrouping() string {
if o == nil || o.Grouping == nil {
var ret string
return ret
}
return *o.Grouping
}
// GetGroupingOk returns a tuple with the Grouping field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetGroupingOk() (*string, bool) {
if o == nil || o.Grouping == nil {
return nil, false
}
return o.Grouping, true
}
// HasGrouping returns a boolean if a field has been set.
func (o *PatchedJob) HasGrouping() bool {
if o != nil && o.Grouping != nil {
return true
}
return false
}
// SetGrouping gets a reference to the given string and assigns it to the Grouping field.
func (o *PatchedJob) SetGrouping(v string) {
o.Grouping = &v
}
// GetGroupingOverride returns the GroupingOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetGroupingOverride() bool {
if o == nil || o.GroupingOverride == nil {
var ret bool
return ret
}
return *o.GroupingOverride
}
// GetGroupingOverrideOk returns a tuple with the GroupingOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetGroupingOverrideOk() (*bool, bool) {
if o == nil || o.GroupingOverride == nil {
return nil, false
}
return o.GroupingOverride, true
}
// HasGroupingOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasGroupingOverride() bool {
if o != nil && o.GroupingOverride != nil {
return true
}
return false
}
// SetGroupingOverride gets a reference to the given bool and assigns it to the GroupingOverride field.
func (o *PatchedJob) SetGroupingOverride(v bool) {
o.GroupingOverride = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *PatchedJob) GetName() string {
if o == nil || o.Name == nil {
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 *PatchedJob) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *PatchedJob) HasName() bool {
if o != nil && o.Name != nil {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *PatchedJob) SetName(v string) {
o.Name = &v
}
// GetNameOverride returns the NameOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetNameOverride() bool {
if o == nil || o.NameOverride == nil {
var ret bool
return ret
}
return *o.NameOverride
}
// GetNameOverrideOk returns a tuple with the NameOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetNameOverrideOk() (*bool, bool) {
if o == nil || o.NameOverride == nil {
return nil, false
}
return o.NameOverride, true
}
// HasNameOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasNameOverride() bool {
if o != nil && o.NameOverride != nil {
return true
}
return false
}
// SetNameOverride gets a reference to the given bool and assigns it to the NameOverride field.
func (o *PatchedJob) SetNameOverride(v bool) {
o.NameOverride = &v
}
// GetSlug returns the Slug field value if set, zero value otherwise.
func (o *PatchedJob) GetSlug() string {
if o == nil || o.Slug == nil {
var ret string
return ret
}
return *o.Slug
}
// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetSlugOk() (*string, bool) {
if o == nil || o.Slug == nil {
return nil, false
}
return o.Slug, true
}
// HasSlug returns a boolean if a field has been set.
func (o *PatchedJob) HasSlug() bool {
if o != nil && o.Slug != nil {
return true
}
return false
}
// SetSlug gets a reference to the given string and assigns it to the Slug field.
func (o *PatchedJob) SetSlug(v string) {
o.Slug = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PatchedJob) GetDescription() string {
if o == nil || o.Description == nil {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetDescriptionOk() (*string, bool) {
if o == nil || o.Description == nil {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *PatchedJob) HasDescription() bool {
if o != nil && o.Description != nil {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *PatchedJob) SetDescription(v string) {
o.Description = &v
}
// GetDescriptionOverride returns the DescriptionOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetDescriptionOverride() bool {
if o == nil || o.DescriptionOverride == nil {
var ret bool
return ret
}
return *o.DescriptionOverride
}
// GetDescriptionOverrideOk returns a tuple with the DescriptionOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetDescriptionOverrideOk() (*bool, bool) {
if o == nil || o.DescriptionOverride == nil {
return nil, false
}
return o.DescriptionOverride, true
}
// HasDescriptionOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasDescriptionOverride() bool {
if o != nil && o.DescriptionOverride != nil {
return true
}
return false
}
// SetDescriptionOverride gets a reference to the given bool and assigns it to the DescriptionOverride field.
func (o *PatchedJob) SetDescriptionOverride(v bool) {
o.DescriptionOverride = &v
}
// GetInstalled returns the Installed field value if set, zero value otherwise.
func (o *PatchedJob) GetInstalled() bool {
if o == nil || o.Installed == nil {
var ret bool
return ret
}
return *o.Installed
}
// GetInstalledOk returns a tuple with the Installed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetInstalledOk() (*bool, bool) {
if o == nil || o.Installed == nil {
return nil, false
}
return o.Installed, true
}
// HasInstalled returns a boolean if a field has been set.
func (o *PatchedJob) HasInstalled() bool {
if o != nil && o.Installed != nil {
return true
}
return false
}
// SetInstalled gets a reference to the given bool and assigns it to the Installed field.
func (o *PatchedJob) SetInstalled(v bool) {
o.Installed = &v
}
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *PatchedJob) GetEnabled() bool {
if o == nil || o.Enabled == nil {
var ret bool
return ret
}
return *o.Enabled
}
// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetEnabledOk() (*bool, bool) {
if o == nil || o.Enabled == nil {
return nil, false
}
return o.Enabled, true
}
// HasEnabled returns a boolean if a field has been set.
func (o *PatchedJob) HasEnabled() bool {
if o != nil && o.Enabled != nil {
return true
}
return false
}
// SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *PatchedJob) SetEnabled(v bool) {
o.Enabled = &v
}
// GetHasSensitiveVariables returns the HasSensitiveVariables field value if set, zero value otherwise.
func (o *PatchedJob) GetHasSensitiveVariables() bool {
if o == nil || o.HasSensitiveVariables == nil {
var ret bool
return ret
}
return *o.HasSensitiveVariables
}
// GetHasSensitiveVariablesOk returns a tuple with the HasSensitiveVariables field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetHasSensitiveVariablesOk() (*bool, bool) {
if o == nil || o.HasSensitiveVariables == nil {
return nil, false
}
return o.HasSensitiveVariables, true
}
// HasHasSensitiveVariables returns a boolean if a field has been set.
func (o *PatchedJob) HasHasSensitiveVariables() bool {
if o != nil && o.HasSensitiveVariables != nil {
return true
}
return false
}
// SetHasSensitiveVariables gets a reference to the given bool and assigns it to the HasSensitiveVariables field.
func (o *PatchedJob) SetHasSensitiveVariables(v bool) {
o.HasSensitiveVariables = &v
}
// GetHasSensitiveVariablesOverride returns the HasSensitiveVariablesOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetHasSensitiveVariablesOverride() bool {
if o == nil || o.HasSensitiveVariablesOverride == nil {
var ret bool
return ret
}
return *o.HasSensitiveVariablesOverride
}
// GetHasSensitiveVariablesOverrideOk returns a tuple with the HasSensitiveVariablesOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetHasSensitiveVariablesOverrideOk() (*bool, bool) {
if o == nil || o.HasSensitiveVariablesOverride == nil {
return nil, false
}
return o.HasSensitiveVariablesOverride, true
}
// HasHasSensitiveVariablesOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasHasSensitiveVariablesOverride() bool {
if o != nil && o.HasSensitiveVariablesOverride != nil {
return true
}
return false
}
// SetHasSensitiveVariablesOverride gets a reference to the given bool and assigns it to the HasSensitiveVariablesOverride field.
func (o *PatchedJob) SetHasSensitiveVariablesOverride(v bool) {
o.HasSensitiveVariablesOverride = &v
}
// GetApprovalRequired returns the ApprovalRequired field value if set, zero value otherwise.
func (o *PatchedJob) GetApprovalRequired() bool {
if o == nil || o.ApprovalRequired == nil {
var ret bool
return ret
}
return *o.ApprovalRequired
}
// GetApprovalRequiredOk returns a tuple with the ApprovalRequired field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetApprovalRequiredOk() (*bool, bool) {
if o == nil || o.ApprovalRequired == nil {
return nil, false
}
return o.ApprovalRequired, true
}
// HasApprovalRequired returns a boolean if a field has been set.
func (o *PatchedJob) HasApprovalRequired() bool {
if o != nil && o.ApprovalRequired != nil {
return true
}
return false
}
// SetApprovalRequired gets a reference to the given bool and assigns it to the ApprovalRequired field.
func (o *PatchedJob) SetApprovalRequired(v bool) {
o.ApprovalRequired = &v
}
// GetApprovalRequiredOverride returns the ApprovalRequiredOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetApprovalRequiredOverride() bool {
if o == nil || o.ApprovalRequiredOverride == nil {
var ret bool
return ret
}
return *o.ApprovalRequiredOverride
}
// GetApprovalRequiredOverrideOk returns a tuple with the ApprovalRequiredOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetApprovalRequiredOverrideOk() (*bool, bool) {
if o == nil || o.ApprovalRequiredOverride == nil {
return nil, false
}
return o.ApprovalRequiredOverride, true
}
// HasApprovalRequiredOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasApprovalRequiredOverride() bool {
if o != nil && o.ApprovalRequiredOverride != nil {
return true
}
return false
}
// SetApprovalRequiredOverride gets a reference to the given bool and assigns it to the ApprovalRequiredOverride field.
func (o *PatchedJob) SetApprovalRequiredOverride(v bool) {
o.ApprovalRequiredOverride = &v
}
// GetCommitDefault returns the CommitDefault field value if set, zero value otherwise.
func (o *PatchedJob) GetCommitDefault() bool {
if o == nil || o.CommitDefault == nil {
var ret bool
return ret
}
return *o.CommitDefault
}
// GetCommitDefaultOk returns a tuple with the CommitDefault field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetCommitDefaultOk() (*bool, bool) {
if o == nil || o.CommitDefault == nil {
return nil, false
}
return o.CommitDefault, true
}
// HasCommitDefault returns a boolean if a field has been set.
func (o *PatchedJob) HasCommitDefault() bool {
if o != nil && o.CommitDefault != nil {
return true
}
return false
}
// SetCommitDefault gets a reference to the given bool and assigns it to the CommitDefault field.
func (o *PatchedJob) SetCommitDefault(v bool) {
o.CommitDefault = &v
}
// GetCommitDefaultOverride returns the CommitDefaultOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetCommitDefaultOverride() bool {
if o == nil || o.CommitDefaultOverride == nil {
var ret bool
return ret
}
return *o.CommitDefaultOverride
}
// GetCommitDefaultOverrideOk returns a tuple with the CommitDefaultOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetCommitDefaultOverrideOk() (*bool, bool) {
if o == nil || o.CommitDefaultOverride == nil {
return nil, false
}
return o.CommitDefaultOverride, true
}
// HasCommitDefaultOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasCommitDefaultOverride() bool {
if o != nil && o.CommitDefaultOverride != nil {
return true
}
return false
}
// SetCommitDefaultOverride gets a reference to the given bool and assigns it to the CommitDefaultOverride field.
func (o *PatchedJob) SetCommitDefaultOverride(v bool) {
o.CommitDefaultOverride = &v
}
// GetHidden returns the Hidden field value if set, zero value otherwise.
func (o *PatchedJob) GetHidden() bool {
if o == nil || o.Hidden == nil {
var ret bool
return ret
}
return *o.Hidden
}
// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetHiddenOk() (*bool, bool) {
if o == nil || o.Hidden == nil {
return nil, false
}
return o.Hidden, true
}
// HasHidden returns a boolean if a field has been set.
func (o *PatchedJob) HasHidden() bool {
if o != nil && o.Hidden != nil {
return true
}
return false
}
// SetHidden gets a reference to the given bool and assigns it to the Hidden field.
func (o *PatchedJob) SetHidden(v bool) {
o.Hidden = &v
}
// GetHiddenOverride returns the HiddenOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetHiddenOverride() bool {
if o == nil || o.HiddenOverride == nil {
var ret bool
return ret
}
return *o.HiddenOverride
}
// GetHiddenOverrideOk returns a tuple with the HiddenOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetHiddenOverrideOk() (*bool, bool) {
if o == nil || o.HiddenOverride == nil {
return nil, false
}
return o.HiddenOverride, true
}
// HasHiddenOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasHiddenOverride() bool {
if o != nil && o.HiddenOverride != nil {
return true
}
return false
}
// SetHiddenOverride gets a reference to the given bool and assigns it to the HiddenOverride field.
func (o *PatchedJob) SetHiddenOverride(v bool) {
o.HiddenOverride = &v
}
// GetReadOnly returns the ReadOnly field value if set, zero value otherwise.
func (o *PatchedJob) GetReadOnly() bool {
if o == nil || o.ReadOnly == nil {
var ret bool
return ret
}
return *o.ReadOnly
}
// GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetReadOnlyOk() (*bool, bool) {
if o == nil || o.ReadOnly == nil {
return nil, false
}
return o.ReadOnly, true
}
// HasReadOnly returns a boolean if a field has been set.
func (o *PatchedJob) HasReadOnly() bool {
if o != nil && o.ReadOnly != nil {
return true
}
return false
}
// SetReadOnly gets a reference to the given bool and assigns it to the ReadOnly field.
func (o *PatchedJob) SetReadOnly(v bool) {
o.ReadOnly = &v
}
// GetReadOnlyOverride returns the ReadOnlyOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetReadOnlyOverride() bool {
if o == nil || o.ReadOnlyOverride == nil {
var ret bool
return ret
}
return *o.ReadOnlyOverride
}
// GetReadOnlyOverrideOk returns a tuple with the ReadOnlyOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetReadOnlyOverrideOk() (*bool, bool) {
if o == nil || o.ReadOnlyOverride == nil {
return nil, false
}
return o.ReadOnlyOverride, true
}
// HasReadOnlyOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasReadOnlyOverride() bool {
if o != nil && o.ReadOnlyOverride != nil {
return true
}
return false
}
// SetReadOnlyOverride gets a reference to the given bool and assigns it to the ReadOnlyOverride field.
func (o *PatchedJob) SetReadOnlyOverride(v bool) {
o.ReadOnlyOverride = &v
}
// GetSoftTimeLimit returns the SoftTimeLimit field value if set, zero value otherwise.
func (o *PatchedJob) GetSoftTimeLimit() float64 {
if o == nil || o.SoftTimeLimit == nil {
var ret float64
return ret
}
return *o.SoftTimeLimit
}
// GetSoftTimeLimitOk returns a tuple with the SoftTimeLimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetSoftTimeLimitOk() (*float64, bool) {
if o == nil || o.SoftTimeLimit == nil {
return nil, false
}
return o.SoftTimeLimit, true
}
// HasSoftTimeLimit returns a boolean if a field has been set.
func (o *PatchedJob) HasSoftTimeLimit() bool {
if o != nil && o.SoftTimeLimit != nil {
return true
}
return false
}
// SetSoftTimeLimit gets a reference to the given float64 and assigns it to the SoftTimeLimit field.
func (o *PatchedJob) SetSoftTimeLimit(v float64) {
o.SoftTimeLimit = &v
}
// GetSoftTimeLimitOverride returns the SoftTimeLimitOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetSoftTimeLimitOverride() bool {
if o == nil || o.SoftTimeLimitOverride == nil {
var ret bool
return ret
}
return *o.SoftTimeLimitOverride
}
// GetSoftTimeLimitOverrideOk returns a tuple with the SoftTimeLimitOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetSoftTimeLimitOverrideOk() (*bool, bool) {
if o == nil || o.SoftTimeLimitOverride == nil {
return nil, false
}
return o.SoftTimeLimitOverride, true
}
// HasSoftTimeLimitOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasSoftTimeLimitOverride() bool {
if o != nil && o.SoftTimeLimitOverride != nil {
return true
}
return false
}
// SetSoftTimeLimitOverride gets a reference to the given bool and assigns it to the SoftTimeLimitOverride field.
func (o *PatchedJob) SetSoftTimeLimitOverride(v bool) {
o.SoftTimeLimitOverride = &v
}
// GetTimeLimit returns the TimeLimit field value if set, zero value otherwise.
func (o *PatchedJob) GetTimeLimit() float64 {
if o == nil || o.TimeLimit == nil {
var ret float64
return ret
}
return *o.TimeLimit
}
// GetTimeLimitOk returns a tuple with the TimeLimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetTimeLimitOk() (*float64, bool) {
if o == nil || o.TimeLimit == nil {
return nil, false
}
return o.TimeLimit, true
}
// HasTimeLimit returns a boolean if a field has been set.
func (o *PatchedJob) HasTimeLimit() bool {
if o != nil && o.TimeLimit != nil {
return true
}
return false
}
// SetTimeLimit gets a reference to the given float64 and assigns it to the TimeLimit field.
func (o *PatchedJob) SetTimeLimit(v float64) {
o.TimeLimit = &v
}
// GetTimeLimitOverride returns the TimeLimitOverride field value if set, zero value otherwise.
func (o *PatchedJob) GetTimeLimitOverride() bool {
if o == nil || o.TimeLimitOverride == nil {
var ret bool
return ret
}
return *o.TimeLimitOverride
}
// GetTimeLimitOverrideOk returns a tuple with the TimeLimitOverride field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedJob) GetTimeLimitOverrideOk() (*bool, bool) {
if o == nil || o.TimeLimitOverride == nil {
return nil, false
}
return o.TimeLimitOverride, true
}
// HasTimeLimitOverride returns a boolean if a field has been set.
func (o *PatchedJob) HasTimeLimitOverride() bool {
if o != nil && o.TimeLimitOverride != nil {
return true
}
return false
}
// SetTimeLimitOverride gets a reference to the given bool and assigns it to the TimeLimitOverride field.
func (o *PatchedJob) SetTimeLimitOverride(v bool) {
o.TimeLimitOverride = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *PatchedJob) GetTags() []TagSerializerField {
if o == nil || o.Tags == nil {
var ret []TagSerializerField
return ret
}
return o.Tags