Skip to content

Commit 53ff09d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 35fc061 of spec repo
1 parent 8f974d3 commit 53ff09d

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

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
@@ -445,7 +445,6 @@ def __init__(
445445
"v2.list_static_analysis_codegen_rulesets": False,
446446
"v2.list_vulnerabilities": False,
447447
"v2.list_vulnerable_assets": False,
448-
"v2.mute_findings": False,
449448
"v2.restore_security_monitoring_rule": False,
450449
"v2.run_historical_job": False,
451450
"v2.search_security_monitoring_histsignals": 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,),
@@ -7310,33 +7288,6 @@ def list_vulnerable_assets(
73107288

73117289
return self._list_vulnerable_assets_endpoint.call_with_http_info(**kwargs)
73127290

7313-
def mute_findings(
7314-
self,
7315-
body: BulkMuteFindingsRequest,
7316-
) -> BulkMuteFindingsResponse:
7317-
"""Mute or unmute a batch of findings.
7318-
7319-
Mute or unmute findings.
7320-
7321-
:param body: **Attributes**
7322-
7323-
All findings are updated with the same attributes. The request body must include at least two attributes: ``muted`` and ``reason``.
7324-
The allowed reasons depend on whether the finding is being muted or unmuted:
7325-
7326-
* To mute a finding: ``PENDING_FIX`` , ``FALSE_POSITIVE`` , ``ACCEPTED_RISK`` , ``OTHER``.
7327-
* To unmute a finding : ``NO_PENDING_FIX`` , ``HUMAN_ERROR`` , ``NO_LONGER_ACCEPTED_RISK`` , ``OTHER``.
7328-
7329-
**Meta**
7330-
7331-
The request body must include a list of the finding IDs to be updated.
7332-
:type body: BulkMuteFindingsRequest
7333-
:rtype: BulkMuteFindingsResponse
7334-
"""
7335-
kwargs: Dict[str, Any] = {}
7336-
kwargs["body"] = body
7337-
7338-
return self._mute_findings_endpoint.call_with_http_info(**kwargs)
7339-
73407291
def mute_security_findings(
73417292
self,
73427293
body: MuteFindingsRequest,

0 commit comments

Comments
 (0)