/
type-iscsi-interface-list-entry-info.go
175 lines (147 loc) · 5.48 KB
/
type-iscsi-interface-list-entry-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
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// IscsiInterfaceListEntryInfoType is a structure to represent a iscsi-interface-list-entry-info ZAPI object
type IscsiInterfaceListEntryInfoType struct {
XMLName xml.Name `xml:"iscsi-interface-list-entry-info"`
CurrentNodePtr *string `xml:"current-node"`
CurrentPortPtr *string `xml:"current-port"`
InterfaceNamePtr *string `xml:"interface-name"`
IpAddressPtr *string `xml:"ip-address"`
IpPortPtr *int `xml:"ip-port"`
IsInterfaceEnabledPtr *bool `xml:"is-interface-enabled"`
RelativePortIdPtr *int `xml:"relative-port-id"`
SendtargetsFqdnPtr *string `xml:"sendtargets-fqdn"`
TpgroupNamePtr *string `xml:"tpgroup-name"`
TpgroupTagPtr *int `xml:"tpgroup-tag"`
VserverPtr *string `xml:"vserver"`
}
// NewIscsiInterfaceListEntryInfoType is a factory method for creating new instances of IscsiInterfaceListEntryInfoType objects
func NewIscsiInterfaceListEntryInfoType() *IscsiInterfaceListEntryInfoType {
return &IscsiInterfaceListEntryInfoType{}
}
// ToXML converts this object into an xml string representation
func (o *IscsiInterfaceListEntryInfoType) 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 IscsiInterfaceListEntryInfoType) String() string {
return ToString(reflect.ValueOf(o))
}
// CurrentNode is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) CurrentNode() string {
r := *o.CurrentNodePtr
return r
}
// SetCurrentNode is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetCurrentNode(newValue string) *IscsiInterfaceListEntryInfoType {
o.CurrentNodePtr = &newValue
return o
}
// CurrentPort is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) CurrentPort() string {
r := *o.CurrentPortPtr
return r
}
// SetCurrentPort is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetCurrentPort(newValue string) *IscsiInterfaceListEntryInfoType {
o.CurrentPortPtr = &newValue
return o
}
// InterfaceName is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) InterfaceName() string {
r := *o.InterfaceNamePtr
return r
}
// SetInterfaceName is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetInterfaceName(newValue string) *IscsiInterfaceListEntryInfoType {
o.InterfaceNamePtr = &newValue
return o
}
// IpAddress is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) IpAddress() string {
r := *o.IpAddressPtr
return r
}
// SetIpAddress is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetIpAddress(newValue string) *IscsiInterfaceListEntryInfoType {
o.IpAddressPtr = &newValue
return o
}
// IpPort is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) IpPort() int {
r := *o.IpPortPtr
return r
}
// SetIpPort is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetIpPort(newValue int) *IscsiInterfaceListEntryInfoType {
o.IpPortPtr = &newValue
return o
}
// IsInterfaceEnabled is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) IsInterfaceEnabled() bool {
r := *o.IsInterfaceEnabledPtr
return r
}
// SetIsInterfaceEnabled is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetIsInterfaceEnabled(newValue bool) *IscsiInterfaceListEntryInfoType {
o.IsInterfaceEnabledPtr = &newValue
return o
}
// RelativePortId is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) RelativePortId() int {
r := *o.RelativePortIdPtr
return r
}
// SetRelativePortId is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetRelativePortId(newValue int) *IscsiInterfaceListEntryInfoType {
o.RelativePortIdPtr = &newValue
return o
}
// SendtargetsFqdn is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) SendtargetsFqdn() string {
r := *o.SendtargetsFqdnPtr
return r
}
// SetSendtargetsFqdn is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetSendtargetsFqdn(newValue string) *IscsiInterfaceListEntryInfoType {
o.SendtargetsFqdnPtr = &newValue
return o
}
// TpgroupName is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) TpgroupName() string {
r := *o.TpgroupNamePtr
return r
}
// SetTpgroupName is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetTpgroupName(newValue string) *IscsiInterfaceListEntryInfoType {
o.TpgroupNamePtr = &newValue
return o
}
// TpgroupTag is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) TpgroupTag() int {
r := *o.TpgroupTagPtr
return r
}
// SetTpgroupTag is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetTpgroupTag(newValue int) *IscsiInterfaceListEntryInfoType {
o.TpgroupTagPtr = &newValue
return o
}
// Vserver is a 'getter' method
func (o *IscsiInterfaceListEntryInfoType) Vserver() string {
r := *o.VserverPtr
return r
}
// SetVserver is a fluent style 'setter' method that can be chained
func (o *IscsiInterfaceListEntryInfoType) SetVserver(newValue string) *IscsiInterfaceListEntryInfoType {
o.VserverPtr = &newValue
return o
}