Skip to content

Commit a859afd

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 628848e of spec repo
1 parent 2348f30 commit a859afd

19 files changed

+806
-33
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 105 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24799,6 +24799,30 @@ components:
2479924799
required:
2480024800
- data
2480124801
type: object
24802+
GetSuppressionVersionHistoryData:
24803+
description: Data for the suppression version history.
24804+
properties:
24805+
attributes:
24806+
$ref: '#/components/schemas/SuppressionVersionHistory'
24807+
id:
24808+
description: ID of the suppression.
24809+
type: string
24810+
type:
24811+
$ref: '#/components/schemas/GetSuppressionVersionHistoryDataType'
24812+
type: object
24813+
GetSuppressionVersionHistoryDataType:
24814+
description: Type of data.
24815+
enum:
24816+
- suppression_version_history
24817+
type: string
24818+
x-enum-varnames:
24819+
- SUPPRESSIONVERSIONHISTORY
24820+
GetSuppressionVersionHistoryResponse:
24821+
description: Response for getting the suppression version history.
24822+
properties:
24823+
data:
24824+
$ref: '#/components/schemas/GetSuppressionVersionHistoryData'
24825+
type: object
2480224826
GetTeamMembershipsSort:
2480324827
description: Specifies the order of returned team memberships
2480424828
enum:
@@ -44253,38 +44277,13 @@ components:
4425344277
description: The `RuleVersionHistory` `data`.
4425444278
type: object
4425544279
type: object
44256-
RuleVersionUpdate:
44257-
description: A change in a rule version.
44258-
properties:
44259-
change:
44260-
description: The new value of the field.
44261-
example: cloud_provider:aws
44262-
type: string
44263-
field:
44264-
description: The field that was changed.
44265-
example: Tags
44266-
type: string
44267-
type:
44268-
$ref: '#/components/schemas/RuleVersionUpdateType'
44269-
type: object
44270-
RuleVersionUpdateType:
44271-
description: The type of change.
44272-
enum:
44273-
- create
44274-
- update
44275-
- delete
44276-
type: string
44277-
x-enum-varnames:
44278-
- CREATE
44279-
- UPDATE
44280-
- DELETE
4428144280
RuleVersions:
4428244281
description: A rule version with a list of updates.
4428344282
properties:
4428444283
changes:
4428544284
description: A list of changes.
4428644285
items:
44287-
$ref: '#/components/schemas/RuleVersionUpdate'
44286+
$ref: '#/components/schemas/VersionHistoryUpdate'
4428844287
type: array
4428944288
rule:
4429044289
$ref: '#/components/schemas/SecurityMonitoringRuleResponse'
@@ -52844,6 +52843,32 @@ components:
5284452843
format: double
5284552844
type: number
5284652845
type: object
52846+
SuppressionVersionHistory:
52847+
description: Response object containing the version history of a suppression.
52848+
properties:
52849+
count:
52850+
description: The number of suppression versions.
52851+
format: int32
52852+
maximum: 2147483647
52853+
type: integer
52854+
data:
52855+
additionalProperties:
52856+
$ref: '#/components/schemas/SuppressionVersions'
52857+
description: A suppression version with a list of updates.
52858+
description: The version history of a suppression.
52859+
type: object
52860+
type: object
52861+
SuppressionVersions:
52862+
description: A suppression version with a list of updates.
52863+
properties:
52864+
changes:
52865+
description: A list of changes.
52866+
items:
52867+
$ref: '#/components/schemas/VersionHistoryUpdate'
52868+
type: array
52869+
suppression:
52870+
$ref: '#/components/schemas/SecurityMonitoringSuppressionAttributes'
52871+
type: object
5284752872
TableResultV2:
5284852873
description: A reference table resource containing its full configuration and
5284952874
state.
@@ -57174,6 +57199,31 @@ components:
5717457199
example: 1
5717557200
format: int64
5717657201
type: integer
57202+
VersionHistoryUpdate:
57203+
description: A change in a rule version.
57204+
properties:
57205+
change:
57206+
description: The new value of the field.
57207+
example: cloud_provider:aws
57208+
type: string
57209+
field:
57210+
description: The field that was changed.
57211+
example: Tags
57212+
type: string
57213+
type:
57214+
$ref: '#/components/schemas/VersionHistoryUpdateType'
57215+
type: object
57216+
VersionHistoryUpdateType:
57217+
description: The type of change.
57218+
enum:
57219+
- create
57220+
- update
57221+
- delete
57222+
type: string
57223+
x-enum-varnames:
57224+
- CREATE
57225+
- UPDATE
57226+
- DELETE
5717757227
VirusTotalAPIKey:
5717857228
description: The definition of the `VirusTotalAPIKey` object.
5717957229
properties:
@@ -82001,6 +82051,35 @@ paths:
8200182051
summary: Update a suppression rule
8200282052
tags:
8200382053
- Security Monitoring
82054+
/api/v2/security_monitoring/configuration/suppressions/{suppression_id}/version_history:
82055+
get:
82056+
description: Get a suppression's version history.
82057+
operationId: GetSuppressionVersionHistory
82058+
parameters:
82059+
- $ref: '#/components/parameters/SecurityMonitoringSuppressionID'
82060+
- $ref: '#/components/parameters/PageSize'
82061+
- $ref: '#/components/parameters/PageNumber'
82062+
responses:
82063+
'200':
82064+
content:
82065+
application/json:
82066+
schema:
82067+
$ref: '#/components/schemas/GetSuppressionVersionHistoryResponse'
82068+
description: OK
82069+
'403':
82070+
$ref: '#/components/responses/NotAuthorizedResponse'
82071+
'404':
82072+
$ref: '#/components/responses/NotFoundResponse'
82073+
'429':
82074+
$ref: '#/components/responses/TooManyRequestsResponse'
82075+
security:
82076+
- apiKeyAuth: []
82077+
appKeyAuth: []
82078+
- AuthZ:
82079+
- security_monitoring_suppressions_read
82080+
summary: Get a suppression's version history
82081+
tags:
82082+
- Security Monitoring
8200482083
/api/v2/security_monitoring/rules:
8200582084
get:
8200682085
description: List rules.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-11-26T13:33:06.081Z

cassettes/features/v2/security_monitoring/Get-a-suppression-s-version-history-returns-Not-Found-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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-11-26T13:33:06.482Z

cassettes/features/v2/security_monitoring/Get-a-suppression-s-version-history-returns-OK-response.yml

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Get a suppression's version history returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5+
6+
# there is a valid "suppression" in the system
7+
SUPPRESSION_DATA_ID = ENV["SUPPRESSION_DATA_ID"]
8+
p api_instance.get_suppression_version_history(SUPPRESSION_DATA_ID)

features/scenarios_model_mapping.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,11 @@
15511551
"suppression_id" => "String",
15521552
"body" => "SecurityMonitoringSuppressionUpdateRequest",
15531553
},
1554+
"v2.GetSuppressionVersionHistory" => {
1555+
"suppression_id" => "String",
1556+
"page_size" => "Integer",
1557+
"page_number" => "Integer",
1558+
},
15541559
"v2.ListSecurityMonitoringRules" => {
15551560
"page_size" => "Integer",
15561561
"page_number" => "Integer",

features/v2/security_monitoring.feature

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,21 @@ Feature: Security Monitoring
10681068
And the response "data.attributes.rule_query" has the same value as "suppression.data.attributes.rule_query"
10691069
And the response "data.attributes.suppression_query" is equal to "env:test"
10701070

1071+
@team:DataDog/k9-cloud-security-platform
1072+
Scenario: Get a suppression's version history returns "Not Found" response
1073+
Given new "GetSuppressionVersionHistory" request
1074+
And request contains "suppression_id" parameter with value "this-does-not-exist"
1075+
When the request is sent
1076+
Then the response status is 404 Not Found
1077+
1078+
@team:DataDog/k9-cloud-security-platform
1079+
Scenario: Get a suppression's version history returns "OK" response
1080+
Given new "GetSuppressionVersionHistory" request
1081+
And there is a valid "suppression" in the system
1082+
And request contains "suppression_id" parameter from "suppression.data.id"
1083+
When the request is sent
1084+
Then the response status is 200 OK
1085+
10711086
@team:DataDog/k9-cloud-security-platform
10721087
Scenario: Get all security filters returns "OK" response
10731088
Given new "ListSecurityFilters" request

features/v2/undo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3979,6 +3979,12 @@
39793979
"type": "idempotent"
39803980
}
39813981
},
3982+
"GetSuppressionVersionHistory": {
3983+
"tag": "Security Monitoring",
3984+
"undo": {
3985+
"type": "safe"
3986+
}
3987+
},
39823988
"ListSecurityMonitoringRules": {
39833989
"tag": "Security Monitoring",
39843990
"undo": {

lib/datadog_api_client/inflector.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,6 +2440,9 @@ def overrides
24402440
"v2.get_rule_version_history_data_type" => "GetRuleVersionHistoryDataType",
24412441
"v2.get_rule_version_history_response" => "GetRuleVersionHistoryResponse",
24422442
"v2.get_sbom_response" => "GetSBOMResponse",
2443+
"v2.get_suppression_version_history_data" => "GetSuppressionVersionHistoryData",
2444+
"v2.get_suppression_version_history_data_type" => "GetSuppressionVersionHistoryDataType",
2445+
"v2.get_suppression_version_history_response" => "GetSuppressionVersionHistoryResponse",
24432446
"v2.get_team_memberships_sort" => "GetTeamMembershipsSort",
24442447
"v2.get_workflow_response" => "GetWorkflowResponse",
24452448
"v2.github_webhook_trigger" => "GithubWebhookTrigger",
@@ -3716,8 +3719,6 @@ def overrides
37163719
"v2.rule_user" => "RuleUser",
37173720
"v2.rule_version_history" => "RuleVersionHistory",
37183721
"v2.rule_versions" => "RuleVersions",
3719-
"v2.rule_version_update" => "RuleVersionUpdate",
3720-
"v2.rule_version_update_type" => "RuleVersionUpdateType",
37213722
"v2.rum_aggregate_bucket_value" => "RUMAggregateBucketValue",
37223723
"v2.rum_aggregate_bucket_value_timeseries_point" => "RUMAggregateBucketValueTimeseriesPoint",
37233724
"v2.rum_aggregate_request" => "RUMAggregateRequest",
@@ -4275,6 +4276,8 @@ def overrides
42754276
"v2.step" => "Step",
42764277
"v2.step_display" => "StepDisplay",
42774278
"v2.step_display_bounds" => "StepDisplayBounds",
4279+
"v2.suppression_version_history" => "SuppressionVersionHistory",
4280+
"v2.suppression_versions" => "SuppressionVersions",
42784281
"v2.table_result_v2" => "TableResultV2",
42794282
"v2.table_result_v2_array" => "TableResultV2Array",
42804283
"v2.table_result_v2_data" => "TableResultV2Data",
@@ -4561,6 +4564,8 @@ def overrides
45614564
"v2.validation_error" => "ValidationError",
45624565
"v2.validation_error_meta" => "ValidationErrorMeta",
45634566
"v2.validation_response" => "ValidationResponse",
4567+
"v2.version_history_update" => "VersionHistoryUpdate",
4568+
"v2.version_history_update_type" => "VersionHistoryUpdateType",
45644569
"v2.virus_total_api_key" => "VirusTotalAPIKey",
45654570
"v2.virus_total_api_key_type" => "VirusTotalAPIKeyType",
45664571
"v2.virus_total_api_key_update" => "VirusTotalAPIKeyUpdate",

0 commit comments

Comments
 (0)