Skip to content

Commit 8120d27

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7d24e85a of spec repo
1 parent 5f88599 commit 8120d27

64 files changed

Lines changed: 1344 additions & 197 deletions

File tree

Some content is hidden

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

.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:18.459381",
8-
"spec_repo_commit": "64f5e7ee"
7+
"regenerated": "2025-05-15 12:25:22.896480",
8+
"spec_repo_commit": "7d24e85a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-14 15:44:18.474808",
13-
"spec_repo_commit": "64f5e7ee"
12+
"regenerated": "2025-05-15 12:25:22.917353",
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

src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleAction.java

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
/** The action the rule can perform if triggered */
2020
@JsonPropertyOrder({
2121
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_FILTER,
22-
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_KILL
22+
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_KILL,
23+
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_METADATA,
24+
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_SET
2325
})
2426
@jakarta.annotation.Generated(
2527
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -31,6 +33,12 @@ public class CloudWorkloadSecurityAgentRuleAction {
3133
public static final String JSON_PROPERTY_KILL = "kill";
3234
private CloudWorkloadSecurityAgentRuleKill kill;
3335

36+
public static final String JSON_PROPERTY_METADATA = "metadata";
37+
private CloudWorkloadSecurityAgentRuleActionMetadata metadata;
38+
39+
public static final String JSON_PROPERTY_SET = "set";
40+
private CloudWorkloadSecurityAgentRuleActionSet set;
41+
3442
public CloudWorkloadSecurityAgentRuleAction filter(String filter) {
3543
this.filter = filter;
3644
return this;
@@ -74,6 +82,51 @@ public void setKill(CloudWorkloadSecurityAgentRuleKill kill) {
7482
this.kill = kill;
7583
}
7684

85+
public CloudWorkloadSecurityAgentRuleAction metadata(
86+
CloudWorkloadSecurityAgentRuleActionMetadata metadata) {
87+
this.metadata = metadata;
88+
this.unparsed |= metadata.unparsed;
89+
return this;
90+
}
91+
92+
/**
93+
* The metadata action applied on the scope matching the rule
94+
*
95+
* @return metadata
96+
*/
97+
@jakarta.annotation.Nullable
98+
@JsonProperty(JSON_PROPERTY_METADATA)
99+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
100+
public CloudWorkloadSecurityAgentRuleActionMetadata getMetadata() {
101+
return metadata;
102+
}
103+
104+
public void setMetadata(CloudWorkloadSecurityAgentRuleActionMetadata metadata) {
105+
this.metadata = metadata;
106+
}
107+
108+
public CloudWorkloadSecurityAgentRuleAction set(CloudWorkloadSecurityAgentRuleActionSet set) {
109+
this.set = set;
110+
this.unparsed |= set.unparsed;
111+
return this;
112+
}
113+
114+
/**
115+
* The set action applied on the scope matching the rule
116+
*
117+
* @return set
118+
*/
119+
@jakarta.annotation.Nullable
120+
@JsonProperty(JSON_PROPERTY_SET)
121+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122+
public CloudWorkloadSecurityAgentRuleActionSet getSet() {
123+
return set;
124+
}
125+
126+
public void setSet(CloudWorkloadSecurityAgentRuleActionSet set) {
127+
this.set = set;
128+
}
129+
77130
/**
78131
* A container for additional, undeclared properties. This is a holder for any undeclared
79132
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -133,13 +186,15 @@ public boolean equals(Object o) {
133186
(CloudWorkloadSecurityAgentRuleAction) o;
134187
return Objects.equals(this.filter, cloudWorkloadSecurityAgentRuleAction.filter)
135188
&& Objects.equals(this.kill, cloudWorkloadSecurityAgentRuleAction.kill)
189+
&& Objects.equals(this.metadata, cloudWorkloadSecurityAgentRuleAction.metadata)
190+
&& Objects.equals(this.set, cloudWorkloadSecurityAgentRuleAction.set)
136191
&& Objects.equals(
137192
this.additionalProperties, cloudWorkloadSecurityAgentRuleAction.additionalProperties);
138193
}
139194

140195
@Override
141196
public int hashCode() {
142-
return Objects.hash(filter, kill, additionalProperties);
197+
return Objects.hash(filter, kill, metadata, set, additionalProperties);
143198
}
144199

145200
@Override
@@ -148,6 +203,8 @@ public String toString() {
148203
sb.append("class CloudWorkloadSecurityAgentRuleAction {\n");
149204
sb.append(" filter: ").append(toIndentedString(filter)).append("\n");
150205
sb.append(" kill: ").append(toIndentedString(kill)).append("\n");
206+
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
207+
sb.append(" set: ").append(toIndentedString(set)).append("\n");
151208
sb.append(" additionalProperties: ")
152209
.append(toIndentedString(additionalProperties))
153210
.append("\n");

0 commit comments

Comments
 (0)