Skip to content

Commit ec4000d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update NDM GetInterfaces documentation to add ip_addresses attribute (#2323)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent a655d6a commit ec4000d

File tree

5 files changed

+27
-6
lines changed

5 files changed

+27
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-04-08 20:00:50.397113",
8-
"spec_repo_commit": "3e2afa30"
7+
"regenerated": "2025-04-08 20:55:42.262152",
8+
"spec_repo_commit": "21cf6edb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-08 20:00:50.413019",
13-
"spec_repo_commit": "3e2afa30"
12+
"regenerated": "2025-04-08 20:55:42.277778",
13+
"spec_repo_commit": "21cf6edb"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17271,6 +17271,14 @@ components:
1727117271
example: 0
1727217272
format: int64
1727317273
type: integer
17274+
ip_addresses:
17275+
description: The interface IP addresses
17276+
example:
17277+
- 1.1.1.1
17278+
- 1.1.1.2
17279+
items:
17280+
type: string
17281+
type: array
1727417282
mac_address:
1727517283
description: The interface MAC address
1727617284
example: 00:00:00:00:00:00

cassettes/features/v2/network_device_monitoring/Get-the-list-of-interfaces-of-the-device-returns-OK-response.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

features/v2/network_device_monitoring.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Feature: Network Device Monitoring
8686
And the response "data[0].attributes.name" is equal to "if99"
8787
And the response "data[0].attributes.description" is equal to "a network interface"
8888
And the response "data[0].attributes.mac_address" is equal to "00:00:00:00:00:00"
89+
And the response "data[0].attributes.ip_addresses" is equal to ["1.1.1.1","1.1.1.2"]
8990
And the response "data[0].attributes.alias" is equal to "interface_99"
9091
And the response "data[0].attributes.index" is equal to 99
9192
And the response "data[0].attributes.status" is equal to "up"

lib/datadog_api_client/v2/models/interface_attributes.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class InterfaceAttributes
3030
# The interface index
3131
attr_accessor :index
3232

33+
# The interface IP addresses
34+
attr_accessor :ip_addresses
35+
3336
# The interface MAC address
3437
attr_accessor :mac_address
3538

@@ -48,6 +51,7 @@ def self.attribute_map
4851
:'_alias' => :'alias',
4952
:'description' => :'description',
5053
:'index' => :'index',
54+
:'ip_addresses' => :'ip_addresses',
5155
:'mac_address' => :'mac_address',
5256
:'name' => :'name',
5357
:'status' => :'status'
@@ -61,6 +65,7 @@ def self.openapi_types
6165
:'_alias' => :'String',
6266
:'description' => :'String',
6367
:'index' => :'Integer',
68+
:'ip_addresses' => :'Array<String>',
6469
:'mac_address' => :'String',
6570
:'name' => :'String',
6671
:'status' => :'InterfaceAttributesStatus'
@@ -97,6 +102,12 @@ def initialize(attributes = {})
97102
self.index = attributes[:'index']
98103
end
99104

105+
if attributes.key?(:'ip_addresses')
106+
if (value = attributes[:'ip_addresses']).is_a?(Array)
107+
self.ip_addresses = value
108+
end
109+
end
110+
100111
if attributes.key?(:'mac_address')
101112
self.mac_address = attributes[:'mac_address']
102113
end
@@ -139,6 +150,7 @@ def ==(o)
139150
_alias == o._alias &&
140151
description == o.description &&
141152
index == o.index &&
153+
ip_addresses == o.ip_addresses &&
142154
mac_address == o.mac_address &&
143155
name == o.name &&
144156
status == o.status &&
@@ -149,7 +161,7 @@ def ==(o)
149161
# @return [Integer] Hash code
150162
# @!visibility private
151163
def hash
152-
[_alias, description, index, mac_address, name, status, additional_properties].hash
164+
[_alias, description, index, ip_addresses, mac_address, name, status, additional_properties].hash
153165
end
154166
end
155167
end

0 commit comments

Comments
 (0)