This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
/
model_csi_volume.go
1269 lines (1087 loc) · 35.1 KB
/
model_csi_volume.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
/*
* Nomad
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 1.1.4
* Contact: support@hashicorp.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
"time"
)
// CSIVolume struct for CSIVolume
type CSIVolume struct {
AccessMode *string `json:"AccessMode,omitempty"`
Allocations *[]AllocationListStub `json:"Allocations,omitempty"`
AttachmentMode *string `json:"AttachmentMode,omitempty"`
Capacity *int64 `json:"Capacity,omitempty"`
CloneID *string `json:"CloneID,omitempty"`
Context *map[string]string `json:"Context,omitempty"`
ControllerRequired *bool `json:"ControllerRequired,omitempty"`
ControllersExpected *int32 `json:"ControllersExpected,omitempty"`
ControllersHealthy *int32 `json:"ControllersHealthy,omitempty"`
CreateIndex *int32 `json:"CreateIndex,omitempty"`
ExternalID *string `json:"ExternalID,omitempty"`
ID *string `json:"ID,omitempty"`
ModifyIndex *int32 `json:"ModifyIndex,omitempty"`
MountOptions *CSIMountOptions `json:"MountOptions,omitempty"`
Name *string `json:"Name,omitempty"`
Namespace *string `json:"Namespace,omitempty"`
NodesExpected *int32 `json:"NodesExpected,omitempty"`
NodesHealthy *int32 `json:"NodesHealthy,omitempty"`
Parameters *map[string]string `json:"Parameters,omitempty"`
PluginID *string `json:"PluginID,omitempty"`
Provider *string `json:"Provider,omitempty"`
ProviderVersion *string `json:"ProviderVersion,omitempty"`
ReadAllocs *map[string]Allocation `json:"ReadAllocs,omitempty"`
RequestedCapabilities *[]CSIVolumeCapability `json:"RequestedCapabilities,omitempty"`
RequestedCapacityMax *int64 `json:"RequestedCapacityMax,omitempty"`
RequestedCapacityMin *int64 `json:"RequestedCapacityMin,omitempty"`
RequestedTopologies *CSITopologyRequest `json:"RequestedTopologies,omitempty"`
ResourceExhausted *time.Time `json:"ResourceExhausted,omitempty"`
Schedulable *bool `json:"Schedulable,omitempty"`
Secrets *map[string]string `json:"Secrets,omitempty"`
SnapshotID *string `json:"SnapshotID,omitempty"`
Topologies *[]CSITopology `json:"Topologies,omitempty"`
WriteAllocs *map[string]Allocation `json:"WriteAllocs,omitempty"`
}
// NewCSIVolume instantiates a new CSIVolume 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 NewCSIVolume() *CSIVolume {
this := CSIVolume{}
return &this
}
// NewCSIVolumeWithDefaults instantiates a new CSIVolume 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 NewCSIVolumeWithDefaults() *CSIVolume {
this := CSIVolume{}
return &this
}
// GetAccessMode returns the AccessMode field value if set, zero value otherwise.
func (o *CSIVolume) GetAccessMode() string {
if o == nil || o.AccessMode == nil {
var ret string
return ret
}
return *o.AccessMode
}
// GetAccessModeOk returns a tuple with the AccessMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetAccessModeOk() (*string, bool) {
if o == nil || o.AccessMode == nil {
return nil, false
}
return o.AccessMode, true
}
// HasAccessMode returns a boolean if a field has been set.
func (o *CSIVolume) HasAccessMode() bool {
if o != nil && o.AccessMode != nil {
return true
}
return false
}
// SetAccessMode gets a reference to the given string and assigns it to the AccessMode field.
func (o *CSIVolume) SetAccessMode(v string) {
o.AccessMode = &v
}
// GetAllocations returns the Allocations field value if set, zero value otherwise.
func (o *CSIVolume) GetAllocations() []AllocationListStub {
if o == nil || o.Allocations == nil {
var ret []AllocationListStub
return ret
}
return *o.Allocations
}
// GetAllocationsOk returns a tuple with the Allocations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetAllocationsOk() (*[]AllocationListStub, bool) {
if o == nil || o.Allocations == nil {
return nil, false
}
return o.Allocations, true
}
// HasAllocations returns a boolean if a field has been set.
func (o *CSIVolume) HasAllocations() bool {
if o != nil && o.Allocations != nil {
return true
}
return false
}
// SetAllocations gets a reference to the given []AllocationListStub and assigns it to the Allocations field.
func (o *CSIVolume) SetAllocations(v []AllocationListStub) {
o.Allocations = &v
}
// GetAttachmentMode returns the AttachmentMode field value if set, zero value otherwise.
func (o *CSIVolume) GetAttachmentMode() string {
if o == nil || o.AttachmentMode == nil {
var ret string
return ret
}
return *o.AttachmentMode
}
// GetAttachmentModeOk returns a tuple with the AttachmentMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetAttachmentModeOk() (*string, bool) {
if o == nil || o.AttachmentMode == nil {
return nil, false
}
return o.AttachmentMode, true
}
// HasAttachmentMode returns a boolean if a field has been set.
func (o *CSIVolume) HasAttachmentMode() bool {
if o != nil && o.AttachmentMode != nil {
return true
}
return false
}
// SetAttachmentMode gets a reference to the given string and assigns it to the AttachmentMode field.
func (o *CSIVolume) SetAttachmentMode(v string) {
o.AttachmentMode = &v
}
// GetCapacity returns the Capacity field value if set, zero value otherwise.
func (o *CSIVolume) GetCapacity() int64 {
if o == nil || o.Capacity == nil {
var ret int64
return ret
}
return *o.Capacity
}
// GetCapacityOk returns a tuple with the Capacity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetCapacityOk() (*int64, bool) {
if o == nil || o.Capacity == nil {
return nil, false
}
return o.Capacity, true
}
// HasCapacity returns a boolean if a field has been set.
func (o *CSIVolume) HasCapacity() bool {
if o != nil && o.Capacity != nil {
return true
}
return false
}
// SetCapacity gets a reference to the given int64 and assigns it to the Capacity field.
func (o *CSIVolume) SetCapacity(v int64) {
o.Capacity = &v
}
// GetCloneID returns the CloneID field value if set, zero value otherwise.
func (o *CSIVolume) GetCloneID() string {
if o == nil || o.CloneID == nil {
var ret string
return ret
}
return *o.CloneID
}
// GetCloneIDOk returns a tuple with the CloneID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetCloneIDOk() (*string, bool) {
if o == nil || o.CloneID == nil {
return nil, false
}
return o.CloneID, true
}
// HasCloneID returns a boolean if a field has been set.
func (o *CSIVolume) HasCloneID() bool {
if o != nil && o.CloneID != nil {
return true
}
return false
}
// SetCloneID gets a reference to the given string and assigns it to the CloneID field.
func (o *CSIVolume) SetCloneID(v string) {
o.CloneID = &v
}
// GetContext returns the Context field value if set, zero value otherwise.
func (o *CSIVolume) GetContext() map[string]string {
if o == nil || o.Context == nil {
var ret map[string]string
return ret
}
return *o.Context
}
// GetContextOk returns a tuple with the Context field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetContextOk() (*map[string]string, bool) {
if o == nil || o.Context == nil {
return nil, false
}
return o.Context, true
}
// HasContext returns a boolean if a field has been set.
func (o *CSIVolume) HasContext() bool {
if o != nil && o.Context != nil {
return true
}
return false
}
// SetContext gets a reference to the given map[string]string and assigns it to the Context field.
func (o *CSIVolume) SetContext(v map[string]string) {
o.Context = &v
}
// GetControllerRequired returns the ControllerRequired field value if set, zero value otherwise.
func (o *CSIVolume) GetControllerRequired() bool {
if o == nil || o.ControllerRequired == nil {
var ret bool
return ret
}
return *o.ControllerRequired
}
// GetControllerRequiredOk returns a tuple with the ControllerRequired field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetControllerRequiredOk() (*bool, bool) {
if o == nil || o.ControllerRequired == nil {
return nil, false
}
return o.ControllerRequired, true
}
// HasControllerRequired returns a boolean if a field has been set.
func (o *CSIVolume) HasControllerRequired() bool {
if o != nil && o.ControllerRequired != nil {
return true
}
return false
}
// SetControllerRequired gets a reference to the given bool and assigns it to the ControllerRequired field.
func (o *CSIVolume) SetControllerRequired(v bool) {
o.ControllerRequired = &v
}
// GetControllersExpected returns the ControllersExpected field value if set, zero value otherwise.
func (o *CSIVolume) GetControllersExpected() int32 {
if o == nil || o.ControllersExpected == nil {
var ret int32
return ret
}
return *o.ControllersExpected
}
// GetControllersExpectedOk returns a tuple with the ControllersExpected field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetControllersExpectedOk() (*int32, bool) {
if o == nil || o.ControllersExpected == nil {
return nil, false
}
return o.ControllersExpected, true
}
// HasControllersExpected returns a boolean if a field has been set.
func (o *CSIVolume) HasControllersExpected() bool {
if o != nil && o.ControllersExpected != nil {
return true
}
return false
}
// SetControllersExpected gets a reference to the given int32 and assigns it to the ControllersExpected field.
func (o *CSIVolume) SetControllersExpected(v int32) {
o.ControllersExpected = &v
}
// GetControllersHealthy returns the ControllersHealthy field value if set, zero value otherwise.
func (o *CSIVolume) GetControllersHealthy() int32 {
if o == nil || o.ControllersHealthy == nil {
var ret int32
return ret
}
return *o.ControllersHealthy
}
// GetControllersHealthyOk returns a tuple with the ControllersHealthy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetControllersHealthyOk() (*int32, bool) {
if o == nil || o.ControllersHealthy == nil {
return nil, false
}
return o.ControllersHealthy, true
}
// HasControllersHealthy returns a boolean if a field has been set.
func (o *CSIVolume) HasControllersHealthy() bool {
if o != nil && o.ControllersHealthy != nil {
return true
}
return false
}
// SetControllersHealthy gets a reference to the given int32 and assigns it to the ControllersHealthy field.
func (o *CSIVolume) SetControllersHealthy(v int32) {
o.ControllersHealthy = &v
}
// GetCreateIndex returns the CreateIndex field value if set, zero value otherwise.
func (o *CSIVolume) GetCreateIndex() int32 {
if o == nil || o.CreateIndex == nil {
var ret int32
return ret
}
return *o.CreateIndex
}
// GetCreateIndexOk returns a tuple with the CreateIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetCreateIndexOk() (*int32, bool) {
if o == nil || o.CreateIndex == nil {
return nil, false
}
return o.CreateIndex, true
}
// HasCreateIndex returns a boolean if a field has been set.
func (o *CSIVolume) HasCreateIndex() bool {
if o != nil && o.CreateIndex != nil {
return true
}
return false
}
// SetCreateIndex gets a reference to the given int32 and assigns it to the CreateIndex field.
func (o *CSIVolume) SetCreateIndex(v int32) {
o.CreateIndex = &v
}
// GetExternalID returns the ExternalID field value if set, zero value otherwise.
func (o *CSIVolume) GetExternalID() string {
if o == nil || o.ExternalID == nil {
var ret string
return ret
}
return *o.ExternalID
}
// GetExternalIDOk returns a tuple with the ExternalID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetExternalIDOk() (*string, bool) {
if o == nil || o.ExternalID == nil {
return nil, false
}
return o.ExternalID, true
}
// HasExternalID returns a boolean if a field has been set.
func (o *CSIVolume) HasExternalID() bool {
if o != nil && o.ExternalID != nil {
return true
}
return false
}
// SetExternalID gets a reference to the given string and assigns it to the ExternalID field.
func (o *CSIVolume) SetExternalID(v string) {
o.ExternalID = &v
}
// GetID returns the ID field value if set, zero value otherwise.
func (o *CSIVolume) 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 *CSIVolume) 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 *CSIVolume) 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 *CSIVolume) SetID(v string) {
o.ID = &v
}
// GetModifyIndex returns the ModifyIndex field value if set, zero value otherwise.
func (o *CSIVolume) GetModifyIndex() int32 {
if o == nil || o.ModifyIndex == nil {
var ret int32
return ret
}
return *o.ModifyIndex
}
// GetModifyIndexOk returns a tuple with the ModifyIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetModifyIndexOk() (*int32, bool) {
if o == nil || o.ModifyIndex == nil {
return nil, false
}
return o.ModifyIndex, true
}
// HasModifyIndex returns a boolean if a field has been set.
func (o *CSIVolume) HasModifyIndex() bool {
if o != nil && o.ModifyIndex != nil {
return true
}
return false
}
// SetModifyIndex gets a reference to the given int32 and assigns it to the ModifyIndex field.
func (o *CSIVolume) SetModifyIndex(v int32) {
o.ModifyIndex = &v
}
// GetMountOptions returns the MountOptions field value if set, zero value otherwise.
func (o *CSIVolume) GetMountOptions() CSIMountOptions {
if o == nil || o.MountOptions == nil {
var ret CSIMountOptions
return ret
}
return *o.MountOptions
}
// GetMountOptionsOk returns a tuple with the MountOptions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetMountOptionsOk() (*CSIMountOptions, bool) {
if o == nil || o.MountOptions == nil {
return nil, false
}
return o.MountOptions, true
}
// HasMountOptions returns a boolean if a field has been set.
func (o *CSIVolume) HasMountOptions() bool {
if o != nil && o.MountOptions != nil {
return true
}
return false
}
// SetMountOptions gets a reference to the given CSIMountOptions and assigns it to the MountOptions field.
func (o *CSIVolume) SetMountOptions(v CSIMountOptions) {
o.MountOptions = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *CSIVolume) 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 *CSIVolume) 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 *CSIVolume) 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 *CSIVolume) SetName(v string) {
o.Name = &v
}
// GetNamespace returns the Namespace field value if set, zero value otherwise.
func (o *CSIVolume) GetNamespace() string {
if o == nil || o.Namespace == nil {
var ret string
return ret
}
return *o.Namespace
}
// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetNamespaceOk() (*string, bool) {
if o == nil || o.Namespace == nil {
return nil, false
}
return o.Namespace, true
}
// HasNamespace returns a boolean if a field has been set.
func (o *CSIVolume) HasNamespace() bool {
if o != nil && o.Namespace != nil {
return true
}
return false
}
// SetNamespace gets a reference to the given string and assigns it to the Namespace field.
func (o *CSIVolume) SetNamespace(v string) {
o.Namespace = &v
}
// GetNodesExpected returns the NodesExpected field value if set, zero value otherwise.
func (o *CSIVolume) GetNodesExpected() int32 {
if o == nil || o.NodesExpected == nil {
var ret int32
return ret
}
return *o.NodesExpected
}
// GetNodesExpectedOk returns a tuple with the NodesExpected field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetNodesExpectedOk() (*int32, bool) {
if o == nil || o.NodesExpected == nil {
return nil, false
}
return o.NodesExpected, true
}
// HasNodesExpected returns a boolean if a field has been set.
func (o *CSIVolume) HasNodesExpected() bool {
if o != nil && o.NodesExpected != nil {
return true
}
return false
}
// SetNodesExpected gets a reference to the given int32 and assigns it to the NodesExpected field.
func (o *CSIVolume) SetNodesExpected(v int32) {
o.NodesExpected = &v
}
// GetNodesHealthy returns the NodesHealthy field value if set, zero value otherwise.
func (o *CSIVolume) GetNodesHealthy() int32 {
if o == nil || o.NodesHealthy == nil {
var ret int32
return ret
}
return *o.NodesHealthy
}
// GetNodesHealthyOk returns a tuple with the NodesHealthy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetNodesHealthyOk() (*int32, bool) {
if o == nil || o.NodesHealthy == nil {
return nil, false
}
return o.NodesHealthy, true
}
// HasNodesHealthy returns a boolean if a field has been set.
func (o *CSIVolume) HasNodesHealthy() bool {
if o != nil && o.NodesHealthy != nil {
return true
}
return false
}
// SetNodesHealthy gets a reference to the given int32 and assigns it to the NodesHealthy field.
func (o *CSIVolume) SetNodesHealthy(v int32) {
o.NodesHealthy = &v
}
// GetParameters returns the Parameters field value if set, zero value otherwise.
func (o *CSIVolume) GetParameters() map[string]string {
if o == nil || o.Parameters == nil {
var ret map[string]string
return ret
}
return *o.Parameters
}
// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetParametersOk() (*map[string]string, bool) {
if o == nil || o.Parameters == nil {
return nil, false
}
return o.Parameters, true
}
// HasParameters returns a boolean if a field has been set.
func (o *CSIVolume) HasParameters() bool {
if o != nil && o.Parameters != nil {
return true
}
return false
}
// SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field.
func (o *CSIVolume) SetParameters(v map[string]string) {
o.Parameters = &v
}
// GetPluginID returns the PluginID field value if set, zero value otherwise.
func (o *CSIVolume) GetPluginID() string {
if o == nil || o.PluginID == nil {
var ret string
return ret
}
return *o.PluginID
}
// GetPluginIDOk returns a tuple with the PluginID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetPluginIDOk() (*string, bool) {
if o == nil || o.PluginID == nil {
return nil, false
}
return o.PluginID, true
}
// HasPluginID returns a boolean if a field has been set.
func (o *CSIVolume) HasPluginID() bool {
if o != nil && o.PluginID != nil {
return true
}
return false
}
// SetPluginID gets a reference to the given string and assigns it to the PluginID field.
func (o *CSIVolume) SetPluginID(v string) {
o.PluginID = &v
}
// GetProvider returns the Provider field value if set, zero value otherwise.
func (o *CSIVolume) GetProvider() string {
if o == nil || o.Provider == nil {
var ret string
return ret
}
return *o.Provider
}
// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetProviderOk() (*string, bool) {
if o == nil || o.Provider == nil {
return nil, false
}
return o.Provider, true
}
// HasProvider returns a boolean if a field has been set.
func (o *CSIVolume) HasProvider() bool {
if o != nil && o.Provider != nil {
return true
}
return false
}
// SetProvider gets a reference to the given string and assigns it to the Provider field.
func (o *CSIVolume) SetProvider(v string) {
o.Provider = &v
}
// GetProviderVersion returns the ProviderVersion field value if set, zero value otherwise.
func (o *CSIVolume) GetProviderVersion() string {
if o == nil || o.ProviderVersion == nil {
var ret string
return ret
}
return *o.ProviderVersion
}
// GetProviderVersionOk returns a tuple with the ProviderVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetProviderVersionOk() (*string, bool) {
if o == nil || o.ProviderVersion == nil {
return nil, false
}
return o.ProviderVersion, true
}
// HasProviderVersion returns a boolean if a field has been set.
func (o *CSIVolume) HasProviderVersion() bool {
if o != nil && o.ProviderVersion != nil {
return true
}
return false
}
// SetProviderVersion gets a reference to the given string and assigns it to the ProviderVersion field.
func (o *CSIVolume) SetProviderVersion(v string) {
o.ProviderVersion = &v
}
// GetReadAllocs returns the ReadAllocs field value if set, zero value otherwise.
func (o *CSIVolume) GetReadAllocs() map[string]Allocation {
if o == nil || o.ReadAllocs == nil {
var ret map[string]Allocation
return ret
}
return *o.ReadAllocs
}
// GetReadAllocsOk returns a tuple with the ReadAllocs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetReadAllocsOk() (*map[string]Allocation, bool) {
if o == nil || o.ReadAllocs == nil {
return nil, false
}
return o.ReadAllocs, true
}
// HasReadAllocs returns a boolean if a field has been set.
func (o *CSIVolume) HasReadAllocs() bool {
if o != nil && o.ReadAllocs != nil {
return true
}
return false
}
// SetReadAllocs gets a reference to the given map[string]Allocation and assigns it to the ReadAllocs field.
func (o *CSIVolume) SetReadAllocs(v map[string]Allocation) {
o.ReadAllocs = &v
}
// GetRequestedCapabilities returns the RequestedCapabilities field value if set, zero value otherwise.
func (o *CSIVolume) GetRequestedCapabilities() []CSIVolumeCapability {
if o == nil || o.RequestedCapabilities == nil {
var ret []CSIVolumeCapability
return ret
}
return *o.RequestedCapabilities
}
// GetRequestedCapabilitiesOk returns a tuple with the RequestedCapabilities field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetRequestedCapabilitiesOk() (*[]CSIVolumeCapability, bool) {
if o == nil || o.RequestedCapabilities == nil {
return nil, false
}
return o.RequestedCapabilities, true
}
// HasRequestedCapabilities returns a boolean if a field has been set.
func (o *CSIVolume) HasRequestedCapabilities() bool {
if o != nil && o.RequestedCapabilities != nil {
return true
}
return false
}
// SetRequestedCapabilities gets a reference to the given []CSIVolumeCapability and assigns it to the RequestedCapabilities field.
func (o *CSIVolume) SetRequestedCapabilities(v []CSIVolumeCapability) {
o.RequestedCapabilities = &v
}
// GetRequestedCapacityMax returns the RequestedCapacityMax field value if set, zero value otherwise.
func (o *CSIVolume) GetRequestedCapacityMax() int64 {
if o == nil || o.RequestedCapacityMax == nil {
var ret int64
return ret
}
return *o.RequestedCapacityMax
}
// GetRequestedCapacityMaxOk returns a tuple with the RequestedCapacityMax field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetRequestedCapacityMaxOk() (*int64, bool) {
if o == nil || o.RequestedCapacityMax == nil {
return nil, false
}
return o.RequestedCapacityMax, true
}
// HasRequestedCapacityMax returns a boolean if a field has been set.
func (o *CSIVolume) HasRequestedCapacityMax() bool {
if o != nil && o.RequestedCapacityMax != nil {
return true
}
return false
}
// SetRequestedCapacityMax gets a reference to the given int64 and assigns it to the RequestedCapacityMax field.
func (o *CSIVolume) SetRequestedCapacityMax(v int64) {
o.RequestedCapacityMax = &v
}
// GetRequestedCapacityMin returns the RequestedCapacityMin field value if set, zero value otherwise.
func (o *CSIVolume) GetRequestedCapacityMin() int64 {
if o == nil || o.RequestedCapacityMin == nil {
var ret int64
return ret
}
return *o.RequestedCapacityMin
}
// GetRequestedCapacityMinOk returns a tuple with the RequestedCapacityMin field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetRequestedCapacityMinOk() (*int64, bool) {
if o == nil || o.RequestedCapacityMin == nil {
return nil, false
}
return o.RequestedCapacityMin, true
}
// HasRequestedCapacityMin returns a boolean if a field has been set.
func (o *CSIVolume) HasRequestedCapacityMin() bool {
if o != nil && o.RequestedCapacityMin != nil {
return true
}
return false
}
// SetRequestedCapacityMin gets a reference to the given int64 and assigns it to the RequestedCapacityMin field.
func (o *CSIVolume) SetRequestedCapacityMin(v int64) {
o.RequestedCapacityMin = &v
}
// GetRequestedTopologies returns the RequestedTopologies field value if set, zero value otherwise.
func (o *CSIVolume) GetRequestedTopologies() CSITopologyRequest {
if o == nil || o.RequestedTopologies == nil {
var ret CSITopologyRequest
return ret
}
return *o.RequestedTopologies
}
// GetRequestedTopologiesOk returns a tuple with the RequestedTopologies field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetRequestedTopologiesOk() (*CSITopologyRequest, bool) {
if o == nil || o.RequestedTopologies == nil {
return nil, false
}
return o.RequestedTopologies, true
}
// HasRequestedTopologies returns a boolean if a field has been set.
func (o *CSIVolume) HasRequestedTopologies() bool {
if o != nil && o.RequestedTopologies != nil {
return true
}
return false
}
// SetRequestedTopologies gets a reference to the given CSITopologyRequest and assigns it to the RequestedTopologies field.
func (o *CSIVolume) SetRequestedTopologies(v CSITopologyRequest) {
o.RequestedTopologies = &v
}
// GetResourceExhausted returns the ResourceExhausted field value if set, zero value otherwise.
func (o *CSIVolume) GetResourceExhausted() time.Time {
if o == nil || o.ResourceExhausted == nil {
var ret time.Time
return ret
}
return *o.ResourceExhausted
}
// GetResourceExhaustedOk returns a tuple with the ResourceExhausted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetResourceExhaustedOk() (*time.Time, bool) {
if o == nil || o.ResourceExhausted == nil {
return nil, false
}
return o.ResourceExhausted, true
}
// HasResourceExhausted returns a boolean if a field has been set.
func (o *CSIVolume) HasResourceExhausted() bool {
if o != nil && o.ResourceExhausted != nil {
return true
}
return false
}
// SetResourceExhausted gets a reference to the given time.Time and assigns it to the ResourceExhausted field.
func (o *CSIVolume) SetResourceExhausted(v time.Time) {
o.ResourceExhausted = &v
}
// GetSchedulable returns the Schedulable field value if set, zero value otherwise.
func (o *CSIVolume) GetSchedulable() bool {
if o == nil || o.Schedulable == nil {
var ret bool
return ret
}
return *o.Schedulable
}
// GetSchedulableOk returns a tuple with the Schedulable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CSIVolume) GetSchedulableOk() (*bool, bool) {
if o == nil || o.Schedulable == nil {
return nil, false
}
return o.Schedulable, true
}
// HasSchedulable returns a boolean if a field has been set.
func (o *CSIVolume) HasSchedulable() bool {
if o != nil && o.Schedulable != nil {
return true
}
return false
}
// SetSchedulable gets a reference to the given bool and assigns it to the Schedulable field.
func (o *CSIVolume) SetSchedulable(v bool) {
o.Schedulable = &v
}