Skip to content

Commit fac78dd

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit db36d55 of spec repo
1 parent fa8d9ba commit fac78dd

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
@@ -13031,99 +13031,6 @@ components:
1303113031
type: string
1303213032
x-enum-varnames:
1303313033
- ITEMS
13034-
BulkMuteFindingsRequest:
13035-
description: The new bulk mute finding request.
13036-
properties:
13037-
data:
13038-
$ref: "#/components/schemas/BulkMuteFindingsRequestData"
13039-
required:
13040-
- data
13041-
type: object
13042-
BulkMuteFindingsRequestAttributes:
13043-
additionalProperties: false
13044-
description: The mute properties to be updated.
13045-
properties:
13046-
mute:
13047-
$ref: "#/components/schemas/BulkMuteFindingsRequestProperties"
13048-
required:
13049-
- mute
13050-
type: object
13051-
BulkMuteFindingsRequestData:
13052-
description: Data object containing the new bulk mute properties of the finding.
13053-
properties:
13054-
attributes:
13055-
$ref: "#/components/schemas/BulkMuteFindingsRequestAttributes"
13056-
id:
13057-
description: UUID to identify the request
13058-
example: dbe5f567-192b-4404-b908-29b70e1c9f76
13059-
type: string
13060-
meta:
13061-
$ref: "#/components/schemas/BulkMuteFindingsRequestMeta"
13062-
type:
13063-
$ref: "#/components/schemas/FindingType"
13064-
required:
13065-
- id
13066-
- type
13067-
- attributes
13068-
- meta
13069-
type: object
13070-
BulkMuteFindingsRequestMeta:
13071-
description: Meta object containing the findings to be updated.
13072-
properties:
13073-
findings:
13074-
description: Array of findings.
13075-
items:
13076-
$ref: "#/components/schemas/BulkMuteFindingsRequestMetaFindings"
13077-
type: array
13078-
type: object
13079-
BulkMuteFindingsRequestMetaFindings:
13080-
description: Finding object containing the finding information.
13081-
properties:
13082-
finding_id:
13083-
$ref: "#/components/schemas/FindingID"
13084-
type: object
13085-
BulkMuteFindingsRequestProperties:
13086-
additionalProperties: false
13087-
description: Object containing the new mute properties of the findings.
13088-
properties:
13089-
description:
13090-
description: Additional information about the reason why those findings are muted or unmuted. This field has a maximum limit of 280 characters.
13091-
type: string
13092-
expiration_date:
13093-
description: |-
13094-
The expiration date of the mute or unmute action (Unix ms). It must be set to a value greater than the current timestamp.
13095-
If this field is not provided, the finding will be muted or unmuted indefinitely, which is equivalent to setting the expiration date to 9999999999999.
13096-
example: 1778721573794
13097-
format: int64
13098-
type: integer
13099-
muted:
13100-
description: Whether those findings should be muted or unmuted.
13101-
example: true
13102-
type: boolean
13103-
reason:
13104-
$ref: "#/components/schemas/FindingMuteReason"
13105-
required:
13106-
- muted
13107-
- reason
13108-
type: object
13109-
BulkMuteFindingsResponse:
13110-
description: The expected response schema.
13111-
properties:
13112-
data:
13113-
$ref: "#/components/schemas/BulkMuteFindingsResponseData"
13114-
required:
13115-
- data
13116-
type: object
13117-
BulkMuteFindingsResponseData:
13118-
description: Data object containing the ID of the request that was updated.
13119-
properties:
13120-
id:
13121-
description: UUID used to identify the request
13122-
example: 93bfeb70-af47-424d-908a-948d3f08e37f
13123-
type: string
13124-
type:
13125-
$ref: "#/components/schemas/FindingType"
13126-
type: object
1312713034
BulkPutAppsDatastoreItemsRequest:
1312813035
description: Request to insert multiple items into a datastore in a single operation.
1312913036
properties:
@@ -148552,84 +148459,6 @@ paths:
148552148459
Use the [search security findings endpoint](https://docs.datadoghq.com/api/latest/security-monitoring/#search-security-findings),
148553148460
which is based on the [new security findings schema](https://docs.datadoghq.com/security/guide/findings-schema/), to search security findings.
148554148461
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
148555-
patch:
148556-
description: |-
148557-
Mute or unmute findings.
148558-
operationId: MuteFindings
148559-
requestBody:
148560-
content:
148561-
application/json:
148562-
examples:
148563-
default:
148564-
value:
148565-
data:
148566-
attributes:
148567-
mute:
148568-
expiration_date: 1778721573794
148569-
muted: true
148570-
reason: ACCEPTED_RISK
148571-
id: dbe5f567-192b-4404-b908-29b70e1c9f76
148572-
meta:
148573-
findings:
148574-
- finding_id: ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==
148575-
type: finding
148576-
schema:
148577-
$ref: "#/components/schemas/BulkMuteFindingsRequest"
148578-
description: |-
148579-
### Attributes
148580-
148581-
All findings are updated with the same attributes. The request body must include at least two attributes: `muted` and `reason`.
148582-
The allowed reasons depend on whether the finding is being muted or unmuted:
148583-
- To mute a finding: `PENDING_FIX`, `FALSE_POSITIVE`, `ACCEPTED_RISK`, `OTHER`.
148584-
- To unmute a finding : `NO_PENDING_FIX`, `HUMAN_ERROR`, `NO_LONGER_ACCEPTED_RISK`, `OTHER`.
148585-
148586-
### Meta
148587-
148588-
The request body must include a list of the finding IDs to be updated.
148589-
required: true
148590-
responses:
148591-
"200":
148592-
content:
148593-
application/json:
148594-
examples:
148595-
default:
148596-
value:
148597-
data:
148598-
id: abc-123
148599-
type: finding
148600-
schema:
148601-
$ref: "#/components/schemas/BulkMuteFindingsResponse"
148602-
description: OK
148603-
"400":
148604-
$ref: "#/components/responses/FindingsBadRequestResponse"
148605-
"403":
148606-
$ref: "#/components/responses/FindingsForbiddenResponse"
148607-
"404":
148608-
$ref: "#/components/responses/FindingsNotFoundResponse"
148609-
"422":
148610-
content:
148611-
application/json:
148612-
schema:
148613-
$ref: "#/components/schemas/JSONAPIErrorResponse"
148614-
description: "Invalid Request: The server understands the request syntax but cannot process it due to invalid data."
148615-
"429":
148616-
$ref: "#/components/responses/FindingsTooManyRequestsResponse"
148617-
security:
148618-
- apiKeyAuth: []
148619-
appKeyAuth: []
148620-
- AuthZ: []
148621-
summary: Mute or unmute a batch of findings
148622-
tags:
148623-
- "Security Monitoring"
148624-
x-codegen-request-body-name: body
148625-
"x-permission":
148626-
operator: OR
148627-
permissions:
148628-
- security_monitoring_findings_write
148629-
- appsec_vm_write
148630-
x-unstable: |-
148631-
**Note**: This endpoint is in public beta.
148632-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
148633148462
/api/v2/posture_management/findings/{finding_id}:
148634148463
get:
148635148464
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
@@ -2017,9 +2017,6 @@
20172017
"filter_vulnerability_type" => "Array<FindingVulnerabilityType>",
20182018
"detailed_findings" => "Boolean",
20192019
},
2020-
"v2.MuteFindings" => {
2021-
"body" => "BulkMuteFindingsRequest",
2022-
},
20232020
"v2.GetFinding" => {
20242021
"finding_id" => "String",
20252022
"snapshot_timestamp" => "Integer",

features/v2/security_monitoring.feature

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

2362-
@generated @skip @team:DataDog/cloud-security-posture-management
2363-
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
2364-
Given operation "MuteFindings" enabled
2365-
And new "MuteFindings" request
2366-
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"}}
2367-
When the request is sent
2368-
Then the response status is 400 Bad Request: The server cannot process the request due to invalid syntax in the request.
2369-
2370-
@generated @skip @team:DataDog/cloud-security-posture-management
2371-
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
2372-
Given operation "MuteFindings" enabled
2373-
And new "MuteFindings" request
2374-
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"}}
2375-
When the request is sent
2376-
Then the response status is 422 Invalid Request: The server understands the request syntax but cannot process it due to invalid data.
2377-
2378-
@generated @skip @team:DataDog/cloud-security-posture-management
2379-
Scenario: Mute or unmute a batch of findings returns "Not Found: The requested finding cannot be found." response
2380-
Given operation "MuteFindings" enabled
2381-
And new "MuteFindings" request
2382-
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"}}
2383-
When the request is sent
2384-
Then the response status is 404 Not Found: The requested finding cannot be found.
2385-
2386-
@replay-only @team:DataDog/cloud-security-posture-management
2387-
Scenario: Mute or unmute a batch of findings returns "OK" 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 200 OK
2393-
23942362
@generated @skip @team:DataDog/k9-investigation
23952363
Scenario: Mute or unmute security findings returns "Accepted" response
23962364
Given new "MuteSecurityFindings" request

features/v2/undo.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5479,12 +5479,6 @@
54795479
"type": "safe"
54805480
}
54815481
},
5482-
"MuteFindings": {
5483-
"tag": "Security Monitoring",
5484-
"undo": {
5485-
"type": "safe"
5486-
}
5487-
},
54885482
"GetFinding": {
54895483
"tag": "Security Monitoring",
54905484
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ def initialize
378378
"v2.list_static_analysis_codegen_rulesets": false,
379379
"v2.list_vulnerabilities": false,
380380
"v2.list_vulnerable_assets": false,
381-
"v2.mute_findings": false,
382381
"v2.run_historical_job": false,
383382
"v2.search_security_monitoring_histsignals": false,
384383
"v2.update_findings_assignee": 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)