Skip to content

Commit 2f038e3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 909e369c of spec repo
1 parent df7db0d commit 2f038e3

19 files changed

+211
-10
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-09-30 14:37:33.886944",
8-
"spec_repo_commit": "60bc9127"
7+
"regenerated": "2024-09-30 19:44:29.650607",
8+
"spec_repo_commit": "909e369c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-30 14:37:33.900686",
13-
"spec_repo_commit": "60bc9127"
12+
"regenerated": "2024-09-30 19:44:29.664206",
13+
"spec_repo_commit": "909e369c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19089,6 +19089,25 @@ components:
1908919089
meta:
1909019090
$ref: '#/components/schemas/ResponseMetaAttributes'
1909119091
type: object
19092+
SecurityMonitoringReferenceTable:
19093+
description: Reference table for the rule.
19094+
properties:
19095+
checkPresence:
19096+
description: Whether to include or exclude the matched values.
19097+
type: boolean
19098+
columnName:
19099+
description: The name of the column in the reference table.
19100+
type: string
19101+
logFieldPath:
19102+
description: The field in the log to match against the reference table.
19103+
type: string
19104+
ruleQueryName:
19105+
description: The name of the rule query to apply the reference table to.
19106+
type: string
19107+
tableName:
19108+
description: The name of the reference table.
19109+
type: string
19110+
type: object
1909219111
SecurityMonitoringRuleCase:
1909319112
description: Case when signal is generated.
1909419113
properties:
@@ -19594,6 +19613,11 @@ components:
1959419613
items:
1959519614
$ref: '#/components/schemas/SecurityMonitoringRuleQuery'
1959619615
type: array
19616+
referenceTables:
19617+
description: Reference tables for the rule.
19618+
items:
19619+
$ref: '#/components/schemas/SecurityMonitoringReferenceTable'
19620+
type: array
1959719621
tags:
1959819622
description: Tags for generated signals.
1959919623
items:
@@ -20298,6 +20322,11 @@ components:
2029820322
items:
2029920323
$ref: '#/components/schemas/SecurityMonitoringStandardRuleQuery'
2030020324
type: array
20325+
referenceTables:
20326+
description: Reference tables for the rule.
20327+
items:
20328+
$ref: '#/components/schemas/SecurityMonitoringReferenceTable'
20329+
type: array
2030120330
tags:
2030220331
description: Tags for generated signals.
2030320332
example:
@@ -20365,6 +20394,11 @@ components:
2036520394
items:
2036620395
$ref: '#/components/schemas/SecurityMonitoringStandardRuleQuery'
2036720396
type: array
20397+
referenceTables:
20398+
description: Reference tables for the rule.
20399+
items:
20400+
$ref: '#/components/schemas/SecurityMonitoringReferenceTable'
20401+
type: array
2036820402
tags:
2036920403
description: Tags for generated signals.
2037020404
example:
@@ -20505,6 +20539,11 @@ components:
2050520539
items:
2050620540
$ref: '#/components/schemas/SecurityMonitoringStandardRuleQuery'
2050720541
type: array
20542+
referenceTables:
20543+
description: Reference tables for the rule.
20544+
items:
20545+
$ref: '#/components/schemas/SecurityMonitoringReferenceTable'
20546+
type: array
2050820547
tags:
2050920548
description: Tags for generated signals.
2051020549
items:
@@ -20569,6 +20608,11 @@ components:
2056920608
items:
2057020609
$ref: '#/components/schemas/SecurityMonitoringStandardRuleQuery'
2057120610
type: array
20611+
referenceTables:
20612+
description: Reference tables for the rule.
20613+
items:
20614+
$ref: '#/components/schemas/SecurityMonitoringReferenceTable'
20615+
type: array
2057220616
tags:
2057320617
description: Tags for generated signals.
2057420618
example:

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8488,6 +8488,13 @@ datadog\_api\_client.v2.model.security\_monitoring\_list\_rules\_response module
84888488
:members:
84898489
:show-inheritance:
84908490

8491+
datadog\_api\_client.v2.model.security\_monitoring\_reference\_table module
8492+
---------------------------------------------------------------------------
8493+
8494+
.. automodule:: datadog_api_client.v2.model.security_monitoring_reference_table
8495+
:members:
8496+
:show-inheritance:
8497+
84918498
datadog\_api\_client.v2.model.security\_monitoring\_rule\_case module
84928499
---------------------------------------------------------------------
84938500

examples/v2/security-monitoring/CreateSecurityMonitoringRule.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from datadog_api_client import ApiClient, Configuration
66
from datadog_api_client.v2.api.security_monitoring_api import SecurityMonitoringApi
7+
from datadog_api_client.v2.model.security_monitoring_reference_table import SecurityMonitoringReferenceTable
78
from datadog_api_client.v2.model.security_monitoring_rule_case_create import SecurityMonitoringRuleCaseCreate
89
from datadog_api_client.v2.model.security_monitoring_rule_evaluation_window import (
910
SecurityMonitoringRuleEvaluationWindow,
@@ -52,6 +53,15 @@
5253
tags=[],
5354
is_enabled=True,
5455
type=SecurityMonitoringRuleTypeCreate.LOG_DETECTION,
56+
reference_tables=[
57+
SecurityMonitoringReferenceTable(
58+
table_name="synthetics_test_reference_table_dont_delete",
59+
column_name="value",
60+
log_field_path="testtag",
61+
check_presence=True,
62+
rule_query_name="a",
63+
),
64+
],
5565
)
5666

5767
configuration = Configuration()
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class SecurityMonitoringReferenceTable(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"check_presence": (bool,),
21+
"column_name": (str,),
22+
"log_field_path": (str,),
23+
"rule_query_name": (str,),
24+
"table_name": (str,),
25+
}
26+
27+
attribute_map = {
28+
"check_presence": "checkPresence",
29+
"column_name": "columnName",
30+
"log_field_path": "logFieldPath",
31+
"rule_query_name": "ruleQueryName",
32+
"table_name": "tableName",
33+
}
34+
35+
def __init__(
36+
self_,
37+
check_presence: Union[bool, UnsetType] = unset,
38+
column_name: Union[str, UnsetType] = unset,
39+
log_field_path: Union[str, UnsetType] = unset,
40+
rule_query_name: Union[str, UnsetType] = unset,
41+
table_name: Union[str, UnsetType] = unset,
42+
**kwargs,
43+
):
44+
"""
45+
Reference table for the rule.
46+
47+
:param check_presence: Whether to include or exclude the matched values.
48+
:type check_presence: bool, optional
49+
50+
:param column_name: The name of the column in the reference table.
51+
:type column_name: str, optional
52+
53+
:param log_field_path: The field in the log to match against the reference table.
54+
:type log_field_path: str, optional
55+
56+
:param rule_query_name: The name of the rule query to apply the reference table to.
57+
:type rule_query_name: str, optional
58+
59+
:param table_name: The name of the reference table.
60+
:type table_name: str, optional
61+
"""
62+
if check_presence is not unset:
63+
kwargs["check_presence"] = check_presence
64+
if column_name is not unset:
65+
kwargs["column_name"] = column_name
66+
if log_field_path is not unset:
67+
kwargs["log_field_path"] = log_field_path
68+
if rule_query_name is not unset:
69+
kwargs["rule_query_name"] = rule_query_name
70+
if table_name is not unset:
71+
kwargs["table_name"] = table_name
72+
super().__init__(kwargs)

src/datadog_api_client/v2/model/security_monitoring_rule_convert_payload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def __init__(self, **kwargs):
3939
:param queries: Queries for selecting logs which are part of the rule.
4040
:type queries: [SecurityMonitoringStandardRuleQuery]
4141
42+
:param reference_tables: Reference tables for the rule.
43+
:type reference_tables: [SecurityMonitoringReferenceTable], optional
44+
4245
:param tags: Tags for generated signals.
4346
:type tags: [str], optional
4447

src/datadog_api_client/v2/model/security_monitoring_rule_create_payload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def __init__(self, **kwargs):
3939
:param queries: Queries for selecting logs which are part of the rule.
4040
:type queries: [SecurityMonitoringStandardRuleQuery]
4141
42+
:param reference_tables: Reference tables for the rule.
43+
:type reference_tables: [SecurityMonitoringReferenceTable], optional
44+
4245
:param tags: Tags for generated signals.
4346
:type tags: [str], optional
4447

src/datadog_api_client/v2/model/security_monitoring_rule_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def __init__(self, **kwargs):
6363
:param queries: Queries for selecting logs which are part of the rule.
6464
:type queries: [SecurityMonitoringStandardRuleQuery], optional
6565
66+
:param reference_tables: Reference tables for the rule.
67+
:type reference_tables: [SecurityMonitoringReferenceTable], optional
68+
6669
:param tags: Tags for generated signals.
6770
:type tags: [str], optional
6871

src/datadog_api_client/v2/model/security_monitoring_rule_test_payload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def __init__(self, **kwargs):
3939
:param queries: Queries for selecting logs which are part of the rule.
4040
:type queries: [SecurityMonitoringStandardRuleQuery]
4141
42+
:param reference_tables: Reference tables for the rule.
43+
:type reference_tables: [SecurityMonitoringReferenceTable], optional
44+
4245
:param tags: Tags for generated signals.
4346
:type tags: [str], optional
4447

src/datadog_api_client/v2/model/security_monitoring_rule_update_payload.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from datadog_api_client.v2.model.security_monitoring_filter import SecurityMonitoringFilter
2222
from datadog_api_client.v2.model.security_monitoring_rule_options import SecurityMonitoringRuleOptions
2323
from datadog_api_client.v2.model.security_monitoring_rule_query import SecurityMonitoringRuleQuery
24+
from datadog_api_client.v2.model.security_monitoring_reference_table import SecurityMonitoringReferenceTable
2425
from datadog_api_client.v2.model.security_monitoring_third_party_rule_case import (
2526
SecurityMonitoringThirdPartyRuleCase,
2627
)
@@ -44,6 +45,7 @@ def openapi_types(_):
4445
from datadog_api_client.v2.model.security_monitoring_filter import SecurityMonitoringFilter
4546
from datadog_api_client.v2.model.security_monitoring_rule_options import SecurityMonitoringRuleOptions
4647
from datadog_api_client.v2.model.security_monitoring_rule_query import SecurityMonitoringRuleQuery
48+
from datadog_api_client.v2.model.security_monitoring_reference_table import SecurityMonitoringReferenceTable
4749
from datadog_api_client.v2.model.security_monitoring_third_party_rule_case import (
4850
SecurityMonitoringThirdPartyRuleCase,
4951
)
@@ -58,6 +60,7 @@ def openapi_types(_):
5860
"name": (str,),
5961
"options": (SecurityMonitoringRuleOptions,),
6062
"queries": ([SecurityMonitoringRuleQuery],),
63+
"reference_tables": ([SecurityMonitoringReferenceTable],),
6164
"tags": ([str],),
6265
"third_party_cases": ([SecurityMonitoringThirdPartyRuleCase],),
6366
"version": (int,),
@@ -73,6 +76,7 @@ def openapi_types(_):
7376
"name": "name",
7477
"options": "options",
7578
"queries": "queries",
79+
"reference_tables": "referenceTables",
7680
"tags": "tags",
7781
"third_party_cases": "thirdPartyCases",
7882
"version": "version",
@@ -96,6 +100,7 @@ def __init__(
96100
],
97101
UnsetType,
98102
] = unset,
103+
reference_tables: Union[List[SecurityMonitoringReferenceTable], UnsetType] = unset,
99104
tags: Union[List[str], UnsetType] = unset,
100105
third_party_cases: Union[List[SecurityMonitoringThirdPartyRuleCase], UnsetType] = unset,
101106
version: Union[int, UnsetType] = unset,
@@ -131,6 +136,9 @@ def __init__(
131136
:param queries: Queries for selecting logs which are part of the rule.
132137
:type queries: [SecurityMonitoringRuleQuery], optional
133138
139+
:param reference_tables: Reference tables for the rule.
140+
:type reference_tables: [SecurityMonitoringReferenceTable], optional
141+
134142
:param tags: Tags for generated signals.
135143
:type tags: [str], optional
136144
@@ -158,6 +166,8 @@ def __init__(
158166
kwargs["options"] = options
159167
if queries is not unset:
160168
kwargs["queries"] = queries
169+
if reference_tables is not unset:
170+
kwargs["reference_tables"] = reference_tables
161171
if tags is not unset:
162172
kwargs["tags"] = tags
163173
if third_party_cases is not unset:

src/datadog_api_client/v2/model/security_monitoring_rule_validate_payload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def __init__(self, **kwargs):
3939
:param queries: Queries for selecting logs which are part of the rule.
4040
:type queries: [SecurityMonitoringStandardRuleQuery]
4141
42+
:param reference_tables: Reference tables for the rule.
43+
:type reference_tables: [SecurityMonitoringReferenceTable], optional
44+
4245
:param tags: Tags for generated signals.
4346
:type tags: [str], optional
4447

src/datadog_api_client/v2/model/security_monitoring_standard_rule_create_payload.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from datadog_api_client.v2.model.security_monitoring_filter import SecurityMonitoringFilter
1919
from datadog_api_client.v2.model.security_monitoring_rule_options import SecurityMonitoringRuleOptions
2020
from datadog_api_client.v2.model.security_monitoring_standard_rule_query import SecurityMonitoringStandardRuleQuery
21+
from datadog_api_client.v2.model.security_monitoring_reference_table import SecurityMonitoringReferenceTable
2122
from datadog_api_client.v2.model.security_monitoring_third_party_rule_case_create import (
2223
SecurityMonitoringThirdPartyRuleCaseCreate,
2324
)
@@ -33,6 +34,7 @@ def openapi_types(_):
3334
from datadog_api_client.v2.model.security_monitoring_standard_rule_query import (
3435
SecurityMonitoringStandardRuleQuery,
3536
)
37+
from datadog_api_client.v2.model.security_monitoring_reference_table import SecurityMonitoringReferenceTable
3638
from datadog_api_client.v2.model.security_monitoring_third_party_rule_case_create import (
3739
SecurityMonitoringThirdPartyRuleCaseCreate,
3840
)
@@ -47,6 +49,7 @@ def openapi_types(_):
4749
"name": (str,),
4850
"options": (SecurityMonitoringRuleOptions,),
4951
"queries": ([SecurityMonitoringStandardRuleQuery],),
52+
"reference_tables": ([SecurityMonitoringReferenceTable],),
5053
"tags": ([str],),
5154
"third_party_cases": ([SecurityMonitoringThirdPartyRuleCaseCreate],),
5255
"type": (SecurityMonitoringRuleTypeCreate,),
@@ -61,6 +64,7 @@ def openapi_types(_):
6164
"name": "name",
6265
"options": "options",
6366
"queries": "queries",
67+
"reference_tables": "referenceTables",
6468
"tags": "tags",
6569
"third_party_cases": "thirdPartyCases",
6670
"type": "type",
@@ -76,6 +80,7 @@ def __init__(
7680
queries: List[SecurityMonitoringStandardRuleQuery],
7781
filters: Union[List[SecurityMonitoringFilter], UnsetType] = unset,
7882
has_extended_title: Union[bool, UnsetType] = unset,
83+
reference_tables: Union[List[SecurityMonitoringReferenceTable], UnsetType] = unset,
7984
tags: Union[List[str], UnsetType] = unset,
8085
third_party_cases: Union[List[SecurityMonitoringThirdPartyRuleCaseCreate], UnsetType] = unset,
8186
type: Union[SecurityMonitoringRuleTypeCreate, UnsetType] = unset,
@@ -108,6 +113,9 @@ def __init__(
108113
:param queries: Queries for selecting logs which are part of the rule.
109114
:type queries: [SecurityMonitoringStandardRuleQuery]
110115
116+
:param reference_tables: Reference tables for the rule.
117+
:type reference_tables: [SecurityMonitoringReferenceTable], optional
118+
111119
:param tags: Tags for generated signals.
112120
:type tags: [str], optional
113121
@@ -121,6 +129,8 @@ def __init__(
121129
kwargs["filters"] = filters
122130
if has_extended_title is not unset:
123131
kwargs["has_extended_title"] = has_extended_title
132+
if reference_tables is not unset:
133+
kwargs["reference_tables"] = reference_tables
124134
if tags is not unset:
125135
kwargs["tags"] = tags
126136
if third_party_cases is not unset:

0 commit comments

Comments
 (0)