Skip to content

Commit 7e5fa84

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 550d508 of spec repo
1 parent 226f784 commit 7e5fa84

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
@@ -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.

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
@@ -436,7 +436,6 @@ def __init__(
436436
"v2.list_static_analysis_codegen_rulesets": False,
437437
"v2.list_vulnerabilities": False,
438438
"v2.list_vulnerable_assets": False,
439-
"v2.mute_findings": False,
440439
"v2.run_historical_job": False,
441440
"v2.search_security_monitoring_histsignals": False,
442441
"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
@@ -3377,26 +3375,6 @@ def __init__(self, api_client=None):
33773375
api_client=api_client,
33783376
)
33793377

3380-
self._mute_findings_endpoint = _Endpoint(
3381-
settings={
3382-
"response_type": (BulkMuteFindingsResponse,),
3383-
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
3384-
"endpoint_path": "/api/v2/posture_management/findings",
3385-
"operation_id": "mute_findings",
3386-
"http_method": "PATCH",
3387-
"version": "v2",
3388-
},
3389-
params_map={
3390-
"body": {
3391-
"required": True,
3392-
"openapi_types": (BulkMuteFindingsRequest,),
3393-
"location": "body",
3394-
},
3395-
},
3396-
headers_map={"accept": ["application/json"], "content_type": ["application/json"]},
3397-
api_client=api_client,
3398-
)
3399-
34003378
self._mute_security_findings_endpoint = _Endpoint(
34013379
settings={
34023380
"response_type": (MuteFindingsResponse,),
@@ -7177,33 +7155,6 @@ def list_vulnerable_assets(
71777155

71787156
return self._list_vulnerable_assets_endpoint.call_with_http_info(**kwargs)
71797157

7180-
def mute_findings(
7181-
self,
7182-
body: BulkMuteFindingsRequest,
7183-
) -> BulkMuteFindingsResponse:
7184-
"""Mute or unmute a batch of findings.
7185-
7186-
Mute or unmute findings.
7187-
7188-
:param body: **Attributes**
7189-
7190-
All findings are updated with the same attributes. The request body must include at least two attributes: ``muted`` and ``reason``.
7191-
The allowed reasons depend on whether the finding is being muted or unmuted:
7192-
7193-
* To mute a finding: ``PENDING_FIX`` , ``FALSE_POSITIVE`` , ``ACCEPTED_RISK`` , ``OTHER``.
7194-
* To unmute a finding : ``NO_PENDING_FIX`` , ``HUMAN_ERROR`` , ``NO_LONGER_ACCEPTED_RISK`` , ``OTHER``.
7195-
7196-
**Meta**
7197-
7198-
The request body must include a list of the finding IDs to be updated.
7199-
:type body: BulkMuteFindingsRequest
7200-
:rtype: BulkMuteFindingsResponse
7201-
"""
7202-
kwargs: Dict[str, Any] = {}
7203-
kwargs["body"] = body
7204-
7205-
return self._mute_findings_endpoint.call_with_http_info(**kwargs)
7206-
72077158
def mute_security_findings(
72087159
self,
72097160
body: MuteFindingsRequest,

0 commit comments

Comments
 (0)