Skip to content

Commit c73bae6

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6bf7722 of spec repo
1 parent 318a939 commit c73bae6

18 files changed

Lines changed: 0 additions & 791 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 171 deletions
Original file line numberDiff line numberDiff line change
@@ -13065,99 +13065,6 @@ components:
1306513065
type: string
1306613066
x-enum-varnames:
1306713067
- ITEMS
13068-
BulkMuteFindingsRequest:
13069-
description: The new bulk mute finding request.
13070-
properties:
13071-
data:
13072-
$ref: "#/components/schemas/BulkMuteFindingsRequestData"
13073-
required:
13074-
- data
13075-
type: object
13076-
BulkMuteFindingsRequestAttributes:
13077-
additionalProperties: false
13078-
description: The mute properties to be updated.
13079-
properties:
13080-
mute:
13081-
$ref: "#/components/schemas/BulkMuteFindingsRequestProperties"
13082-
required:
13083-
- mute
13084-
type: object
13085-
BulkMuteFindingsRequestData:
13086-
description: Data object containing the new bulk mute properties of the finding.
13087-
properties:
13088-
attributes:
13089-
$ref: "#/components/schemas/BulkMuteFindingsRequestAttributes"
13090-
id:
13091-
description: UUID to identify the request
13092-
example: dbe5f567-192b-4404-b908-29b70e1c9f76
13093-
type: string
13094-
meta:
13095-
$ref: "#/components/schemas/BulkMuteFindingsRequestMeta"
13096-
type:
13097-
$ref: "#/components/schemas/FindingType"
13098-
required:
13099-
- id
13100-
- type
13101-
- attributes
13102-
- meta
13103-
type: object
13104-
BulkMuteFindingsRequestMeta:
13105-
description: Meta object containing the findings to be updated.
13106-
properties:
13107-
findings:
13108-
description: Array of findings.
13109-
items:
13110-
$ref: "#/components/schemas/BulkMuteFindingsRequestMetaFindings"
13111-
type: array
13112-
type: object
13113-
BulkMuteFindingsRequestMetaFindings:
13114-
description: Finding object containing the finding information.
13115-
properties:
13116-
finding_id:
13117-
$ref: "#/components/schemas/FindingID"
13118-
type: object
13119-
BulkMuteFindingsRequestProperties:
13120-
additionalProperties: false
13121-
description: Object containing the new mute properties of the findings.
13122-
properties:
13123-
description:
13124-
description: Additional information about the reason why those findings are muted or unmuted. This field has a maximum limit of 280 characters.
13125-
type: string
13126-
expiration_date:
13127-
description: |-
13128-
The expiration date of the mute or unmute action (Unix ms). It must be set to a value greater than the current timestamp.
13129-
If this field is not provided, the finding will be muted or unmuted indefinitely, which is equivalent to setting the expiration date to 9999999999999.
13130-
example: 1778721573794
13131-
format: int64
13132-
type: integer
13133-
muted:
13134-
description: Whether those findings should be muted or unmuted.
13135-
example: true
13136-
type: boolean
13137-
reason:
13138-
$ref: "#/components/schemas/FindingMuteReason"
13139-
required:
13140-
- muted
13141-
- reason
13142-
type: object
13143-
BulkMuteFindingsResponse:
13144-
description: The expected response schema.
13145-
properties:
13146-
data:
13147-
$ref: "#/components/schemas/BulkMuteFindingsResponseData"
13148-
required:
13149-
- data
13150-
type: object
13151-
BulkMuteFindingsResponseData:
13152-
description: Data object containing the ID of the request that was updated.
13153-
properties:
13154-
id:
13155-
description: UUID used to identify the request
13156-
example: 93bfeb70-af47-424d-908a-948d3f08e37f
13157-
type: string
13158-
type:
13159-
$ref: "#/components/schemas/FindingType"
13160-
type: object
1316113068
BulkPutAppsDatastoreItemsRequest:
1316213069
description: Request to insert multiple items into a datastore in a single operation.
1316313070
properties:
@@ -154579,84 +154486,6 @@ paths:
154579154486
Use the [search security findings endpoint](https://docs.datadoghq.com/api/latest/security-monitoring/#search-security-findings),
154580154487
which is based on the [new security findings schema](https://docs.datadoghq.com/security/guide/findings-schema/), to search security findings.
154581154488
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
154582-
patch:
154583-
description: |-
154584-
Mute or unmute findings.
154585-
operationId: MuteFindings
154586-
requestBody:
154587-
content:
154588-
application/json:
154589-
examples:
154590-
default:
154591-
value:
154592-
data:
154593-
attributes:
154594-
mute:
154595-
expiration_date: 1778721573794
154596-
muted: true
154597-
reason: ACCEPTED_RISK
154598-
id: dbe5f567-192b-4404-b908-29b70e1c9f76
154599-
meta:
154600-
findings:
154601-
- finding_id: ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==
154602-
type: finding
154603-
schema:
154604-
$ref: "#/components/schemas/BulkMuteFindingsRequest"
154605-
description: |-
154606-
### Attributes
154607-
154608-
All findings are updated with the same attributes. The request body must include at least two attributes: `muted` and `reason`.
154609-
The allowed reasons depend on whether the finding is being muted or unmuted:
154610-
- To mute a finding: `PENDING_FIX`, `FALSE_POSITIVE`, `ACCEPTED_RISK`, `OTHER`.
154611-
- To unmute a finding : `NO_PENDING_FIX`, `HUMAN_ERROR`, `NO_LONGER_ACCEPTED_RISK`, `OTHER`.
154612-
154613-
### Meta
154614-
154615-
The request body must include a list of the finding IDs to be updated.
154616-
required: true
154617-
responses:
154618-
"200":
154619-
content:
154620-
application/json:
154621-
examples:
154622-
default:
154623-
value:
154624-
data:
154625-
id: abc-123
154626-
type: finding
154627-
schema:
154628-
$ref: "#/components/schemas/BulkMuteFindingsResponse"
154629-
description: OK
154630-
"400":
154631-
$ref: "#/components/responses/FindingsBadRequestResponse"
154632-
"403":
154633-
$ref: "#/components/responses/FindingsForbiddenResponse"
154634-
"404":
154635-
$ref: "#/components/responses/FindingsNotFoundResponse"
154636-
"422":
154637-
content:
154638-
application/json:
154639-
schema:
154640-
$ref: "#/components/schemas/JSONAPIErrorResponse"
154641-
description: "Invalid Request: The server understands the request syntax but cannot process it due to invalid data."
154642-
"429":
154643-
$ref: "#/components/responses/FindingsTooManyRequestsResponse"
154644-
security:
154645-
- apiKeyAuth: []
154646-
appKeyAuth: []
154647-
- AuthZ: []
154648-
summary: Mute or unmute a batch of findings
154649-
tags:
154650-
- "Security Monitoring"
154651-
x-codegen-request-body-name: body
154652-
"x-permission":
154653-
operator: OR
154654-
permissions:
154655-
- security_monitoring_findings_write
154656-
- appsec_vm_write
154657-
x-unstable: |-
154658-
**Note**: This endpoint is in public beta.
154659-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
154660154489
/api/v2/posture_management/findings/{finding_id}:
154661154490
get:
154662154491
description: Returns a single finding with message and resource configuration.

docs/datadog_api_client.v2.model.rst

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,62 +4533,6 @@ datadog\_api\_client.v2.model.bulk\_delete\_apps\_datastore\_items\_request\_dat
45334533
:members:
45344534
:show-inheritance:
45354535

4536-
datadog\_api\_client.v2.model.bulk\_mute\_findings\_request module
4537-
------------------------------------------------------------------
4538-
4539-
.. automodule:: datadog_api_client.v2.model.bulk_mute_findings_request
4540-
:members:
4541-
:show-inheritance:
4542-
4543-
datadog\_api\_client.v2.model.bulk\_mute\_findings\_request\_attributes module
4544-
------------------------------------------------------------------------------
4545-
4546-
.. automodule:: datadog_api_client.v2.model.bulk_mute_findings_request_attributes
4547-
:members:
4548-
:show-inheritance:
4549-
4550-
datadog\_api\_client.v2.model.bulk\_mute\_findings\_request\_data module
4551-
------------------------------------------------------------------------
4552-
4553-
.. automodule:: datadog_api_client.v2.model.bulk_mute_findings_request_data
4554-
:members:
4555-
:show-inheritance:
4556-
4557-
datadog\_api\_client.v2.model.bulk\_mute\_findings\_request\_meta module
4558-
------------------------------------------------------------------------
4559-
4560-
.. automodule:: datadog_api_client.v2.model.bulk_mute_findings_request_meta
4561-
:members:
4562-
:show-inheritance:
4563-
4564-
datadog\_api\_client.v2.model.bulk\_mute\_findings\_request\_meta\_findings module
4565-
----------------------------------------------------------------------------------
4566-
4567-
.. automodule:: datadog_api_client.v2.model.bulk_mute_findings_request_meta_findings
4568-
:members:
4569-
:show-inheritance:
4570-
4571-
datadog\_api\_client.v2.model.bulk\_mute\_findings\_request\_properties module
4572-
------------------------------------------------------------------------------
4573-
4574-
.. automodule:: datadog_api_client.v2.model.bulk_mute_findings_request_properties
4575-
:members:
4576-
:show-inheritance:
4577-
4578-
datadog\_api\_client.v2.model.bulk\_mute\_findings\_response module
4579-
-------------------------------------------------------------------
4580-
4581-
.. automodule:: datadog_api_client.v2.model.bulk_mute_findings_response
4582-
:members:
4583-
:show-inheritance:
4584-
4585-
datadog\_api\_client.v2.model.bulk\_mute\_findings\_response\_data module
4586-
-------------------------------------------------------------------------
4587-
4588-
.. automodule:: datadog_api_client.v2.model.bulk_mute_findings_response_data
4589-
:members:
4590-
:show-inheritance:
4591-
45924536
datadog\_api\_client.v2.model.bulk\_put\_apps\_datastore\_items\_request module
45934537
-------------------------------------------------------------------------------
45944538

examples/v2/security-monitoring/MuteFindings.py

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

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ def __init__(
435435
"v2.list_static_analysis_codegen_rulesets": False,
436436
"v2.list_vulnerabilities": False,
437437
"v2.list_vulnerable_assets": False,
438-
"v2.mute_findings": False,
439438
"v2.run_historical_job": False,
440439
"v2.search_security_monitoring_histsignals": False,
441440
"v2.update_findings_assignee": False,

src/datadog_api_client/v2/api/security_monitoring_api.py

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
from datadog_api_client.v2.model.finding_status import FindingStatus
3636
from datadog_api_client.v2.model.finding_vulnerability_type import FindingVulnerabilityType
3737
from datadog_api_client.v2.model.finding import Finding
38-
from datadog_api_client.v2.model.bulk_mute_findings_response import BulkMuteFindingsResponse
39-
from datadog_api_client.v2.model.bulk_mute_findings_request import BulkMuteFindingsRequest
4038
from datadog_api_client.v2.model.get_finding_response import GetFindingResponse
4139
from datadog_api_client.v2.model.list_security_findings_response import ListSecurityFindingsResponse
4240
from datadog_api_client.v2.model.security_findings_sort import SecurityFindingsSort
@@ -3418,26 +3416,6 @@ def __init__(self, api_client=None):
34183416
api_client=api_client,
34193417
)
34203418

3421-
self._mute_findings_endpoint = _Endpoint(
3422-
settings={
3423-
"response_type": (BulkMuteFindingsResponse,),
3424-
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
3425-
"endpoint_path": "/api/v2/posture_management/findings",
3426-
"operation_id": "mute_findings",
3427-
"http_method": "PATCH",
3428-
"version": "v2",
3429-
},
3430-
params_map={
3431-
"body": {
3432-
"required": True,
3433-
"openapi_types": (BulkMuteFindingsRequest,),
3434-
"location": "body",
3435-
},
3436-
},
3437-
headers_map={"accept": ["application/json"], "content_type": ["application/json"]},
3438-
api_client=api_client,
3439-
)
3440-
34413419
self._mute_security_findings_endpoint = _Endpoint(
34423420
settings={
34433421
"response_type": (MuteFindingsResponse,),
@@ -7281,33 +7259,6 @@ def list_vulnerable_assets(
72817259

72827260
return self._list_vulnerable_assets_endpoint.call_with_http_info(**kwargs)
72837261

7284-
def mute_findings(
7285-
self,
7286-
body: BulkMuteFindingsRequest,
7287-
) -> BulkMuteFindingsResponse:
7288-
"""Mute or unmute a batch of findings.
7289-
7290-
Mute or unmute findings.
7291-
7292-
:param body: **Attributes**
7293-
7294-
All findings are updated with the same attributes. The request body must include at least two attributes: ``muted`` and ``reason``.
7295-
The allowed reasons depend on whether the finding is being muted or unmuted:
7296-
7297-
* To mute a finding: ``PENDING_FIX`` , ``FALSE_POSITIVE`` , ``ACCEPTED_RISK`` , ``OTHER``.
7298-
* To unmute a finding : ``NO_PENDING_FIX`` , ``HUMAN_ERROR`` , ``NO_LONGER_ACCEPTED_RISK`` , ``OTHER``.
7299-
7300-
**Meta**
7301-
7302-
The request body must include a list of the finding IDs to be updated.
7303-
:type body: BulkMuteFindingsRequest
7304-
:rtype: BulkMuteFindingsResponse
7305-
"""
7306-
kwargs: Dict[str, Any] = {}
7307-
kwargs["body"] = body
7308-
7309-
return self._mute_findings_endpoint.call_with_http_info(**kwargs)
7310-
73117262
def mute_security_findings(
73127263
self,
73137264
body: MuteFindingsRequest,

0 commit comments

Comments
 (0)