/
type-space-information.go
370 lines (312 loc) · 13 KB
/
type-space-information.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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// SpaceInformationType is a structure to represent a space-information ZAPI object
type SpaceInformationType struct {
XMLName xml.Name `xml:"space-information"`
AggregatePtr *string `xml:"aggregate"`
AggregateMetadataPtr *int `xml:"aggregate-metadata"`
AggregateMetadataPercentPtr *int `xml:"aggregate-metadata-percent"`
AggregateSizePtr *int `xml:"aggregate-size"`
ObjectStoreMetadataPtr *int `xml:"object-store-metadata"`
ObjectStoreMetadataPercentPtr *int `xml:"object-store-metadata-percent"`
ObjectStorePhysicalUsedPtr *int `xml:"object-store-physical-used"`
ObjectStorePhysicalUsedPercentPtr *int `xml:"object-store-physical-used-percent"`
ObjectStoreReferencedCapacityPtr *int `xml:"object-store-referenced-capacity"`
ObjectStoreReferencedCapacityPercentPtr *int `xml:"object-store-referenced-capacity-percent"`
ObjectStoreSisSpaceSavedPtr *int `xml:"object-store-sis-space-saved"`
ObjectStoreSisSpaceSavedPercentPtr *int `xml:"object-store-sis-space-saved-percent"`
ObjectStoreSizePtr *int `xml:"object-store-size"`
ObjectStoreUnreclaimedSpacePtr *int `xml:"object-store-unreclaimed-space"`
ObjectStoreUnreclaimedSpacePercentPtr *int `xml:"object-store-unreclaimed-space-percent"`
PercentSnapshotSpacePtr *int `xml:"percent-snapshot-space"`
PhysicalUsedPtr *int `xml:"physical-used"`
PhysicalUsedPercentPtr *int `xml:"physical-used-percent"`
SnapSizeTotalPtr *int `xml:"snap-size-total"`
SnapshotReserveUnusablePtr *int `xml:"snapshot-reserve-unusable"`
SnapshotReserveUnusablePercentPtr *int `xml:"snapshot-reserve-unusable-percent"`
TierNamePtr *string `xml:"tier-name"`
UsedIncludingSnapshotReservePtr *int `xml:"used-including-snapshot-reserve"`
UsedIncludingSnapshotReservePercentPtr *int `xml:"used-including-snapshot-reserve-percent"`
VolumeFootprintsPtr *int `xml:"volume-footprints"`
VolumeFootprintsPercentPtr *int `xml:"volume-footprints-percent"`
}
// NewSpaceInformationType is a factory method for creating new instances of SpaceInformationType objects
func NewSpaceInformationType() *SpaceInformationType {
return &SpaceInformationType{}
}
// ToXML converts this object into an xml string representation
func (o *SpaceInformationType) 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 SpaceInformationType) String() string {
return ToString(reflect.ValueOf(o))
}
// Aggregate is a 'getter' method
func (o *SpaceInformationType) Aggregate() string {
r := *o.AggregatePtr
return r
}
// SetAggregate is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetAggregate(newValue string) *SpaceInformationType {
o.AggregatePtr = &newValue
return o
}
// AggregateMetadata is a 'getter' method
func (o *SpaceInformationType) AggregateMetadata() int {
r := *o.AggregateMetadataPtr
return r
}
// SetAggregateMetadata is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetAggregateMetadata(newValue int) *SpaceInformationType {
o.AggregateMetadataPtr = &newValue
return o
}
// AggregateMetadataPercent is a 'getter' method
func (o *SpaceInformationType) AggregateMetadataPercent() int {
r := *o.AggregateMetadataPercentPtr
return r
}
// SetAggregateMetadataPercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetAggregateMetadataPercent(newValue int) *SpaceInformationType {
o.AggregateMetadataPercentPtr = &newValue
return o
}
// AggregateSize is a 'getter' method
func (o *SpaceInformationType) AggregateSize() int {
r := *o.AggregateSizePtr
return r
}
// SetAggregateSize is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetAggregateSize(newValue int) *SpaceInformationType {
o.AggregateSizePtr = &newValue
return o
}
// ObjectStoreMetadata is a 'getter' method
func (o *SpaceInformationType) ObjectStoreMetadata() int {
r := *o.ObjectStoreMetadataPtr
return r
}
// SetObjectStoreMetadata is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStoreMetadata(newValue int) *SpaceInformationType {
o.ObjectStoreMetadataPtr = &newValue
return o
}
// ObjectStoreMetadataPercent is a 'getter' method
func (o *SpaceInformationType) ObjectStoreMetadataPercent() int {
r := *o.ObjectStoreMetadataPercentPtr
return r
}
// SetObjectStoreMetadataPercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStoreMetadataPercent(newValue int) *SpaceInformationType {
o.ObjectStoreMetadataPercentPtr = &newValue
return o
}
// ObjectStorePhysicalUsed is a 'getter' method
func (o *SpaceInformationType) ObjectStorePhysicalUsed() int {
r := *o.ObjectStorePhysicalUsedPtr
return r
}
// SetObjectStorePhysicalUsed is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStorePhysicalUsed(newValue int) *SpaceInformationType {
o.ObjectStorePhysicalUsedPtr = &newValue
return o
}
// ObjectStorePhysicalUsedPercent is a 'getter' method
func (o *SpaceInformationType) ObjectStorePhysicalUsedPercent() int {
r := *o.ObjectStorePhysicalUsedPercentPtr
return r
}
// SetObjectStorePhysicalUsedPercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStorePhysicalUsedPercent(newValue int) *SpaceInformationType {
o.ObjectStorePhysicalUsedPercentPtr = &newValue
return o
}
// ObjectStoreReferencedCapacity is a 'getter' method
func (o *SpaceInformationType) ObjectStoreReferencedCapacity() int {
r := *o.ObjectStoreReferencedCapacityPtr
return r
}
// SetObjectStoreReferencedCapacity is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStoreReferencedCapacity(newValue int) *SpaceInformationType {
o.ObjectStoreReferencedCapacityPtr = &newValue
return o
}
// ObjectStoreReferencedCapacityPercent is a 'getter' method
func (o *SpaceInformationType) ObjectStoreReferencedCapacityPercent() int {
r := *o.ObjectStoreReferencedCapacityPercentPtr
return r
}
// SetObjectStoreReferencedCapacityPercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStoreReferencedCapacityPercent(newValue int) *SpaceInformationType {
o.ObjectStoreReferencedCapacityPercentPtr = &newValue
return o
}
// ObjectStoreSisSpaceSaved is a 'getter' method
func (o *SpaceInformationType) ObjectStoreSisSpaceSaved() int {
r := *o.ObjectStoreSisSpaceSavedPtr
return r
}
// SetObjectStoreSisSpaceSaved is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStoreSisSpaceSaved(newValue int) *SpaceInformationType {
o.ObjectStoreSisSpaceSavedPtr = &newValue
return o
}
// ObjectStoreSisSpaceSavedPercent is a 'getter' method
func (o *SpaceInformationType) ObjectStoreSisSpaceSavedPercent() int {
r := *o.ObjectStoreSisSpaceSavedPercentPtr
return r
}
// SetObjectStoreSisSpaceSavedPercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStoreSisSpaceSavedPercent(newValue int) *SpaceInformationType {
o.ObjectStoreSisSpaceSavedPercentPtr = &newValue
return o
}
// ObjectStoreSize is a 'getter' method
func (o *SpaceInformationType) ObjectStoreSize() int {
r := *o.ObjectStoreSizePtr
return r
}
// SetObjectStoreSize is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStoreSize(newValue int) *SpaceInformationType {
o.ObjectStoreSizePtr = &newValue
return o
}
// ObjectStoreUnreclaimedSpace is a 'getter' method
func (o *SpaceInformationType) ObjectStoreUnreclaimedSpace() int {
r := *o.ObjectStoreUnreclaimedSpacePtr
return r
}
// SetObjectStoreUnreclaimedSpace is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStoreUnreclaimedSpace(newValue int) *SpaceInformationType {
o.ObjectStoreUnreclaimedSpacePtr = &newValue
return o
}
// ObjectStoreUnreclaimedSpacePercent is a 'getter' method
func (o *SpaceInformationType) ObjectStoreUnreclaimedSpacePercent() int {
r := *o.ObjectStoreUnreclaimedSpacePercentPtr
return r
}
// SetObjectStoreUnreclaimedSpacePercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetObjectStoreUnreclaimedSpacePercent(newValue int) *SpaceInformationType {
o.ObjectStoreUnreclaimedSpacePercentPtr = &newValue
return o
}
// PercentSnapshotSpace is a 'getter' method
func (o *SpaceInformationType) PercentSnapshotSpace() int {
r := *o.PercentSnapshotSpacePtr
return r
}
// SetPercentSnapshotSpace is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetPercentSnapshotSpace(newValue int) *SpaceInformationType {
o.PercentSnapshotSpacePtr = &newValue
return o
}
// PhysicalUsed is a 'getter' method
func (o *SpaceInformationType) PhysicalUsed() int {
r := *o.PhysicalUsedPtr
return r
}
// SetPhysicalUsed is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetPhysicalUsed(newValue int) *SpaceInformationType {
o.PhysicalUsedPtr = &newValue
return o
}
// PhysicalUsedPercent is a 'getter' method
func (o *SpaceInformationType) PhysicalUsedPercent() int {
r := *o.PhysicalUsedPercentPtr
return r
}
// SetPhysicalUsedPercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetPhysicalUsedPercent(newValue int) *SpaceInformationType {
o.PhysicalUsedPercentPtr = &newValue
return o
}
// SnapSizeTotal is a 'getter' method
func (o *SpaceInformationType) SnapSizeTotal() int {
r := *o.SnapSizeTotalPtr
return r
}
// SetSnapSizeTotal is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetSnapSizeTotal(newValue int) *SpaceInformationType {
o.SnapSizeTotalPtr = &newValue
return o
}
// SnapshotReserveUnusable is a 'getter' method
func (o *SpaceInformationType) SnapshotReserveUnusable() int {
r := *o.SnapshotReserveUnusablePtr
return r
}
// SetSnapshotReserveUnusable is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetSnapshotReserveUnusable(newValue int) *SpaceInformationType {
o.SnapshotReserveUnusablePtr = &newValue
return o
}
// SnapshotReserveUnusablePercent is a 'getter' method
func (o *SpaceInformationType) SnapshotReserveUnusablePercent() int {
r := *o.SnapshotReserveUnusablePercentPtr
return r
}
// SetSnapshotReserveUnusablePercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetSnapshotReserveUnusablePercent(newValue int) *SpaceInformationType {
o.SnapshotReserveUnusablePercentPtr = &newValue
return o
}
// TierName is a 'getter' method
func (o *SpaceInformationType) TierName() string {
r := *o.TierNamePtr
return r
}
// SetTierName is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetTierName(newValue string) *SpaceInformationType {
o.TierNamePtr = &newValue
return o
}
// UsedIncludingSnapshotReserve is a 'getter' method
func (o *SpaceInformationType) UsedIncludingSnapshotReserve() int {
r := *o.UsedIncludingSnapshotReservePtr
return r
}
// SetUsedIncludingSnapshotReserve is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetUsedIncludingSnapshotReserve(newValue int) *SpaceInformationType {
o.UsedIncludingSnapshotReservePtr = &newValue
return o
}
// UsedIncludingSnapshotReservePercent is a 'getter' method
func (o *SpaceInformationType) UsedIncludingSnapshotReservePercent() int {
r := *o.UsedIncludingSnapshotReservePercentPtr
return r
}
// SetUsedIncludingSnapshotReservePercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetUsedIncludingSnapshotReservePercent(newValue int) *SpaceInformationType {
o.UsedIncludingSnapshotReservePercentPtr = &newValue
return o
}
// VolumeFootprints is a 'getter' method
func (o *SpaceInformationType) VolumeFootprints() int {
r := *o.VolumeFootprintsPtr
return r
}
// SetVolumeFootprints is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetVolumeFootprints(newValue int) *SpaceInformationType {
o.VolumeFootprintsPtr = &newValue
return o
}
// VolumeFootprintsPercent is a 'getter' method
func (o *SpaceInformationType) VolumeFootprintsPercent() int {
r := *o.VolumeFootprintsPercentPtr
return r
}
// SetVolumeFootprintsPercent is a fluent style 'setter' method that can be chained
func (o *SpaceInformationType) SetVolumeFootprintsPercent(newValue int) *SpaceInformationType {
o.VolumeFootprintsPercentPtr = &newValue
return o
}