-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add referenceTables field to security monitoring endpoints (#2170)
Co-authored-by: ci.datadog-api-spec <[email protected]>
- Loading branch information
1 parent
df7db0d
commit 91579c5
Showing
19 changed files
with
211 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
src/datadog_api_client/v2/model/security_monitoring_reference_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. | ||
# This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
# Copyright 2019-Present Datadog, Inc. | ||
from __future__ import annotations | ||
|
||
from typing import Union | ||
|
||
from datadog_api_client.model_utils import ( | ||
ModelNormal, | ||
cached_property, | ||
unset, | ||
UnsetType, | ||
) | ||
|
||
|
||
class SecurityMonitoringReferenceTable(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
return { | ||
"check_presence": (bool,), | ||
"column_name": (str,), | ||
"log_field_path": (str,), | ||
"rule_query_name": (str,), | ||
"table_name": (str,), | ||
} | ||
|
||
attribute_map = { | ||
"check_presence": "checkPresence", | ||
"column_name": "columnName", | ||
"log_field_path": "logFieldPath", | ||
"rule_query_name": "ruleQueryName", | ||
"table_name": "tableName", | ||
} | ||
|
||
def __init__( | ||
self_, | ||
check_presence: Union[bool, UnsetType] = unset, | ||
column_name: Union[str, UnsetType] = unset, | ||
log_field_path: Union[str, UnsetType] = unset, | ||
rule_query_name: Union[str, UnsetType] = unset, | ||
table_name: Union[str, UnsetType] = unset, | ||
**kwargs, | ||
): | ||
""" | ||
Reference table for the rule. | ||
:param check_presence: Whether to include or exclude the matched values. | ||
:type check_presence: bool, optional | ||
:param column_name: The name of the column in the reference table. | ||
:type column_name: str, optional | ||
:param log_field_path: The field in the log to match against the reference table. | ||
:type log_field_path: str, optional | ||
:param rule_query_name: The name of the rule query to apply the reference table to. | ||
:type rule_query_name: str, optional | ||
:param table_name: The name of the reference table. | ||
:type table_name: str, optional | ||
""" | ||
if check_presence is not unset: | ||
kwargs["check_presence"] = check_presence | ||
if column_name is not unset: | ||
kwargs["column_name"] = column_name | ||
if log_field_path is not unset: | ||
kwargs["log_field_path"] = log_field_path | ||
if rule_query_name is not unset: | ||
kwargs["rule_query_name"] = rule_query_name | ||
if table_name is not unset: | ||
kwargs["table_name"] = table_name | ||
super().__init__(kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.