-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-aggr-snapshot-attributes.go
214 lines (180 loc) · 6.98 KB
/
type-aggr-snapshot-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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// AggrSnapshotAttributesType is a structure to represent a aggr-snapshot-attributes ZAPI object
type AggrSnapshotAttributesType struct {
XMLName xml.Name `xml:"aggr-snapshot-attributes"`
FilesTotalPtr *int `xml:"files-total"`
FilesUsedPtr *int `xml:"files-used"`
InofileVersionPtr *int `xml:"inofile-version"`
IsSnapshotAutoCreateEnabledPtr *bool `xml:"is-snapshot-auto-create-enabled"`
IsSnapshotAutoDeleteEnabledPtr *bool `xml:"is-snapshot-auto-delete-enabled"`
MaxfilesAvailablePtr *int `xml:"maxfiles-available"`
MaxfilesPossiblePtr *int `xml:"maxfiles-possible"`
MaxfilesUsedPtr *int `xml:"maxfiles-used"`
PercentInodeUsedCapacityPtr *int `xml:"percent-inode-used-capacity"`
PercentUsedCapacityPtr *int `xml:"percent-used-capacity"`
SizeAvailablePtr *int `xml:"size-available"`
SizeTotalPtr *int `xml:"size-total"`
SizeUsedPtr *int `xml:"size-used"`
SnapshotReservePercentPtr *int `xml:"snapshot-reserve-percent"`
}
// NewAggrSnapshotAttributesType is a factory method for creating new instances of AggrSnapshotAttributesType objects
func NewAggrSnapshotAttributesType() *AggrSnapshotAttributesType {
return &AggrSnapshotAttributesType{}
}
// ToXML converts this object into an xml string representation
func (o *AggrSnapshotAttributesType) 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 AggrSnapshotAttributesType) String() string {
return ToString(reflect.ValueOf(o))
}
// FilesTotal is a 'getter' method
func (o *AggrSnapshotAttributesType) FilesTotal() int {
r := *o.FilesTotalPtr
return r
}
// SetFilesTotal is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetFilesTotal(newValue int) *AggrSnapshotAttributesType {
o.FilesTotalPtr = &newValue
return o
}
// FilesUsed is a 'getter' method
func (o *AggrSnapshotAttributesType) FilesUsed() int {
r := *o.FilesUsedPtr
return r
}
// SetFilesUsed is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetFilesUsed(newValue int) *AggrSnapshotAttributesType {
o.FilesUsedPtr = &newValue
return o
}
// InofileVersion is a 'getter' method
func (o *AggrSnapshotAttributesType) InofileVersion() int {
r := *o.InofileVersionPtr
return r
}
// SetInofileVersion is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetInofileVersion(newValue int) *AggrSnapshotAttributesType {
o.InofileVersionPtr = &newValue
return o
}
// IsSnapshotAutoCreateEnabled is a 'getter' method
func (o *AggrSnapshotAttributesType) IsSnapshotAutoCreateEnabled() bool {
r := *o.IsSnapshotAutoCreateEnabledPtr
return r
}
// SetIsSnapshotAutoCreateEnabled is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetIsSnapshotAutoCreateEnabled(newValue bool) *AggrSnapshotAttributesType {
o.IsSnapshotAutoCreateEnabledPtr = &newValue
return o
}
// IsSnapshotAutoDeleteEnabled is a 'getter' method
func (o *AggrSnapshotAttributesType) IsSnapshotAutoDeleteEnabled() bool {
r := *o.IsSnapshotAutoDeleteEnabledPtr
return r
}
// SetIsSnapshotAutoDeleteEnabled is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetIsSnapshotAutoDeleteEnabled(newValue bool) *AggrSnapshotAttributesType {
o.IsSnapshotAutoDeleteEnabledPtr = &newValue
return o
}
// MaxfilesAvailable is a 'getter' method
func (o *AggrSnapshotAttributesType) MaxfilesAvailable() int {
r := *o.MaxfilesAvailablePtr
return r
}
// SetMaxfilesAvailable is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetMaxfilesAvailable(newValue int) *AggrSnapshotAttributesType {
o.MaxfilesAvailablePtr = &newValue
return o
}
// MaxfilesPossible is a 'getter' method
func (o *AggrSnapshotAttributesType) MaxfilesPossible() int {
r := *o.MaxfilesPossiblePtr
return r
}
// SetMaxfilesPossible is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetMaxfilesPossible(newValue int) *AggrSnapshotAttributesType {
o.MaxfilesPossiblePtr = &newValue
return o
}
// MaxfilesUsed is a 'getter' method
func (o *AggrSnapshotAttributesType) MaxfilesUsed() int {
r := *o.MaxfilesUsedPtr
return r
}
// SetMaxfilesUsed is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetMaxfilesUsed(newValue int) *AggrSnapshotAttributesType {
o.MaxfilesUsedPtr = &newValue
return o
}
// PercentInodeUsedCapacity is a 'getter' method
func (o *AggrSnapshotAttributesType) PercentInodeUsedCapacity() int {
r := *o.PercentInodeUsedCapacityPtr
return r
}
// SetPercentInodeUsedCapacity is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetPercentInodeUsedCapacity(newValue int) *AggrSnapshotAttributesType {
o.PercentInodeUsedCapacityPtr = &newValue
return o
}
// PercentUsedCapacity is a 'getter' method
func (o *AggrSnapshotAttributesType) PercentUsedCapacity() int {
r := *o.PercentUsedCapacityPtr
return r
}
// SetPercentUsedCapacity is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetPercentUsedCapacity(newValue int) *AggrSnapshotAttributesType {
o.PercentUsedCapacityPtr = &newValue
return o
}
// SizeAvailable is a 'getter' method
func (o *AggrSnapshotAttributesType) SizeAvailable() int {
r := *o.SizeAvailablePtr
return r
}
// SetSizeAvailable is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetSizeAvailable(newValue int) *AggrSnapshotAttributesType {
o.SizeAvailablePtr = &newValue
return o
}
// SizeTotal is a 'getter' method
func (o *AggrSnapshotAttributesType) SizeTotal() int {
r := *o.SizeTotalPtr
return r
}
// SetSizeTotal is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetSizeTotal(newValue int) *AggrSnapshotAttributesType {
o.SizeTotalPtr = &newValue
return o
}
// SizeUsed is a 'getter' method
func (o *AggrSnapshotAttributesType) SizeUsed() int {
r := *o.SizeUsedPtr
return r
}
// SetSizeUsed is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetSizeUsed(newValue int) *AggrSnapshotAttributesType {
o.SizeUsedPtr = &newValue
return o
}
// SnapshotReservePercent is a 'getter' method
func (o *AggrSnapshotAttributesType) SnapshotReservePercent() int {
r := *o.SnapshotReservePercentPtr
return r
}
// SetSnapshotReservePercent is a fluent style 'setter' method that can be chained
func (o *AggrSnapshotAttributesType) SetSnapshotReservePercent(newValue int) *AggrSnapshotAttributesType {
o.SnapshotReservePercentPtr = &newValue
return o
}