From bf4220cae7a18a4ce8ffacaa1422d1456dccf836 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 3 Apr 2025 16:28:24 +0000 Subject: [PATCH] Regenerate client from commit 4468962d of spec repo --- .apigentools-info | 8 ++--- .generator/schemas/v2/openapi.yaml | 31 +++++++++---------- .../GetAggregatedConnections.rb | 2 +- .../GetAggregatedConnections_3059356111.rb | 8 +++++ features/v2/cloud_network_monitoring.feature | 10 +++--- .../v2/api/cloud_network_monitoring_api.rb | 10 +++--- ...le_aggregated_connection_response_array.rb | 4 +-- ...gle_aggregated_connection_response_data.rb | 9 +++--- ...ted_connection_response_data_attributes.rb | 4 +-- ...ggregated_connection_response_data_type.rb | 3 +- 10 files changed, 47 insertions(+), 42 deletions(-) create mode 100644 examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb diff --git a/.apigentools-info b/.apigentools-info index 914128c275c8..0b30562f8425 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-03 09:26:20.623140", - "spec_repo_commit": "f1a43647" + "regenerated": "2025-04-03 16:27:53.688587", + "spec_repo_commit": "4468962d" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-03 09:26:20.638579", - "spec_repo_commit": "f1a43647" + "regenerated": "2025-04-03 16:27:53.704116", + "spec_repo_commit": "4468962d" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index b5a66e5d9755..05e150ab5876 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -30212,7 +30212,7 @@ components: type: string type: object SingleAggregatedConnectionResponseArray: - description: The definition of `SingleAggregatedConnectionResponseArray` object. + description: List of aggregated connections. example: data: - attributes: @@ -30236,25 +30236,25 @@ components: type: aggregated_connection properties: data: - description: The `SingleAggregatedConnectionResponseArray` `data`. + description: Array of aggregated connection objects. items: $ref: '#/components/schemas/SingleAggregatedConnectionResponseData' type: array type: object SingleAggregatedConnectionResponseData: - description: The definition of `SingleAggregatedConnectionResponseData` object. + description: Object describing an aggregated connection. properties: attributes: $ref: '#/components/schemas/SingleAggregatedConnectionResponseDataAttributes' id: - description: The `SingleAggregatedConnectionResponseData` `id`. + description: A unique identifier for the aggregated connection based on + the group by values. type: string type: $ref: '#/components/schemas/SingleAggregatedConnectionResponseDataType' type: object SingleAggregatedConnectionResponseDataAttributes: - description: The definition of `SingleAggregatedConnectionResponseDataAttributes` - object. + description: Attributes for an aggregated connection. properties: bytes_sent_by_client: description: The total number of bytes sent by the client over the given @@ -30268,10 +30268,11 @@ components: type: integer group_bys: additionalProperties: + description: The values for each group by. items: type: string type: array - description: The `attributes` `group_bys`. + description: The key, value pairs for each group by. type: object packets_sent_by_client: description: The total number of packets sent by the client over the given @@ -30322,9 +30323,7 @@ components: type: object SingleAggregatedConnectionResponseDataType: default: aggregated_connection - description: 'Aggregated connection resource type. Allowed enum values: `aggregated_connection`. - - default: `aggregated_connection`' + description: Aggregated connection resource type. enum: - aggregated_connection type: string @@ -44426,13 +44425,13 @@ paths: - Network Device Monitoring /api/v2/network/connections/aggregate: get: - description: Get aggregated connections + description: Get all aggregated connections. operationId: GetAggregatedConnections parameters: - description: Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window is 15 minutes - before the "to" timestamp. If neither "from" nor "to" are provided, the - query window is [now - 15m, now]. + before the `to` timestamp. If neither `from` nor `to` are provided, the + query window is `[now - 15m, now]`. in: query name: from schema: @@ -44440,8 +44439,8 @@ paths: type: integer - description: Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window is the current - time. If neither "from" nor "to" are provided, the query window is [now - - 15m, now]. + time. If neither `from` nor `to` are provided, the query window is `[now + - 15m, now]`. in: query name: to schema: @@ -44478,7 +44477,7 @@ paths: $ref: '#/components/responses/BadRequestResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - summary: Get aggregated connections + summary: Get all aggregated connections tags: - Cloud Network Monitoring x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback, diff --git a/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb b/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb index 3157360f131c..3fce66efb23a 100644 --- a/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb +++ b/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb @@ -1,4 +1,4 @@ -# Get aggregated connections returns "OK" response +# Get all aggregated connections returns "OK" response require "datadog_api_client" DatadogAPIClient.configure do |config| diff --git a/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb b/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb new file mode 100644 index 000000000000..3157360f131c --- /dev/null +++ b/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb @@ -0,0 +1,8 @@ +# Get aggregated connections returns "OK" response + +require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.get_aggregated_connections".to_sym] = true +end +api_instance = DatadogAPIClient::V2::CloudNetworkMonitoringAPI.new +p api_instance.get_aggregated_connections() diff --git a/features/v2/cloud_network_monitoring.feature b/features/v2/cloud_network_monitoring.feature index 2ae8e7cf2d07..11e44ca18450 100644 --- a/features/v2/cloud_network_monitoring.feature +++ b/features/v2/cloud_network_monitoring.feature @@ -12,11 +12,6 @@ Feature: Cloud Network Monitoring And operation "GetAggregatedConnections" enabled And new "GetAggregatedConnections" request - @generated @skip @team:Datadog/networks - Scenario: Get aggregated connections returns "Bad Request" response - When the request is sent - Then the response status is 400 Bad Request - @team:Datadog/networks Scenario: Get aggregated connections returns "OK" response When the request is sent @@ -27,3 +22,8 @@ Feature: Cloud Network Monitoring Given request contains "limit" parameter with value 6000 When the request is sent Then the response status is 400 Bad Request + + @generated @skip @team:Datadog/networks + Scenario: Get all aggregated connections returns "OK" response + When the request is sent + Then the response status is 200 OK diff --git a/lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb b/lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb index e7daf39cfc86..cc916c91f8b1 100644 --- a/lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb @@ -23,7 +23,7 @@ def initialize(api_client = DatadogAPIClient::APIClient.default) @api_client = api_client end - # Get aggregated connections. + # Get all aggregated connections. # # @see #get_aggregated_connections_with_http_info def get_aggregated_connections(opts = {}) @@ -31,13 +31,13 @@ def get_aggregated_connections(opts = {}) data end - # Get aggregated connections. + # Get all aggregated connections. # - # Get aggregated connections + # Get all aggregated connections. # # @param opts [Hash] the optional parameters - # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window is 15 minutes before the "to" timestamp. If neither "from" nor "to" are provided, the query window is [now - 15m, now]. - # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window is the current time. If neither "from" nor "to" are provided, the query window is [now - 15m, now]. + # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window is 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window is `[now - 15m, now]`. + # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window is the current time. If neither `from` nor `to` are provided, the query window is `[now - 15m, now]`. # @option opts [String] :group_by Comma-separated list of fields to group connections by. # @option opts [String] :tags Comma-separated list of tags to filter connections by. # @option opts [Integer] :limit The number of connections to be returned. The maximum value is 5000. diff --git a/lib/datadog_api_client/v2/models/single_aggregated_connection_response_array.rb b/lib/datadog_api_client/v2/models/single_aggregated_connection_response_array.rb index 075e01da4308..70bb043fb63a 100644 --- a/lib/datadog_api_client/v2/models/single_aggregated_connection_response_array.rb +++ b/lib/datadog_api_client/v2/models/single_aggregated_connection_response_array.rb @@ -17,11 +17,11 @@ require 'time' module DatadogAPIClient::V2 - # The definition of `SingleAggregatedConnectionResponseArray` object. + # List of aggregated connections. class SingleAggregatedConnectionResponseArray include BaseGenericModel - # The `SingleAggregatedConnectionResponseArray` `data`. + # Array of aggregated connection objects. attr_accessor :data attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data.rb b/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data.rb index 0eab57aca79e..b5dc89cf492d 100644 --- a/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data.rb +++ b/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data.rb @@ -17,18 +17,17 @@ require 'time' module DatadogAPIClient::V2 - # The definition of `SingleAggregatedConnectionResponseData` object. + # Object describing an aggregated connection. class SingleAggregatedConnectionResponseData include BaseGenericModel - # The definition of `SingleAggregatedConnectionResponseDataAttributes` object. + # Attributes for an aggregated connection. attr_accessor :attributes - # The `SingleAggregatedConnectionResponseData` `id`. + # A unique identifier for the aggregated connection based on the group by values. attr_accessor :id - # Aggregated connection resource type. Allowed enum values: `aggregated_connection`. - # default: `aggregated_connection` + # Aggregated connection resource type. attr_accessor :type attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_attributes.rb b/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_attributes.rb index d79c7c1a0d85..28bbcbb09add 100644 --- a/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_attributes.rb @@ -17,7 +17,7 @@ require 'time' module DatadogAPIClient::V2 - # The definition of `SingleAggregatedConnectionResponseDataAttributes` object. + # Attributes for an aggregated connection. class SingleAggregatedConnectionResponseDataAttributes include BaseGenericModel @@ -27,7 +27,7 @@ class SingleAggregatedConnectionResponseDataAttributes # The total number of bytes sent by the server over the given period. attr_accessor :bytes_sent_by_server - # The `attributes` `group_bys`. + # The key, value pairs for each group by. attr_accessor :group_bys # The total number of packets sent by the client over the given period. diff --git a/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_type.rb b/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_type.rb index 85e7f64abdbb..e1c175a4fc20 100644 --- a/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_type.rb +++ b/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_type.rb @@ -17,8 +17,7 @@ require 'time' module DatadogAPIClient::V2 - # Aggregated connection resource type. Allowed enum values: `aggregated_connection`. - # default: `aggregated_connection` + # Aggregated connection resource type. class SingleAggregatedConnectionResponseDataType include BaseEnumModel