Skip to content

Commit 479194c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d3ea2d9b of spec repo
1 parent 4c44931 commit 479194c

File tree

7 files changed

+8
-26
lines changed

7 files changed

+8
-26
lines changed

.apigentools-info

+4-4
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": "2025-04-04 20:19:34.024681",
8-
"spec_repo_commit": "3909ab62"
7+
"regenerated": "2025-04-06 16:10:56.726423",
8+
"spec_repo_commit": "d3ea2d9b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-04 20:19:34.040447",
13-
"spec_repo_commit": "3909ab62"
12+
"regenerated": "2025-04-06 16:10:56.743379",
13+
"spec_repo_commit": "d3ea2d9b"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -49266,7 +49266,6 @@ paths:
4926649266
operator: OR
4926749267
permissions:
4926849268
- security_monitoring_rules_read
49269-
x-unstable: '**Note**: This endpoint is in beta and may be subject to changes.'
4927049269
/api/v2/security_monitoring/signals:
4927149270
get:
4927249271
description: 'The list endpoint returns security signals that match a search
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Get a rule's version history returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_rule_version_history".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85
p api_instance.get_rule_version_history("rule_id")

examples/v2/security-monitoring/GetRuleVersionHistory_2467565841.rb

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Get rule version history returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_rule_version_history".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
# there is a valid "security_rule" in the system

features/v2/security_monitoring.feature

+4-8
Original file line numberDiff line numberDiff line change
@@ -604,24 +604,21 @@ Feature: Security Monitoring
604604

605605
@generated @skip @team:DataDog/k9-cloud-security-platform
606606
Scenario: Get a rule's version history returns "Bad Request" response
607-
Given operation "GetRuleVersionHistory" enabled
608-
And new "GetRuleVersionHistory" request
607+
Given new "GetRuleVersionHistory" request
609608
And request contains "rule_id" parameter from "REPLACE.ME"
610609
When the request is sent
611610
Then the response status is 400 Bad Request
612611

613612
@generated @skip @team:DataDog/k9-cloud-security-platform
614613
Scenario: Get a rule's version history returns "Not Found" response
615-
Given operation "GetRuleVersionHistory" enabled
616-
And new "GetRuleVersionHistory" request
614+
Given new "GetRuleVersionHistory" request
617615
And request contains "rule_id" parameter from "REPLACE.ME"
618616
When the request is sent
619617
Then the response status is 404 Not Found
620618

621619
@generated @skip @team:DataDog/k9-cloud-security-platform
622620
Scenario: Get a rule's version history returns "OK" response
623-
Given operation "GetRuleVersionHistory" enabled
624-
And new "GetRuleVersionHistory" request
621+
Given new "GetRuleVersionHistory" request
625622
And request contains "rule_id" parameter from "REPLACE.ME"
626623
When the request is sent
627624
Then the response status is 200 OK
@@ -737,8 +734,7 @@ Feature: Security Monitoring
737734

738735
@skip-go @skip-java @skip-ruby @team:DataDog/k9-cloud-security-platform
739736
Scenario: Get rule version history returns "OK" response
740-
Given operation "GetRuleVersionHistory" enabled
741-
And new "GetRuleVersionHistory" request
737+
Given new "GetRuleVersionHistory" request
742738
And there is a valid "security_rule" in the system
743739
And request contains "rule_id" parameter from "security_rule.id"
744740
When the request is sent

lib/datadog_api_client/configuration.rb

-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ def initialize
236236
"v2.delete_historical_job": false,
237237
"v2.get_finding": false,
238238
"v2.get_historical_job": false,
239-
"v2.get_rule_version_history": false,
240239
"v2.get_sbom": false,
241240
"v2.list_findings": false,
242241
"v2.list_historical_jobs": false,

lib/datadog_api_client/v2/api/security_monitoring_api.rb

-6
Original file line numberDiff line numberDiff line change
@@ -1416,12 +1416,6 @@ def get_rule_version_history(rule_id, opts = {})
14161416
# @option opts [Integer] :page_number Specific page number to return.
14171417
# @return [Array<(GetRuleVersionHistoryResponse, Integer, Hash)>] GetRuleVersionHistoryResponse data, response status code and response headers
14181418
def get_rule_version_history_with_http_info(rule_id, opts = {})
1419-
unstable_enabled = @api_client.config.unstable_operations["v2.get_rule_version_history".to_sym]
1420-
if unstable_enabled
1421-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_rule_version_history")
1422-
else
1423-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_rule_version_history"))
1424-
end
14251419

14261420
if @api_client.config.debugging
14271421
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_rule_version_history ...'

0 commit comments

Comments
 (0)