-
Notifications
You must be signed in to change notification settings - Fork 0
/
type-initiator-group-info.go
248 lines (209 loc) · 8.93 KB
/
type-initiator-group-info.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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// InitiatorGroupInfoType is a structure to represent a initiator-group-info ZAPI object
type InitiatorGroupInfoType struct {
XMLName xml.Name `xml:"initiator-group-info"`
InitiatorGroupAluaEnabledPtr *bool `xml:"initiator-group-alua-enabled"`
InitiatorGroupDeleteOnUnmapPtr *bool `xml:"initiator-group-delete-on-unmap"`
InitiatorGroupNamePtr *string `xml:"initiator-group-name"`
InitiatorGroupOsTypePtr *InitiatorGroupOsTypeType `xml:"initiator-group-os-type"`
InitiatorGroupPortsetNamePtr *string `xml:"initiator-group-portset-name"`
InitiatorGroupReportScsiNameEnabledPtr *bool `xml:"initiator-group-report-scsi-name-enabled"`
InitiatorGroupThrottleBorrowPtr *bool `xml:"initiator-group-throttle-borrow"`
InitiatorGroupThrottleReservePtr *int `xml:"initiator-group-throttle-reserve"`
InitiatorGroupTypePtr *string `xml:"initiator-group-type"`
InitiatorGroupUsePartnerPtr *bool `xml:"initiator-group-use-partner"`
InitiatorGroupUuidPtr *string `xml:"initiator-group-uuid"`
InitiatorGroupVsaEnabledPtr *bool `xml:"initiator-group-vsa-enabled"`
InitiatorsPtr *InitiatorGroupInfoTypeInitiators `xml:"initiators"`
// work in progress
LunIdPtr *int `xml:"lun-id"`
VserverPtr *string `xml:"vserver"`
}
// NewInitiatorGroupInfoType is a factory method for creating new instances of InitiatorGroupInfoType objects
func NewInitiatorGroupInfoType() *InitiatorGroupInfoType {
return &InitiatorGroupInfoType{}
}
// ToXML converts this object into an xml string representation
func (o *InitiatorGroupInfoType) 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 InitiatorGroupInfoType) String() string {
return ToString(reflect.ValueOf(o))
}
// InitiatorGroupAluaEnabled is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupAluaEnabled() bool {
r := *o.InitiatorGroupAluaEnabledPtr
return r
}
// SetInitiatorGroupAluaEnabled is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupAluaEnabled(newValue bool) *InitiatorGroupInfoType {
o.InitiatorGroupAluaEnabledPtr = &newValue
return o
}
// InitiatorGroupDeleteOnUnmap is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupDeleteOnUnmap() bool {
r := *o.InitiatorGroupDeleteOnUnmapPtr
return r
}
// SetInitiatorGroupDeleteOnUnmap is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupDeleteOnUnmap(newValue bool) *InitiatorGroupInfoType {
o.InitiatorGroupDeleteOnUnmapPtr = &newValue
return o
}
// InitiatorGroupName is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupName() string {
r := *o.InitiatorGroupNamePtr
return r
}
// SetInitiatorGroupName is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupName(newValue string) *InitiatorGroupInfoType {
o.InitiatorGroupNamePtr = &newValue
return o
}
// InitiatorGroupOsType is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupOsType() InitiatorGroupOsTypeType {
r := *o.InitiatorGroupOsTypePtr
return r
}
// SetInitiatorGroupOsType is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupOsType(newValue InitiatorGroupOsTypeType) *InitiatorGroupInfoType {
o.InitiatorGroupOsTypePtr = &newValue
return o
}
// InitiatorGroupPortsetName is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupPortsetName() string {
r := *o.InitiatorGroupPortsetNamePtr
return r
}
// SetInitiatorGroupPortsetName is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupPortsetName(newValue string) *InitiatorGroupInfoType {
o.InitiatorGroupPortsetNamePtr = &newValue
return o
}
// InitiatorGroupReportScsiNameEnabled is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupReportScsiNameEnabled() bool {
r := *o.InitiatorGroupReportScsiNameEnabledPtr
return r
}
// SetInitiatorGroupReportScsiNameEnabled is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupReportScsiNameEnabled(newValue bool) *InitiatorGroupInfoType {
o.InitiatorGroupReportScsiNameEnabledPtr = &newValue
return o
}
// InitiatorGroupThrottleBorrow is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupThrottleBorrow() bool {
r := *o.InitiatorGroupThrottleBorrowPtr
return r
}
// SetInitiatorGroupThrottleBorrow is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupThrottleBorrow(newValue bool) *InitiatorGroupInfoType {
o.InitiatorGroupThrottleBorrowPtr = &newValue
return o
}
// InitiatorGroupThrottleReserve is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupThrottleReserve() int {
r := *o.InitiatorGroupThrottleReservePtr
return r
}
// SetInitiatorGroupThrottleReserve is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupThrottleReserve(newValue int) *InitiatorGroupInfoType {
o.InitiatorGroupThrottleReservePtr = &newValue
return o
}
// InitiatorGroupType is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupType() string {
r := *o.InitiatorGroupTypePtr
return r
}
// SetInitiatorGroupType is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupType(newValue string) *InitiatorGroupInfoType {
o.InitiatorGroupTypePtr = &newValue
return o
}
// InitiatorGroupUsePartner is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupUsePartner() bool {
r := *o.InitiatorGroupUsePartnerPtr
return r
}
// SetInitiatorGroupUsePartner is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupUsePartner(newValue bool) *InitiatorGroupInfoType {
o.InitiatorGroupUsePartnerPtr = &newValue
return o
}
// InitiatorGroupUuid is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupUuid() string {
r := *o.InitiatorGroupUuidPtr
return r
}
// SetInitiatorGroupUuid is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupUuid(newValue string) *InitiatorGroupInfoType {
o.InitiatorGroupUuidPtr = &newValue
return o
}
// InitiatorGroupVsaEnabled is a 'getter' method
func (o *InitiatorGroupInfoType) InitiatorGroupVsaEnabled() bool {
r := *o.InitiatorGroupVsaEnabledPtr
return r
}
// SetInitiatorGroupVsaEnabled is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiatorGroupVsaEnabled(newValue bool) *InitiatorGroupInfoType {
o.InitiatorGroupVsaEnabledPtr = &newValue
return o
}
// InitiatorGroupInfoTypeInitiators is a wrapper
type InitiatorGroupInfoTypeInitiators struct {
XMLName xml.Name `xml:"initiators"`
InitiatorInfoPtr []InitiatorInfoType `xml:"initiator-info"`
}
// InitiatorInfo is a 'getter' method
func (o *InitiatorGroupInfoTypeInitiators) InitiatorInfo() []InitiatorInfoType {
r := o.InitiatorInfoPtr
return r
}
// SetInitiatorInfo is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoTypeInitiators) SetInitiatorInfo(newValue []InitiatorInfoType) *InitiatorGroupInfoTypeInitiators {
newSlice := make([]InitiatorInfoType, len(newValue))
copy(newSlice, newValue)
o.InitiatorInfoPtr = newSlice
return o
}
// Initiators is a 'getter' method
func (o *InitiatorGroupInfoType) Initiators() InitiatorGroupInfoTypeInitiators {
r := *o.InitiatorsPtr
return r
}
// SetInitiators is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetInitiators(newValue InitiatorGroupInfoTypeInitiators) *InitiatorGroupInfoType {
o.InitiatorsPtr = &newValue
return o
}
// LunId is a 'getter' method
func (o *InitiatorGroupInfoType) LunId() int {
r := *o.LunIdPtr
return r
}
// SetLunId is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetLunId(newValue int) *InitiatorGroupInfoType {
o.LunIdPtr = &newValue
return o
}
// Vserver is a 'getter' method
func (o *InitiatorGroupInfoType) Vserver() string {
r := *o.VserverPtr
return r
}
// SetVserver is a fluent style 'setter' method that can be chained
func (o *InitiatorGroupInfoType) SetVserver(newValue string) *InitiatorGroupInfoType {
o.VserverPtr = &newValue
return o
}