forked from dariusbakunas/truenas-go-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_dataset.go
1479 lines (1270 loc) · 39.5 KB
/
model_dataset.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
/*
* TrueNAS RESTful API
*
* Go SDK for interacting with TrueNAS APIs (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: v2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package truenas
import (
"encoding/json"
)
// Dataset struct for Dataset
type Dataset struct {
Id string `json:"id"`
Name string `json:"name"`
Pool string `json:"pool"`
Type string `json:"type"`
Mountpoint *string `json:"mountpoint,omitempty"`
Encrypted *bool `json:"encrypted,omitempty"`
EncryptionRoot *string `json:"encryption_root,omitempty"`
KeyLoaded *bool `json:"key_loaded,omitempty"`
Locked *bool `json:"locked,omitempty"`
EncryptionAlgorithm *CompositeValue `json:"encryption_algorithm,omitempty"`
Aclmode *CompositeValue `json:"aclmode,omitempty"`
Acltype *CompositeValue `json:"acltype,omitempty"`
Atime *CompositeValue `json:"atime,omitempty"`
Casesensitivity *CompositeValue `json:"casesensitivity,omitempty"`
Comments *CompositeValue `json:"comments,omitempty"`
Compression *CompositeValue `json:"compression,omitempty"`
Deduplication *CompositeValue `json:"deduplication,omitempty"`
Exec *CompositeValue `json:"exec,omitempty"`
KeyFormat *CompositeValue `json:"key_format,omitempty"`
Managedby *CompositeValue `json:"managedby,omitempty"`
Copies *CompositeValue `json:"copies,omitempty"`
Quota *CompositeValue `json:"quota,omitempty"`
QuotaCritical *CompositeValue `json:"quota_critical,omitempty"`
QuotaWarning *CompositeValue `json:"quota_warning,omitempty"`
Reservation *CompositeValue `json:"reservation,omitempty"`
Refreservation *CompositeValue `json:"refreservation,omitempty"`
Refquota *CompositeValue `json:"refquota,omitempty"`
RefquotaCritical *CompositeValue `json:"refquota_critical,omitempty"`
RefquotaWarning *CompositeValue `json:"refquota_warning,omitempty"`
Readonly *CompositeValue `json:"readonly,omitempty"`
Recordsize *CompositeValue `json:"recordsize,omitempty"`
Sync *CompositeValue `json:"sync,omitempty"`
Snapdir *CompositeValue `json:"snapdir,omitempty"`
Pbkdf2iters *CompositeValue `json:"pbkdf2iters,omitempty"`
Origin *CompositeValue `json:"origin,omitempty"`
Xattr *CompositeValue `json:"xattr,omitempty"`
Volsize *CompositeValue `json:"volsize,omitempty"`
Volblocksize *CompositeValue `json:"volblocksize,omitempty"`
AdditionalProperties map[string]interface{}
}
type _Dataset Dataset
// NewDataset instantiates a new Dataset 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 NewDataset(id string, name string, pool string, type_ string) *Dataset {
this := Dataset{}
this.Id = id
this.Name = name
this.Pool = pool
this.Type = type_
return &this
}
// NewDatasetWithDefaults instantiates a new Dataset 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 NewDatasetWithDefaults() *Dataset {
this := Dataset{}
return &this
}
// GetId returns the Id field value
func (o *Dataset) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *Dataset) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *Dataset) SetId(v string) {
o.Id = v
}
// GetName returns the Name field value
func (o *Dataset) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *Dataset) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *Dataset) SetName(v string) {
o.Name = v
}
// GetPool returns the Pool field value
func (o *Dataset) GetPool() string {
if o == nil {
var ret string
return ret
}
return o.Pool
}
// GetPoolOk returns a tuple with the Pool field value
// and a boolean to check if the value has been set.
func (o *Dataset) GetPoolOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Pool, true
}
// SetPool sets field value
func (o *Dataset) SetPool(v string) {
o.Pool = v
}
// GetType returns the Type field value
func (o *Dataset) GetType() string {
if o == nil {
var ret string
return ret
}
return o.Type
}
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
func (o *Dataset) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Type, true
}
// SetType sets field value
func (o *Dataset) SetType(v string) {
o.Type = v
}
// GetMountpoint returns the Mountpoint field value if set, zero value otherwise.
func (o *Dataset) GetMountpoint() string {
if o == nil || o.Mountpoint == nil {
var ret string
return ret
}
return *o.Mountpoint
}
// GetMountpointOk returns a tuple with the Mountpoint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetMountpointOk() (*string, bool) {
if o == nil || o.Mountpoint == nil {
return nil, false
}
return o.Mountpoint, true
}
// HasMountpoint returns a boolean if a field has been set.
func (o *Dataset) HasMountpoint() bool {
if o != nil && o.Mountpoint != nil {
return true
}
return false
}
// SetMountpoint gets a reference to the given string and assigns it to the Mountpoint field.
func (o *Dataset) SetMountpoint(v string) {
o.Mountpoint = &v
}
// GetEncrypted returns the Encrypted field value if set, zero value otherwise.
func (o *Dataset) GetEncrypted() bool {
if o == nil || o.Encrypted == nil {
var ret bool
return ret
}
return *o.Encrypted
}
// GetEncryptedOk returns a tuple with the Encrypted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetEncryptedOk() (*bool, bool) {
if o == nil || o.Encrypted == nil {
return nil, false
}
return o.Encrypted, true
}
// HasEncrypted returns a boolean if a field has been set.
func (o *Dataset) HasEncrypted() bool {
if o != nil && o.Encrypted != nil {
return true
}
return false
}
// SetEncrypted gets a reference to the given bool and assigns it to the Encrypted field.
func (o *Dataset) SetEncrypted(v bool) {
o.Encrypted = &v
}
// GetEncryptionRoot returns the EncryptionRoot field value if set, zero value otherwise.
func (o *Dataset) GetEncryptionRoot() string {
if o == nil || o.EncryptionRoot == nil {
var ret string
return ret
}
return *o.EncryptionRoot
}
// GetEncryptionRootOk returns a tuple with the EncryptionRoot field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetEncryptionRootOk() (*string, bool) {
if o == nil || o.EncryptionRoot == nil {
return nil, false
}
return o.EncryptionRoot, true
}
// HasEncryptionRoot returns a boolean if a field has been set.
func (o *Dataset) HasEncryptionRoot() bool {
if o != nil && o.EncryptionRoot != nil {
return true
}
return false
}
// SetEncryptionRoot gets a reference to the given string and assigns it to the EncryptionRoot field.
func (o *Dataset) SetEncryptionRoot(v string) {
o.EncryptionRoot = &v
}
// GetKeyLoaded returns the KeyLoaded field value if set, zero value otherwise.
func (o *Dataset) GetKeyLoaded() bool {
if o == nil || o.KeyLoaded == nil {
var ret bool
return ret
}
return *o.KeyLoaded
}
// GetKeyLoadedOk returns a tuple with the KeyLoaded field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetKeyLoadedOk() (*bool, bool) {
if o == nil || o.KeyLoaded == nil {
return nil, false
}
return o.KeyLoaded, true
}
// HasKeyLoaded returns a boolean if a field has been set.
func (o *Dataset) HasKeyLoaded() bool {
if o != nil && o.KeyLoaded != nil {
return true
}
return false
}
// SetKeyLoaded gets a reference to the given bool and assigns it to the KeyLoaded field.
func (o *Dataset) SetKeyLoaded(v bool) {
o.KeyLoaded = &v
}
// GetLocked returns the Locked field value if set, zero value otherwise.
func (o *Dataset) GetLocked() bool {
if o == nil || o.Locked == nil {
var ret bool
return ret
}
return *o.Locked
}
// GetLockedOk returns a tuple with the Locked field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetLockedOk() (*bool, bool) {
if o == nil || o.Locked == nil {
return nil, false
}
return o.Locked, true
}
// HasLocked returns a boolean if a field has been set.
func (o *Dataset) HasLocked() bool {
if o != nil && o.Locked != nil {
return true
}
return false
}
// SetLocked gets a reference to the given bool and assigns it to the Locked field.
func (o *Dataset) SetLocked(v bool) {
o.Locked = &v
}
// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise.
func (o *Dataset) GetEncryptionAlgorithm() CompositeValue {
if o == nil || o.EncryptionAlgorithm == nil {
var ret CompositeValue
return ret
}
return *o.EncryptionAlgorithm
}
// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetEncryptionAlgorithmOk() (*CompositeValue, bool) {
if o == nil || o.EncryptionAlgorithm == nil {
return nil, false
}
return o.EncryptionAlgorithm, true
}
// HasEncryptionAlgorithm returns a boolean if a field has been set.
func (o *Dataset) HasEncryptionAlgorithm() bool {
if o != nil && o.EncryptionAlgorithm != nil {
return true
}
return false
}
// SetEncryptionAlgorithm gets a reference to the given CompositeValue and assigns it to the EncryptionAlgorithm field.
func (o *Dataset) SetEncryptionAlgorithm(v CompositeValue) {
o.EncryptionAlgorithm = &v
}
// GetAclmode returns the Aclmode field value if set, zero value otherwise.
func (o *Dataset) GetAclmode() CompositeValue {
if o == nil || o.Aclmode == nil {
var ret CompositeValue
return ret
}
return *o.Aclmode
}
// GetAclmodeOk returns a tuple with the Aclmode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetAclmodeOk() (*CompositeValue, bool) {
if o == nil || o.Aclmode == nil {
return nil, false
}
return o.Aclmode, true
}
// HasAclmode returns a boolean if a field has been set.
func (o *Dataset) HasAclmode() bool {
if o != nil && o.Aclmode != nil {
return true
}
return false
}
// SetAclmode gets a reference to the given CompositeValue and assigns it to the Aclmode field.
func (o *Dataset) SetAclmode(v CompositeValue) {
o.Aclmode = &v
}
// GetAcltype returns the Acltype field value if set, zero value otherwise.
func (o *Dataset) GetAcltype() CompositeValue {
if o == nil || o.Acltype == nil {
var ret CompositeValue
return ret
}
return *o.Acltype
}
// GetAcltypeOk returns a tuple with the Acltype field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetAcltypeOk() (*CompositeValue, bool) {
if o == nil || o.Acltype == nil {
return nil, false
}
return o.Acltype, true
}
// HasAcltype returns a boolean if a field has been set.
func (o *Dataset) HasAcltype() bool {
if o != nil && o.Acltype != nil {
return true
}
return false
}
// SetAcltype gets a reference to the given CompositeValue and assigns it to the Acltype field.
func (o *Dataset) SetAcltype(v CompositeValue) {
o.Acltype = &v
}
// GetAtime returns the Atime field value if set, zero value otherwise.
func (o *Dataset) GetAtime() CompositeValue {
if o == nil || o.Atime == nil {
var ret CompositeValue
return ret
}
return *o.Atime
}
// GetAtimeOk returns a tuple with the Atime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetAtimeOk() (*CompositeValue, bool) {
if o == nil || o.Atime == nil {
return nil, false
}
return o.Atime, true
}
// HasAtime returns a boolean if a field has been set.
func (o *Dataset) HasAtime() bool {
if o != nil && o.Atime != nil {
return true
}
return false
}
// SetAtime gets a reference to the given CompositeValue and assigns it to the Atime field.
func (o *Dataset) SetAtime(v CompositeValue) {
o.Atime = &v
}
// GetCasesensitivity returns the Casesensitivity field value if set, zero value otherwise.
func (o *Dataset) GetCasesensitivity() CompositeValue {
if o == nil || o.Casesensitivity == nil {
var ret CompositeValue
return ret
}
return *o.Casesensitivity
}
// GetCasesensitivityOk returns a tuple with the Casesensitivity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetCasesensitivityOk() (*CompositeValue, bool) {
if o == nil || o.Casesensitivity == nil {
return nil, false
}
return o.Casesensitivity, true
}
// HasCasesensitivity returns a boolean if a field has been set.
func (o *Dataset) HasCasesensitivity() bool {
if o != nil && o.Casesensitivity != nil {
return true
}
return false
}
// SetCasesensitivity gets a reference to the given CompositeValue and assigns it to the Casesensitivity field.
func (o *Dataset) SetCasesensitivity(v CompositeValue) {
o.Casesensitivity = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *Dataset) GetComments() CompositeValue {
if o == nil || o.Comments == nil {
var ret CompositeValue
return ret
}
return *o.Comments
}
// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetCommentsOk() (*CompositeValue, bool) {
if o == nil || o.Comments == nil {
return nil, false
}
return o.Comments, true
}
// HasComments returns a boolean if a field has been set.
func (o *Dataset) HasComments() bool {
if o != nil && o.Comments != nil {
return true
}
return false
}
// SetComments gets a reference to the given CompositeValue and assigns it to the Comments field.
func (o *Dataset) SetComments(v CompositeValue) {
o.Comments = &v
}
// GetCompression returns the Compression field value if set, zero value otherwise.
func (o *Dataset) GetCompression() CompositeValue {
if o == nil || o.Compression == nil {
var ret CompositeValue
return ret
}
return *o.Compression
}
// GetCompressionOk returns a tuple with the Compression field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetCompressionOk() (*CompositeValue, bool) {
if o == nil || o.Compression == nil {
return nil, false
}
return o.Compression, true
}
// HasCompression returns a boolean if a field has been set.
func (o *Dataset) HasCompression() bool {
if o != nil && o.Compression != nil {
return true
}
return false
}
// SetCompression gets a reference to the given CompositeValue and assigns it to the Compression field.
func (o *Dataset) SetCompression(v CompositeValue) {
o.Compression = &v
}
// GetDeduplication returns the Deduplication field value if set, zero value otherwise.
func (o *Dataset) GetDeduplication() CompositeValue {
if o == nil || o.Deduplication == nil {
var ret CompositeValue
return ret
}
return *o.Deduplication
}
// GetDeduplicationOk returns a tuple with the Deduplication field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetDeduplicationOk() (*CompositeValue, bool) {
if o == nil || o.Deduplication == nil {
return nil, false
}
return o.Deduplication, true
}
// HasDeduplication returns a boolean if a field has been set.
func (o *Dataset) HasDeduplication() bool {
if o != nil && o.Deduplication != nil {
return true
}
return false
}
// SetDeduplication gets a reference to the given CompositeValue and assigns it to the Deduplication field.
func (o *Dataset) SetDeduplication(v CompositeValue) {
o.Deduplication = &v
}
// GetExec returns the Exec field value if set, zero value otherwise.
func (o *Dataset) GetExec() CompositeValue {
if o == nil || o.Exec == nil {
var ret CompositeValue
return ret
}
return *o.Exec
}
// GetExecOk returns a tuple with the Exec field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetExecOk() (*CompositeValue, bool) {
if o == nil || o.Exec == nil {
return nil, false
}
return o.Exec, true
}
// HasExec returns a boolean if a field has been set.
func (o *Dataset) HasExec() bool {
if o != nil && o.Exec != nil {
return true
}
return false
}
// SetExec gets a reference to the given CompositeValue and assigns it to the Exec field.
func (o *Dataset) SetExec(v CompositeValue) {
o.Exec = &v
}
// GetKeyFormat returns the KeyFormat field value if set, zero value otherwise.
func (o *Dataset) GetKeyFormat() CompositeValue {
if o == nil || o.KeyFormat == nil {
var ret CompositeValue
return ret
}
return *o.KeyFormat
}
// GetKeyFormatOk returns a tuple with the KeyFormat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetKeyFormatOk() (*CompositeValue, bool) {
if o == nil || o.KeyFormat == nil {
return nil, false
}
return o.KeyFormat, true
}
// HasKeyFormat returns a boolean if a field has been set.
func (o *Dataset) HasKeyFormat() bool {
if o != nil && o.KeyFormat != nil {
return true
}
return false
}
// SetKeyFormat gets a reference to the given CompositeValue and assigns it to the KeyFormat field.
func (o *Dataset) SetKeyFormat(v CompositeValue) {
o.KeyFormat = &v
}
// GetManagedby returns the Managedby field value if set, zero value otherwise.
func (o *Dataset) GetManagedby() CompositeValue {
if o == nil || o.Managedby == nil {
var ret CompositeValue
return ret
}
return *o.Managedby
}
// GetManagedbyOk returns a tuple with the Managedby field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetManagedbyOk() (*CompositeValue, bool) {
if o == nil || o.Managedby == nil {
return nil, false
}
return o.Managedby, true
}
// HasManagedby returns a boolean if a field has been set.
func (o *Dataset) HasManagedby() bool {
if o != nil && o.Managedby != nil {
return true
}
return false
}
// SetManagedby gets a reference to the given CompositeValue and assigns it to the Managedby field.
func (o *Dataset) SetManagedby(v CompositeValue) {
o.Managedby = &v
}
// GetCopies returns the Copies field value if set, zero value otherwise.
func (o *Dataset) GetCopies() CompositeValue {
if o == nil || o.Copies == nil {
var ret CompositeValue
return ret
}
return *o.Copies
}
// GetCopiesOk returns a tuple with the Copies field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetCopiesOk() (*CompositeValue, bool) {
if o == nil || o.Copies == nil {
return nil, false
}
return o.Copies, true
}
// HasCopies returns a boolean if a field has been set.
func (o *Dataset) HasCopies() bool {
if o != nil && o.Copies != nil {
return true
}
return false
}
// SetCopies gets a reference to the given CompositeValue and assigns it to the Copies field.
func (o *Dataset) SetCopies(v CompositeValue) {
o.Copies = &v
}
// GetQuota returns the Quota field value if set, zero value otherwise.
func (o *Dataset) GetQuota() CompositeValue {
if o == nil || o.Quota == nil {
var ret CompositeValue
return ret
}
return *o.Quota
}
// GetQuotaOk returns a tuple with the Quota field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetQuotaOk() (*CompositeValue, bool) {
if o == nil || o.Quota == nil {
return nil, false
}
return o.Quota, true
}
// HasQuota returns a boolean if a field has been set.
func (o *Dataset) HasQuota() bool {
if o != nil && o.Quota != nil {
return true
}
return false
}
// SetQuota gets a reference to the given CompositeValue and assigns it to the Quota field.
func (o *Dataset) SetQuota(v CompositeValue) {
o.Quota = &v
}
// GetQuotaCritical returns the QuotaCritical field value if set, zero value otherwise.
func (o *Dataset) GetQuotaCritical() CompositeValue {
if o == nil || o.QuotaCritical == nil {
var ret CompositeValue
return ret
}
return *o.QuotaCritical
}
// GetQuotaCriticalOk returns a tuple with the QuotaCritical field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetQuotaCriticalOk() (*CompositeValue, bool) {
if o == nil || o.QuotaCritical == nil {
return nil, false
}
return o.QuotaCritical, true
}
// HasQuotaCritical returns a boolean if a field has been set.
func (o *Dataset) HasQuotaCritical() bool {
if o != nil && o.QuotaCritical != nil {
return true
}
return false
}
// SetQuotaCritical gets a reference to the given CompositeValue and assigns it to the QuotaCritical field.
func (o *Dataset) SetQuotaCritical(v CompositeValue) {
o.QuotaCritical = &v
}
// GetQuotaWarning returns the QuotaWarning field value if set, zero value otherwise.
func (o *Dataset) GetQuotaWarning() CompositeValue {
if o == nil || o.QuotaWarning == nil {
var ret CompositeValue
return ret
}
return *o.QuotaWarning
}
// GetQuotaWarningOk returns a tuple with the QuotaWarning field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetQuotaWarningOk() (*CompositeValue, bool) {
if o == nil || o.QuotaWarning == nil {
return nil, false
}
return o.QuotaWarning, true
}
// HasQuotaWarning returns a boolean if a field has been set.
func (o *Dataset) HasQuotaWarning() bool {
if o != nil && o.QuotaWarning != nil {
return true
}
return false
}
// SetQuotaWarning gets a reference to the given CompositeValue and assigns it to the QuotaWarning field.
func (o *Dataset) SetQuotaWarning(v CompositeValue) {
o.QuotaWarning = &v
}
// GetReservation returns the Reservation field value if set, zero value otherwise.
func (o *Dataset) GetReservation() CompositeValue {
if o == nil || o.Reservation == nil {
var ret CompositeValue
return ret
}
return *o.Reservation
}
// GetReservationOk returns a tuple with the Reservation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetReservationOk() (*CompositeValue, bool) {
if o == nil || o.Reservation == nil {
return nil, false
}
return o.Reservation, true
}
// HasReservation returns a boolean if a field has been set.
func (o *Dataset) HasReservation() bool {
if o != nil && o.Reservation != nil {
return true
}
return false
}
// SetReservation gets a reference to the given CompositeValue and assigns it to the Reservation field.
func (o *Dataset) SetReservation(v CompositeValue) {
o.Reservation = &v
}
// GetRefreservation returns the Refreservation field value if set, zero value otherwise.
func (o *Dataset) GetRefreservation() CompositeValue {
if o == nil || o.Refreservation == nil {
var ret CompositeValue
return ret
}
return *o.Refreservation
}
// GetRefreservationOk returns a tuple with the Refreservation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetRefreservationOk() (*CompositeValue, bool) {
if o == nil || o.Refreservation == nil {
return nil, false
}
return o.Refreservation, true
}
// HasRefreservation returns a boolean if a field has been set.
func (o *Dataset) HasRefreservation() bool {
if o != nil && o.Refreservation != nil {
return true
}
return false
}
// SetRefreservation gets a reference to the given CompositeValue and assigns it to the Refreservation field.
func (o *Dataset) SetRefreservation(v CompositeValue) {
o.Refreservation = &v
}
// GetRefquota returns the Refquota field value if set, zero value otherwise.
func (o *Dataset) GetRefquota() CompositeValue {
if o == nil || o.Refquota == nil {
var ret CompositeValue
return ret
}
return *o.Refquota
}
// GetRefquotaOk returns a tuple with the Refquota field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetRefquotaOk() (*CompositeValue, bool) {
if o == nil || o.Refquota == nil {
return nil, false
}
return o.Refquota, true
}
// HasRefquota returns a boolean if a field has been set.
func (o *Dataset) HasRefquota() bool {
if o != nil && o.Refquota != nil {
return true
}
return false
}
// SetRefquota gets a reference to the given CompositeValue and assigns it to the Refquota field.
func (o *Dataset) SetRefquota(v CompositeValue) {
o.Refquota = &v
}
// GetRefquotaCritical returns the RefquotaCritical field value if set, zero value otherwise.
func (o *Dataset) GetRefquotaCritical() CompositeValue {
if o == nil || o.RefquotaCritical == nil {
var ret CompositeValue
return ret
}
return *o.RefquotaCritical
}
// GetRefquotaCriticalOk returns a tuple with the RefquotaCritical field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetRefquotaCriticalOk() (*CompositeValue, bool) {
if o == nil || o.RefquotaCritical == nil {
return nil, false
}
return o.RefquotaCritical, true
}
// HasRefquotaCritical returns a boolean if a field has been set.
func (o *Dataset) HasRefquotaCritical() bool {
if o != nil && o.RefquotaCritical != nil {
return true
}
return false
}
// SetRefquotaCritical gets a reference to the given CompositeValue and assigns it to the RefquotaCritical field.
func (o *Dataset) SetRefquotaCritical(v CompositeValue) {
o.RefquotaCritical = &v
}
// GetRefquotaWarning returns the RefquotaWarning field value if set, zero value otherwise.
func (o *Dataset) GetRefquotaWarning() CompositeValue {
if o == nil || o.RefquotaWarning == nil {
var ret CompositeValue
return ret
}
return *o.RefquotaWarning
}
// GetRefquotaWarningOk returns a tuple with the RefquotaWarning field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dataset) GetRefquotaWarningOk() (*CompositeValue, bool) {
if o == nil || o.RefquotaWarning == nil {
return nil, false
}
return o.RefquotaWarning, true
}
// HasRefquotaWarning returns a boolean if a field has been set.
func (o *Dataset) HasRefquotaWarning() bool {
if o != nil && o.RefquotaWarning != nil {
return true
}
return false
}
// SetRefquotaWarning gets a reference to the given CompositeValue and assigns it to the RefquotaWarning field.
func (o *Dataset) SetRefquotaWarning(v CompositeValue) {
o.RefquotaWarning = &v
}
// GetReadonly returns the Readonly field value if set, zero value otherwise.
func (o *Dataset) GetReadonly() CompositeValue {
if o == nil || o.Readonly == nil {
var ret CompositeValue
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 *Dataset) GetReadonlyOk() (*CompositeValue, 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 *Dataset) HasReadonly() bool {
if o != nil && o.Readonly != nil {
return true