Skip to content

Commit d028084

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit aeb956c4 of spec repo
1 parent c6351fb commit d028084

File tree

10 files changed

+54
-4
lines changed

10 files changed

+54
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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": "2024-11-04 17:58:13.167732",
8-
"spec_repo_commit": "6ffe013b"
7+
"regenerated": "2024-11-04 18:34:33.238993",
8+
"spec_repo_commit": "aeb956c4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-04 17:58:13.187613",
13-
"spec_repo_commit": "6ffe013b"
12+
"regenerated": "2024-11-04 18:34:33.257596",
13+
"spec_repo_commit": "aeb956c4"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-10-21T20:05:58.636Z

cassettes/features/v2/security_monitoring/List-findings-with-detection-type-query-param-returns-OK-response.yml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# List findings with detection_type query param returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_findings".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
8+
opts = {
9+
filter_vulnerability_type: [
10+
FindingVulnerabilityType::MISCONFIGURATION,
11+
FindingVulnerabilityType::ATTACK_PATH,
12+
],
13+
}
14+
p api_instance.list_findings(opts)

features/v2/security_monitoring.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@ Feature: Security Monitoring
485485
When the request with pagination is sent
486486
Then the response status is 200 OK
487487

488+
@skip-terraform-config @team:DataDog/cloud-security-posture-management
489+
Scenario: List findings with detection_type query param returns "OK" response
490+
Given operation "ListFindings" enabled
491+
And new "ListFindings" request
492+
And request contains "filter[vulnerability_type]" parameter with value ["misconfiguration", "attack_path"]
493+
When the request is sent
494+
Then the response status is 200 OK
495+
488496
@generated @skip @team:DataDog/k9-cloud-security-platform
489497
Scenario: List rules returns "Bad Request" response
490498
Given new "ListSecurityMonitoringRules" request

lib/datadog_api_client/api_client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def build_request(http_method, path, opts = {})
199199

200200
req_opts[:pem] = File.read(@config.cert_file) if @config.cert_file
201201
req_opts[:pem_password] = File.read(@config.key_file) if @config.key_file
202+
req_opts[:query_string_normalizer] = opts[:query_string_normalizer] if opts[:query_string_normalizer]
202203

203204
opts[:stream_body] = true if opts[:return_type] == 'File'
204205

lib/datadog_api_client/v1/api/synthetics_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ def get_api_test_latest_results_with_http_info(public_id, opts = {})
823823
:return_type => return_type,
824824
:api_version => "V1"
825825
)
826+
new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
826827

827828
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
828829
if @api_client.config.debugging
@@ -1030,6 +1031,7 @@ def get_browser_test_latest_results_with_http_info(public_id, opts = {})
10301031
:return_type => return_type,
10311032
:api_version => "V1"
10321033
)
1034+
new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
10331035

10341036
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
10351037
if @api_client.config.debugging

lib/datadog_api_client/v1/api/usage_metering_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,7 @@ def get_usage_logs_by_index_with_http_info(start_hr, opts = {})
16711671
:return_type => return_type,
16721672
:api_version => "V1"
16731673
)
1674+
new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
16741675

16751676
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
16761677
if @api_client.config.debugging
@@ -2759,6 +2760,7 @@ def get_usage_top_avg_metrics_with_http_info(opts = {})
27592760
:return_type => return_type,
27602761
:api_version => "V1"
27612762
)
2763+
new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
27622764

27632765
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
27642766
if @api_client.config.debugging

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,7 @@ def list_findings_with_http_info(opts = {})
12421242
:return_type => return_type,
12431243
:api_version => "V2"
12441244
)
1245+
new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
12451246

12461247
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
12471248
if @api_client.config.debugging

lib/datadog_api_client/v2/api/teams_api.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ def list_teams_with_http_info(opts = {})
940940
:return_type => return_type,
941941
:api_version => "V2"
942942
)
943+
new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
943944

944945
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
945946
if @api_client.config.debugging

0 commit comments

Comments
 (0)