Skip to content

Commit

Permalink
Document new field filters for CloudWorkloadSecurityAgentRule (#1774
Browse files Browse the repository at this point in the history
)

Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Nov 17, 2023
1 parent 83ad6b1 commit a37fc92
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-11-17 18:13:33.996478",
"spec_repo_commit": "46090fc1"
"regenerated": "2023-11-17 18:38:44.802761",
"spec_repo_commit": "ea610108"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-11-17 18:13:34.052011",
"spec_repo_commit": "46090fc1"
"regenerated": "2023-11-17 18:38:44.817898",
"spec_repo_commit": "ea610108"
}
}
}
5 changes: 5 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3042,6 +3042,11 @@ components:
description: The SECL expression of the Agent rule.
example: exec.file.name == \"sh\"
type: string
filters:
description: The platforms the Agent rule is supported on.
items:
type: string
type: array
name:
description: The name of the Agent rule.
example: my_agent_rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import List, Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
Expand Down Expand Up @@ -42,6 +42,7 @@ def openapi_types(_):
"description": (str,),
"enabled": (bool,),
"expression": (str,),
"filters": ([str],),
"name": (str,),
"update_author_uu_id": (str,),
"update_date": (int,),
Expand All @@ -60,6 +61,7 @@ def openapi_types(_):
"description": "description",
"enabled": "enabled",
"expression": "expression",
"filters": "filters",
"name": "name",
"update_author_uu_id": "updateAuthorUuId",
"update_date": "updateDate",
Expand All @@ -79,6 +81,7 @@ def __init__(
description: Union[str, UnsetType] = unset,
enabled: Union[bool, UnsetType] = unset,
expression: Union[str, UnsetType] = unset,
filters: Union[List[str], UnsetType] = unset,
name: Union[str, UnsetType] = unset,
update_author_uu_id: Union[str, UnsetType] = unset,
update_date: Union[int, UnsetType] = unset,
Expand Down Expand Up @@ -117,6 +120,9 @@ def __init__(
:param expression: The SECL expression of the Agent rule.
:type expression: str, optional
:param filters: The platforms the Agent rule is supported on.
:type filters: [str], optional
:param name: The name of the Agent rule.
:type name: str, optional
Expand Down Expand Up @@ -153,6 +159,8 @@ def __init__(
kwargs["enabled"] = enabled
if expression is not unset:
kwargs["expression"] = expression
if filters is not unset:
kwargs["filters"] = filters
if name is not unset:
kwargs["name"] = name
if update_author_uu_id is not unset:
Expand Down

0 comments on commit a37fc92

Please sign in to comment.