/
api-volume-create.go
687 lines (579 loc) · 21.8 KB
/
api-volume-create.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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// VolumeCreateRequest is a structure to represent a volume-create Request ZAPI object
type VolumeCreateRequest struct {
XMLName xml.Name `xml:"volume-create"`
AntivirusOnAccessPolicyPtr *string `xml:"antivirus-on-access-policy"`
CacheRetentionPriorityPtr *string `xml:"cache-retention-priority"`
CachingPolicyPtr *string `xml:"caching-policy"`
ConstituentRolePtr *string `xml:"constituent-role"`
ContainingAggrNamePtr *string `xml:"containing-aggr-name"`
EfficiencyPolicyPtr *string `xml:"efficiency-policy"`
EncryptPtr *bool `xml:"encrypt"`
ExcludedFromAutobalancePtr *bool `xml:"excluded-from-autobalance"`
ExportPolicyPtr *string `xml:"export-policy"`
ExtentSizePtr *string `xml:"extent-size"`
FlexcacheCachePolicyPtr *string `xml:"flexcache-cache-policy"`
FlexcacheFillPolicyPtr *string `xml:"flexcache-fill-policy"`
FlexcacheOriginVolumeNamePtr *string `xml:"flexcache-origin-volume-name"`
GroupIdPtr *int `xml:"group-id"`
IsJunctionActivePtr *bool `xml:"is-junction-active"`
IsNvfailEnabledPtr *string `xml:"is-nvfail-enabled"`
IsVserverRootPtr *bool `xml:"is-vserver-root"`
JunctionPathPtr *string `xml:"junction-path"`
LanguageCodePtr *string `xml:"language-code"`
MaxDirSizePtr *int `xml:"max-dir-size"`
MaxWriteAllocBlocksPtr *int `xml:"max-write-alloc-blocks"`
PercentageSnapshotReservePtr *int `xml:"percentage-snapshot-reserve"`
QosAdaptivePolicyGroupNamePtr *string `xml:"qos-adaptive-policy-group-name"`
QosPolicyGroupNamePtr *string `xml:"qos-policy-group-name"`
SizePtr *string `xml:"size"`
SnapshotPolicyPtr *string `xml:"snapshot-policy"`
SpaceReservePtr *string `xml:"space-reserve"`
SpaceSloPtr *string `xml:"space-slo"`
StorageServicePtr *string `xml:"storage-service"`
StripeAlgorithmPtr *string `xml:"stripe-algorithm"`
StripeConcurrencyPtr *string `xml:"stripe-concurrency"`
StripeConstituentVolumeCountPtr *int `xml:"stripe-constituent-volume-count"`
StripeOptimizePtr *string `xml:"stripe-optimize"`
StripeWidthPtr *int `xml:"stripe-width"`
TieringPolicyPtr *string `xml:"tiering-policy"`
UnixPermissionsPtr *string `xml:"unix-permissions"`
UserIdPtr *int `xml:"user-id"`
VmAlignSectorPtr *int `xml:"vm-align-sector"`
VmAlignSuffixPtr *string `xml:"vm-align-suffix"`
VolumePtr *string `xml:"volume"`
VolumeCommentPtr *string `xml:"volume-comment"`
VolumeSecurityStylePtr *string `xml:"volume-security-style"`
VolumeStatePtr *string `xml:"volume-state"`
VolumeTypePtr *string `xml:"volume-type"`
VserverDrProtectionPtr *string `xml:"vserver-dr-protection"`
}
// VolumeCreateResponse is a structure to represent a volume-create Response ZAPI object
type VolumeCreateResponse struct {
XMLName xml.Name `xml:"netapp"`
ResponseVersion string `xml:"version,attr"`
ResponseXmlns string `xml:"xmlns,attr"`
Result VolumeCreateResponseResult `xml:"results"`
}
// NewVolumeCreateResponse is a factory method for creating new instances of VolumeCreateResponse objects
func NewVolumeCreateResponse() *VolumeCreateResponse {
return &VolumeCreateResponse{}
}
// String returns a string representation of this object's fields and implements the Stringer interface
func (o VolumeCreateResponse) String() string {
return ToString(reflect.ValueOf(o))
}
// ToXML converts this object into an xml string representation
func (o *VolumeCreateResponse) ToXML() (string, error) {
output, err := xml.MarshalIndent(o, " ", " ")
if err != nil {
log.Errorf("error: %v", err)
}
return string(output), err
}
// VolumeCreateResponseResult is a structure to represent a volume-create Response Result ZAPI object
type VolumeCreateResponseResult struct {
XMLName xml.Name `xml:"results"`
ResultStatusAttr string `xml:"status,attr"`
ResultReasonAttr string `xml:"reason,attr"`
ResultErrnoAttr string `xml:"errno,attr"`
}
// NewVolumeCreateRequest is a factory method for creating new instances of VolumeCreateRequest objects
func NewVolumeCreateRequest() *VolumeCreateRequest {
return &VolumeCreateRequest{}
}
// NewVolumeCreateResponseResult is a factory method for creating new instances of VolumeCreateResponseResult objects
func NewVolumeCreateResponseResult() *VolumeCreateResponseResult {
return &VolumeCreateResponseResult{}
}
// ToXML converts this object into an xml string representation
func (o *VolumeCreateRequest) ToXML() (string, error) {
output, err := xml.MarshalIndent(o, " ", " ")
if err != nil {
log.Errorf("error: %v", err)
}
return string(output), err
}
// ToXML converts this object into an xml string representation
func (o *VolumeCreateResponseResult) ToXML() (string, error) {
output, err := xml.MarshalIndent(o, " ", " ")
if err != nil {
log.Errorf("error: %v", err)
}
return string(output), err
}
// String returns a string representation of this object's fields and implements the Stringer interface
func (o VolumeCreateRequest) String() string {
return ToString(reflect.ValueOf(o))
}
// String returns a string representation of this object's fields and implements the Stringer interface
func (o VolumeCreateResponseResult) String() string {
return ToString(reflect.ValueOf(o))
}
// ExecuteUsing converts this object to a ZAPI XML representation and uses the supplied ZapiRunner to send to a filer
func (o *VolumeCreateRequest) ExecuteUsing(zr *ZapiRunner) (*VolumeCreateResponse, error) {
return o.executeWithoutIteration(zr)
}
// executeWithoutIteration converts this object to a ZAPI XML representation and uses the supplied ZapiRunner to send to a filer
func (o *VolumeCreateRequest) executeWithoutIteration(zr *ZapiRunner) (*VolumeCreateResponse, error) {
result, err := zr.ExecuteUsing(o, "VolumeCreateRequest", NewVolumeCreateResponse())
if result == nil {
return nil, err
}
return result.(*VolumeCreateResponse), err
}
// AntivirusOnAccessPolicy is a 'getter' method
func (o *VolumeCreateRequest) AntivirusOnAccessPolicy() string {
r := *o.AntivirusOnAccessPolicyPtr
return r
}
// SetAntivirusOnAccessPolicy is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetAntivirusOnAccessPolicy(newValue string) *VolumeCreateRequest {
o.AntivirusOnAccessPolicyPtr = &newValue
return o
}
// CacheRetentionPriority is a 'getter' method
func (o *VolumeCreateRequest) CacheRetentionPriority() string {
r := *o.CacheRetentionPriorityPtr
return r
}
// SetCacheRetentionPriority is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetCacheRetentionPriority(newValue string) *VolumeCreateRequest {
o.CacheRetentionPriorityPtr = &newValue
return o
}
// CachingPolicy is a 'getter' method
func (o *VolumeCreateRequest) CachingPolicy() string {
r := *o.CachingPolicyPtr
return r
}
// SetCachingPolicy is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetCachingPolicy(newValue string) *VolumeCreateRequest {
o.CachingPolicyPtr = &newValue
return o
}
// ConstituentRole is a 'getter' method
func (o *VolumeCreateRequest) ConstituentRole() string {
r := *o.ConstituentRolePtr
return r
}
// SetConstituentRole is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetConstituentRole(newValue string) *VolumeCreateRequest {
o.ConstituentRolePtr = &newValue
return o
}
// ContainingAggrName is a 'getter' method
func (o *VolumeCreateRequest) ContainingAggrName() string {
r := *o.ContainingAggrNamePtr
return r
}
// SetContainingAggrName is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetContainingAggrName(newValue string) *VolumeCreateRequest {
o.ContainingAggrNamePtr = &newValue
return o
}
// EfficiencyPolicy is a 'getter' method
func (o *VolumeCreateRequest) EfficiencyPolicy() string {
r := *o.EfficiencyPolicyPtr
return r
}
// SetEfficiencyPolicy is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetEfficiencyPolicy(newValue string) *VolumeCreateRequest {
o.EfficiencyPolicyPtr = &newValue
return o
}
// Encrypt is a 'getter' method
func (o *VolumeCreateRequest) Encrypt() bool {
r := *o.EncryptPtr
return r
}
// SetEncrypt is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetEncrypt(newValue bool) *VolumeCreateRequest {
o.EncryptPtr = &newValue
return o
}
// ExcludedFromAutobalance is a 'getter' method
func (o *VolumeCreateRequest) ExcludedFromAutobalance() bool {
r := *o.ExcludedFromAutobalancePtr
return r
}
// SetExcludedFromAutobalance is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetExcludedFromAutobalance(newValue bool) *VolumeCreateRequest {
o.ExcludedFromAutobalancePtr = &newValue
return o
}
// ExportPolicy is a 'getter' method
func (o *VolumeCreateRequest) ExportPolicy() string {
r := *o.ExportPolicyPtr
return r
}
// SetExportPolicy is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetExportPolicy(newValue string) *VolumeCreateRequest {
o.ExportPolicyPtr = &newValue
return o
}
// ExtentSize is a 'getter' method
func (o *VolumeCreateRequest) ExtentSize() string {
r := *o.ExtentSizePtr
return r
}
// SetExtentSize is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetExtentSize(newValue string) *VolumeCreateRequest {
o.ExtentSizePtr = &newValue
return o
}
// FlexcacheCachePolicy is a 'getter' method
func (o *VolumeCreateRequest) FlexcacheCachePolicy() string {
r := *o.FlexcacheCachePolicyPtr
return r
}
// SetFlexcacheCachePolicy is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetFlexcacheCachePolicy(newValue string) *VolumeCreateRequest {
o.FlexcacheCachePolicyPtr = &newValue
return o
}
// FlexcacheFillPolicy is a 'getter' method
func (o *VolumeCreateRequest) FlexcacheFillPolicy() string {
r := *o.FlexcacheFillPolicyPtr
return r
}
// SetFlexcacheFillPolicy is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetFlexcacheFillPolicy(newValue string) *VolumeCreateRequest {
o.FlexcacheFillPolicyPtr = &newValue
return o
}
// FlexcacheOriginVolumeName is a 'getter' method
func (o *VolumeCreateRequest) FlexcacheOriginVolumeName() string {
r := *o.FlexcacheOriginVolumeNamePtr
return r
}
// SetFlexcacheOriginVolumeName is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetFlexcacheOriginVolumeName(newValue string) *VolumeCreateRequest {
o.FlexcacheOriginVolumeNamePtr = &newValue
return o
}
// GroupId is a 'getter' method
func (o *VolumeCreateRequest) GroupId() int {
r := *o.GroupIdPtr
return r
}
// SetGroupId is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetGroupId(newValue int) *VolumeCreateRequest {
o.GroupIdPtr = &newValue
return o
}
// IsJunctionActive is a 'getter' method
func (o *VolumeCreateRequest) IsJunctionActive() bool {
r := *o.IsJunctionActivePtr
return r
}
// SetIsJunctionActive is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetIsJunctionActive(newValue bool) *VolumeCreateRequest {
o.IsJunctionActivePtr = &newValue
return o
}
// IsNvfailEnabled is a 'getter' method
func (o *VolumeCreateRequest) IsNvfailEnabled() string {
r := *o.IsNvfailEnabledPtr
return r
}
// SetIsNvfailEnabled is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetIsNvfailEnabled(newValue string) *VolumeCreateRequest {
o.IsNvfailEnabledPtr = &newValue
return o
}
// IsVserverRoot is a 'getter' method
func (o *VolumeCreateRequest) IsVserverRoot() bool {
r := *o.IsVserverRootPtr
return r
}
// SetIsVserverRoot is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetIsVserverRoot(newValue bool) *VolumeCreateRequest {
o.IsVserverRootPtr = &newValue
return o
}
// JunctionPath is a 'getter' method
func (o *VolumeCreateRequest) JunctionPath() string {
r := *o.JunctionPathPtr
return r
}
// SetJunctionPath is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetJunctionPath(newValue string) *VolumeCreateRequest {
o.JunctionPathPtr = &newValue
return o
}
// LanguageCode is a 'getter' method
func (o *VolumeCreateRequest) LanguageCode() string {
r := *o.LanguageCodePtr
return r
}
// SetLanguageCode is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetLanguageCode(newValue string) *VolumeCreateRequest {
o.LanguageCodePtr = &newValue
return o
}
// MaxDirSize is a 'getter' method
func (o *VolumeCreateRequest) MaxDirSize() int {
r := *o.MaxDirSizePtr
return r
}
// SetMaxDirSize is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetMaxDirSize(newValue int) *VolumeCreateRequest {
o.MaxDirSizePtr = &newValue
return o
}
// MaxWriteAllocBlocks is a 'getter' method
func (o *VolumeCreateRequest) MaxWriteAllocBlocks() int {
r := *o.MaxWriteAllocBlocksPtr
return r
}
// SetMaxWriteAllocBlocks is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetMaxWriteAllocBlocks(newValue int) *VolumeCreateRequest {
o.MaxWriteAllocBlocksPtr = &newValue
return o
}
// PercentageSnapshotReserve is a 'getter' method
func (o *VolumeCreateRequest) PercentageSnapshotReserve() int {
r := *o.PercentageSnapshotReservePtr
return r
}
// SetPercentageSnapshotReserve is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetPercentageSnapshotReserve(newValue int) *VolumeCreateRequest {
o.PercentageSnapshotReservePtr = &newValue
return o
}
// QosAdaptivePolicyGroupName is a 'getter' method
func (o *VolumeCreateRequest) QosAdaptivePolicyGroupName() string {
r := *o.QosAdaptivePolicyGroupNamePtr
return r
}
// SetQosAdaptivePolicyGroupName is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetQosAdaptivePolicyGroupName(newValue string) *VolumeCreateRequest {
o.QosAdaptivePolicyGroupNamePtr = &newValue
return o
}
// QosPolicyGroupName is a 'getter' method
func (o *VolumeCreateRequest) QosPolicyGroupName() string {
r := *o.QosPolicyGroupNamePtr
return r
}
// SetQosPolicyGroupName is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetQosPolicyGroupName(newValue string) *VolumeCreateRequest {
o.QosPolicyGroupNamePtr = &newValue
return o
}
// Size is a 'getter' method
func (o *VolumeCreateRequest) Size() string {
r := *o.SizePtr
return r
}
// SetSize is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetSize(newValue string) *VolumeCreateRequest {
o.SizePtr = &newValue
return o
}
// SnapshotPolicy is a 'getter' method
func (o *VolumeCreateRequest) SnapshotPolicy() string {
r := *o.SnapshotPolicyPtr
return r
}
// SetSnapshotPolicy is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetSnapshotPolicy(newValue string) *VolumeCreateRequest {
o.SnapshotPolicyPtr = &newValue
return o
}
// SpaceReserve is a 'getter' method
func (o *VolumeCreateRequest) SpaceReserve() string {
r := *o.SpaceReservePtr
return r
}
// SetSpaceReserve is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetSpaceReserve(newValue string) *VolumeCreateRequest {
o.SpaceReservePtr = &newValue
return o
}
// SpaceSlo is a 'getter' method
func (o *VolumeCreateRequest) SpaceSlo() string {
r := *o.SpaceSloPtr
return r
}
// SetSpaceSlo is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetSpaceSlo(newValue string) *VolumeCreateRequest {
o.SpaceSloPtr = &newValue
return o
}
// StorageService is a 'getter' method
func (o *VolumeCreateRequest) StorageService() string {
r := *o.StorageServicePtr
return r
}
// SetStorageService is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetStorageService(newValue string) *VolumeCreateRequest {
o.StorageServicePtr = &newValue
return o
}
// StripeAlgorithm is a 'getter' method
func (o *VolumeCreateRequest) StripeAlgorithm() string {
r := *o.StripeAlgorithmPtr
return r
}
// SetStripeAlgorithm is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetStripeAlgorithm(newValue string) *VolumeCreateRequest {
o.StripeAlgorithmPtr = &newValue
return o
}
// StripeConcurrency is a 'getter' method
func (o *VolumeCreateRequest) StripeConcurrency() string {
r := *o.StripeConcurrencyPtr
return r
}
// SetStripeConcurrency is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetStripeConcurrency(newValue string) *VolumeCreateRequest {
o.StripeConcurrencyPtr = &newValue
return o
}
// StripeConstituentVolumeCount is a 'getter' method
func (o *VolumeCreateRequest) StripeConstituentVolumeCount() int {
r := *o.StripeConstituentVolumeCountPtr
return r
}
// SetStripeConstituentVolumeCount is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetStripeConstituentVolumeCount(newValue int) *VolumeCreateRequest {
o.StripeConstituentVolumeCountPtr = &newValue
return o
}
// StripeOptimize is a 'getter' method
func (o *VolumeCreateRequest) StripeOptimize() string {
r := *o.StripeOptimizePtr
return r
}
// SetStripeOptimize is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetStripeOptimize(newValue string) *VolumeCreateRequest {
o.StripeOptimizePtr = &newValue
return o
}
// StripeWidth is a 'getter' method
func (o *VolumeCreateRequest) StripeWidth() int {
r := *o.StripeWidthPtr
return r
}
// SetStripeWidth is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetStripeWidth(newValue int) *VolumeCreateRequest {
o.StripeWidthPtr = &newValue
return o
}
// TieringPolicy is a 'getter' method
func (o *VolumeCreateRequest) TieringPolicy() string {
r := *o.TieringPolicyPtr
return r
}
// SetTieringPolicy is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetTieringPolicy(newValue string) *VolumeCreateRequest {
o.TieringPolicyPtr = &newValue
return o
}
// UnixPermissions is a 'getter' method
func (o *VolumeCreateRequest) UnixPermissions() string {
r := *o.UnixPermissionsPtr
return r
}
// SetUnixPermissions is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetUnixPermissions(newValue string) *VolumeCreateRequest {
o.UnixPermissionsPtr = &newValue
return o
}
// UserId is a 'getter' method
func (o *VolumeCreateRequest) UserId() int {
r := *o.UserIdPtr
return r
}
// SetUserId is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetUserId(newValue int) *VolumeCreateRequest {
o.UserIdPtr = &newValue
return o
}
// VmAlignSector is a 'getter' method
func (o *VolumeCreateRequest) VmAlignSector() int {
r := *o.VmAlignSectorPtr
return r
}
// SetVmAlignSector is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetVmAlignSector(newValue int) *VolumeCreateRequest {
o.VmAlignSectorPtr = &newValue
return o
}
// VmAlignSuffix is a 'getter' method
func (o *VolumeCreateRequest) VmAlignSuffix() string {
r := *o.VmAlignSuffixPtr
return r
}
// SetVmAlignSuffix is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetVmAlignSuffix(newValue string) *VolumeCreateRequest {
o.VmAlignSuffixPtr = &newValue
return o
}
// Volume is a 'getter' method
func (o *VolumeCreateRequest) Volume() string {
r := *o.VolumePtr
return r
}
// SetVolume is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetVolume(newValue string) *VolumeCreateRequest {
o.VolumePtr = &newValue
return o
}
// VolumeComment is a 'getter' method
func (o *VolumeCreateRequest) VolumeComment() string {
r := *o.VolumeCommentPtr
return r
}
// SetVolumeComment is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetVolumeComment(newValue string) *VolumeCreateRequest {
o.VolumeCommentPtr = &newValue
return o
}
// VolumeSecurityStyle is a 'getter' method
func (o *VolumeCreateRequest) VolumeSecurityStyle() string {
r := *o.VolumeSecurityStylePtr
return r
}
// SetVolumeSecurityStyle is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetVolumeSecurityStyle(newValue string) *VolumeCreateRequest {
o.VolumeSecurityStylePtr = &newValue
return o
}
// VolumeState is a 'getter' method
func (o *VolumeCreateRequest) VolumeState() string {
r := *o.VolumeStatePtr
return r
}
// SetVolumeState is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetVolumeState(newValue string) *VolumeCreateRequest {
o.VolumeStatePtr = &newValue
return o
}
// VolumeType is a 'getter' method
func (o *VolumeCreateRequest) VolumeType() string {
r := *o.VolumeTypePtr
return r
}
// SetVolumeType is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetVolumeType(newValue string) *VolumeCreateRequest {
o.VolumeTypePtr = &newValue
return o
}
// VserverDrProtection is a 'getter' method
func (o *VolumeCreateRequest) VserverDrProtection() string {
r := *o.VserverDrProtectionPtr
return r
}
// SetVserverDrProtection is a fluent style 'setter' method that can be chained
func (o *VolumeCreateRequest) SetVserverDrProtection(newValue string) *VolumeCreateRequest {
o.VserverDrProtectionPtr = &newValue
return o
}