Skip to content

Commit ada273a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add suppression list query string parameter (#2856)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ff26531 commit ada273a

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70064,6 +70064,13 @@ paths:
7006470064
get:
7006570065
description: Get the list of all suppression rules.
7006670066
operationId: ListSecurityMonitoringSuppressions
70067+
parameters:
70068+
- description: Query string.
70069+
in: query
70070+
name: query
70071+
required: false
70072+
schema:
70073+
type: string
7006770074
responses:
7006870075
'200':
7006970076
content:

src/datadog_api_client/v2/api/security_monitoring_api.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,13 @@ def __init__(self, api_client=None):
13901390
"http_method": "GET",
13911391
"version": "v2",
13921392
},
1393-
params_map={},
1393+
params_map={
1394+
"query": {
1395+
"openapi_types": (str,),
1396+
"attribute": "query",
1397+
"location": "query",
1398+
},
1399+
},
13941400
headers_map={
13951401
"accept": ["application/json"],
13961402
},
@@ -3427,14 +3433,21 @@ def list_security_monitoring_signals_with_pagination(
34273433

34283434
def list_security_monitoring_suppressions(
34293435
self,
3436+
*,
3437+
query: Union[str, UnsetType] = unset,
34303438
) -> SecurityMonitoringSuppressionsResponse:
34313439
"""Get all suppression rules.
34323440
34333441
Get the list of all suppression rules.
34343442
3443+
:param query: Query string.
3444+
:type query: str, optional
34353445
:rtype: SecurityMonitoringSuppressionsResponse
34363446
"""
34373447
kwargs: Dict[str, Any] = {}
3448+
if query is not unset:
3449+
kwargs["query"] = query
3450+
34383451
return self._list_security_monitoring_suppressions_endpoint.call_with_http_info(**kwargs)
34393452

34403453
def list_vulnerabilities(

0 commit comments

Comments
 (0)