Skip to content

Commit a37fc92

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Document new field filters for CloudWorkloadSecurityAgentRule (#1774)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 83ad6b1 commit a37fc92

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
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": "2023-11-17 18:13:33.996478",
8-
"spec_repo_commit": "46090fc1"
7+
"regenerated": "2023-11-17 18:38:44.802761",
8+
"spec_repo_commit": "ea610108"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-11-17 18:13:34.052011",
13-
"spec_repo_commit": "46090fc1"
12+
"regenerated": "2023-11-17 18:38:44.817898",
13+
"spec_repo_commit": "ea610108"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3042,6 +3042,11 @@ components:
30423042
description: The SECL expression of the Agent rule.
30433043
example: exec.file.name == \"sh\"
30443044
type: string
3045+
filters:
3046+
description: The platforms the Agent rule is supported on.
3047+
items:
3048+
type: string
3049+
type: array
30453050
name:
30463051
description: The name of the Agent rule.
30473052
example: my_agent_rule

src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_attributes.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -42,6 +42,7 @@ def openapi_types(_):
4242
"description": (str,),
4343
"enabled": (bool,),
4444
"expression": (str,),
45+
"filters": ([str],),
4546
"name": (str,),
4647
"update_author_uu_id": (str,),
4748
"update_date": (int,),
@@ -60,6 +61,7 @@ def openapi_types(_):
6061
"description": "description",
6162
"enabled": "enabled",
6263
"expression": "expression",
64+
"filters": "filters",
6365
"name": "name",
6466
"update_author_uu_id": "updateAuthorUuId",
6567
"update_date": "updateDate",
@@ -79,6 +81,7 @@ def __init__(
7981
description: Union[str, UnsetType] = unset,
8082
enabled: Union[bool, UnsetType] = unset,
8183
expression: Union[str, UnsetType] = unset,
84+
filters: Union[List[str], UnsetType] = unset,
8285
name: Union[str, UnsetType] = unset,
8386
update_author_uu_id: Union[str, UnsetType] = unset,
8487
update_date: Union[int, UnsetType] = unset,
@@ -117,6 +120,9 @@ def __init__(
117120
:param expression: The SECL expression of the Agent rule.
118121
:type expression: str, optional
119122
123+
:param filters: The platforms the Agent rule is supported on.
124+
:type filters: [str], optional
125+
120126
:param name: The name of the Agent rule.
121127
:type name: str, optional
122128
@@ -153,6 +159,8 @@ def __init__(
153159
kwargs["enabled"] = enabled
154160
if expression is not unset:
155161
kwargs["expression"] = expression
162+
if filters is not unset:
163+
kwargs["filters"] = filters
156164
if name is not unset:
157165
kwargs["name"] = name
158166
if update_author_uu_id is not unset:

0 commit comments

Comments
 (0)