/
type-lun-info.go
552 lines (466 loc) · 15.2 KB
/
type-lun-info.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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// LunInfoType is a structure to represent a lun-info ZAPI object
type LunInfoType struct {
XMLName xml.Name `xml:"lun-info"`
AlignmentPtr *string `xml:"alignment"`
ApplicationPtr *string `xml:"application"`
ApplicationUuidPtr *string `xml:"application-uuid"`
BackingSnapshotPtr *string `xml:"backing-snapshot"`
BlockSizePtr *int `xml:"block-size"`
CachingPolicyPtr *string `xml:"caching-policy"`
ClassPtr *string `xml:"class"`
CloneBackingSnapshotPtr *string `xml:"clone-backing-snapshot"`
CommentPtr *string `xml:"comment"`
CreationTimestampPtr *int `xml:"creation-timestamp"`
DeviceBinaryIdPtr *string `xml:"device-binary-id"`
DeviceIdPtr *int `xml:"device-id"`
DeviceTextIdPtr *string `xml:"device-text-id"`
IsClonePtr *bool `xml:"is-clone"`
IsCloneAutodeleteEnabledPtr *bool `xml:"is-clone-autodelete-enabled"`
IsInconsistentImportPtr *bool `xml:"is-inconsistent-import"`
IsRestoreInaccessiblePtr *bool `xml:"is-restore-inaccessible"`
IsSpaceAllocEnabledPtr *bool `xml:"is-space-alloc-enabled"`
IsSpaceReservationEnabledPtr *bool `xml:"is-space-reservation-enabled"`
MappedPtr *bool `xml:"mapped"`
MultiprotocolTypePtr *LunOsTypeType `xml:"multiprotocol-type"`
NodePtr *NodeNameType `xml:"node"`
OnlinePtr *bool `xml:"online"`
PathPtr *string `xml:"path"`
PrefixSizePtr *int `xml:"prefix-size"`
QosAdaptivePolicyGroupPtr *string `xml:"qos-adaptive-policy-group"`
QosPolicyGroupPtr *string `xml:"qos-policy-group"`
QtreePtr *string `xml:"qtree"`
ReadOnlyPtr *bool `xml:"read-only"`
Serial7ModePtr *string `xml:"serial-7-mode"`
SerialNumberPtr *string `xml:"serial-number"`
ShareStatePtr *string `xml:"share-state"`
SizePtr *int `xml:"size"`
SizeUsedPtr *int `xml:"size-used"`
StagingPtr *bool `xml:"staging"`
StatePtr *string `xml:"state"`
SuffixSizePtr *int `xml:"suffix-size"`
UuidPtr *string `xml:"uuid"`
VolumePtr *string `xml:"volume"`
VserverPtr *string `xml:"vserver"`
}
// NewLunInfoType is a factory method for creating new instances of LunInfoType objects
func NewLunInfoType() *LunInfoType {
return &LunInfoType{}
}
// ToXML converts this object into an xml string representation
func (o *LunInfoType) 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 LunInfoType) String() string {
return ToString(reflect.ValueOf(o))
}
// Alignment is a 'getter' method
func (o *LunInfoType) Alignment() string {
r := *o.AlignmentPtr
return r
}
// SetAlignment is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetAlignment(newValue string) *LunInfoType {
o.AlignmentPtr = &newValue
return o
}
// Application is a 'getter' method
func (o *LunInfoType) Application() string {
r := *o.ApplicationPtr
return r
}
// SetApplication is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetApplication(newValue string) *LunInfoType {
o.ApplicationPtr = &newValue
return o
}
// ApplicationUuid is a 'getter' method
func (o *LunInfoType) ApplicationUuid() string {
r := *o.ApplicationUuidPtr
return r
}
// SetApplicationUuid is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetApplicationUuid(newValue string) *LunInfoType {
o.ApplicationUuidPtr = &newValue
return o
}
// BackingSnapshot is a 'getter' method
func (o *LunInfoType) BackingSnapshot() string {
r := *o.BackingSnapshotPtr
return r
}
// SetBackingSnapshot is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetBackingSnapshot(newValue string) *LunInfoType {
o.BackingSnapshotPtr = &newValue
return o
}
// BlockSize is a 'getter' method
func (o *LunInfoType) BlockSize() int {
r := *o.BlockSizePtr
return r
}
// SetBlockSize is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetBlockSize(newValue int) *LunInfoType {
o.BlockSizePtr = &newValue
return o
}
// CachingPolicy is a 'getter' method
func (o *LunInfoType) CachingPolicy() string {
r := *o.CachingPolicyPtr
return r
}
// SetCachingPolicy is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetCachingPolicy(newValue string) *LunInfoType {
o.CachingPolicyPtr = &newValue
return o
}
// Class is a 'getter' method
func (o *LunInfoType) Class() string {
r := *o.ClassPtr
return r
}
// SetClass is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetClass(newValue string) *LunInfoType {
o.ClassPtr = &newValue
return o
}
// CloneBackingSnapshot is a 'getter' method
func (o *LunInfoType) CloneBackingSnapshot() string {
r := *o.CloneBackingSnapshotPtr
return r
}
// SetCloneBackingSnapshot is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetCloneBackingSnapshot(newValue string) *LunInfoType {
o.CloneBackingSnapshotPtr = &newValue
return o
}
// Comment is a 'getter' method
func (o *LunInfoType) Comment() string {
r := *o.CommentPtr
return r
}
// SetComment is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetComment(newValue string) *LunInfoType {
o.CommentPtr = &newValue
return o
}
// CreationTimestamp is a 'getter' method
func (o *LunInfoType) CreationTimestamp() int {
r := *o.CreationTimestampPtr
return r
}
// SetCreationTimestamp is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetCreationTimestamp(newValue int) *LunInfoType {
o.CreationTimestampPtr = &newValue
return o
}
// DeviceBinaryId is a 'getter' method
func (o *LunInfoType) DeviceBinaryId() string {
r := *o.DeviceBinaryIdPtr
return r
}
// SetDeviceBinaryId is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetDeviceBinaryId(newValue string) *LunInfoType {
o.DeviceBinaryIdPtr = &newValue
return o
}
// DeviceId is a 'getter' method
func (o *LunInfoType) DeviceId() int {
r := *o.DeviceIdPtr
return r
}
// SetDeviceId is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetDeviceId(newValue int) *LunInfoType {
o.DeviceIdPtr = &newValue
return o
}
// DeviceTextId is a 'getter' method
func (o *LunInfoType) DeviceTextId() string {
r := *o.DeviceTextIdPtr
return r
}
// SetDeviceTextId is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetDeviceTextId(newValue string) *LunInfoType {
o.DeviceTextIdPtr = &newValue
return o
}
// IsClone is a 'getter' method
func (o *LunInfoType) IsClone() bool {
r := *o.IsClonePtr
return r
}
// SetIsClone is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetIsClone(newValue bool) *LunInfoType {
o.IsClonePtr = &newValue
return o
}
// IsCloneAutodeleteEnabled is a 'getter' method
func (o *LunInfoType) IsCloneAutodeleteEnabled() bool {
r := *o.IsCloneAutodeleteEnabledPtr
return r
}
// SetIsCloneAutodeleteEnabled is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetIsCloneAutodeleteEnabled(newValue bool) *LunInfoType {
o.IsCloneAutodeleteEnabledPtr = &newValue
return o
}
// IsInconsistentImport is a 'getter' method
func (o *LunInfoType) IsInconsistentImport() bool {
r := *o.IsInconsistentImportPtr
return r
}
// SetIsInconsistentImport is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetIsInconsistentImport(newValue bool) *LunInfoType {
o.IsInconsistentImportPtr = &newValue
return o
}
// IsRestoreInaccessible is a 'getter' method
func (o *LunInfoType) IsRestoreInaccessible() bool {
r := *o.IsRestoreInaccessiblePtr
return r
}
// SetIsRestoreInaccessible is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetIsRestoreInaccessible(newValue bool) *LunInfoType {
o.IsRestoreInaccessiblePtr = &newValue
return o
}
// IsSpaceAllocEnabled is a 'getter' method
func (o *LunInfoType) IsSpaceAllocEnabled() bool {
r := *o.IsSpaceAllocEnabledPtr
return r
}
// SetIsSpaceAllocEnabled is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetIsSpaceAllocEnabled(newValue bool) *LunInfoType {
o.IsSpaceAllocEnabledPtr = &newValue
return o
}
// IsSpaceReservationEnabled is a 'getter' method
func (o *LunInfoType) IsSpaceReservationEnabled() bool {
r := *o.IsSpaceReservationEnabledPtr
return r
}
// SetIsSpaceReservationEnabled is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetIsSpaceReservationEnabled(newValue bool) *LunInfoType {
o.IsSpaceReservationEnabledPtr = &newValue
return o
}
// Mapped is a 'getter' method
func (o *LunInfoType) Mapped() bool {
r := *o.MappedPtr
return r
}
// SetMapped is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetMapped(newValue bool) *LunInfoType {
o.MappedPtr = &newValue
return o
}
// MultiprotocolType is a 'getter' method
func (o *LunInfoType) MultiprotocolType() LunOsTypeType {
r := *o.MultiprotocolTypePtr
return r
}
// SetMultiprotocolType is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetMultiprotocolType(newValue LunOsTypeType) *LunInfoType {
o.MultiprotocolTypePtr = &newValue
return o
}
// Node is a 'getter' method
func (o *LunInfoType) Node() NodeNameType {
r := *o.NodePtr
return r
}
// SetNode is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetNode(newValue NodeNameType) *LunInfoType {
o.NodePtr = &newValue
return o
}
// Online is a 'getter' method
func (o *LunInfoType) Online() bool {
r := *o.OnlinePtr
return r
}
// SetOnline is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetOnline(newValue bool) *LunInfoType {
o.OnlinePtr = &newValue
return o
}
// Path is a 'getter' method
func (o *LunInfoType) Path() string {
r := *o.PathPtr
return r
}
// SetPath is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetPath(newValue string) *LunInfoType {
o.PathPtr = &newValue
return o
}
// PrefixSize is a 'getter' method
func (o *LunInfoType) PrefixSize() int {
r := *o.PrefixSizePtr
return r
}
// SetPrefixSize is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetPrefixSize(newValue int) *LunInfoType {
o.PrefixSizePtr = &newValue
return o
}
// QosAdaptivePolicyGroup is a 'getter' method
func (o *LunInfoType) QosAdaptivePolicyGroup() string {
r := *o.QosAdaptivePolicyGroupPtr
return r
}
// SetQosAdaptivePolicyGroup is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetQosAdaptivePolicyGroup(newValue string) *LunInfoType {
o.QosAdaptivePolicyGroupPtr = &newValue
return o
}
// QosPolicyGroup is a 'getter' method
func (o *LunInfoType) QosPolicyGroup() string {
r := *o.QosPolicyGroupPtr
return r
}
// SetQosPolicyGroup is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetQosPolicyGroup(newValue string) *LunInfoType {
o.QosPolicyGroupPtr = &newValue
return o
}
// Qtree is a 'getter' method
func (o *LunInfoType) Qtree() string {
r := *o.QtreePtr
return r
}
// SetQtree is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetQtree(newValue string) *LunInfoType {
o.QtreePtr = &newValue
return o
}
// ReadOnly is a 'getter' method
func (o *LunInfoType) ReadOnly() bool {
r := *o.ReadOnlyPtr
return r
}
// SetReadOnly is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetReadOnly(newValue bool) *LunInfoType {
o.ReadOnlyPtr = &newValue
return o
}
// Serial7Mode is a 'getter' method
func (o *LunInfoType) Serial7Mode() string {
r := *o.Serial7ModePtr
return r
}
// SetSerial7Mode is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetSerial7Mode(newValue string) *LunInfoType {
o.Serial7ModePtr = &newValue
return o
}
// SerialNumber is a 'getter' method
func (o *LunInfoType) SerialNumber() string {
r := *o.SerialNumberPtr
return r
}
// SetSerialNumber is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetSerialNumber(newValue string) *LunInfoType {
o.SerialNumberPtr = &newValue
return o
}
// ShareState is a 'getter' method
func (o *LunInfoType) ShareState() string {
r := *o.ShareStatePtr
return r
}
// SetShareState is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetShareState(newValue string) *LunInfoType {
o.ShareStatePtr = &newValue
return o
}
// Size is a 'getter' method
func (o *LunInfoType) Size() int {
r := *o.SizePtr
return r
}
// SetSize is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetSize(newValue int) *LunInfoType {
o.SizePtr = &newValue
return o
}
// SizeUsed is a 'getter' method
func (o *LunInfoType) SizeUsed() int {
r := *o.SizeUsedPtr
return r
}
// SetSizeUsed is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetSizeUsed(newValue int) *LunInfoType {
o.SizeUsedPtr = &newValue
return o
}
// Staging is a 'getter' method
func (o *LunInfoType) Staging() bool {
r := *o.StagingPtr
return r
}
// SetStaging is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetStaging(newValue bool) *LunInfoType {
o.StagingPtr = &newValue
return o
}
// State is a 'getter' method
func (o *LunInfoType) State() string {
r := *o.StatePtr
return r
}
// SetState is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetState(newValue string) *LunInfoType {
o.StatePtr = &newValue
return o
}
// SuffixSize is a 'getter' method
func (o *LunInfoType) SuffixSize() int {
r := *o.SuffixSizePtr
return r
}
// SetSuffixSize is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetSuffixSize(newValue int) *LunInfoType {
o.SuffixSizePtr = &newValue
return o
}
// Uuid is a 'getter' method
func (o *LunInfoType) Uuid() string {
r := *o.UuidPtr
return r
}
// SetUuid is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetUuid(newValue string) *LunInfoType {
o.UuidPtr = &newValue
return o
}
// Volume is a 'getter' method
func (o *LunInfoType) Volume() string {
r := *o.VolumePtr
return r
}
// SetVolume is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetVolume(newValue string) *LunInfoType {
o.VolumePtr = &newValue
return o
}
// Vserver is a 'getter' method
func (o *LunInfoType) Vserver() string {
r := *o.VserverPtr
return r
}
// SetVserver is a fluent style 'setter' method that can be chained
func (o *LunInfoType) SetVserver(newValue string) *LunInfoType {
o.VserverPtr = &newValue
return o
}