From f4bc88b410fd18fd91d2035257c2ec82ba4b31a8 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 8 Apr 2025 20:56:13 +0000 Subject: [PATCH] Regenerate client from commit 21cf6edb of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 8 ++++++++ ...nterfaces-of-the-device-returns-OK-response.yml | 2 +- features/v2/network_device_monitoring.feature | 1 + .../v2/models/interface_attributes.rb | 14 +++++++++++++- 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 05b4ac8a69d7..3a07f22dbd63 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-08 20:00:50.397113", - "spec_repo_commit": "3e2afa30" + "regenerated": "2025-04-08 20:55:42.262152", + "spec_repo_commit": "21cf6edb" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-08 20:00:50.413019", - "spec_repo_commit": "3e2afa30" + "regenerated": "2025-04-08 20:55:42.277778", + "spec_repo_commit": "21cf6edb" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 061d18d5c31b..cc558ab240bb 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -17271,6 +17271,14 @@ components: example: 0 format: int64 type: integer + ip_addresses: + description: The interface IP addresses + example: + - 1.1.1.1 + - 1.1.1.2 + items: + type: string + type: array mac_address: description: The interface MAC address example: 00:00:00:00:00:00 diff --git a/cassettes/features/v2/network_device_monitoring/Get-the-list-of-interfaces-of-the-device-returns-OK-response.yml b/cassettes/features/v2/network_device_monitoring/Get-the-list-of-interfaces-of-the-device-returns-OK-response.yml index 22c94f512324..fcfb252c223a 100644 --- a/cassettes/features/v2/network_device_monitoring/Get-the-list-of-interfaces-of-the-device-returns-OK-response.yml +++ b/cassettes/features/v2/network_device_monitoring/Get-the-list-of-interfaces-of-the-device-returns-OK-response.yml @@ -11,7 +11,7 @@ http_interactions: body: encoding: UTF-8 string: '{"data":[{"id":"default:1.2.3.4:99","type":"interface","attributes":{"name":"if99","status":"up","description":"a - 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 + 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 network interface","mac_address":"99:99:99:99:99:99","alias":"interface_999","index":999}}]}' headers: Content-Type: diff --git a/features/v2/network_device_monitoring.feature b/features/v2/network_device_monitoring.feature index 6952a281f0ff..6058284396d6 100644 --- a/features/v2/network_device_monitoring.feature +++ b/features/v2/network_device_monitoring.feature @@ -86,6 +86,7 @@ Feature: Network Device Monitoring And the response "data[0].attributes.name" is equal to "if99" And the response "data[0].attributes.description" is equal to "a network interface" And the response "data[0].attributes.mac_address" is equal to "00:00:00:00:00:00" + And the response "data[0].attributes.ip_addresses" is equal to ["1.1.1.1","1.1.1.2"] And the response "data[0].attributes.alias" is equal to "interface_99" And the response "data[0].attributes.index" is equal to 99 And the response "data[0].attributes.status" is equal to "up" diff --git a/lib/datadog_api_client/v2/models/interface_attributes.rb b/lib/datadog_api_client/v2/models/interface_attributes.rb index d6f6e0e45af4..5318ce3ed261 100644 --- a/lib/datadog_api_client/v2/models/interface_attributes.rb +++ b/lib/datadog_api_client/v2/models/interface_attributes.rb @@ -30,6 +30,9 @@ class InterfaceAttributes # The interface index attr_accessor :index + # The interface IP addresses + attr_accessor :ip_addresses + # The interface MAC address attr_accessor :mac_address @@ -48,6 +51,7 @@ def self.attribute_map :'_alias' => :'alias', :'description' => :'description', :'index' => :'index', + :'ip_addresses' => :'ip_addresses', :'mac_address' => :'mac_address', :'name' => :'name', :'status' => :'status' @@ -61,6 +65,7 @@ def self.openapi_types :'_alias' => :'String', :'description' => :'String', :'index' => :'Integer', + :'ip_addresses' => :'Array', :'mac_address' => :'String', :'name' => :'String', :'status' => :'InterfaceAttributesStatus' @@ -97,6 +102,12 @@ def initialize(attributes = {}) self.index = attributes[:'index'] end + if attributes.key?(:'ip_addresses') + if (value = attributes[:'ip_addresses']).is_a?(Array) + self.ip_addresses = value + end + end + if attributes.key?(:'mac_address') self.mac_address = attributes[:'mac_address'] end @@ -139,6 +150,7 @@ def ==(o) _alias == o._alias && description == o.description && index == o.index && + ip_addresses == o.ip_addresses && mac_address == o.mac_address && name == o.name && status == o.status && @@ -149,7 +161,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [_alias, description, index, mac_address, name, status, additional_properties].hash + [_alias, description, index, ip_addresses, mac_address, name, status, additional_properties].hash end end end