Skip to content

Commit e69ac55

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

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
@@ -57909,6 +57909,7 @@ components:
5790957909
- none
5791057910
- false_positive
5791157911
- testing_or_maintenance
57912+
- remediated
5791257913
- investigated_case_opened
5791357914
- true_positive_benign
5791457915
- true_positive_malicious
@@ -57918,6 +57919,7 @@ components:
5791857919
- NONE
5791957920
- FALSE_POSITIVE
5792057921
- TESTING_OR_MAINTENANCE
57922+
- REMEDIATED
5792157923
- INVESTIGATED_CASE_OPENED
5792257924
- TRUE_POSITIVE_BENIGN
5792357925
- TRUE_POSITIVE_MALICIOUS
@@ -102447,6 +102449,8 @@ paths:
102447102449
schema:
102448102450
$ref: "#/components/schemas/SecurityMonitoringSignalResponse"
102449102451
description: OK
102452+
"403":
102453+
$ref: "#/components/responses/NotAuthorizedResponse"
102450102454
"404":
102451102455
$ref: "#/components/responses/NotFoundResponse"
102452102456
"429":
@@ -102484,25 +102488,17 @@ paths:
102484102488
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102485102489
description: OK
102486102490
"400":
102487-
content:
102488-
application/json:
102489-
schema:
102490-
$ref: "#/components/schemas/APIErrorResponse"
102491-
description: Bad Request
102491+
$ref: "#/components/responses/BadRequestResponse"
102492102492
"403":
102493-
content:
102494-
application/json:
102495-
schema:
102496-
$ref: "#/components/schemas/APIErrorResponse"
102497-
description: Forbidden
102493+
$ref: "#/components/responses/NotAuthorizedResponse"
102498102494
"404":
102499-
content:
102500-
application/json:
102501-
schema:
102502-
$ref: "#/components/schemas/APIErrorResponse"
102503-
description: Not Found
102495+
$ref: "#/components/responses/NotFoundResponse"
102504102496
"429":
102505102497
$ref: "#/components/responses/TooManyRequestsResponse"
102498+
security:
102499+
- apiKeyAuth: []
102500+
appKeyAuth: []
102501+
- AuthZ: []
102506102502
summary: Modify the triage assignee of a security signal
102507102503
tags: ["Security Monitoring"]
102508102504
x-codegen-request-body-name: body
@@ -102532,25 +102528,17 @@ paths:
102532102528
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102533102529
description: OK
102534102530
"400":
102535-
content:
102536-
application/json:
102537-
schema:
102538-
$ref: "#/components/schemas/APIErrorResponse"
102539-
description: Bad Request
102531+
$ref: "#/components/responses/BadRequestResponse"
102540102532
"403":
102541-
content:
102542-
application/json:
102543-
schema:
102544-
$ref: "#/components/schemas/APIErrorResponse"
102545-
description: Forbidden
102533+
$ref: "#/components/responses/NotAuthorizedResponse"
102546102534
"404":
102547-
content:
102548-
application/json:
102549-
schema:
102550-
$ref: "#/components/schemas/APIErrorResponse"
102551-
description: Not Found
102535+
$ref: "#/components/responses/NotFoundResponse"
102552102536
"429":
102553102537
$ref: "#/components/responses/TooManyRequestsResponse"
102538+
security:
102539+
- apiKeyAuth: []
102540+
appKeyAuth: []
102541+
- AuthZ: []
102554102542
summary: Change the related incidents of a security signal
102555102543
tags: ["Security Monitoring"]
102556102544
x-codegen-request-body-name: body
@@ -102580,25 +102568,17 @@ paths:
102580102568
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102581102569
description: OK
102582102570
"400":
102583-
content:
102584-
application/json:
102585-
schema:
102586-
$ref: "#/components/schemas/APIErrorResponse"
102587-
description: Bad Request
102571+
$ref: "#/components/responses/BadRequestResponse"
102588102572
"403":
102589-
content:
102590-
application/json:
102591-
schema:
102592-
$ref: "#/components/schemas/APIErrorResponse"
102593-
description: Forbidden
102573+
$ref: "#/components/responses/NotAuthorizedResponse"
102594102574
"404":
102595-
content:
102596-
application/json:
102597-
schema:
102598-
$ref: "#/components/schemas/APIErrorResponse"
102599-
description: Not Found
102575+
$ref: "#/components/responses/NotFoundResponse"
102600102576
"429":
102601102577
$ref: "#/components/responses/TooManyRequestsResponse"
102578+
security:
102579+
- apiKeyAuth: []
102580+
appKeyAuth: []
102581+
- AuthZ: []
102602102582
summary: Change the triage state of a security signal
102603102583
tags: ["Security Monitoring"]
102604102584
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
@@ -749,7 +749,7 @@ def __init__(self, api_client=None):
749749
self._edit_security_monitoring_signal_assignee_endpoint = _Endpoint(
750750
settings={
751751
"response_type": (SecurityMonitoringSignalTriageUpdateResponse,),
752-
"auth": ["apiKeyAuth", "appKeyAuth"],
752+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
753753
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}/assignee",
754754
"operation_id": "edit_security_monitoring_signal_assignee",
755755
"http_method": "PATCH",
@@ -775,7 +775,7 @@ def __init__(self, api_client=None):
775775
self._edit_security_monitoring_signal_incidents_endpoint = _Endpoint(
776776
settings={
777777
"response_type": (SecurityMonitoringSignalTriageUpdateResponse,),
778-
"auth": ["apiKeyAuth", "appKeyAuth"],
778+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
779779
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}/incidents",
780780
"operation_id": "edit_security_monitoring_signal_incidents",
781781
"http_method": "PATCH",
@@ -801,7 +801,7 @@ def __init__(self, api_client=None):
801801
self._edit_security_monitoring_signal_state_endpoint = _Endpoint(
802802
settings={
803803
"response_type": (SecurityMonitoringSignalTriageUpdateResponse,),
804-
"auth": ["apiKeyAuth", "appKeyAuth"],
804+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
805805
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}/state",
806806
"operation_id": "edit_security_monitoring_signal_state",
807807
"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)