-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_create_storage_request_content.go
2097 lines (1803 loc) · 57.6 KB
/
model_create_storage_request_content.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
/*
Proxmox
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 2023-01-01
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package proxmox
import (
"encoding/json"
)
// checks if the CreateStorageRequestContent type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CreateStorageRequestContent{}
// CreateStorageRequestContent struct for CreateStorageRequestContent
type CreateStorageRequestContent struct {
Storage string `json:"storage"`
Type StorageType `json:"type"`
Authsupported *string `json:"authsupported,omitempty"`
// The base volume to use.
Base *string `json:"base,omitempty"`
Blocksize *string `json:"blocksize,omitempty"`
Bwlimit *string `json:"bwlimit,omitempty"`
ComstarHg *string `json:"comstar_hg,omitempty"`
ComstarTg *string `json:"comstar_tg,omitempty"`
// Allowed content types.
Content *string `json:"content,omitempty"`
// Data pool, only for erasure coding
DataPool *string `json:"data-pool,omitempty"`
// Disable the storage
Disable *bool `json:"disable,omitempty"`
// CIFS domain
Domain *string `json:"domain,omitempty"`
// Encryption key for storage. Use 'autogen' to generate one automatically without passphrase.
EncryptionKey *string `json:"encryption-key,omitempty"`
// NFS export path
Export *string `json:"export,omitempty"`
// Certificate SHA256 fingerprint
Fingerprint *string `json:"fingerprint,omitempty"`
// Default image format
Format *string `json:"format,omitempty"`
// The ceph filesystem name
FsName *string `json:"fs-name,omitempty"`
// Mount CephFS through FUSE
Fuse *bool `json:"fuse,omitempty"`
// Assume the given path is an externally managed mountpoint. This is a string boolean, using 'yes' or 'no'
IsMountpoint *string `json:"is_mountpoint,omitempty"`
// iSCSI provider
Iscsiprovider *string `json:"iscsiprovider,omitempty"`
// Client keyring contents
Keyring *string `json:"keyring,omitempty"`
// Always access rbd through krbd kernel module
Krbd *bool `json:"krbd,omitempty"`
// Target portal group for Linux LIO targets
LioTpg *string `json:"lio_tpg,omitempty"`
// Base64 encoded, PEM formatted public RSA key
MasterPubkey *string `json:"master-pubkey,omitempty"`
// Mac number of protected backups. Defaults to unlimited
MaxProtectedBackups *float32 `json:"max-protected-backups,omitempty"`
// Create the directory if doesnt exist. Defaults to true.
Mkdir *bool `json:"mkdir,omitempty"`
// IP addresses of monitors.
Monhost *string `json:"monhost,omitempty"`
// The mount point
Mountpoint *string `json:"mountpoint,omitempty"`
// The namespace
Namespace *string `json:"namespace,omitempty"`
// Set the NOCOW flag on files. This is a boolean integer, using 0 for false or 1 for true.
Nocow *float32 `json:"nocow,omitempty"`
// Comma seperated list of node names
Nodes *string `json:"nodes,omitempty"`
// Disable write caching on the target.
Nowritecache *bool `json:"nowritecache,omitempty"`
// NFS mount options.
Options *string `json:"options,omitempty"`
// Password for accessing the datastore
Password *string `json:"password,omitempty"`
// The filesystem path
Path *string `json:"path,omitempty"`
// The pool name
Pool *string `json:"pool,omitempty"`
// For non default port
Port *float32 `json:"port,omitempty"`
// iSCSI portal (IP or DNS name with optional port).
Portal *string `json:"portal,omitempty"`
Preallocation *StoragePreallocation `json:"preallocation,omitempty"`
// The retention options.
PruneBackups *string `json:"prune-backups,omitempty"`
// Zero out data when removing LVs
Saferemove *bool `json:"saferemove,omitempty"`
// Wipe throughput.
SaferemoveThroughput *string `json:"saferemove-throughput,omitempty"`
// Server IP or DNS name
Server *string `json:"server,omitempty"`
// Backup server IP or DNS name
Server2 *string `json:"server2,omitempty"`
// The CIFS share.
Share *string `json:"share,omitempty"`
// Indicates if the storage is shared.
Shared *bool `json:"shared,omitempty"`
Smbversion *StorageSMBVersion `json:"smbversion,omitempty"`
// Use sparse volumes.
Sparse *bool `json:"sparse,omitempty"`
// The subdir to mount.
Subdir *string `json:"subdir,omitempty"`
// Only use logical volumes tagged with 'pve-vm-ID'.
TaggedOnly *bool `json:"tagged_only,omitempty"`
// LVM thin pool name.
Thinpool *string `json:"thinpool,omitempty"`
Transport *StorageTransport `json:"transport,omitempty"`
// The username to use.
Username *string `json:"username,omitempty"`
// The volume group name.
Vgname *string `json:"vgname,omitempty"`
// The glusterfs volume.
Volume *string `json:"volume,omitempty"`
}
// NewCreateStorageRequestContent instantiates a new CreateStorageRequestContent 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 NewCreateStorageRequestContent(storage string, type_ StorageType) *CreateStorageRequestContent {
this := CreateStorageRequestContent{}
this.Storage = storage
this.Type = type_
return &this
}
// NewCreateStorageRequestContentWithDefaults instantiates a new CreateStorageRequestContent 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 NewCreateStorageRequestContentWithDefaults() *CreateStorageRequestContent {
this := CreateStorageRequestContent{}
return &this
}
// GetStorage returns the Storage field value
func (o *CreateStorageRequestContent) GetStorage() string {
if o == nil {
var ret string
return ret
}
return o.Storage
}
// GetStorageOk returns a tuple with the Storage field value
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetStorageOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Storage, true
}
// SetStorage sets field value
func (o *CreateStorageRequestContent) SetStorage(v string) {
o.Storage = v
}
// GetType returns the Type field value
func (o *CreateStorageRequestContent) GetType() StorageType {
if o == nil {
var ret StorageType
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 *CreateStorageRequestContent) GetTypeOk() (*StorageType, bool) {
if o == nil {
return nil, false
}
return &o.Type, true
}
// SetType sets field value
func (o *CreateStorageRequestContent) SetType(v StorageType) {
o.Type = v
}
// GetAuthsupported returns the Authsupported field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetAuthsupported() string {
if o == nil || isNil(o.Authsupported) {
var ret string
return ret
}
return *o.Authsupported
}
// GetAuthsupportedOk returns a tuple with the Authsupported field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetAuthsupportedOk() (*string, bool) {
if o == nil || isNil(o.Authsupported) {
return nil, false
}
return o.Authsupported, true
}
// HasAuthsupported returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasAuthsupported() bool {
if o != nil && !isNil(o.Authsupported) {
return true
}
return false
}
// SetAuthsupported gets a reference to the given string and assigns it to the Authsupported field.
func (o *CreateStorageRequestContent) SetAuthsupported(v string) {
o.Authsupported = &v
}
// GetBase returns the Base field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetBase() string {
if o == nil || isNil(o.Base) {
var ret string
return ret
}
return *o.Base
}
// GetBaseOk returns a tuple with the Base field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetBaseOk() (*string, bool) {
if o == nil || isNil(o.Base) {
return nil, false
}
return o.Base, true
}
// HasBase returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasBase() bool {
if o != nil && !isNil(o.Base) {
return true
}
return false
}
// SetBase gets a reference to the given string and assigns it to the Base field.
func (o *CreateStorageRequestContent) SetBase(v string) {
o.Base = &v
}
// GetBlocksize returns the Blocksize field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetBlocksize() string {
if o == nil || isNil(o.Blocksize) {
var ret string
return ret
}
return *o.Blocksize
}
// GetBlocksizeOk returns a tuple with the Blocksize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetBlocksizeOk() (*string, bool) {
if o == nil || isNil(o.Blocksize) {
return nil, false
}
return o.Blocksize, true
}
// HasBlocksize returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasBlocksize() bool {
if o != nil && !isNil(o.Blocksize) {
return true
}
return false
}
// SetBlocksize gets a reference to the given string and assigns it to the Blocksize field.
func (o *CreateStorageRequestContent) SetBlocksize(v string) {
o.Blocksize = &v
}
// GetBwlimit returns the Bwlimit field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetBwlimit() string {
if o == nil || isNil(o.Bwlimit) {
var ret string
return ret
}
return *o.Bwlimit
}
// GetBwlimitOk returns a tuple with the Bwlimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetBwlimitOk() (*string, bool) {
if o == nil || isNil(o.Bwlimit) {
return nil, false
}
return o.Bwlimit, true
}
// HasBwlimit returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasBwlimit() bool {
if o != nil && !isNil(o.Bwlimit) {
return true
}
return false
}
// SetBwlimit gets a reference to the given string and assigns it to the Bwlimit field.
func (o *CreateStorageRequestContent) SetBwlimit(v string) {
o.Bwlimit = &v
}
// GetComstarHg returns the ComstarHg field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetComstarHg() string {
if o == nil || isNil(o.ComstarHg) {
var ret string
return ret
}
return *o.ComstarHg
}
// GetComstarHgOk returns a tuple with the ComstarHg field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetComstarHgOk() (*string, bool) {
if o == nil || isNil(o.ComstarHg) {
return nil, false
}
return o.ComstarHg, true
}
// HasComstarHg returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasComstarHg() bool {
if o != nil && !isNil(o.ComstarHg) {
return true
}
return false
}
// SetComstarHg gets a reference to the given string and assigns it to the ComstarHg field.
func (o *CreateStorageRequestContent) SetComstarHg(v string) {
o.ComstarHg = &v
}
// GetComstarTg returns the ComstarTg field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetComstarTg() string {
if o == nil || isNil(o.ComstarTg) {
var ret string
return ret
}
return *o.ComstarTg
}
// GetComstarTgOk returns a tuple with the ComstarTg field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetComstarTgOk() (*string, bool) {
if o == nil || isNil(o.ComstarTg) {
return nil, false
}
return o.ComstarTg, true
}
// HasComstarTg returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasComstarTg() bool {
if o != nil && !isNil(o.ComstarTg) {
return true
}
return false
}
// SetComstarTg gets a reference to the given string and assigns it to the ComstarTg field.
func (o *CreateStorageRequestContent) SetComstarTg(v string) {
o.ComstarTg = &v
}
// GetContent returns the Content field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetContent() string {
if o == nil || isNil(o.Content) {
var ret string
return ret
}
return *o.Content
}
// GetContentOk returns a tuple with the Content field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetContentOk() (*string, bool) {
if o == nil || isNil(o.Content) {
return nil, false
}
return o.Content, true
}
// HasContent returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasContent() bool {
if o != nil && !isNil(o.Content) {
return true
}
return false
}
// SetContent gets a reference to the given string and assigns it to the Content field.
func (o *CreateStorageRequestContent) SetContent(v string) {
o.Content = &v
}
// GetDataPool returns the DataPool field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetDataPool() string {
if o == nil || isNil(o.DataPool) {
var ret string
return ret
}
return *o.DataPool
}
// GetDataPoolOk returns a tuple with the DataPool field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetDataPoolOk() (*string, bool) {
if o == nil || isNil(o.DataPool) {
return nil, false
}
return o.DataPool, true
}
// HasDataPool returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasDataPool() bool {
if o != nil && !isNil(o.DataPool) {
return true
}
return false
}
// SetDataPool gets a reference to the given string and assigns it to the DataPool field.
func (o *CreateStorageRequestContent) SetDataPool(v string) {
o.DataPool = &v
}
// GetDisable returns the Disable field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetDisable() bool {
if o == nil || isNil(o.Disable) {
var ret bool
return ret
}
return *o.Disable
}
// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetDisableOk() (*bool, bool) {
if o == nil || isNil(o.Disable) {
return nil, false
}
return o.Disable, true
}
// HasDisable returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasDisable() bool {
if o != nil && !isNil(o.Disable) {
return true
}
return false
}
// SetDisable gets a reference to the given bool and assigns it to the Disable field.
func (o *CreateStorageRequestContent) SetDisable(v bool) {
o.Disable = &v
}
// GetDomain returns the Domain field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetDomain() string {
if o == nil || isNil(o.Domain) {
var ret string
return ret
}
return *o.Domain
}
// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetDomainOk() (*string, bool) {
if o == nil || isNil(o.Domain) {
return nil, false
}
return o.Domain, true
}
// HasDomain returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasDomain() bool {
if o != nil && !isNil(o.Domain) {
return true
}
return false
}
// SetDomain gets a reference to the given string and assigns it to the Domain field.
func (o *CreateStorageRequestContent) SetDomain(v string) {
o.Domain = &v
}
// GetEncryptionKey returns the EncryptionKey field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetEncryptionKey() string {
if o == nil || isNil(o.EncryptionKey) {
var ret string
return ret
}
return *o.EncryptionKey
}
// GetEncryptionKeyOk returns a tuple with the EncryptionKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetEncryptionKeyOk() (*string, bool) {
if o == nil || isNil(o.EncryptionKey) {
return nil, false
}
return o.EncryptionKey, true
}
// HasEncryptionKey returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasEncryptionKey() bool {
if o != nil && !isNil(o.EncryptionKey) {
return true
}
return false
}
// SetEncryptionKey gets a reference to the given string and assigns it to the EncryptionKey field.
func (o *CreateStorageRequestContent) SetEncryptionKey(v string) {
o.EncryptionKey = &v
}
// GetExport returns the Export field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetExport() string {
if o == nil || isNil(o.Export) {
var ret string
return ret
}
return *o.Export
}
// GetExportOk returns a tuple with the Export field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetExportOk() (*string, bool) {
if o == nil || isNil(o.Export) {
return nil, false
}
return o.Export, true
}
// HasExport returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasExport() bool {
if o != nil && !isNil(o.Export) {
return true
}
return false
}
// SetExport gets a reference to the given string and assigns it to the Export field.
func (o *CreateStorageRequestContent) SetExport(v string) {
o.Export = &v
}
// GetFingerprint returns the Fingerprint field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetFingerprint() string {
if o == nil || isNil(o.Fingerprint) {
var ret string
return ret
}
return *o.Fingerprint
}
// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetFingerprintOk() (*string, bool) {
if o == nil || isNil(o.Fingerprint) {
return nil, false
}
return o.Fingerprint, true
}
// HasFingerprint returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasFingerprint() bool {
if o != nil && !isNil(o.Fingerprint) {
return true
}
return false
}
// SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field.
func (o *CreateStorageRequestContent) SetFingerprint(v string) {
o.Fingerprint = &v
}
// GetFormat returns the Format field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetFormat() string {
if o == nil || isNil(o.Format) {
var ret string
return ret
}
return *o.Format
}
// GetFormatOk returns a tuple with the Format field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetFormatOk() (*string, bool) {
if o == nil || isNil(o.Format) {
return nil, false
}
return o.Format, true
}
// HasFormat returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasFormat() bool {
if o != nil && !isNil(o.Format) {
return true
}
return false
}
// SetFormat gets a reference to the given string and assigns it to the Format field.
func (o *CreateStorageRequestContent) SetFormat(v string) {
o.Format = &v
}
// GetFsName returns the FsName field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetFsName() string {
if o == nil || isNil(o.FsName) {
var ret string
return ret
}
return *o.FsName
}
// GetFsNameOk returns a tuple with the FsName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetFsNameOk() (*string, bool) {
if o == nil || isNil(o.FsName) {
return nil, false
}
return o.FsName, true
}
// HasFsName returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasFsName() bool {
if o != nil && !isNil(o.FsName) {
return true
}
return false
}
// SetFsName gets a reference to the given string and assigns it to the FsName field.
func (o *CreateStorageRequestContent) SetFsName(v string) {
o.FsName = &v
}
// GetFuse returns the Fuse field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetFuse() bool {
if o == nil || isNil(o.Fuse) {
var ret bool
return ret
}
return *o.Fuse
}
// GetFuseOk returns a tuple with the Fuse field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetFuseOk() (*bool, bool) {
if o == nil || isNil(o.Fuse) {
return nil, false
}
return o.Fuse, true
}
// HasFuse returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasFuse() bool {
if o != nil && !isNil(o.Fuse) {
return true
}
return false
}
// SetFuse gets a reference to the given bool and assigns it to the Fuse field.
func (o *CreateStorageRequestContent) SetFuse(v bool) {
o.Fuse = &v
}
// GetIsMountpoint returns the IsMountpoint field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetIsMountpoint() string {
if o == nil || isNil(o.IsMountpoint) {
var ret string
return ret
}
return *o.IsMountpoint
}
// GetIsMountpointOk returns a tuple with the IsMountpoint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetIsMountpointOk() (*string, bool) {
if o == nil || isNil(o.IsMountpoint) {
return nil, false
}
return o.IsMountpoint, true
}
// HasIsMountpoint returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasIsMountpoint() bool {
if o != nil && !isNil(o.IsMountpoint) {
return true
}
return false
}
// SetIsMountpoint gets a reference to the given string and assigns it to the IsMountpoint field.
func (o *CreateStorageRequestContent) SetIsMountpoint(v string) {
o.IsMountpoint = &v
}
// GetIscsiprovider returns the Iscsiprovider field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetIscsiprovider() string {
if o == nil || isNil(o.Iscsiprovider) {
var ret string
return ret
}
return *o.Iscsiprovider
}
// GetIscsiproviderOk returns a tuple with the Iscsiprovider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetIscsiproviderOk() (*string, bool) {
if o == nil || isNil(o.Iscsiprovider) {
return nil, false
}
return o.Iscsiprovider, true
}
// HasIscsiprovider returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasIscsiprovider() bool {
if o != nil && !isNil(o.Iscsiprovider) {
return true
}
return false
}
// SetIscsiprovider gets a reference to the given string and assigns it to the Iscsiprovider field.
func (o *CreateStorageRequestContent) SetIscsiprovider(v string) {
o.Iscsiprovider = &v
}
// GetKeyring returns the Keyring field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetKeyring() string {
if o == nil || isNil(o.Keyring) {
var ret string
return ret
}
return *o.Keyring
}
// GetKeyringOk returns a tuple with the Keyring field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetKeyringOk() (*string, bool) {
if o == nil || isNil(o.Keyring) {
return nil, false
}
return o.Keyring, true
}
// HasKeyring returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasKeyring() bool {
if o != nil && !isNil(o.Keyring) {
return true
}
return false
}
// SetKeyring gets a reference to the given string and assigns it to the Keyring field.
func (o *CreateStorageRequestContent) SetKeyring(v string) {
o.Keyring = &v
}
// GetKrbd returns the Krbd field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetKrbd() bool {
if o == nil || isNil(o.Krbd) {
var ret bool
return ret
}
return *o.Krbd
}
// GetKrbdOk returns a tuple with the Krbd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetKrbdOk() (*bool, bool) {
if o == nil || isNil(o.Krbd) {
return nil, false
}
return o.Krbd, true
}
// HasKrbd returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasKrbd() bool {
if o != nil && !isNil(o.Krbd) {
return true
}
return false
}
// SetKrbd gets a reference to the given bool and assigns it to the Krbd field.
func (o *CreateStorageRequestContent) SetKrbd(v bool) {
o.Krbd = &v
}
// GetLioTpg returns the LioTpg field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetLioTpg() string {
if o == nil || isNil(o.LioTpg) {
var ret string
return ret
}
return *o.LioTpg
}
// GetLioTpgOk returns a tuple with the LioTpg field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetLioTpgOk() (*string, bool) {
if o == nil || isNil(o.LioTpg) {
return nil, false
}
return o.LioTpg, true
}
// HasLioTpg returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasLioTpg() bool {
if o != nil && !isNil(o.LioTpg) {
return true
}
return false
}
// SetLioTpg gets a reference to the given string and assigns it to the LioTpg field.
func (o *CreateStorageRequestContent) SetLioTpg(v string) {
o.LioTpg = &v
}
// GetMasterPubkey returns the MasterPubkey field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetMasterPubkey() string {
if o == nil || isNil(o.MasterPubkey) {
var ret string
return ret
}
return *o.MasterPubkey
}
// GetMasterPubkeyOk returns a tuple with the MasterPubkey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetMasterPubkeyOk() (*string, bool) {
if o == nil || isNil(o.MasterPubkey) {
return nil, false
}
return o.MasterPubkey, true
}
// HasMasterPubkey returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasMasterPubkey() bool {
if o != nil && !isNil(o.MasterPubkey) {
return true
}
return false
}
// SetMasterPubkey gets a reference to the given string and assigns it to the MasterPubkey field.
func (o *CreateStorageRequestContent) SetMasterPubkey(v string) {
o.MasterPubkey = &v
}
// GetMaxProtectedBackups returns the MaxProtectedBackups field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetMaxProtectedBackups() float32 {
if o == nil || isNil(o.MaxProtectedBackups) {
var ret float32
return ret
}
return *o.MaxProtectedBackups
}
// GetMaxProtectedBackupsOk returns a tuple with the MaxProtectedBackups field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetMaxProtectedBackupsOk() (*float32, bool) {
if o == nil || isNil(o.MaxProtectedBackups) {
return nil, false
}
return o.MaxProtectedBackups, true
}
// HasMaxProtectedBackups returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasMaxProtectedBackups() bool {
if o != nil && !isNil(o.MaxProtectedBackups) {
return true
}
return false
}
// SetMaxProtectedBackups gets a reference to the given float32 and assigns it to the MaxProtectedBackups field.
func (o *CreateStorageRequestContent) SetMaxProtectedBackups(v float32) {
o.MaxProtectedBackups = &v
}
// GetMkdir returns the Mkdir field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetMkdir() bool {
if o == nil || isNil(o.Mkdir) {
var ret bool
return ret
}
return *o.Mkdir
}
// GetMkdirOk returns a tuple with the Mkdir field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetMkdirOk() (*bool, bool) {
if o == nil || isNil(o.Mkdir) {
return nil, false
}
return o.Mkdir, true
}
// HasMkdir returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasMkdir() bool {
if o != nil && !isNil(o.Mkdir) {
return true
}
return false
}
// SetMkdir gets a reference to the given bool and assigns it to the Mkdir field.
func (o *CreateStorageRequestContent) SetMkdir(v bool) {
o.Mkdir = &v
}
// GetMonhost returns the Monhost field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetMonhost() string {
if o == nil || isNil(o.Monhost) {
var ret string
return ret
}
return *o.Monhost
}
// GetMonhostOk returns a tuple with the Monhost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStorageRequestContent) GetMonhostOk() (*string, bool) {
if o == nil || isNil(o.Monhost) {
return nil, false
}
return o.Monhost, true
}
// HasMonhost returns a boolean if a field has been set.
func (o *CreateStorageRequestContent) HasMonhost() bool {
if o != nil && !isNil(o.Monhost) {
return true
}
return false
}
// SetMonhost gets a reference to the given string and assigns it to the Monhost field.
func (o *CreateStorageRequestContent) SetMonhost(v string) {
o.Monhost = &v
}
// GetMountpoint returns the Mountpoint field value if set, zero value otherwise.
func (o *CreateStorageRequestContent) GetMountpoint() string {
if o == nil || isNil(o.Mountpoint) {
var ret string
return ret
}
return *o.Mountpoint
}
// GetMountpointOk returns a tuple with the Mountpoint field value if set, nil otherwise