Skip to content

Commit cd7d28f

Browse files
authored
Revert "Fix consistency issues in security monitoring signal triage routes (#…" (#3351)
This reverts commit e69ac55.
1 parent e69ac55 commit cd7d28f

File tree

3 files changed

+49
-32
lines changed

3 files changed

+49
-32
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 45 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57909,7 +57909,6 @@ components:
5790957909
- none
5791057910
- false_positive
5791157911
- testing_or_maintenance
57912-
- remediated
5791357912
- investigated_case_opened
5791457913
- true_positive_benign
5791557914
- true_positive_malicious
@@ -57919,7 +57918,6 @@ components:
5791957918
- NONE
5792057919
- FALSE_POSITIVE
5792157920
- TESTING_OR_MAINTENANCE
57922-
- REMEDIATED
5792357921
- INVESTIGATED_CASE_OPENED
5792457922
- TRUE_POSITIVE_BENIGN
5792557923
- TRUE_POSITIVE_MALICIOUS
@@ -102449,8 +102447,6 @@ paths:
102449102447
schema:
102450102448
$ref: "#/components/schemas/SecurityMonitoringSignalResponse"
102451102449
description: OK
102452-
"403":
102453-
$ref: "#/components/responses/NotAuthorizedResponse"
102454102450
"404":
102455102451
$ref: "#/components/responses/NotFoundResponse"
102456102452
"429":
@@ -102488,17 +102484,25 @@ paths:
102488102484
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102489102485
description: OK
102490102486
"400":
102491-
$ref: "#/components/responses/BadRequestResponse"
102487+
content:
102488+
application/json:
102489+
schema:
102490+
$ref: "#/components/schemas/APIErrorResponse"
102491+
description: Bad Request
102492102492
"403":
102493-
$ref: "#/components/responses/NotAuthorizedResponse"
102493+
content:
102494+
application/json:
102495+
schema:
102496+
$ref: "#/components/schemas/APIErrorResponse"
102497+
description: Forbidden
102494102498
"404":
102495-
$ref: "#/components/responses/NotFoundResponse"
102499+
content:
102500+
application/json:
102501+
schema:
102502+
$ref: "#/components/schemas/APIErrorResponse"
102503+
description: Not Found
102496102504
"429":
102497102505
$ref: "#/components/responses/TooManyRequestsResponse"
102498-
security:
102499-
- apiKeyAuth: []
102500-
appKeyAuth: []
102501-
- AuthZ: []
102502102506
summary: Modify the triage assignee of a security signal
102503102507
tags: ["Security Monitoring"]
102504102508
x-codegen-request-body-name: body
@@ -102528,17 +102532,25 @@ paths:
102528102532
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102529102533
description: OK
102530102534
"400":
102531-
$ref: "#/components/responses/BadRequestResponse"
102535+
content:
102536+
application/json:
102537+
schema:
102538+
$ref: "#/components/schemas/APIErrorResponse"
102539+
description: Bad Request
102532102540
"403":
102533-
$ref: "#/components/responses/NotAuthorizedResponse"
102541+
content:
102542+
application/json:
102543+
schema:
102544+
$ref: "#/components/schemas/APIErrorResponse"
102545+
description: Forbidden
102534102546
"404":
102535-
$ref: "#/components/responses/NotFoundResponse"
102547+
content:
102548+
application/json:
102549+
schema:
102550+
$ref: "#/components/schemas/APIErrorResponse"
102551+
description: Not Found
102536102552
"429":
102537102553
$ref: "#/components/responses/TooManyRequestsResponse"
102538-
security:
102539-
- apiKeyAuth: []
102540-
appKeyAuth: []
102541-
- AuthZ: []
102542102554
summary: Change the related incidents of a security signal
102543102555
tags: ["Security Monitoring"]
102544102556
x-codegen-request-body-name: body
@@ -102568,17 +102580,25 @@ paths:
102568102580
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102569102581
description: OK
102570102582
"400":
102571-
$ref: "#/components/responses/BadRequestResponse"
102583+
content:
102584+
application/json:
102585+
schema:
102586+
$ref: "#/components/schemas/APIErrorResponse"
102587+
description: Bad Request
102572102588
"403":
102573-
$ref: "#/components/responses/NotAuthorizedResponse"
102589+
content:
102590+
application/json:
102591+
schema:
102592+
$ref: "#/components/schemas/APIErrorResponse"
102593+
description: Forbidden
102574102594
"404":
102575-
$ref: "#/components/responses/NotFoundResponse"
102595+
content:
102596+
application/json:
102597+
schema:
102598+
$ref: "#/components/schemas/APIErrorResponse"
102599+
description: Not Found
102576102600
"429":
102577102601
$ref: "#/components/responses/TooManyRequestsResponse"
102578-
security:
102579-
- apiKeyAuth: []
102580-
appKeyAuth: []
102581-
- AuthZ: []
102582102602
summary: Change the triage state of a security signal
102583102603
tags: ["Security Monitoring"]
102584102604
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", "AuthZ"],
752+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
778+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
804+
"auth": ["apiKeyAuth", "appKeyAuth"],
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: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ class SecurityMonitoringSignalArchiveReason(ModelSimple):
1616
"""
1717
Reason a signal is archived.
1818
19-
:param value: Must be one of ["none", "false_positive", "testing_or_maintenance", "remediated", "investigated_case_opened", "true_positive_benign", "true_positive_malicious", "other"].
19+
:param value: Must be one of ["none", "false_positive", "testing_or_maintenance", "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",
2827
"investigated_case_opened",
2928
"true_positive_benign",
3029
"true_positive_malicious",
@@ -33,7 +32,6 @@ class SecurityMonitoringSignalArchiveReason(ModelSimple):
3332
NONE: ClassVar["SecurityMonitoringSignalArchiveReason"]
3433
FALSE_POSITIVE: ClassVar["SecurityMonitoringSignalArchiveReason"]
3534
TESTING_OR_MAINTENANCE: ClassVar["SecurityMonitoringSignalArchiveReason"]
36-
REMEDIATED: ClassVar["SecurityMonitoringSignalArchiveReason"]
3735
INVESTIGATED_CASE_OPENED: ClassVar["SecurityMonitoringSignalArchiveReason"]
3836
TRUE_POSITIVE_BENIGN: ClassVar["SecurityMonitoringSignalArchiveReason"]
3937
TRUE_POSITIVE_MALICIOUS: ClassVar["SecurityMonitoringSignalArchiveReason"]
@@ -51,7 +49,6 @@ def openapi_types(_):
5149
SecurityMonitoringSignalArchiveReason.TESTING_OR_MAINTENANCE = SecurityMonitoringSignalArchiveReason(
5250
"testing_or_maintenance"
5351
)
54-
SecurityMonitoringSignalArchiveReason.REMEDIATED = SecurityMonitoringSignalArchiveReason("remediated")
5552
SecurityMonitoringSignalArchiveReason.INVESTIGATED_CASE_OPENED = SecurityMonitoringSignalArchiveReason(
5653
"investigated_case_opened"
5754
)

0 commit comments

Comments
 (0)