Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 25 additions & 45 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57944,6 +57944,7 @@ components:
- none
- false_positive
- testing_or_maintenance
- remediated
- investigated_case_opened
- true_positive_benign
- true_positive_malicious
Expand All @@ -57953,6 +57954,7 @@ components:
- NONE
- FALSE_POSITIVE
- TESTING_OR_MAINTENANCE
- REMEDIATED
- INVESTIGATED_CASE_OPENED
- TRUE_POSITIVE_BENIGN
- TRUE_POSITIVE_MALICIOUS
Expand Down Expand Up @@ -103305,6 +103307,8 @@ paths:
schema:
$ref: "#/components/schemas/SecurityMonitoringSignalResponse"
description: OK
"403":
$ref: "#/components/responses/NotAuthorizedResponse"
"404":
$ref: "#/components/responses/NotFoundResponse"
"429":
Expand Down Expand Up @@ -103342,25 +103346,17 @@ paths:
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
description: OK
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Bad Request
$ref: "#/components/responses/BadRequestResponse"
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Forbidden
$ref: "#/components/responses/NotAuthorizedResponse"
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Not Found
$ref: "#/components/responses/NotFoundResponse"
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Modify the triage assignee of a security signal
tags: ["Security Monitoring"]
x-codegen-request-body-name: body
Expand Down Expand Up @@ -103390,25 +103386,17 @@ paths:
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
description: OK
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Bad Request
$ref: "#/components/responses/BadRequestResponse"
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Forbidden
$ref: "#/components/responses/NotAuthorizedResponse"
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Not Found
$ref: "#/components/responses/NotFoundResponse"
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Change the related incidents of a security signal
tags: ["Security Monitoring"]
x-codegen-request-body-name: body
Expand Down Expand Up @@ -103438,25 +103426,17 @@ paths:
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
description: OK
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Bad Request
$ref: "#/components/responses/BadRequestResponse"
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Forbidden
$ref: "#/components/responses/NotAuthorizedResponse"
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Not Found
$ref: "#/components/responses/NotFoundResponse"
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Change the triage state of a security signal
tags: ["Security Monitoring"]
x-codegen-request-body-name: body
Expand Down
6 changes: 3 additions & 3 deletions src/datadog_api_client/v2/api/security_monitoring_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def __init__(self, api_client=None):
self._edit_security_monitoring_signal_assignee_endpoint = _Endpoint(
settings={
"response_type": (SecurityMonitoringSignalTriageUpdateResponse,),
"auth": ["apiKeyAuth", "appKeyAuth"],
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}/assignee",
"operation_id": "edit_security_monitoring_signal_assignee",
"http_method": "PATCH",
Expand All @@ -776,7 +776,7 @@ def __init__(self, api_client=None):
self._edit_security_monitoring_signal_incidents_endpoint = _Endpoint(
settings={
"response_type": (SecurityMonitoringSignalTriageUpdateResponse,),
"auth": ["apiKeyAuth", "appKeyAuth"],
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}/incidents",
"operation_id": "edit_security_monitoring_signal_incidents",
"http_method": "PATCH",
Expand All @@ -802,7 +802,7 @@ def __init__(self, api_client=None):
self._edit_security_monitoring_signal_state_endpoint = _Endpoint(
settings={
"response_type": (SecurityMonitoringSignalTriageUpdateResponse,),
"auth": ["apiKeyAuth", "appKeyAuth"],
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}/state",
"operation_id": "edit_security_monitoring_signal_state",
"http_method": "PATCH",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ class SecurityMonitoringSignalArchiveReason(ModelSimple):
"""
Reason a signal is archived.

:param value: Must be one of ["none", "false_positive", "testing_or_maintenance", "investigated_case_opened", "true_positive_benign", "true_positive_malicious", "other"].
:param value: Must be one of ["none", "false_positive", "testing_or_maintenance", "remediated", "investigated_case_opened", "true_positive_benign", "true_positive_malicious", "other"].
:type value: str
"""

allowed_values = {
"none",
"false_positive",
"testing_or_maintenance",
"remediated",
"investigated_case_opened",
"true_positive_benign",
"true_positive_malicious",
Expand All @@ -32,6 +33,7 @@ class SecurityMonitoringSignalArchiveReason(ModelSimple):
NONE: ClassVar["SecurityMonitoringSignalArchiveReason"]
FALSE_POSITIVE: ClassVar["SecurityMonitoringSignalArchiveReason"]
TESTING_OR_MAINTENANCE: ClassVar["SecurityMonitoringSignalArchiveReason"]
REMEDIATED: ClassVar["SecurityMonitoringSignalArchiveReason"]
INVESTIGATED_CASE_OPENED: ClassVar["SecurityMonitoringSignalArchiveReason"]
TRUE_POSITIVE_BENIGN: ClassVar["SecurityMonitoringSignalArchiveReason"]
TRUE_POSITIVE_MALICIOUS: ClassVar["SecurityMonitoringSignalArchiveReason"]
Expand All @@ -49,6 +51,7 @@ def openapi_types(_):
SecurityMonitoringSignalArchiveReason.TESTING_OR_MAINTENANCE = SecurityMonitoringSignalArchiveReason(
"testing_or_maintenance"
)
SecurityMonitoringSignalArchiveReason.REMEDIATED = SecurityMonitoringSignalArchiveReason("remediated")
SecurityMonitoringSignalArchiveReason.INVESTIGATED_CASE_OPENED = SecurityMonitoringSignalArchiveReason(
"investigated_case_opened"
)
Expand Down
Loading