Skip to content

Commit 1644e45

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 17c1a58 of spec repo
1 parent 57769e1 commit 1644e45

20 files changed

+808
-33
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 106 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:
@@ -44255,38 +44279,13 @@ components:
4425544279
description: The `RuleVersionHistory` `data`.
4425644280
type: object
4425744281
type: object
44258-
RuleVersionUpdate:
44259-
description: A change in a rule version.
44260-
properties:
44261-
change:
44262-
description: The new value of the field.
44263-
example: cloud_provider:aws
44264-
type: string
44265-
field:
44266-
description: The field that was changed.
44267-
example: Tags
44268-
type: string
44269-
type:
44270-
$ref: '#/components/schemas/RuleVersionUpdateType'
44271-
type: object
44272-
RuleVersionUpdateType:
44273-
description: The type of change.
44274-
enum:
44275-
- create
44276-
- update
44277-
- delete
44278-
type: string
44279-
x-enum-varnames:
44280-
- CREATE
44281-
- UPDATE
44282-
- DELETE
4428344282
RuleVersions:
4428444283
description: A rule version with a list of updates.
4428544284
properties:
4428644285
changes:
4428744286
description: A list of changes.
4428844287
items:
44289-
$ref: '#/components/schemas/RuleVersionUpdate'
44288+
$ref: '#/components/schemas/VersionHistoryUpdate'
4429044289
type: array
4429144290
rule:
4429244291
$ref: '#/components/schemas/SecurityMonitoringRuleResponse'
@@ -52846,6 +52845,32 @@ components:
5284652845
format: double
5284752846
type: number
5284852847
type: object
52848+
SuppressionVersionHistory:
52849+
description: Response object containing the version history of a suppression.
52850+
properties:
52851+
count:
52852+
description: The number of suppression versions.
52853+
format: int32
52854+
maximum: 2147483647
52855+
type: integer
52856+
data:
52857+
additionalProperties:
52858+
$ref: '#/components/schemas/SuppressionVersions'
52859+
description: A suppression version with a list of updates.
52860+
description: The version history of a suppression.
52861+
type: object
52862+
type: object
52863+
SuppressionVersions:
52864+
description: A suppression version with a list of updates.
52865+
properties:
52866+
changes:
52867+
description: A list of changes.
52868+
items:
52869+
$ref: '#/components/schemas/VersionHistoryUpdate'
52870+
type: array
52871+
suppression:
52872+
$ref: '#/components/schemas/SecurityMonitoringSuppressionAttributes'
52873+
type: object
5284952874
TableResultV2:
5285052875
description: A reference table resource containing its full configuration and
5285152876
state.
@@ -57176,6 +57201,31 @@ components:
5717657201
example: 1
5717757202
format: int64
5717857203
type: integer
57204+
VersionHistoryUpdate:
57205+
description: A change in a rule version.
57206+
properties:
57207+
change:
57208+
description: The new value of the field.
57209+
example: cloud_provider:aws
57210+
type: string
57211+
field:
57212+
description: The field that was changed.
57213+
example: Tags
57214+
type: string
57215+
type:
57216+
$ref: '#/components/schemas/VersionHistoryUpdateType'
57217+
type: object
57218+
VersionHistoryUpdateType:
57219+
description: The type of change.
57220+
enum:
57221+
- create
57222+
- update
57223+
- delete
57224+
type: string
57225+
x-enum-varnames:
57226+
- CREATE
57227+
- UPDATE
57228+
- DELETE
5717957229
VirusTotalAPIKey:
5718057230
description: The definition of the `VirusTotalAPIKey` object.
5718157231
properties:
@@ -67961,6 +68011,7 @@ paths:
6796168011
- us3.datadoghq.com
6796268012
- us5.datadoghq.com
6796368013
- ap1.datadoghq.com
68014+
- ap2.datadoghq.com
6796468015
- datadoghq.eu
6796568016
- ddog-gov.com
6796668017
subdomain:
@@ -82003,6 +82054,35 @@ paths:
8200382054
summary: Update a suppression rule
8200482055
tags:
8200582056
- Security Monitoring
82057+
/api/v2/security_monitoring/configuration/suppressions/{suppression_id}/version_history:
82058+
get:
82059+
description: Get a suppression's version history.
82060+
operationId: GetSuppressionVersionHistory
82061+
parameters:
82062+
- $ref: '#/components/parameters/SecurityMonitoringSuppressionID'
82063+
- $ref: '#/components/parameters/PageSize'
82064+
- $ref: '#/components/parameters/PageNumber'
82065+
responses:
82066+
'200':
82067+
content:
82068+
application/json:
82069+
schema:
82070+
$ref: '#/components/schemas/GetSuppressionVersionHistoryResponse'
82071+
description: OK
82072+
'403':
82073+
$ref: '#/components/responses/NotAuthorizedResponse'
82074+
'404':
82075+
$ref: '#/components/responses/NotFoundResponse'
82076+
'429':
82077+
$ref: '#/components/responses/TooManyRequestsResponse'
82078+
security:
82079+
- apiKeyAuth: []
82080+
appKeyAuth: []
82081+
- AuthZ:
82082+
- security_monitoring_suppressions_read
82083+
summary: Get a suppression's version history
82084+
tags:
82085+
- Security Monitoring
8200682086
/api/v2/security_monitoring/rules:
8200782087
get:
8200882088
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/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ def operation_server_settings
627627
"us3.datadoghq.com",
628628
"us5.datadoghq.com",
629629
"ap1.datadoghq.com",
630+
"ap2.datadoghq.com",
630631
"datadoghq.eu",
631632
"ddog-gov.com"
632633
]

0 commit comments

Comments
 (0)