Skip to content

Commit 2bc640e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 25ad23d of spec repo (DataDog#3473)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 2b9c2fa commit 2bc640e

18 files changed

Lines changed: 0 additions & 2050 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 395 deletions
Large diffs are not rendered by default.

examples/v2/fleet-automation/ListFleetClusters.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/v2/fleet-automation/ListFleetInstrumentedPods.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

features/scenarios_model_mapping.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -857,17 +857,6 @@
857857
"sort_attribute" => "String",
858858
"sort_descending" => "Boolean",
859859
},
860-
"v2.ListFleetClusters" => {
861-
"page_number" => "Integer",
862-
"page_size" => "Integer",
863-
"sort_attribute" => "String",
864-
"sort_descending" => "Boolean",
865-
"filter" => "String",
866-
"tags" => "String",
867-
},
868-
"v2.ListFleetInstrumentedPods" => {
869-
"cluster_name" => "String",
870-
},
871860
"v2.ListFleetDeployments" => {
872861
"page_size" => "Integer",
873862
"page_offset" => "Integer",

features/v2/fleet_automation.feature

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -232,27 +232,6 @@ Feature: Fleet Automation
232232
When the request is sent
233233
Then the response status is 200 OK
234234

235-
@generated @skip @team:DataDog/fleet-automation
236-
Scenario: List all fleet clusters returns "Bad Request" response
237-
Given operation "ListFleetClusters" enabled
238-
And new "ListFleetClusters" request
239-
When the request is sent
240-
Then the response status is 400 Bad Request
241-
242-
@generated @skip @team:DataDog/fleet-automation
243-
Scenario: List all fleet clusters returns "Not Found" response
244-
Given operation "ListFleetClusters" enabled
245-
And new "ListFleetClusters" request
246-
When the request is sent
247-
Then the response status is 404 Not Found
248-
249-
@generated @skip @team:DataDog/fleet-automation
250-
Scenario: List all fleet clusters returns "OK" response
251-
Given operation "ListFleetClusters" enabled
252-
And new "ListFleetClusters" request
253-
When the request is sent
254-
Then the response status is 200 OK
255-
256235
@generated @skip @team:DataDog/fleet-automation
257236
Scenario: List all fleet tracers returns "Bad Request" response
258237
Given operation "ListFleetTracers" enabled
@@ -288,30 +267,6 @@ Feature: Fleet Automation
288267
When the request is sent
289268
Then the response status is 200 OK
290269

291-
@generated @skip @team:DataDog/fleet-automation
292-
Scenario: List instrumented pods for a cluster returns "Bad Request" response
293-
Given operation "ListFleetInstrumentedPods" enabled
294-
And new "ListFleetInstrumentedPods" request
295-
And request contains "cluster_name" parameter from "REPLACE.ME"
296-
When the request is sent
297-
Then the response status is 400 Bad Request
298-
299-
@generated @skip @team:DataDog/fleet-automation
300-
Scenario: List instrumented pods for a cluster returns "Not Found" response
301-
Given operation "ListFleetInstrumentedPods" enabled
302-
And new "ListFleetInstrumentedPods" request
303-
And request contains "cluster_name" parameter from "REPLACE.ME"
304-
When the request is sent
305-
Then the response status is 404 Not Found
306-
307-
@generated @skip @team:DataDog/fleet-automation
308-
Scenario: List instrumented pods for a cluster returns "OK" response
309-
Given operation "ListFleetInstrumentedPods" enabled
310-
And new "ListFleetInstrumentedPods" request
311-
And request contains "cluster_name" parameter from "REPLACE.ME"
312-
When the request is sent
313-
Then the response status is 200 OK
314-
315270
@generated @skip @team:DataDog/fleet-automation
316271
Scenario: List tracers for a specific agent returns "Bad Request" response
317272
Given operation "ListFleetAgentTracers" enabled

features/v2/undo.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@
2323
"type": "safe"
2424
}
2525
},
26-
"ListFleetClusters": {
27-
"tag": "Fleet Automation",
28-
"undo": {
29-
"type": "safe"
30-
}
31-
},
32-
"ListFleetInstrumentedPods": {
33-
"tag": "Fleet Automation",
34-
"undo": {
35-
"type": "safe"
36-
}
37-
},
3826
"ListFleetDeployments": {
3927
"tag": "Fleet Automation",
4028
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ def initialize
200200
"v2.list_fleet_agents": false,
201201
"v2.list_fleet_agent_tracers": false,
202202
"v2.list_fleet_agent_versions": false,
203-
"v2.list_fleet_clusters": false,
204203
"v2.list_fleet_deployments": false,
205-
"v2.list_fleet_instrumented_pods": false,
206204
"v2.list_fleet_schedules": false,
207205
"v2.list_fleet_tracers": false,
208206
"v2.trigger_fleet_schedule": false,

lib/datadog_api_client/inflector.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3201,11 +3201,6 @@ def overrides
32013201
"v2.fleet_agent_version_attributes" => "FleetAgentVersionAttributes",
32023202
"v2.fleet_agent_version_resource_type" => "FleetAgentVersionResourceType",
32033203
"v2.fleet_agent_versions_response" => "FleetAgentVersionsResponse",
3204-
"v2.fleet_cluster_attributes" => "FleetClusterAttributes",
3205-
"v2.fleet_clusters_response" => "FleetClustersResponse",
3206-
"v2.fleet_clusters_response_data" => "FleetClustersResponseData",
3207-
"v2.fleet_clusters_response_data_attributes" => "FleetClustersResponseDataAttributes",
3208-
"v2.fleet_clusters_response_meta" => "FleetClustersResponseMeta",
32093204
"v2.fleet_configuration_file" => "FleetConfigurationFile",
32103205
"v2.fleet_configuration_layer" => "FleetConfigurationLayer",
32113206
"v2.fleet_deployment" => "FleetDeployment",
@@ -3229,10 +3224,6 @@ def overrides
32293224
"v2.fleet_deployments_response" => "FleetDeploymentsResponse",
32303225
"v2.fleet_deployments_response_meta" => "FleetDeploymentsResponseMeta",
32313226
"v2.fleet_detected_integration" => "FleetDetectedIntegration",
3232-
"v2.fleet_instrumented_pod_group_attributes" => "FleetInstrumentedPodGroupAttributes",
3233-
"v2.fleet_instrumented_pods_response" => "FleetInstrumentedPodsResponse",
3234-
"v2.fleet_instrumented_pods_response_data" => "FleetInstrumentedPodsResponseData",
3235-
"v2.fleet_instrumented_pods_response_data_attributes" => "FleetInstrumentedPodsResponseDataAttributes",
32363227
"v2.fleet_integration_details" => "FleetIntegrationDetails",
32373228
"v2.fleet_integrations_by_status" => "FleetIntegrationsByStatus",
32383229
"v2.fleet_schedule" => "FleetSchedule",

lib/datadog_api_client/v2/api/fleet_automation_api.rb

Lines changed: 0 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -928,97 +928,6 @@ def list_fleet_agent_versions_with_http_info(opts = {})
928928
return data, status_code, headers
929929
end
930930

931-
# List all fleet clusters.
932-
#
933-
# @see #list_fleet_clusters_with_http_info
934-
def list_fleet_clusters(opts = {})
935-
data, _status_code, _headers = list_fleet_clusters_with_http_info(opts)
936-
data
937-
end
938-
939-
# List all fleet clusters.
940-
#
941-
# Retrieve a paginated list of Kubernetes clusters in the fleet.
942-
#
943-
# This endpoint returns clusters with metadata including node counts, agent versions,
944-
# enabled products, and associated services. Use the `page_number` and `page_size`
945-
# query parameters to paginate through results.
946-
#
947-
# @param opts [Hash] the optional parameters
948-
# @option opts [Integer] :page_number Page number for pagination (starts at 0).
949-
# @option opts [Integer] :page_size Number of results per page (must be greater than 0 and less than or equal to 100).
950-
# @option opts [String] :sort_attribute Attribute to sort by.
951-
# @option opts [Boolean] :sort_descending Sort order (true for descending, false for ascending).
952-
# @option opts [String] :filter Filter string for narrowing down cluster results.
953-
# @option opts [String] :tags Comma-separated list of tags to filter clusters.
954-
# @return [Array<(FleetClustersResponse, Integer, Hash)>] FleetClustersResponse data, response status code and response headers
955-
def list_fleet_clusters_with_http_info(opts = {})
956-
unstable_enabled = @api_client.config.unstable_operations["v2.list_fleet_clusters".to_sym]
957-
if unstable_enabled
958-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_fleet_clusters")
959-
else
960-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_fleet_clusters"))
961-
end
962-
963-
if @api_client.config.debugging
964-
@api_client.config.logger.debug 'Calling API: FleetAutomationAPI.list_fleet_clusters ...'
965-
end
966-
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 0
967-
fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling FleetAutomationAPI.list_fleet_clusters, must be greater than or equal to 0.'
968-
end
969-
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
970-
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FleetAutomationAPI.list_fleet_clusters, must be smaller than or equal to 100.'
971-
end
972-
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
973-
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FleetAutomationAPI.list_fleet_clusters, must be greater than or equal to 1.'
974-
end
975-
# resource path
976-
local_var_path = '/api/unstable/fleet/clusters'
977-
978-
# query parameters
979-
query_params = opts[:query_params] || {}
980-
query_params[:'page_number'] = opts[:'page_number'] if !opts[:'page_number'].nil?
981-
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
982-
query_params[:'sort_attribute'] = opts[:'sort_attribute'] if !opts[:'sort_attribute'].nil?
983-
query_params[:'sort_descending'] = opts[:'sort_descending'] if !opts[:'sort_descending'].nil?
984-
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
985-
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
986-
987-
# header parameters
988-
header_params = opts[:header_params] || {}
989-
# HTTP header 'Accept' (if needed)
990-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
991-
992-
# form parameters
993-
form_params = opts[:form_params] || {}
994-
995-
# http body (model)
996-
post_body = opts[:debug_body]
997-
998-
# return_type
999-
return_type = opts[:debug_return_type] || 'FleetClustersResponse'
1000-
1001-
# auth_names
1002-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
1003-
1004-
new_options = opts.merge(
1005-
:operation => :list_fleet_clusters,
1006-
:header_params => header_params,
1007-
:query_params => query_params,
1008-
:form_params => form_params,
1009-
:body => post_body,
1010-
:auth_names => auth_names,
1011-
:return_type => return_type,
1012-
:api_version => "V2"
1013-
)
1014-
1015-
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1016-
if @api_client.config.debugging
1017-
@api_client.config.logger.debug "API called: FleetAutomationAPI#list_fleet_clusters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1018-
end
1019-
return data, status_code, headers
1020-
end
1021-
1022931
# List all deployments.
1023932
#
1024933
# @see #list_fleet_deployments_with_http_info
@@ -1093,82 +1002,6 @@ def list_fleet_deployments_with_http_info(opts = {})
10931002
return data, status_code, headers
10941003
end
10951004

1096-
# List instrumented pods for a cluster.
1097-
#
1098-
# @see #list_fleet_instrumented_pods_with_http_info
1099-
def list_fleet_instrumented_pods(cluster_name, opts = {})
1100-
data, _status_code, _headers = list_fleet_instrumented_pods_with_http_info(cluster_name, opts)
1101-
data
1102-
end
1103-
1104-
# List instrumented pods for a cluster.
1105-
#
1106-
# Retrieve the list of pods targeted for Single Step Instrumentation (SSI) injection
1107-
# in a specific Kubernetes cluster.
1108-
#
1109-
# This endpoint returns pod groups organized by owner reference (deployment, statefulset, etc.)
1110-
# with their injection annotations and applied targets. Use the clusters list endpoint
1111-
# to discover available cluster names.
1112-
#
1113-
# @param cluster_name [String] The name of the Kubernetes cluster.
1114-
# @param opts [Hash] the optional parameters
1115-
# @return [Array<(FleetInstrumentedPodsResponse, Integer, Hash)>] FleetInstrumentedPodsResponse data, response status code and response headers
1116-
def list_fleet_instrumented_pods_with_http_info(cluster_name, opts = {})
1117-
unstable_enabled = @api_client.config.unstable_operations["v2.list_fleet_instrumented_pods".to_sym]
1118-
if unstable_enabled
1119-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_fleet_instrumented_pods")
1120-
else
1121-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_fleet_instrumented_pods"))
1122-
end
1123-
1124-
if @api_client.config.debugging
1125-
@api_client.config.logger.debug 'Calling API: FleetAutomationAPI.list_fleet_instrumented_pods ...'
1126-
end
1127-
# verify the required parameter 'cluster_name' is set
1128-
if @api_client.config.client_side_validation && cluster_name.nil?
1129-
fail ArgumentError, "Missing the required parameter 'cluster_name' when calling FleetAutomationAPI.list_fleet_instrumented_pods"
1130-
end
1131-
# resource path
1132-
local_var_path = '/api/unstable/fleet/clusters/{cluster_name}/instrumented_pods'.sub('{cluster_name}', CGI.escape(cluster_name.to_s).gsub('%2F', '/'))
1133-
1134-
# query parameters
1135-
query_params = opts[:query_params] || {}
1136-
1137-
# header parameters
1138-
header_params = opts[:header_params] || {}
1139-
# HTTP header 'Accept' (if needed)
1140-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1141-
1142-
# form parameters
1143-
form_params = opts[:form_params] || {}
1144-
1145-
# http body (model)
1146-
post_body = opts[:debug_body]
1147-
1148-
# return_type
1149-
return_type = opts[:debug_return_type] || 'FleetInstrumentedPodsResponse'
1150-
1151-
# auth_names
1152-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
1153-
1154-
new_options = opts.merge(
1155-
:operation => :list_fleet_instrumented_pods,
1156-
:header_params => header_params,
1157-
:query_params => query_params,
1158-
:form_params => form_params,
1159-
:body => post_body,
1160-
:auth_names => auth_names,
1161-
:return_type => return_type,
1162-
:api_version => "V2"
1163-
)
1164-
1165-
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
1166-
if @api_client.config.debugging
1167-
@api_client.config.logger.debug "API called: FleetAutomationAPI#list_fleet_instrumented_pods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1168-
end
1169-
return data, status_code, headers
1170-
end
1171-
11721005
# List all schedules.
11731006
#
11741007
# @see #list_fleet_schedules_with_http_info

0 commit comments

Comments
 (0)