Skip to content

Commit 9d67a8d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f087b61 of spec repo
1 parent 2d87463 commit 9d67a8d

22 files changed

+840
-35
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 114 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24779,6 +24779,30 @@ components:
2477924779
required:
2478024780
- data
2478124781
type: object
24782+
GetSuppressionVersionHistoryData:
24783+
description: Data for the suppression version history.
24784+
properties:
24785+
attributes:
24786+
$ref: '#/components/schemas/SuppressionVersionHistory'
24787+
id:
24788+
description: ID of the suppression.
24789+
type: string
24790+
type:
24791+
$ref: '#/components/schemas/GetSuppressionVersionHistoryDataType'
24792+
type: object
24793+
GetSuppressionVersionHistoryDataType:
24794+
description: Type of data.
24795+
enum:
24796+
- suppression_version_history
24797+
type: string
24798+
x-enum-varnames:
24799+
- SUPPRESSIONVERSIONHISTORY
24800+
GetSuppressionVersionHistoryResponse:
24801+
description: Response for getting the suppression version history.
24802+
properties:
24803+
data:
24804+
$ref: '#/components/schemas/GetSuppressionVersionHistoryData'
24805+
type: object
2478224806
GetTeamMembershipsSort:
2478324807
description: Specifies the order of returned team memberships
2478424808
enum:
@@ -44235,38 +44259,13 @@ components:
4423544259
description: The `RuleVersionHistory` `data`.
4423644260
type: object
4423744261
type: object
44238-
RuleVersionUpdate:
44239-
description: A change in a rule version.
44240-
properties:
44241-
change:
44242-
description: The new value of the field.
44243-
example: cloud_provider:aws
44244-
type: string
44245-
field:
44246-
description: The field that was changed.
44247-
example: Tags
44248-
type: string
44249-
type:
44250-
$ref: '#/components/schemas/RuleVersionUpdateType'
44251-
type: object
44252-
RuleVersionUpdateType:
44253-
description: The type of change.
44254-
enum:
44255-
- create
44256-
- update
44257-
- delete
44258-
type: string
44259-
x-enum-varnames:
44260-
- CREATE
44261-
- UPDATE
44262-
- DELETE
4426344262
RuleVersions:
4426444263
description: A rule version with a list of updates.
4426544264
properties:
4426644265
changes:
4426744266
description: A list of changes.
4426844267
items:
44269-
$ref: '#/components/schemas/RuleVersionUpdate'
44268+
$ref: '#/components/schemas/VersionHistoryUpdate'
4427044269
type: array
4427144270
rule:
4427244271
$ref: '#/components/schemas/SecurityMonitoringRuleResponse'
@@ -52826,6 +52825,32 @@ components:
5282652825
format: double
5282752826
type: number
5282852827
type: object
52828+
SuppressionVersionHistory:
52829+
description: Response object containing the version history of a suppression.
52830+
properties:
52831+
count:
52832+
description: The number of suppression versions.
52833+
format: int32
52834+
maximum: 2147483647
52835+
type: integer
52836+
data:
52837+
additionalProperties:
52838+
$ref: '#/components/schemas/SuppressionVersions'
52839+
description: A suppression version with a list of updates.
52840+
description: The version history of a suppression.
52841+
type: object
52842+
type: object
52843+
SuppressionVersions:
52844+
description: A suppression version with a list of updates.
52845+
properties:
52846+
changes:
52847+
description: A list of changes.
52848+
items:
52849+
$ref: '#/components/schemas/VersionHistoryUpdate'
52850+
type: array
52851+
suppression:
52852+
$ref: '#/components/schemas/SecurityMonitoringSuppressionAttributes'
52853+
type: object
5282952854
TableResultV2:
5283052855
description: A reference table resource containing its full configuration and
5283152856
state.
@@ -57156,6 +57181,31 @@ components:
5715657181
example: 1
5715757182
format: int64
5715857183
type: integer
57184+
VersionHistoryUpdate:
57185+
description: A change in a rule version.
57186+
properties:
57187+
change:
57188+
description: The new value of the field.
57189+
example: cloud_provider:aws
57190+
type: string
57191+
field:
57192+
description: The field that was changed.
57193+
example: Tags
57194+
type: string
57195+
type:
57196+
$ref: '#/components/schemas/VersionHistoryUpdateType'
57197+
type: object
57198+
VersionHistoryUpdateType:
57199+
description: The type of change.
57200+
enum:
57201+
- create
57202+
- update
57203+
- delete
57204+
type: string
57205+
x-enum-varnames:
57206+
- CREATE
57207+
- UPDATE
57208+
- DELETE
5715957209
VirusTotalAPIKey:
5716057210
description: The definition of the `VirusTotalAPIKey` object.
5716157211
properties:
@@ -69009,6 +69059,9 @@ paths:
6900969059
operator: OR
6901069060
permissions:
6901169061
- incident_read
69062+
x-unstable: '**Note**: This endpoint is in Preview.
69063+
69064+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6901269065
post:
6901369066
description: Create an impact for an incident.
6901469067
operationId: CreateIncidentImpact
@@ -69052,6 +69105,9 @@ paths:
6905269105
operator: OR
6905369106
permissions:
6905469107
- incident_write
69108+
x-unstable: '**Note**: This endpoint is in Preview.
69109+
69110+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6905569111
/api/v2/incidents/{incident_id}/impacts/{impact_id}:
6905669112
delete:
6905769113
description: Delete an incident impact.
@@ -69082,6 +69138,9 @@ paths:
6908269138
operator: OR
6908369139
permissions:
6908469140
- incident_write
69141+
x-unstable: '**Note**: This endpoint is in Preview.
69142+
69143+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6908569144
/api/v2/incidents/{incident_id}/relationships/integrations:
6908669145
get:
6908769146
description: Get all integration metadata for an incident.
@@ -81986,6 +82045,35 @@ paths:
8198682045
summary: Update a suppression rule
8198782046
tags:
8198882047
- Security Monitoring
82048+
/api/v2/security_monitoring/configuration/suppressions/{suppression_id}/version_history:
82049+
get:
82050+
description: Get a suppression's version history.
82051+
operationId: GetSuppressionVersionHistory
82052+
parameters:
82053+
- $ref: '#/components/parameters/SecurityMonitoringSuppressionID'
82054+
- $ref: '#/components/parameters/PageSize'
82055+
- $ref: '#/components/parameters/PageNumber'
82056+
responses:
82057+
'200':
82058+
content:
82059+
application/json:
82060+
schema:
82061+
$ref: '#/components/schemas/GetSuppressionVersionHistoryResponse'
82062+
description: OK
82063+
'403':
82064+
$ref: '#/components/responses/NotAuthorizedResponse'
82065+
'404':
82066+
$ref: '#/components/responses/NotFoundResponse'
82067+
'429':
82068+
$ref: '#/components/responses/TooManyRequestsResponse'
82069+
security:
82070+
- apiKeyAuth: []
82071+
appKeyAuth: []
82072+
- AuthZ:
82073+
- security_monitoring_suppressions_read
82074+
summary: Get a suppression's version history
82075+
tags:
82076+
- Security Monitoring
8198982077
/api/v2/security_monitoring/rules:
8199082078
get:
8199182079
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/incidents.feature

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,14 +806,16 @@ Feature: Incidents
806806

807807
@generated @skip @team:DataDog/incident-app
808808
Scenario: List an incident's impacts returns "Bad Request" response
809-
Given new "ListIncidentImpacts" request
809+
Given operation "ListIncidentImpacts" enabled
810+
And new "ListIncidentImpacts" request
810811
And request contains "incident_id" parameter from "REPLACE.ME"
811812
When the request is sent
812813
Then the response status is 400 Bad Request
813814

814815
@generated @skip @team:DataDog/incident-app
815816
Scenario: List an incident's impacts returns "Not Found" response
816-
Given new "ListIncidentImpacts" request
817+
Given operation "ListIncidentImpacts" enabled
818+
And new "ListIncidentImpacts" request
817819
And request contains "incident_id" parameter from "REPLACE.ME"
818820
When the request is sent
819821
Then the response status is 404 Not Found

features/v2/security_monitoring.feature

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

1023+
@team:DataDog/k9-cloud-security-platform
1024+
Scenario: Get a suppression's version history returns "Not Found" response
1025+
Given new "GetSuppressionVersionHistory" request
1026+
And request contains "suppression_id" parameter with value "this-does-not-exist"
1027+
When the request is sent
1028+
Then the response status is 404 Not Found
1029+
1030+
@team:DataDog/k9-cloud-security-platform
1031+
Scenario: Get a suppression's version history returns "OK" response
1032+
Given new "GetSuppressionVersionHistory" request
1033+
And there is a valid "suppression" in the system
1034+
And request contains "suppression_id" parameter from "suppression.data.id"
1035+
When the request is sent
1036+
Then the response status is 200 OK
1037+
10231038
@team:DataDog/k9-cloud-security-platform
10241039
Scenario: Get all security filters returns "OK" response
10251040
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": {

0 commit comments

Comments
 (0)