@@ -16,6 +16,8 @@ type InterfaceAttributes struct {
1616 Description * string `json:"description,omitempty"`
1717 // The interface index
1818 Index * int64 `json:"index,omitempty"`
19+ // The interface IP addresses
20+ IpAddresses []string `json:"ip_addresses,omitempty"`
1921 // The interface MAC address
2022 MacAddress * string `json:"mac_address,omitempty"`
2123 // The interface name
@@ -128,6 +130,34 @@ func (o *InterfaceAttributes) SetIndex(v int64) {
128130 o .Index = & v
129131}
130132
133+ // GetIpAddresses returns the IpAddresses field value if set, zero value otherwise.
134+ func (o * InterfaceAttributes ) GetIpAddresses () []string {
135+ if o == nil || o .IpAddresses == nil {
136+ var ret []string
137+ return ret
138+ }
139+ return o .IpAddresses
140+ }
141+
142+ // GetIpAddressesOk returns a tuple with the IpAddresses field value if set, nil otherwise
143+ // and a boolean to check if the value has been set.
144+ func (o * InterfaceAttributes ) GetIpAddressesOk () (* []string , bool ) {
145+ if o == nil || o .IpAddresses == nil {
146+ return nil , false
147+ }
148+ return & o .IpAddresses , true
149+ }
150+
151+ // HasIpAddresses returns a boolean if a field has been set.
152+ func (o * InterfaceAttributes ) HasIpAddresses () bool {
153+ return o != nil && o .IpAddresses != nil
154+ }
155+
156+ // SetIpAddresses gets a reference to the given []string and assigns it to the IpAddresses field.
157+ func (o * InterfaceAttributes ) SetIpAddresses (v []string ) {
158+ o .IpAddresses = v
159+ }
160+
131161// GetMacAddress returns the MacAddress field value if set, zero value otherwise.
132162func (o * InterfaceAttributes ) GetMacAddress () string {
133163 if o == nil || o .MacAddress == nil {
@@ -227,6 +257,9 @@ func (o InterfaceAttributes) MarshalJSON() ([]byte, error) {
227257 if o .Index != nil {
228258 toSerialize ["index" ] = o .Index
229259 }
260+ if o .IpAddresses != nil {
261+ toSerialize ["ip_addresses" ] = o .IpAddresses
262+ }
230263 if o .MacAddress != nil {
231264 toSerialize ["mac_address" ] = o .MacAddress
232265 }
@@ -249,6 +282,7 @@ func (o *InterfaceAttributes) UnmarshalJSON(bytes []byte) (err error) {
249282 Alias * string `json:"alias,omitempty"`
250283 Description * string `json:"description,omitempty"`
251284 Index * int64 `json:"index,omitempty"`
285+ IpAddresses []string `json:"ip_addresses,omitempty"`
252286 MacAddress * string `json:"mac_address,omitempty"`
253287 Name * string `json:"name,omitempty"`
254288 Status * InterfaceAttributesStatus `json:"status,omitempty"`
@@ -258,7 +292,7 @@ func (o *InterfaceAttributes) UnmarshalJSON(bytes []byte) (err error) {
258292 }
259293 additionalProperties := make (map [string ]interface {})
260294 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
261- datadog .DeleteKeys (additionalProperties , & []string {"alias" , "description" , "index" , "mac_address" , "name" , "status" })
295+ datadog .DeleteKeys (additionalProperties , & []string {"alias" , "description" , "index" , "ip_addresses" , " mac_address" , "name" , "status" })
262296 } else {
263297 return err
264298 }
@@ -267,6 +301,7 @@ func (o *InterfaceAttributes) UnmarshalJSON(bytes []byte) (err error) {
267301 o .Alias = all .Alias
268302 o .Description = all .Description
269303 o .Index = all .Index
304+ o .IpAddresses = all .IpAddresses
270305 o .MacAddress = all .MacAddress
271306 o .Name = all .Name
272307 if all .Status != nil && ! all .Status .IsValid () {
0 commit comments