-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-volume-id-attributes.go
451 lines (381 loc) · 13.9 KB
/
type-volume-id-attributes.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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// VolumeIdAttributesType is a structure to represent a volume-id-attributes ZAPI object
type VolumeIdAttributesType struct {
XMLName xml.Name `xml:"volume-id-attributes"`
AggrListPtr *VolumeIdAttributesTypeAggrList `xml:"aggr-list"`
// work in progress
ApplicationPtr *string `xml:"application"`
ApplicationUuidPtr *UuidType `xml:"application-uuid"`
CommentPtr *string `xml:"comment"`
ContainingAggregateNamePtr *string `xml:"containing-aggregate-name"`
ContainingAggregateUuidPtr *UuidType `xml:"containing-aggregate-uuid"`
CreationTimePtr *int `xml:"creation-time"`
DsidPtr *int `xml:"dsid"`
ExtentSizePtr *string `xml:"extent-size"`
FlexcacheEndpointTypePtr *string `xml:"flexcache-endpoint-type"`
FlexgroupIndexPtr *int `xml:"flexgroup-index"`
FlexgroupMsidPtr *int `xml:"flexgroup-msid"`
FlexgroupUuidPtr *UuidType `xml:"flexgroup-uuid"`
FsidPtr *string `xml:"fsid"`
InstanceUuidPtr *UuidType `xml:"instance-uuid"`
JunctionParentNamePtr *VolumeNameType `xml:"junction-parent-name"`
JunctionPathPtr *JunctionPathType `xml:"junction-path"`
MsidPtr *int `xml:"msid"`
NamePtr *VolumeNameType `xml:"name"`
NameOrdinalPtr *string `xml:"name-ordinal"`
NodePtr *NodeNameType `xml:"node"`
NodesPtr *VolumeIdAttributesTypeNodes `xml:"nodes"`
// work in progress
OwningVserverNamePtr *string `xml:"owning-vserver-name"`
OwningVserverUuidPtr *UuidType `xml:"owning-vserver-uuid"`
ProvenanceUuidPtr *UuidType `xml:"provenance-uuid"`
StylePtr *VolstyleType `xml:"style"`
StyleExtendedPtr *string `xml:"style-extended"`
TypePtr *string `xml:"type"`
UuidPtr *UuidType `xml:"uuid"`
}
// NewVolumeIdAttributesType is a factory method for creating new instances of VolumeIdAttributesType objects
func NewVolumeIdAttributesType() *VolumeIdAttributesType {
return &VolumeIdAttributesType{}
}
// ToXML converts this object into an xml string representation
func (o *VolumeIdAttributesType) 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 VolumeIdAttributesType) String() string {
return ToString(reflect.ValueOf(o))
}
// VolumeIdAttributesTypeAggrList is a wrapper
type VolumeIdAttributesTypeAggrList struct {
XMLName xml.Name `xml:"aggr-list"`
AggrNamePtr []AggrNameType `xml:"aggr-name"`
}
// AggrName is a 'getter' method
func (o *VolumeIdAttributesTypeAggrList) AggrName() []AggrNameType {
r := o.AggrNamePtr
return r
}
// SetAggrName is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesTypeAggrList) SetAggrName(newValue []AggrNameType) *VolumeIdAttributesTypeAggrList {
newSlice := make([]AggrNameType, len(newValue))
copy(newSlice, newValue)
o.AggrNamePtr = newSlice
return o
}
// AggrList is a 'getter' method
func (o *VolumeIdAttributesType) AggrList() VolumeIdAttributesTypeAggrList {
r := *o.AggrListPtr
return r
}
// SetAggrList is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetAggrList(newValue VolumeIdAttributesTypeAggrList) *VolumeIdAttributesType {
o.AggrListPtr = &newValue
return o
}
// Application is a 'getter' method
func (o *VolumeIdAttributesType) Application() string {
r := *o.ApplicationPtr
return r
}
// SetApplication is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetApplication(newValue string) *VolumeIdAttributesType {
o.ApplicationPtr = &newValue
return o
}
// ApplicationUuid is a 'getter' method
func (o *VolumeIdAttributesType) ApplicationUuid() UuidType {
r := *o.ApplicationUuidPtr
return r
}
// SetApplicationUuid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetApplicationUuid(newValue UuidType) *VolumeIdAttributesType {
o.ApplicationUuidPtr = &newValue
return o
}
// Comment is a 'getter' method
func (o *VolumeIdAttributesType) Comment() string {
r := *o.CommentPtr
return r
}
// SetComment is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetComment(newValue string) *VolumeIdAttributesType {
o.CommentPtr = &newValue
return o
}
// ContainingAggregateName is a 'getter' method
func (o *VolumeIdAttributesType) ContainingAggregateName() string {
r := *o.ContainingAggregateNamePtr
return r
}
// SetContainingAggregateName is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetContainingAggregateName(newValue string) *VolumeIdAttributesType {
o.ContainingAggregateNamePtr = &newValue
return o
}
// ContainingAggregateUuid is a 'getter' method
func (o *VolumeIdAttributesType) ContainingAggregateUuid() UuidType {
r := *o.ContainingAggregateUuidPtr
return r
}
// SetContainingAggregateUuid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetContainingAggregateUuid(newValue UuidType) *VolumeIdAttributesType {
o.ContainingAggregateUuidPtr = &newValue
return o
}
// CreationTime is a 'getter' method
func (o *VolumeIdAttributesType) CreationTime() int {
r := *o.CreationTimePtr
return r
}
// SetCreationTime is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetCreationTime(newValue int) *VolumeIdAttributesType {
o.CreationTimePtr = &newValue
return o
}
// Dsid is a 'getter' method
func (o *VolumeIdAttributesType) Dsid() int {
r := *o.DsidPtr
return r
}
// SetDsid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetDsid(newValue int) *VolumeIdAttributesType {
o.DsidPtr = &newValue
return o
}
// ExtentSize is a 'getter' method
func (o *VolumeIdAttributesType) ExtentSize() string {
r := *o.ExtentSizePtr
return r
}
// SetExtentSize is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetExtentSize(newValue string) *VolumeIdAttributesType {
o.ExtentSizePtr = &newValue
return o
}
// FlexcacheEndpointType is a 'getter' method
func (o *VolumeIdAttributesType) FlexcacheEndpointType() string {
r := *o.FlexcacheEndpointTypePtr
return r
}
// SetFlexcacheEndpointType is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetFlexcacheEndpointType(newValue string) *VolumeIdAttributesType {
o.FlexcacheEndpointTypePtr = &newValue
return o
}
// FlexgroupIndex is a 'getter' method
func (o *VolumeIdAttributesType) FlexgroupIndex() int {
r := *o.FlexgroupIndexPtr
return r
}
// SetFlexgroupIndex is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetFlexgroupIndex(newValue int) *VolumeIdAttributesType {
o.FlexgroupIndexPtr = &newValue
return o
}
// FlexgroupMsid is a 'getter' method
func (o *VolumeIdAttributesType) FlexgroupMsid() int {
r := *o.FlexgroupMsidPtr
return r
}
// SetFlexgroupMsid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetFlexgroupMsid(newValue int) *VolumeIdAttributesType {
o.FlexgroupMsidPtr = &newValue
return o
}
// FlexgroupUuid is a 'getter' method
func (o *VolumeIdAttributesType) FlexgroupUuid() UuidType {
r := *o.FlexgroupUuidPtr
return r
}
// SetFlexgroupUuid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetFlexgroupUuid(newValue UuidType) *VolumeIdAttributesType {
o.FlexgroupUuidPtr = &newValue
return o
}
// Fsid is a 'getter' method
func (o *VolumeIdAttributesType) Fsid() string {
r := *o.FsidPtr
return r
}
// SetFsid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetFsid(newValue string) *VolumeIdAttributesType {
o.FsidPtr = &newValue
return o
}
// InstanceUuid is a 'getter' method
func (o *VolumeIdAttributesType) InstanceUuid() UuidType {
r := *o.InstanceUuidPtr
return r
}
// SetInstanceUuid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetInstanceUuid(newValue UuidType) *VolumeIdAttributesType {
o.InstanceUuidPtr = &newValue
return o
}
// JunctionParentName is a 'getter' method
func (o *VolumeIdAttributesType) JunctionParentName() VolumeNameType {
r := *o.JunctionParentNamePtr
return r
}
// SetJunctionParentName is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetJunctionParentName(newValue VolumeNameType) *VolumeIdAttributesType {
o.JunctionParentNamePtr = &newValue
return o
}
// JunctionPath is a 'getter' method
func (o *VolumeIdAttributesType) JunctionPath() JunctionPathType {
r := *o.JunctionPathPtr
return r
}
// SetJunctionPath is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetJunctionPath(newValue JunctionPathType) *VolumeIdAttributesType {
o.JunctionPathPtr = &newValue
return o
}
// Msid is a 'getter' method
func (o *VolumeIdAttributesType) Msid() int {
r := *o.MsidPtr
return r
}
// SetMsid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetMsid(newValue int) *VolumeIdAttributesType {
o.MsidPtr = &newValue
return o
}
// Name is a 'getter' method
func (o *VolumeIdAttributesType) Name() VolumeNameType {
r := *o.NamePtr
return r
}
// SetName is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetName(newValue VolumeNameType) *VolumeIdAttributesType {
o.NamePtr = &newValue
return o
}
// NameOrdinal is a 'getter' method
func (o *VolumeIdAttributesType) NameOrdinal() string {
r := *o.NameOrdinalPtr
return r
}
// SetNameOrdinal is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetNameOrdinal(newValue string) *VolumeIdAttributesType {
o.NameOrdinalPtr = &newValue
return o
}
// Node is a 'getter' method
func (o *VolumeIdAttributesType) Node() NodeNameType {
r := *o.NodePtr
return r
}
// SetNode is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetNode(newValue NodeNameType) *VolumeIdAttributesType {
o.NodePtr = &newValue
return o
}
// VolumeIdAttributesTypeNodes is a wrapper
type VolumeIdAttributesTypeNodes struct {
XMLName xml.Name `xml:"nodes"`
NodeNamePtr []NodeNameType `xml:"node-name"`
}
// NodeName is a 'getter' method
func (o *VolumeIdAttributesTypeNodes) NodeName() []NodeNameType {
r := o.NodeNamePtr
return r
}
// SetNodeName is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesTypeNodes) SetNodeName(newValue []NodeNameType) *VolumeIdAttributesTypeNodes {
newSlice := make([]NodeNameType, len(newValue))
copy(newSlice, newValue)
o.NodeNamePtr = newSlice
return o
}
// Nodes is a 'getter' method
func (o *VolumeIdAttributesType) Nodes() VolumeIdAttributesTypeNodes {
r := *o.NodesPtr
return r
}
// SetNodes is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetNodes(newValue VolumeIdAttributesTypeNodes) *VolumeIdAttributesType {
o.NodesPtr = &newValue
return o
}
// OwningVserverName is a 'getter' method
func (o *VolumeIdAttributesType) OwningVserverName() string {
r := *o.OwningVserverNamePtr
return r
}
// SetOwningVserverName is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetOwningVserverName(newValue string) *VolumeIdAttributesType {
o.OwningVserverNamePtr = &newValue
return o
}
// OwningVserverUuid is a 'getter' method
func (o *VolumeIdAttributesType) OwningVserverUuid() UuidType {
r := *o.OwningVserverUuidPtr
return r
}
// SetOwningVserverUuid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetOwningVserverUuid(newValue UuidType) *VolumeIdAttributesType {
o.OwningVserverUuidPtr = &newValue
return o
}
// ProvenanceUuid is a 'getter' method
func (o *VolumeIdAttributesType) ProvenanceUuid() UuidType {
r := *o.ProvenanceUuidPtr
return r
}
// SetProvenanceUuid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetProvenanceUuid(newValue UuidType) *VolumeIdAttributesType {
o.ProvenanceUuidPtr = &newValue
return o
}
// Style is a 'getter' method
func (o *VolumeIdAttributesType) Style() VolstyleType {
r := *o.StylePtr
return r
}
// SetStyle is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetStyle(newValue VolstyleType) *VolumeIdAttributesType {
o.StylePtr = &newValue
return o
}
// StyleExtended is a 'getter' method
func (o *VolumeIdAttributesType) StyleExtended() string {
r := *o.StyleExtendedPtr
return r
}
// SetStyleExtended is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetStyleExtended(newValue string) *VolumeIdAttributesType {
o.StyleExtendedPtr = &newValue
return o
}
// Type is a 'getter' method
func (o *VolumeIdAttributesType) Type() string {
r := *o.TypePtr
return r
}
// SetType is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetType(newValue string) *VolumeIdAttributesType {
o.TypePtr = &newValue
return o
}
// Uuid is a 'getter' method
func (o *VolumeIdAttributesType) Uuid() UuidType {
r := *o.UuidPtr
return r
}
// SetUuid is a fluent style 'setter' method that can be chained
func (o *VolumeIdAttributesType) SetUuid(newValue UuidType) *VolumeIdAttributesType {
o.UuidPtr = &newValue
return o
}