Skip to content

Commit 96aa158

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 422c4e0 of spec repo
1 parent 7711528 commit 96aa158

9 files changed

Lines changed: 334 additions & 2 deletions

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19505,6 +19505,8 @@ components:
1950519505
CloudWorkloadSecurityAgentRuleAction:
1950619506
description: "The action the rule can perform if triggered"
1950719507
properties:
19508+
coredump:
19509+
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionCoreDump"
1950819510
disabled:
1950919511
description: "Whether the action is disabled"
1951019512
example: false
@@ -19516,17 +19518,51 @@ components:
1951619518
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionHash"
1951719519
kill:
1951819520
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleKill"
19521+
log:
19522+
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionLog"
1951919523
metadata:
1952019524
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionMetadata"
19525+
network_filter:
19526+
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionNetworkFilter"
1952119527
set:
1952219528
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet"
1952319529
type: object
19530+
CloudWorkloadSecurityAgentRuleActionCoreDump:
19531+
description: "The core dump action applied on the process matching the rule."
19532+
properties:
19533+
dentry:
19534+
description: "Whether the directory entry information is included in the core dump."
19535+
type: boolean
19536+
mount:
19537+
description: "Whether the mount information is included in the core dump."
19538+
type: boolean
19539+
no_compression:
19540+
description: "Whether the core dump is left uncompressed."
19541+
type: boolean
19542+
process:
19543+
description: "Whether the process memory is included in the core dump."
19544+
type: boolean
19545+
type: object
1952419546
CloudWorkloadSecurityAgentRuleActionHash:
1952519547
description: "Hash file specified by the field attribute"
1952619548
properties:
1952719549
field:
1952819550
description: "The field of the hash action"
1952919551
type: string
19552+
max_file_size:
19553+
description: "The maximum size of the files to hash, in bytes."
19554+
format: int64
19555+
type: integer
19556+
type: object
19557+
CloudWorkloadSecurityAgentRuleActionLog:
19558+
description: "The log action applied when the rule is triggered."
19559+
properties:
19560+
level:
19561+
description: "The level of the log action."
19562+
type: string
19563+
message:
19564+
description: "The message of the log action."
19565+
type: string
1953019566
type: object
1953119567
CloudWorkloadSecurityAgentRuleActionMetadata:
1953219568
description: "The metadata action applied on the scope matching the rule"
@@ -19541,6 +19577,19 @@ components:
1954119577
description: "The short image of the metadata action"
1954219578
type: string
1954319579
type: object
19580+
CloudWorkloadSecurityAgentRuleActionNetworkFilter:
19581+
description: "The network filter action applied on the network traffic matching the rule."
19582+
properties:
19583+
filter:
19584+
description: "The filter expression of the network filter action."
19585+
type: string
19586+
policy:
19587+
description: "The policy of the network filter action."
19588+
type: string
19589+
scope:
19590+
description: "The scope of the network filter action."
19591+
type: string
19592+
type: object
1954419593
CloudWorkloadSecurityAgentRuleActionSet:
1954519594
description: "The set action applied on the scope matching the rule"
1954619595
properties:
@@ -19562,9 +19611,15 @@ components:
1956219611
name:
1956319612
description: "The name of the set action"
1956419613
type: string
19614+
private:
19615+
description: "Whether the value of the set action is private."
19616+
type: boolean
1956519617
scope:
1956619618
description: "The scope of the set action."
1956719619
type: string
19620+
scope_field:
19621+
description: "The scope field of the set action."
19622+
type: string
1956819623
size:
1956919624
description: "The size of the set action."
1957019625
format: int64
@@ -19819,6 +19874,15 @@ components:
1981919874
CloudWorkloadSecurityAgentRuleKill:
1982019875
description: "Kill system call applied on the container matching the rule"
1982119876
properties:
19877+
disable_container_disarmer:
19878+
description: "Whether the automatic container safeguard of the kill action is disabled."
19879+
type: boolean
19880+
disable_executable_disarmer:
19881+
description: "Whether the automatic executable safeguard of the kill action is disabled."
19882+
type: boolean
19883+
scope:
19884+
description: "The scope of the kill action."
19885+
type: string
1982219886
signal:
1982319887
description: "Supported signals for the kill system call"
1982419888
type: string

‎src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action.py‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,22 @@
1414

1515

1616
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_core_dump import (
18+
CloudWorkloadSecurityAgentRuleActionCoreDump,
19+
)
1720
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_hash import (
1821
CloudWorkloadSecurityAgentRuleActionHash,
1922
)
2023
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_kill import CloudWorkloadSecurityAgentRuleKill
24+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_log import (
25+
CloudWorkloadSecurityAgentRuleActionLog,
26+
)
2127
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_metadata import (
2228
CloudWorkloadSecurityAgentRuleActionMetadata,
2329
)
30+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_network_filter import (
31+
CloudWorkloadSecurityAgentRuleActionNetworkFilter,
32+
)
2433
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_set import (
2534
CloudWorkloadSecurityAgentRuleActionSet,
2635
)
@@ -29,50 +38,71 @@
2938
class CloudWorkloadSecurityAgentRuleAction(ModelNormal):
3039
@cached_property
3140
def openapi_types(_):
41+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_core_dump import (
42+
CloudWorkloadSecurityAgentRuleActionCoreDump,
43+
)
3244
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_hash import (
3345
CloudWorkloadSecurityAgentRuleActionHash,
3446
)
3547
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_kill import (
3648
CloudWorkloadSecurityAgentRuleKill,
3749
)
50+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_log import (
51+
CloudWorkloadSecurityAgentRuleActionLog,
52+
)
3853
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_metadata import (
3954
CloudWorkloadSecurityAgentRuleActionMetadata,
4055
)
56+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_network_filter import (
57+
CloudWorkloadSecurityAgentRuleActionNetworkFilter,
58+
)
4159
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_set import (
4260
CloudWorkloadSecurityAgentRuleActionSet,
4361
)
4462

4563
return {
64+
"coredump": (CloudWorkloadSecurityAgentRuleActionCoreDump,),
4665
"disabled": (bool,),
4766
"filter": (str,),
4867
"hash": (CloudWorkloadSecurityAgentRuleActionHash,),
4968
"kill": (CloudWorkloadSecurityAgentRuleKill,),
69+
"log": (CloudWorkloadSecurityAgentRuleActionLog,),
5070
"metadata": (CloudWorkloadSecurityAgentRuleActionMetadata,),
71+
"network_filter": (CloudWorkloadSecurityAgentRuleActionNetworkFilter,),
5172
"set": (CloudWorkloadSecurityAgentRuleActionSet,),
5273
}
5374

5475
attribute_map = {
76+
"coredump": "coredump",
5577
"disabled": "disabled",
5678
"filter": "filter",
5779
"hash": "hash",
5880
"kill": "kill",
81+
"log": "log",
5982
"metadata": "metadata",
83+
"network_filter": "network_filter",
6084
"set": "set",
6185
}
6286

6387
def __init__(
6488
self_,
89+
coredump: Union[CloudWorkloadSecurityAgentRuleActionCoreDump, UnsetType] = unset,
6590
disabled: Union[bool, UnsetType] = unset,
6691
filter: Union[str, UnsetType] = unset,
6792
hash: Union[CloudWorkloadSecurityAgentRuleActionHash, UnsetType] = unset,
6893
kill: Union[CloudWorkloadSecurityAgentRuleKill, UnsetType] = unset,
94+
log: Union[CloudWorkloadSecurityAgentRuleActionLog, UnsetType] = unset,
6995
metadata: Union[CloudWorkloadSecurityAgentRuleActionMetadata, UnsetType] = unset,
96+
network_filter: Union[CloudWorkloadSecurityAgentRuleActionNetworkFilter, UnsetType] = unset,
7097
set: Union[CloudWorkloadSecurityAgentRuleActionSet, UnsetType] = unset,
7198
**kwargs,
7299
):
73100
"""
74101
The action the rule can perform if triggered
75102
103+
:param coredump: The core dump action applied on the process matching the rule.
104+
:type coredump: CloudWorkloadSecurityAgentRuleActionCoreDump, optional
105+
76106
:param disabled: Whether the action is disabled
77107
:type disabled: bool, optional
78108
@@ -85,12 +115,20 @@ def __init__(
85115
:param kill: Kill system call applied on the container matching the rule
86116
:type kill: CloudWorkloadSecurityAgentRuleKill, optional
87117
118+
:param log: The log action applied when the rule is triggered.
119+
:type log: CloudWorkloadSecurityAgentRuleActionLog, optional
120+
88121
:param metadata: The metadata action applied on the scope matching the rule
89122
:type metadata: CloudWorkloadSecurityAgentRuleActionMetadata, optional
90123
124+
:param network_filter: The network filter action applied on the network traffic matching the rule.
125+
:type network_filter: CloudWorkloadSecurityAgentRuleActionNetworkFilter, optional
126+
91127
:param set: The set action applied on the scope matching the rule
92128
:type set: CloudWorkloadSecurityAgentRuleActionSet, optional
93129
"""
130+
if coredump is not unset:
131+
kwargs["coredump"] = coredump
94132
if disabled is not unset:
95133
kwargs["disabled"] = disabled
96134
if filter is not unset:
@@ -99,8 +137,12 @@ def __init__(
99137
kwargs["hash"] = hash
100138
if kill is not unset:
101139
kwargs["kill"] = kill
140+
if log is not unset:
141+
kwargs["log"] = log
102142
if metadata is not unset:
103143
kwargs["metadata"] = metadata
144+
if network_filter is not unset:
145+
kwargs["network_filter"] = network_filter
104146
if set is not unset:
105147
kwargs["set"] = set
106148
super().__init__(kwargs)
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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 CloudWorkloadSecurityAgentRuleActionCoreDump(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"dentry": (bool,),
21+
"mount": (bool,),
22+
"no_compression": (bool,),
23+
"process": (bool,),
24+
}
25+
26+
attribute_map = {
27+
"dentry": "dentry",
28+
"mount": "mount",
29+
"no_compression": "no_compression",
30+
"process": "process",
31+
}
32+
33+
def __init__(
34+
self_,
35+
dentry: Union[bool, UnsetType] = unset,
36+
mount: Union[bool, UnsetType] = unset,
37+
no_compression: Union[bool, UnsetType] = unset,
38+
process: Union[bool, UnsetType] = unset,
39+
**kwargs,
40+
):
41+
"""
42+
The core dump action applied on the process matching the rule.
43+
44+
:param dentry: Whether the directory entry information is included in the core dump.
45+
:type dentry: bool, optional
46+
47+
:param mount: Whether the mount information is included in the core dump.
48+
:type mount: bool, optional
49+
50+
:param no_compression: Whether the core dump is left uncompressed.
51+
:type no_compression: bool, optional
52+
53+
:param process: Whether the process memory is included in the core dump.
54+
:type process: bool, optional
55+
"""
56+
if dentry is not unset:
57+
kwargs["dentry"] = dentry
58+
if mount is not unset:
59+
kwargs["mount"] = mount
60+
if no_compression is not unset:
61+
kwargs["no_compression"] = no_compression
62+
if process is not unset:
63+
kwargs["process"] = process
64+
super().__init__(kwargs)

‎src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action_hash.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,26 @@ class CloudWorkloadSecurityAgentRuleActionHash(ModelNormal):
1818
def openapi_types(_):
1919
return {
2020
"field": (str,),
21+
"max_file_size": (int,),
2122
}
2223

2324
attribute_map = {
2425
"field": "field",
26+
"max_file_size": "max_file_size",
2527
}
2628

27-
def __init__(self_, field: Union[str, UnsetType] = unset, **kwargs):
29+
def __init__(self_, field: Union[str, UnsetType] = unset, max_file_size: Union[int, UnsetType] = unset, **kwargs):
2830
"""
2931
Hash file specified by the field attribute
3032
3133
:param field: The field of the hash action
3234
:type field: str, optional
35+
36+
:param max_file_size: The maximum size of the files to hash, in bytes.
37+
:type max_file_size: int, optional
3338
"""
3439
if field is not unset:
3540
kwargs["field"] = field
41+
if max_file_size is not unset:
42+
kwargs["max_file_size"] = max_file_size
3643
super().__init__(kwargs)
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 CloudWorkloadSecurityAgentRuleActionLog(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"level": (str,),
21+
"message": (str,),
22+
}
23+
24+
attribute_map = {
25+
"level": "level",
26+
"message": "message",
27+
}
28+
29+
def __init__(self_, level: Union[str, UnsetType] = unset, message: Union[str, UnsetType] = unset, **kwargs):
30+
"""
31+
The log action applied when the rule is triggered.
32+
33+
:param level: The level of the log action.
34+
:type level: str, optional
35+
36+
:param message: The message of the log action.
37+
:type message: str, optional
38+
"""
39+
if level is not unset:
40+
kwargs["level"] = level
41+
if message is not unset:
42+
kwargs["message"] = message
43+
super().__init__(kwargs)

0 commit comments

Comments
 (0)