Skip to content

Commit d650b74

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 744b701 of spec repo (#4011)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 68d878c commit d650b74

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
@@ -19559,6 +19559,8 @@ components:
1955919559
CloudWorkloadSecurityAgentRuleAction:
1956019560
description: "The action the rule can perform if triggered"
1956119561
properties:
19562+
coredump:
19563+
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionCoreDump"
1956219564
disabled:
1956319565
description: "Whether the action is disabled"
1956419566
example: false
@@ -19570,17 +19572,51 @@ components:
1957019572
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionHash"
1957119573
kill:
1957219574
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleKill"
19575+
log:
19576+
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionLog"
1957319577
metadata:
1957419578
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionMetadata"
19579+
network_filter:
19580+
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionNetworkFilter"
1957519581
set:
1957619582
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet"
1957719583
type: object
19584+
CloudWorkloadSecurityAgentRuleActionCoreDump:
19585+
description: "The core dump action applied on the process matching the rule."
19586+
properties:
19587+
dentry:
19588+
description: "Whether the directory entry information is included in the core dump."
19589+
type: boolean
19590+
mount:
19591+
description: "Whether the mount information is included in the core dump."
19592+
type: boolean
19593+
no_compression:
19594+
description: "Whether the core dump is left uncompressed."
19595+
type: boolean
19596+
process:
19597+
description: "Whether the process memory is included in the core dump."
19598+
type: boolean
19599+
type: object
1957819600
CloudWorkloadSecurityAgentRuleActionHash:
1957919601
description: "Hash file specified by the field attribute"
1958019602
properties:
1958119603
field:
1958219604
description: "The field of the hash action"
1958319605
type: string
19606+
max_file_size:
19607+
description: "The maximum size of the files to hash, in bytes."
19608+
format: int64
19609+
type: integer
19610+
type: object
19611+
CloudWorkloadSecurityAgentRuleActionLog:
19612+
description: "The log action applied when the rule is triggered."
19613+
properties:
19614+
level:
19615+
description: "The level of the log action."
19616+
type: string
19617+
message:
19618+
description: "The message of the log action."
19619+
type: string
1958419620
type: object
1958519621
CloudWorkloadSecurityAgentRuleActionMetadata:
1958619622
description: "The metadata action applied on the scope matching the rule"
@@ -19595,6 +19631,19 @@ components:
1959519631
description: "The short image of the metadata action"
1959619632
type: string
1959719633
type: object
19634+
CloudWorkloadSecurityAgentRuleActionNetworkFilter:
19635+
description: "The network filter action applied on the network traffic matching the rule."
19636+
properties:
19637+
filter:
19638+
description: "The filter expression of the network filter action."
19639+
type: string
19640+
policy:
19641+
description: "The policy of the network filter action."
19642+
type: string
19643+
scope:
19644+
description: "The scope of the network filter action."
19645+
type: string
19646+
type: object
1959819647
CloudWorkloadSecurityAgentRuleActionSet:
1959919648
description: "The set action applied on the scope matching the rule"
1960019649
properties:
@@ -19616,9 +19665,15 @@ components:
1961619665
name:
1961719666
description: "The name of the set action"
1961819667
type: string
19668+
private:
19669+
description: "Whether the value of the set action is private."
19670+
type: boolean
1961919671
scope:
1962019672
description: "The scope of the set action."
1962119673
type: string
19674+
scope_field:
19675+
description: "The scope field of the set action."
19676+
type: string
1962219677
size:
1962319678
description: "The size of the set action."
1962419679
format: int64
@@ -19873,6 +19928,15 @@ components:
1987319928
CloudWorkloadSecurityAgentRuleKill:
1987419929
description: "Kill system call applied on the container matching the rule"
1987519930
properties:
19931+
disable_container_disarmer:
19932+
description: "Whether the automatic container safeguard of the kill action is disabled."
19933+
type: boolean
19934+
disable_executable_disarmer:
19935+
description: "Whether the automatic executable safeguard of the kill action is disabled."
19936+
type: boolean
19937+
scope:
19938+
description: "The scope of the kill action."
19939+
type: string
1987619940
signal:
1987719941
description: "Supported signals for the kill system call"
1987819942
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)