Skip to content

Commit 5e0387c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7d24e85a of spec repo
1 parent 89297af commit 5e0387c

File tree

66 files changed

+1931
-2020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1931
-2020
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": "2025-05-14 15:44:27.314895",
8-
"spec_repo_commit": "64f5e7ee"
7+
"regenerated": "2025-05-15 12:25:35.310202",
8+
"spec_repo_commit": "7d24e85a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-14 15:44:27.373827",
13-
"spec_repo_commit": "64f5e7ee"
12+
"regenerated": "2025-05-15 12:25:35.359129",
13+
"spec_repo_commit": "7d24e85a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7469,6 +7469,50 @@ components:
74697469
type: string
74707470
kill:
74717471
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleKill'
7472+
metadata:
7473+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionMetadata'
7474+
set:
7475+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet'
7476+
type: object
7477+
CloudWorkloadSecurityAgentRuleActionMetadata:
7478+
description: The metadata action applied on the scope matching the rule
7479+
properties:
7480+
image_tag:
7481+
description: The image tag of the metadata action
7482+
type: string
7483+
service:
7484+
description: The service of the metadata action
7485+
type: string
7486+
short_image:
7487+
description: The short image of the metadata action
7488+
type: string
7489+
type: object
7490+
CloudWorkloadSecurityAgentRuleActionSet:
7491+
description: The set action applied on the scope matching the rule
7492+
properties:
7493+
append:
7494+
description: Whether the value should be appended to the field
7495+
type: boolean
7496+
field:
7497+
description: The field of the set action
7498+
type: string
7499+
name:
7500+
description: The name of the set action
7501+
type: string
7502+
scope:
7503+
description: The scope of the set action
7504+
type: string
7505+
size:
7506+
description: The size of the set action
7507+
format: int64
7508+
type: integer
7509+
ttl:
7510+
description: The time to live of the set action
7511+
format: int64
7512+
type: integer
7513+
value:
7514+
description: The value of the set action
7515+
type: string
74727516
type: object
74737517
CloudWorkloadSecurityAgentRuleActions:
74747518
description: The array of actions the rule can perform if triggered
@@ -7484,6 +7528,11 @@ components:
74847528
agentConstraint:
74857529
description: The version of the Agent
74867530
type: string
7531+
blocking:
7532+
description: The blocking policies that the rule belongs to
7533+
items:
7534+
type: string
7535+
type: array
74877536
category:
74887537
description: The category of the Agent rule
74897538
example: Process Activity
@@ -7507,6 +7556,11 @@ components:
75077556
description: The description of the Agent rule
75087557
example: My Agent rule
75097558
type: string
7559+
disabled:
7560+
description: The disabled policies that the rule belongs to
7561+
items:
7562+
type: string
7563+
type: array
75107564
enabled:
75117565
description: Whether the Agent rule is enabled
75127566
example: true
@@ -7520,6 +7574,11 @@ components:
75207574
items:
75217575
type: string
75227576
type: array
7577+
monitoring:
7578+
description: The monitoring policies that the rule belongs to
7579+
items:
7580+
type: string
7581+
type: array
75237582
name:
75247583
description: The name of the Agent rule
75257584
example: my_agent_rule
@@ -7554,10 +7613,20 @@ components:
75547613
CloudWorkloadSecurityAgentRuleCreateAttributes:
75557614
description: Create a new Cloud Workload Security Agent rule.
75567615
properties:
7616+
blocking:
7617+
description: The blocking policies that the rule belongs to
7618+
items:
7619+
type: string
7620+
type: array
75577621
description:
75587622
description: The description of the Agent rule.
75597623
example: My Agent rule
75607624
type: string
7625+
disabled:
7626+
description: The disabled policies that the rule belongs to
7627+
items:
7628+
type: string
7629+
type: array
75617630
enabled:
75627631
description: Whether the Agent rule is enabled
75637632
example: true
@@ -7571,6 +7640,11 @@ components:
75717640
items:
75727641
type: string
75737642
type: array
7643+
monitoring:
7644+
description: The monitoring policies that the rule belongs to
7645+
items:
7646+
type: string
7647+
type: array
75747648
name:
75757649
description: The name of the Agent rule.
75767650
example: my_agent_rule
@@ -7661,10 +7735,20 @@ components:
76617735
CloudWorkloadSecurityAgentRuleUpdateAttributes:
76627736
description: Update an existing Cloud Workload Security Agent rule
76637737
properties:
7738+
blocking:
7739+
description: The blocking policies that the rule belongs to
7740+
items:
7741+
type: string
7742+
type: array
76647743
description:
76657744
description: The description of the Agent rule
76667745
example: My Agent rule
76677746
type: string
7747+
disabled:
7748+
description: The disabled policies that the rule belongs to
7749+
items:
7750+
type: string
7751+
type: array
76687752
enabled:
76697753
description: Whether the Agent rule is enabled
76707754
example: true
@@ -7673,6 +7757,11 @@ components:
76737757
description: The SECL expression of the Agent rule
76747758
example: exec.file.name == "sh"
76757759
type: string
7760+
monitoring:
7761+
description: The monitoring policies that the rule belongs to
7762+
items:
7763+
type: string
7764+
type: array
76767765
policy_id:
76777766
description: The ID of the policy where the Agent rule is saved
76787767
example: a8c8e364-6556-434d-b798-a4c23de29c0b

docs/datadog_api_client.v2.model.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2839,6 +2839,20 @@ datadog\_api\_client.v2.model.cloud\_workload\_security\_agent\_rule\_action mod
28392839
:members:
28402840
:show-inheritance:
28412841

2842+
datadog\_api\_client.v2.model.cloud\_workload\_security\_agent\_rule\_action\_metadata module
2843+
---------------------------------------------------------------------------------------------
2844+
2845+
.. automodule:: datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_metadata
2846+
:members:
2847+
:show-inheritance:
2848+
2849+
datadog\_api\_client.v2.model.cloud\_workload\_security\_agent\_rule\_action\_set module
2850+
----------------------------------------------------------------------------------------
2851+
2852+
.. automodule:: datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_set
2853+
:members:
2854+
:show-inheritance:
2855+
28422856
datadog\_api\_client.v2.model.cloud\_workload\_security\_agent\_rule\_attributes module
28432857
---------------------------------------------------------------------------------------
28442858

src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_kill import CloudWorkloadSecurityAgentRuleKill
18+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_metadata import (
19+
CloudWorkloadSecurityAgentRuleActionMetadata,
20+
)
21+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_set import (
22+
CloudWorkloadSecurityAgentRuleActionSet,
23+
)
1824

1925

2026
class CloudWorkloadSecurityAgentRuleAction(ModelNormal):
@@ -23,21 +29,33 @@ def openapi_types(_):
2329
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_kill import (
2430
CloudWorkloadSecurityAgentRuleKill,
2531
)
32+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_metadata import (
33+
CloudWorkloadSecurityAgentRuleActionMetadata,
34+
)
35+
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action_set import (
36+
CloudWorkloadSecurityAgentRuleActionSet,
37+
)
2638

2739
return {
2840
"filter": (str,),
2941
"kill": (CloudWorkloadSecurityAgentRuleKill,),
42+
"metadata": (CloudWorkloadSecurityAgentRuleActionMetadata,),
43+
"set": (CloudWorkloadSecurityAgentRuleActionSet,),
3044
}
3145

3246
attribute_map = {
3347
"filter": "filter",
3448
"kill": "kill",
49+
"metadata": "metadata",
50+
"set": "set",
3551
}
3652

3753
def __init__(
3854
self_,
3955
filter: Union[str, UnsetType] = unset,
4056
kill: Union[CloudWorkloadSecurityAgentRuleKill, UnsetType] = unset,
57+
metadata: Union[CloudWorkloadSecurityAgentRuleActionMetadata, UnsetType] = unset,
58+
set: Union[CloudWorkloadSecurityAgentRuleActionSet, UnsetType] = unset,
4159
**kwargs,
4260
):
4361
"""
@@ -48,9 +66,19 @@ def __init__(
4866
4967
:param kill: Kill system call applied on the container matching the rule
5068
:type kill: CloudWorkloadSecurityAgentRuleKill, optional
69+
70+
:param metadata: The metadata action applied on the scope matching the rule
71+
:type metadata: CloudWorkloadSecurityAgentRuleActionMetadata, optional
72+
73+
:param set: The set action applied on the scope matching the rule
74+
:type set: CloudWorkloadSecurityAgentRuleActionSet, optional
5175
"""
5276
if filter is not unset:
5377
kwargs["filter"] = filter
5478
if kill is not unset:
5579
kwargs["kill"] = kill
80+
if metadata is not unset:
81+
kwargs["metadata"] = metadata
82+
if set is not unset:
83+
kwargs["set"] = set
5684
super().__init__(kwargs)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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 CloudWorkloadSecurityAgentRuleActionMetadata(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"image_tag": (str,),
21+
"service": (str,),
22+
"short_image": (str,),
23+
}
24+
25+
attribute_map = {
26+
"image_tag": "image_tag",
27+
"service": "service",
28+
"short_image": "short_image",
29+
}
30+
31+
def __init__(
32+
self_,
33+
image_tag: Union[str, UnsetType] = unset,
34+
service: Union[str, UnsetType] = unset,
35+
short_image: Union[str, UnsetType] = unset,
36+
**kwargs,
37+
):
38+
"""
39+
The metadata action applied on the scope matching the rule
40+
41+
:param image_tag: The image tag of the metadata action
42+
:type image_tag: str, optional
43+
44+
:param service: The service of the metadata action
45+
:type service: str, optional
46+
47+
:param short_image: The short image of the metadata action
48+
:type short_image: str, optional
49+
"""
50+
if image_tag is not unset:
51+
kwargs["image_tag"] = image_tag
52+
if service is not unset:
53+
kwargs["service"] = service
54+
if short_image is not unset:
55+
kwargs["short_image"] = short_image
56+
super().__init__(kwargs)

0 commit comments

Comments
 (0)