Skip to content

Commit d2ce262

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 35fc061 of spec repo (DataDog#3462)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 5de8ac9 commit d2ce262

18 files changed

Lines changed: 0 additions & 1345 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 171 deletions
Original file line numberDiff line numberDiff line change
@@ -13090,99 +13090,6 @@ components:
1309013090
type: string
1309113091
x-enum-varnames:
1309213092
- ITEMS
13093-
BulkMuteFindingsRequest:
13094-
description: The new bulk mute finding request.
13095-
properties:
13096-
data:
13097-
$ref: "#/components/schemas/BulkMuteFindingsRequestData"
13098-
required:
13099-
- data
13100-
type: object
13101-
BulkMuteFindingsRequestAttributes:
13102-
additionalProperties: false
13103-
description: The mute properties to be updated.
13104-
properties:
13105-
mute:
13106-
$ref: "#/components/schemas/BulkMuteFindingsRequestProperties"
13107-
required:
13108-
- mute
13109-
type: object
13110-
BulkMuteFindingsRequestData:
13111-
description: Data object containing the new bulk mute properties of the finding.
13112-
properties:
13113-
attributes:
13114-
$ref: "#/components/schemas/BulkMuteFindingsRequestAttributes"
13115-
id:
13116-
description: UUID to identify the request
13117-
example: dbe5f567-192b-4404-b908-29b70e1c9f76
13118-
type: string
13119-
meta:
13120-
$ref: "#/components/schemas/BulkMuteFindingsRequestMeta"
13121-
type:
13122-
$ref: "#/components/schemas/FindingType"
13123-
required:
13124-
- id
13125-
- type
13126-
- attributes
13127-
- meta
13128-
type: object
13129-
BulkMuteFindingsRequestMeta:
13130-
description: Meta object containing the findings to be updated.
13131-
properties:
13132-
findings:
13133-
description: Array of findings.
13134-
items:
13135-
$ref: "#/components/schemas/BulkMuteFindingsRequestMetaFindings"
13136-
type: array
13137-
type: object
13138-
BulkMuteFindingsRequestMetaFindings:
13139-
description: Finding object containing the finding information.
13140-
properties:
13141-
finding_id:
13142-
$ref: "#/components/schemas/FindingID"
13143-
type: object
13144-
BulkMuteFindingsRequestProperties:
13145-
additionalProperties: false
13146-
description: Object containing the new mute properties of the findings.
13147-
properties:
13148-
description:
13149-
description: Additional information about the reason why those findings are muted or unmuted. This field has a maximum limit of 280 characters.
13150-
type: string
13151-
expiration_date:
13152-
description: |-
13153-
The expiration date of the mute or unmute action (Unix ms). It must be set to a value greater than the current timestamp.
13154-
If this field is not provided, the finding will be muted or unmuted indefinitely, which is equivalent to setting the expiration date to 9999999999999.
13155-
example: 1778721573794
13156-
format: int64
13157-
type: integer
13158-
muted:
13159-
description: Whether those findings should be muted or unmuted.
13160-
example: true
13161-
type: boolean
13162-
reason:
13163-
$ref: "#/components/schemas/FindingMuteReason"
13164-
required:
13165-
- muted
13166-
- reason
13167-
type: object
13168-
BulkMuteFindingsResponse:
13169-
description: The expected response schema.
13170-
properties:
13171-
data:
13172-
$ref: "#/components/schemas/BulkMuteFindingsResponseData"
13173-
required:
13174-
- data
13175-
type: object
13176-
BulkMuteFindingsResponseData:
13177-
description: Data object containing the ID of the request that was updated.
13178-
properties:
13179-
id:
13180-
description: UUID used to identify the request
13181-
example: 93bfeb70-af47-424d-908a-948d3f08e37f
13182-
type: string
13183-
type:
13184-
$ref: "#/components/schemas/FindingType"
13185-
type: object
1318613093
BulkPutAppsDatastoreItemsRequest:
1318713094
description: Request to insert multiple items into a datastore in a single operation.
1318813095
properties:
@@ -156922,84 +156829,6 @@ paths:
156922156829
Use the [search security findings endpoint](https://docs.datadoghq.com/api/latest/security-monitoring/#search-security-findings),
156923156830
which is based on the [new security findings schema](https://docs.datadoghq.com/security/guide/findings-schema/), to search security findings.
156924156831
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
156925-
patch:
156926-
description: |-
156927-
Mute or unmute findings.
156928-
operationId: MuteFindings
156929-
requestBody:
156930-
content:
156931-
application/json:
156932-
examples:
156933-
default:
156934-
value:
156935-
data:
156936-
attributes:
156937-
mute:
156938-
expiration_date: 1778721573794
156939-
muted: true
156940-
reason: ACCEPTED_RISK
156941-
id: dbe5f567-192b-4404-b908-29b70e1c9f76
156942-
meta:
156943-
findings:
156944-
- finding_id: ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==
156945-
type: finding
156946-
schema:
156947-
$ref: "#/components/schemas/BulkMuteFindingsRequest"
156948-
description: |-
156949-
### Attributes
156950-
156951-
All findings are updated with the same attributes. The request body must include at least two attributes: `muted` and `reason`.
156952-
The allowed reasons depend on whether the finding is being muted or unmuted:
156953-
- To mute a finding: `PENDING_FIX`, `FALSE_POSITIVE`, `ACCEPTED_RISK`, `OTHER`.
156954-
- To unmute a finding : `NO_PENDING_FIX`, `HUMAN_ERROR`, `NO_LONGER_ACCEPTED_RISK`, `OTHER`.
156955-
156956-
### Meta
156957-
156958-
The request body must include a list of the finding IDs to be updated.
156959-
required: true
156960-
responses:
156961-
"200":
156962-
content:
156963-
application/json:
156964-
examples:
156965-
default:
156966-
value:
156967-
data:
156968-
id: abc-123
156969-
type: finding
156970-
schema:
156971-
$ref: "#/components/schemas/BulkMuteFindingsResponse"
156972-
description: OK
156973-
"400":
156974-
$ref: "#/components/responses/FindingsBadRequestResponse"
156975-
"403":
156976-
$ref: "#/components/responses/FindingsForbiddenResponse"
156977-
"404":
156978-
$ref: "#/components/responses/FindingsNotFoundResponse"
156979-
"422":
156980-
content:
156981-
application/json:
156982-
schema:
156983-
$ref: "#/components/schemas/JSONAPIErrorResponse"
156984-
description: "Invalid Request: The server understands the request syntax but cannot process it due to invalid data."
156985-
"429":
156986-
$ref: "#/components/responses/FindingsTooManyRequestsResponse"
156987-
security:
156988-
- apiKeyAuth: []
156989-
appKeyAuth: []
156990-
- AuthZ: []
156991-
summary: Mute or unmute a batch of findings
156992-
tags:
156993-
- "Security Monitoring"
156994-
x-codegen-request-body-name: body
156995-
"x-permission":
156996-
operator: OR
156997-
permissions:
156998-
- security_monitoring_findings_write
156999-
- appsec_vm_write
157000-
x-unstable: |-
157001-
**Note**: This endpoint is in public beta.
157002-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
157003156832
/api/v2/posture_management/findings/{finding_id}:
157004156833
get:
157005156834
description: Returns a single finding with message and resource configuration.

cassettes/features/v2/security_monitoring/Mute-or-unmute-a-batch-of-findings-returns-OK-response.frozen

Lines changed: 0 additions & 1 deletion
This file was deleted.

cassettes/features/v2/security_monitoring/Mute-or-unmute-a-batch-of-findings-returns-OK-response.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/v2/security-monitoring/MuteFindings.rb

Lines changed: 0 additions & 29 deletions
This file was deleted.

features/scenarios_model_mapping.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,9 +2035,6 @@
20352035
"filter_vulnerability_type" => "Array<FindingVulnerabilityType>",
20362036
"detailed_findings" => "Boolean",
20372037
},
2038-
"v2.MuteFindings" => {
2039-
"body" => "BulkMuteFindingsRequest",
2040-
},
20412038
"v2.GetFinding" => {
20422039
"finding_id" => "String",
20432040
"snapshot_timestamp" => "Integer",

features/v2/security_monitoring.feature

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,38 +2383,6 @@ Feature: Security Monitoring
23832383
When the request is sent
23842384
Then the response status is 200 OK
23852385

2386-
@generated @skip @team:DataDog/cloud-security-posture-management
2387-
Scenario: Mute or unmute a batch of findings returns "Bad Request: The server cannot process the request due to invalid syntax in the request." response
2388-
Given operation "MuteFindings" enabled
2389-
And new "MuteFindings" request
2390-
And body with value {"data": {"attributes": {"mute": {"expiration_date": 1778721573794, "muted": true, "reason": "ACCEPTED_RISK"}}, "id": "dbe5f567-192b-4404-b908-29b70e1c9f76", "meta": {"findings": [{"finding_id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw=="}]}, "type": "finding"}}
2391-
When the request is sent
2392-
Then the response status is 400 Bad Request: The server cannot process the request due to invalid syntax in the request.
2393-
2394-
@generated @skip @team:DataDog/cloud-security-posture-management
2395-
Scenario: Mute or unmute a batch of findings returns "Invalid Request: The server understands the request syntax but cannot process it due to invalid data." response
2396-
Given operation "MuteFindings" enabled
2397-
And new "MuteFindings" request
2398-
And body with value {"data": {"attributes": {"mute": {"expiration_date": 1778721573794, "muted": true, "reason": "ACCEPTED_RISK"}}, "id": "dbe5f567-192b-4404-b908-29b70e1c9f76", "meta": {"findings": [{"finding_id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw=="}]}, "type": "finding"}}
2399-
When the request is sent
2400-
Then the response status is 422 Invalid Request: The server understands the request syntax but cannot process it due to invalid data.
2401-
2402-
@generated @skip @team:DataDog/cloud-security-posture-management
2403-
Scenario: Mute or unmute a batch of findings returns "Not Found: The requested finding cannot be found." response
2404-
Given operation "MuteFindings" enabled
2405-
And new "MuteFindings" request
2406-
And body with value {"data": {"attributes": {"mute": {"expiration_date": 1778721573794, "muted": true, "reason": "ACCEPTED_RISK"}}, "id": "dbe5f567-192b-4404-b908-29b70e1c9f76", "meta": {"findings": [{"finding_id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw=="}]}, "type": "finding"}}
2407-
When the request is sent
2408-
Then the response status is 404 Not Found: The requested finding cannot be found.
2409-
2410-
@replay-only @team:DataDog/cloud-security-posture-management
2411-
Scenario: Mute or unmute a batch of findings returns "OK" response
2412-
Given operation "MuteFindings" enabled
2413-
And new "MuteFindings" request
2414-
And body with value {"data": {"attributes": {"mute": {"expiration_date": 1778721573794, "muted": true, "reason": "ACCEPTED_RISK"}}, "id": "dbe5f567-192b-4404-b908-29b70e1c9f76", "meta": {"findings":[{"finding_id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw=="}]}, "type": "finding"}}
2415-
When the request is sent
2416-
Then the response status is 200 OK
2417-
24182386
@generated @skip @team:DataDog/k9-investigation
24192387
Scenario: Mute or unmute security findings returns "Accepted" response
24202388
Given new "MuteSecurityFindings" request

features/v2/undo.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5864,12 +5864,6 @@
58645864
"type": "safe"
58655865
}
58665866
},
5867-
"MuteFindings": {
5868-
"tag": "Security Monitoring",
5869-
"undo": {
5870-
"type": "safe"
5871-
}
5872-
},
58735867
"GetFinding": {
58745868
"tag": "Security Monitoring",
58755869
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ def initialize
387387
"v2.list_static_analysis_codegen_rulesets": false,
388388
"v2.list_vulnerabilities": false,
389389
"v2.list_vulnerable_assets": false,
390-
"v2.mute_findings": false,
391390
"v2.restore_security_monitoring_rule": false,
392391
"v2.run_historical_job": false,
393392
"v2.search_security_monitoring_histsignals": false,

lib/datadog_api_client/inflector.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,14 +1782,6 @@ def overrides
17821782
"v2.bulk_delete_apps_datastore_items_request_data" => "BulkDeleteAppsDatastoreItemsRequestData",
17831783
"v2.bulk_delete_apps_datastore_items_request_data_attributes" => "BulkDeleteAppsDatastoreItemsRequestDataAttributes",
17841784
"v2.bulk_delete_apps_datastore_items_request_data_type" => "BulkDeleteAppsDatastoreItemsRequestDataType",
1785-
"v2.bulk_mute_findings_request" => "BulkMuteFindingsRequest",
1786-
"v2.bulk_mute_findings_request_attributes" => "BulkMuteFindingsRequestAttributes",
1787-
"v2.bulk_mute_findings_request_data" => "BulkMuteFindingsRequestData",
1788-
"v2.bulk_mute_findings_request_meta" => "BulkMuteFindingsRequestMeta",
1789-
"v2.bulk_mute_findings_request_meta_findings" => "BulkMuteFindingsRequestMetaFindings",
1790-
"v2.bulk_mute_findings_request_properties" => "BulkMuteFindingsRequestProperties",
1791-
"v2.bulk_mute_findings_response" => "BulkMuteFindingsResponse",
1792-
"v2.bulk_mute_findings_response_data" => "BulkMuteFindingsResponseData",
17931785
"v2.bulk_put_apps_datastore_items_request" => "BulkPutAppsDatastoreItemsRequest",
17941786
"v2.bulk_put_apps_datastore_items_request_data" => "BulkPutAppsDatastoreItemsRequestData",
17951787
"v2.bulk_put_apps_datastore_items_request_data_attributes" => "BulkPutAppsDatastoreItemsRequestDataAttributes",

0 commit comments

Comments
 (0)