-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-volume-infinitevol-attributes.go
144 lines (121 loc) · 5.5 KB
/
type-volume-infinitevol-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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// VolumeInfinitevolAttributesType is a structure to represent a volume-infinitevol-attributes ZAPI object
type VolumeInfinitevolAttributesType struct {
XMLName xml.Name `xml:"volume-infinitevol-attributes"`
ConstituentRolePtr *ReposConstituentRoleType `xml:"constituent-role"`
EnableSnapdiffPtr *bool `xml:"enable-snapdiff"`
IsManagedByServicePtr *bool `xml:"is-managed-by-service"`
MaxDataConstituentSizePtr *SizeType `xml:"max-data-constituent-size"`
MaxNamespaceConstituentSizePtr *SizeType `xml:"max-namespace-constituent-size"`
NamespaceMirrorAggrListPtr *VolumeInfinitevolAttributesTypeNamespaceMirrorAggrList `xml:"namespace-mirror-aggr-list"`
// work in progress
StorageServicePtr *string `xml:"storage-service"`
}
// NewVolumeInfinitevolAttributesType is a factory method for creating new instances of VolumeInfinitevolAttributesType objects
func NewVolumeInfinitevolAttributesType() *VolumeInfinitevolAttributesType {
return &VolumeInfinitevolAttributesType{}
}
// ToXML converts this object into an xml string representation
func (o *VolumeInfinitevolAttributesType) 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 VolumeInfinitevolAttributesType) String() string {
return ToString(reflect.ValueOf(o))
}
// ConstituentRole is a 'getter' method
func (o *VolumeInfinitevolAttributesType) ConstituentRole() ReposConstituentRoleType {
r := *o.ConstituentRolePtr
return r
}
// SetConstituentRole is a fluent style 'setter' method that can be chained
func (o *VolumeInfinitevolAttributesType) SetConstituentRole(newValue ReposConstituentRoleType) *VolumeInfinitevolAttributesType {
o.ConstituentRolePtr = &newValue
return o
}
// EnableSnapdiff is a 'getter' method
func (o *VolumeInfinitevolAttributesType) EnableSnapdiff() bool {
r := *o.EnableSnapdiffPtr
return r
}
// SetEnableSnapdiff is a fluent style 'setter' method that can be chained
func (o *VolumeInfinitevolAttributesType) SetEnableSnapdiff(newValue bool) *VolumeInfinitevolAttributesType {
o.EnableSnapdiffPtr = &newValue
return o
}
// IsManagedByService is a 'getter' method
func (o *VolumeInfinitevolAttributesType) IsManagedByService() bool {
r := *o.IsManagedByServicePtr
return r
}
// SetIsManagedByService is a fluent style 'setter' method that can be chained
func (o *VolumeInfinitevolAttributesType) SetIsManagedByService(newValue bool) *VolumeInfinitevolAttributesType {
o.IsManagedByServicePtr = &newValue
return o
}
// MaxDataConstituentSize is a 'getter' method
func (o *VolumeInfinitevolAttributesType) MaxDataConstituentSize() SizeType {
r := *o.MaxDataConstituentSizePtr
return r
}
// SetMaxDataConstituentSize is a fluent style 'setter' method that can be chained
func (o *VolumeInfinitevolAttributesType) SetMaxDataConstituentSize(newValue SizeType) *VolumeInfinitevolAttributesType {
o.MaxDataConstituentSizePtr = &newValue
return o
}
// MaxNamespaceConstituentSize is a 'getter' method
func (o *VolumeInfinitevolAttributesType) MaxNamespaceConstituentSize() SizeType {
r := *o.MaxNamespaceConstituentSizePtr
return r
}
// SetMaxNamespaceConstituentSize is a fluent style 'setter' method that can be chained
func (o *VolumeInfinitevolAttributesType) SetMaxNamespaceConstituentSize(newValue SizeType) *VolumeInfinitevolAttributesType {
o.MaxNamespaceConstituentSizePtr = &newValue
return o
}
// VolumeInfinitevolAttributesTypeNamespaceMirrorAggrList is a wrapper
type VolumeInfinitevolAttributesTypeNamespaceMirrorAggrList struct {
XMLName xml.Name `xml:"namespace-mirror-aggr-list"`
AggrNamePtr []AggrNameType `xml:"aggr-name"`
}
// AggrName is a 'getter' method
func (o *VolumeInfinitevolAttributesTypeNamespaceMirrorAggrList) AggrName() []AggrNameType {
r := o.AggrNamePtr
return r
}
// SetAggrName is a fluent style 'setter' method that can be chained
func (o *VolumeInfinitevolAttributesTypeNamespaceMirrorAggrList) SetAggrName(newValue []AggrNameType) *VolumeInfinitevolAttributesTypeNamespaceMirrorAggrList {
newSlice := make([]AggrNameType, len(newValue))
copy(newSlice, newValue)
o.AggrNamePtr = newSlice
return o
}
// NamespaceMirrorAggrList is a 'getter' method
func (o *VolumeInfinitevolAttributesType) NamespaceMirrorAggrList() VolumeInfinitevolAttributesTypeNamespaceMirrorAggrList {
r := *o.NamespaceMirrorAggrListPtr
return r
}
// SetNamespaceMirrorAggrList is a fluent style 'setter' method that can be chained
func (o *VolumeInfinitevolAttributesType) SetNamespaceMirrorAggrList(newValue VolumeInfinitevolAttributesTypeNamespaceMirrorAggrList) *VolumeInfinitevolAttributesType {
o.NamespaceMirrorAggrListPtr = &newValue
return o
}
// StorageService is a 'getter' method
func (o *VolumeInfinitevolAttributesType) StorageService() string {
r := *o.StorageServicePtr
return r
}
// SetStorageService is a fluent style 'setter' method that can be chained
func (o *VolumeInfinitevolAttributesType) SetStorageService(newValue string) *VolumeInfinitevolAttributesType {
o.StorageServicePtr = &newValue
return o
}