Skip to content

Commit 44f3b8e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Update NDM GetInterfaces documentation to add ip_addresses attribute (#2493)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3e3abbf commit 44f3b8e

File tree

5 files changed

+23
-6
lines changed

5 files changed

+23
-6
lines changed

Diff for: .apigentools-info

+4-4
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.307792",
8-
"spec_repo_commit": "3e2afa30"
7+
"regenerated": "2025-04-08 20:55:42.169501",
8+
"spec_repo_commit": "21cf6edb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-08 20:00:50.398680",
13-
"spec_repo_commit": "3e2afa30"
12+
"regenerated": "2025-04-08 20:55:42.184778",
13+
"spec_repo_commit": "21cf6edb"
1414
}
1515
}
1616
}

Diff for: .generator/schemas/v2/openapi.yaml

+8
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

Diff for: src/datadog_api_client/v2/model/interface_attributes.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -26,6 +26,7 @@ def openapi_types(_):
2626
"alias": (str,),
2727
"description": (str,),
2828
"index": (int,),
29+
"ip_addresses": ([str],),
2930
"mac_address": (str,),
3031
"name": (str,),
3132
"status": (InterfaceAttributesStatus,),
@@ -35,6 +36,7 @@ def openapi_types(_):
3536
"alias": "alias",
3637
"description": "description",
3738
"index": "index",
39+
"ip_addresses": "ip_addresses",
3840
"mac_address": "mac_address",
3941
"name": "name",
4042
"status": "status",
@@ -45,6 +47,7 @@ def __init__(
4547
alias: Union[str, UnsetType] = unset,
4648
description: Union[str, UnsetType] = unset,
4749
index: Union[int, UnsetType] = unset,
50+
ip_addresses: Union[List[str], UnsetType] = unset,
4851
mac_address: Union[str, UnsetType] = unset,
4952
name: Union[str, UnsetType] = unset,
5053
status: Union[InterfaceAttributesStatus, UnsetType] = unset,
@@ -62,6 +65,9 @@ def __init__(
6265
:param index: The interface index
6366
:type index: int, optional
6467
68+
:param ip_addresses: The interface IP addresses
69+
:type ip_addresses: [str], optional
70+
6571
:param mac_address: The interface MAC address
6672
:type mac_address: str, optional
6773
@@ -77,6 +83,8 @@ def __init__(
7783
kwargs["description"] = description
7884
if index is not unset:
7985
kwargs["index"] = index
86+
if ip_addresses is not unset:
87+
kwargs["ip_addresses"] = ip_addresses
8088
if mac_address is not unset:
8189
kwargs["mac_address"] = mac_address
8290
if name is not unset:

Diff for: tests/v2/cassettes/test_scenarios/test_get_the_list_of_interfaces_of_the_device_returns_ok_response.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interactions:
99
response:
1010
body:
1111
string: '{"data":[{"id":"default:1.2.3.4:99","type":"interface","attributes":{"name":"if99","status":"up","description":"a
12-
network interface","mac_address":"00:00:00:00:00:00","alias":"interface_99","index":99}},{"id":"default:1.2.3.4:999","type":"interface","attributes":{"name":"if999","status":"down","description":"another
12+
network interface","mac_address":"00:00:00:00:00:00","ip_addresses":["1.1.1.1","1.1.1.2"],"alias":"interface_99","index":99}},{"id":"default:1.2.3.4:999","type":"interface","attributes":{"name":"if999","status":"down","description":"another
1313
network interface","mac_address":"99:99:99:99:99:99","alias":"interface_999","index":999}}]}'
1414
headers:
1515
content-type:

Diff for: tests/v2/features/network_device_monitoring.feature

+1
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"

0 commit comments

Comments
 (0)