Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-14 08:41:51.732917",
"spec_repo_commit": "e73254d7"
"regenerated": "2025-04-14 16:33:14.288032",
"spec_repo_commit": "c0287407"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-14 08:41:51.748495",
"spec_repo_commit": "e73254d7"
"regenerated": "2025-04-14 16:33:14.303837",
"spec_repo_commit": "c0287407"
}
}
}
7 changes: 7 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46074,6 +46074,13 @@ paths:
required: true
schema:
type: string
- description: Whether to get the IP addresses of the interfaces.
example: true
in: query
name: get_ip_addresses
required: false
schema:
type: boolean
responses:
'200':
content:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-07-05T14:25:54.313Z
2025-04-09T22:39:12.378Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion examples/v2/network-device-monitoring/GetInterfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new
p api_instance.get_interfaces("default:1.2.3.4")
opts = {
get_ip_addresses: true,
}
p api_instance.get_interfaces("default:1.2.3.4", opts)
1 change: 1 addition & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,7 @@
},
"v2.GetInterfaces" => {
"device_id" => "String",
"get_ip_addresses" => "Boolean",
},
"v2.ListDeviceUserTags" => {
"device_id" => "String",
Expand Down
1 change: 1 addition & 0 deletions features/v2/network_device_monitoring.feature
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ Feature: Network Device Monitoring
Scenario: Get the list of interfaces of the device returns "OK" response
Given new "GetInterfaces" request
And request contains "device_id" parameter with value "default:1.2.3.4"
And request contains "get_ip_addresses" parameter with value true
When the request is sent
Then the response status is 200 OK
And the response "data[0].type" is equal to "interface"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def get_interfaces(device_id, opts = {})
#
# @param device_id [String] The ID of the device to get interfaces from.
# @param opts [Hash] the optional parameters
# @option opts [Boolean] :get_ip_addresses Whether to get the IP addresses of the interfaces.
# @return [Array<(GetInterfacesResponse, Integer, Hash)>] GetInterfacesResponse data, response status code and response headers
def get_interfaces_with_http_info(device_id, opts = {})

Expand All @@ -118,6 +119,7 @@ def get_interfaces_with_http_info(device_id, opts = {})
# query parameters
query_params = opts[:query_params] || {}
query_params[:'device_id'] = device_id
query_params[:'get_ip_addresses'] = opts[:'get_ip_addresses'] if !opts[:'get_ip_addresses'].nil?

# header parameters
header_params = opts[:header_params] || {}
Expand Down
Loading