-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-aggr-inode-attributes.go
162 lines (136 loc) · 5.13 KB
/
type-aggr-inode-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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// AggrInodeAttributesType is a structure to represent a aggr-inode-attributes ZAPI object
type AggrInodeAttributesType struct {
XMLName xml.Name `xml:"aggr-inode-attributes"`
FilesPrivateUsedPtr *int `xml:"files-private-used"`
FilesTotalPtr *int `xml:"files-total"`
FilesUsedPtr *int `xml:"files-used"`
InodefilePrivateCapacityPtr *int `xml:"inodefile-private-capacity"`
InodefilePublicCapacityPtr *int `xml:"inodefile-public-capacity"`
InofileVersionPtr *int `xml:"inofile-version"`
MaxfilesAvailablePtr *int `xml:"maxfiles-available"`
MaxfilesPossiblePtr *int `xml:"maxfiles-possible"`
MaxfilesUsedPtr *int `xml:"maxfiles-used"`
PercentInodeUsedCapacityPtr *int `xml:"percent-inode-used-capacity"`
}
// NewAggrInodeAttributesType is a factory method for creating new instances of AggrInodeAttributesType objects
func NewAggrInodeAttributesType() *AggrInodeAttributesType {
return &AggrInodeAttributesType{}
}
// ToXML converts this object into an xml string representation
func (o *AggrInodeAttributesType) 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 AggrInodeAttributesType) String() string {
return ToString(reflect.ValueOf(o))
}
// FilesPrivateUsed is a 'getter' method
func (o *AggrInodeAttributesType) FilesPrivateUsed() int {
r := *o.FilesPrivateUsedPtr
return r
}
// SetFilesPrivateUsed is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetFilesPrivateUsed(newValue int) *AggrInodeAttributesType {
o.FilesPrivateUsedPtr = &newValue
return o
}
// FilesTotal is a 'getter' method
func (o *AggrInodeAttributesType) FilesTotal() int {
r := *o.FilesTotalPtr
return r
}
// SetFilesTotal is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetFilesTotal(newValue int) *AggrInodeAttributesType {
o.FilesTotalPtr = &newValue
return o
}
// FilesUsed is a 'getter' method
func (o *AggrInodeAttributesType) FilesUsed() int {
r := *o.FilesUsedPtr
return r
}
// SetFilesUsed is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetFilesUsed(newValue int) *AggrInodeAttributesType {
o.FilesUsedPtr = &newValue
return o
}
// InodefilePrivateCapacity is a 'getter' method
func (o *AggrInodeAttributesType) InodefilePrivateCapacity() int {
r := *o.InodefilePrivateCapacityPtr
return r
}
// SetInodefilePrivateCapacity is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetInodefilePrivateCapacity(newValue int) *AggrInodeAttributesType {
o.InodefilePrivateCapacityPtr = &newValue
return o
}
// InodefilePublicCapacity is a 'getter' method
func (o *AggrInodeAttributesType) InodefilePublicCapacity() int {
r := *o.InodefilePublicCapacityPtr
return r
}
// SetInodefilePublicCapacity is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetInodefilePublicCapacity(newValue int) *AggrInodeAttributesType {
o.InodefilePublicCapacityPtr = &newValue
return o
}
// InofileVersion is a 'getter' method
func (o *AggrInodeAttributesType) InofileVersion() int {
r := *o.InofileVersionPtr
return r
}
// SetInofileVersion is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetInofileVersion(newValue int) *AggrInodeAttributesType {
o.InofileVersionPtr = &newValue
return o
}
// MaxfilesAvailable is a 'getter' method
func (o *AggrInodeAttributesType) MaxfilesAvailable() int {
r := *o.MaxfilesAvailablePtr
return r
}
// SetMaxfilesAvailable is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetMaxfilesAvailable(newValue int) *AggrInodeAttributesType {
o.MaxfilesAvailablePtr = &newValue
return o
}
// MaxfilesPossible is a 'getter' method
func (o *AggrInodeAttributesType) MaxfilesPossible() int {
r := *o.MaxfilesPossiblePtr
return r
}
// SetMaxfilesPossible is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetMaxfilesPossible(newValue int) *AggrInodeAttributesType {
o.MaxfilesPossiblePtr = &newValue
return o
}
// MaxfilesUsed is a 'getter' method
func (o *AggrInodeAttributesType) MaxfilesUsed() int {
r := *o.MaxfilesUsedPtr
return r
}
// SetMaxfilesUsed is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetMaxfilesUsed(newValue int) *AggrInodeAttributesType {
o.MaxfilesUsedPtr = &newValue
return o
}
// PercentInodeUsedCapacity is a 'getter' method
func (o *AggrInodeAttributesType) PercentInodeUsedCapacity() int {
r := *o.PercentInodeUsedCapacityPtr
return r
}
// SetPercentInodeUsedCapacity is a fluent style 'setter' method that can be chained
func (o *AggrInodeAttributesType) SetPercentInodeUsedCapacity(newValue int) *AggrInodeAttributesType {
o.PercentInodeUsedCapacityPtr = &newValue
return o
}