Skip to content

Commit 4098def

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix consistency issues in security monitoring signal triage routes (#3353)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 33be844 commit 4098def

File tree

3 files changed

+32
-49
lines changed

3 files changed

+32
-49
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -57944,6 +57944,7 @@ components:
5794457944
- none
5794557945
- false_positive
5794657946
- testing_or_maintenance
57947+
- remediated
5794757948
- investigated_case_opened
5794857949
- true_positive_benign
5794957950
- true_positive_malicious
@@ -57953,6 +57954,7 @@ components:
5795357954
- NONE
5795457955
- FALSE_POSITIVE
5795557956
- TESTING_OR_MAINTENANCE
57957+
- REMEDIATED
5795657958
- INVESTIGATED_CASE_OPENED
5795757959
- TRUE_POSITIVE_BENIGN
5795857960
- TRUE_POSITIVE_MALICIOUS
@@ -103305,6 +103307,8 @@ paths:
103305103307
schema:
103306103308
$ref: "#/components/schemas/SecurityMonitoringSignalResponse"
103307103309
description: OK
103310+
"403":
103311+
$ref: "#/components/responses/NotAuthorizedResponse"
103308103312
"404":
103309103313
$ref: "#/components/responses/NotFoundResponse"
103310103314
"429":
@@ -103342,25 +103346,17 @@ paths:
103342103346
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
103343103347
description: OK
103344103348
"400":
103345-
content:
103346-
application/json:
103347-
schema:
103348-
$ref: "#/components/schemas/APIErrorResponse"
103349-
description: Bad Request
103349+
$ref: "#/components/responses/BadRequestResponse"
103350103350
"403":
103351-
content:
103352-
application/json:
103353-
schema:
103354-
$ref: "#/components/schemas/APIErrorResponse"
103355-
description: Forbidden
103351+
$ref: "#/components/responses/NotAuthorizedResponse"
103356103352
"404":
103357-
content:
103358-
application/json:
103359-
schema:
103360-
$ref: "#/components/schemas/APIErrorResponse"
103361-
description: Not Found
103353+
$ref: "#/components/responses/NotFoundResponse"
103362103354
"429":
103363103355
$ref: "#/components/responses/TooManyRequestsResponse"
103356+
security:
103357+
- apiKeyAuth: []
103358+
appKeyAuth: []
103359+
- AuthZ: []
103364103360
summary: Modify the triage assignee of a security signal
103365103361
tags: ["Security Monitoring"]
103366103362
x-codegen-request-body-name: body
@@ -103390,25 +103386,17 @@ paths:
103390103386
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
103391103387
description: OK
103392103388
"400":
103393-
content:
103394-
application/json:
103395-
schema:
103396-
$ref: "#/components/schemas/APIErrorResponse"
103397-
description: Bad Request
103389+
$ref: "#/components/responses/BadRequestResponse"
103398103390
"403":
103399-
content:
103400-
application/json:
103401-
schema:
103402-
$ref: "#/components/schemas/APIErrorResponse"
103403-
description: Forbidden
103391+
$ref: "#/components/responses/NotAuthorizedResponse"
103404103392
"404":
103405-
content:
103406-
application/json:
103407-
schema:
103408-
$ref: "#/components/schemas/APIErrorResponse"
103409-
description: Not Found
103393+
$ref: "#/components/responses/NotFoundResponse"
103410103394
"429":
103411103395
$ref: "#/components/responses/TooManyRequestsResponse"
103396+
security:
103397+
- apiKeyAuth: []
103398+
appKeyAuth: []
103399+
- AuthZ: []
103412103400
summary: Change the related incidents of a security signal
103413103401
tags: ["Security Monitoring"]
103414103402
x-codegen-request-body-name: body
@@ -103438,25 +103426,17 @@ paths:
103438103426
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
103439103427
description: OK
103440103428
"400":
103441-
content:
103442-
application/json:
103443-
schema:
103444-
$ref: "#/components/schemas/APIErrorResponse"
103445-
description: Bad Request
103429+
$ref: "#/components/responses/BadRequestResponse"
103446103430
"403":
103447-
content:
103448-
application/json:
103449-
schema:
103450-
$ref: "#/components/schemas/APIErrorResponse"
103451-
description: Forbidden
103431+
$ref: "#/components/responses/NotAuthorizedResponse"
103452103432
"404":
103453-
content:
103454-
application/json:
103455-
schema:
103456-
$ref: "#/components/schemas/APIErrorResponse"
103457-
description: Not Found
103433+
$ref: "#/components/responses/NotFoundResponse"
103458103434
"429":
103459103435
$ref: "#/components/responses/TooManyRequestsResponse"
103436+
security:
103437+
- apiKeyAuth: []
103438+
appKeyAuth: []
103439+
- AuthZ: []
103460103440
summary: Change the triage state of a security signal
103461103441
tags: ["Security Monitoring"]
103462103442
x-codegen-request-body-name: body

src/datadog_api_client/v2/api/security_monitoring_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def __init__(self, api_client=None):
750750
self._edit_security_monitoring_signal_assignee_endpoint = _Endpoint(
751751
settings={
752752
"response_type": (SecurityMonitoringSignalTriageUpdateResponse,),
753-
"auth": ["apiKeyAuth", "appKeyAuth"],
753+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
754754
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}/assignee",
755755
"operation_id": "edit_security_monitoring_signal_assignee",
756756
"http_method": "PATCH",
@@ -776,7 +776,7 @@ def __init__(self, api_client=None):
776776
self._edit_security_monitoring_signal_incidents_endpoint = _Endpoint(
777777
settings={
778778
"response_type": (SecurityMonitoringSignalTriageUpdateResponse,),
779-
"auth": ["apiKeyAuth", "appKeyAuth"],
779+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
780780
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}/incidents",
781781
"operation_id": "edit_security_monitoring_signal_incidents",
782782
"http_method": "PATCH",
@@ -802,7 +802,7 @@ def __init__(self, api_client=None):
802802
self._edit_security_monitoring_signal_state_endpoint = _Endpoint(
803803
settings={
804804
"response_type": (SecurityMonitoringSignalTriageUpdateResponse,),
805-
"auth": ["apiKeyAuth", "appKeyAuth"],
805+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
806806
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}/state",
807807
"operation_id": "edit_security_monitoring_signal_state",
808808
"http_method": "PATCH",

src/datadog_api_client/v2/model/security_monitoring_signal_archive_reason.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ class SecurityMonitoringSignalArchiveReason(ModelSimple):
1616
"""
1717
Reason a signal is archived.
1818
19-
:param value: Must be one of ["none", "false_positive", "testing_or_maintenance", "investigated_case_opened", "true_positive_benign", "true_positive_malicious", "other"].
19+
:param value: Must be one of ["none", "false_positive", "testing_or_maintenance", "remediated", "investigated_case_opened", "true_positive_benign", "true_positive_malicious", "other"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"none",
2525
"false_positive",
2626
"testing_or_maintenance",
27+
"remediated",
2728
"investigated_case_opened",
2829
"true_positive_benign",
2930
"true_positive_malicious",
@@ -32,6 +33,7 @@ class SecurityMonitoringSignalArchiveReason(ModelSimple):
3233
NONE: ClassVar["SecurityMonitoringSignalArchiveReason"]
3334
FALSE_POSITIVE: ClassVar["SecurityMonitoringSignalArchiveReason"]
3435
TESTING_OR_MAINTENANCE: ClassVar["SecurityMonitoringSignalArchiveReason"]
36+
REMEDIATED: ClassVar["SecurityMonitoringSignalArchiveReason"]
3537
INVESTIGATED_CASE_OPENED: ClassVar["SecurityMonitoringSignalArchiveReason"]
3638
TRUE_POSITIVE_BENIGN: ClassVar["SecurityMonitoringSignalArchiveReason"]
3739
TRUE_POSITIVE_MALICIOUS: ClassVar["SecurityMonitoringSignalArchiveReason"]
@@ -49,6 +51,7 @@ def openapi_types(_):
4951
SecurityMonitoringSignalArchiveReason.TESTING_OR_MAINTENANCE = SecurityMonitoringSignalArchiveReason(
5052
"testing_or_maintenance"
5153
)
54+
SecurityMonitoringSignalArchiveReason.REMEDIATED = SecurityMonitoringSignalArchiveReason("remediated")
5255
SecurityMonitoringSignalArchiveReason.INVESTIGATED_CASE_OPENED = SecurityMonitoringSignalArchiveReason(
5356
"investigated_case_opened"
5457
)

0 commit comments

Comments
 (0)