Skip to content

Commit 74977f8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1a0e3ba of spec repo
1 parent 31dfd5d commit 74977f8

File tree

3 files changed

+134
-1
lines changed

3 files changed

+134
-1
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9421,9 +9421,18 @@ components:
94219421
append:
94229422
description: Whether the value should be appended to the field
94239423
type: boolean
9424+
default_value:
9425+
description: The default value of the set action
9426+
type: string
9427+
expression:
9428+
description: The expression of the set action
9429+
type: string
94249430
field:
94259431
description: The field of the set action
94269432
type: string
9433+
inherited:
9434+
description: Whether the value should be inherited
9435+
type: boolean
94279436
name:
94289437
description: The name of the set action
94299438
type: string
@@ -9543,6 +9552,9 @@ components:
95439552
properties:
95449553
actions:
95459554
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9555+
agent_version:
9556+
description: Constrain the rule to specific versions of the Datadog Agent
9557+
type: string
95469558
blocking:
95479559
description: The blocking policies that the rule belongs to
95489560
items:

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

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
/** The set action applied on the scope matching the rule */
2020
@JsonPropertyOrder({
2121
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_APPEND,
22+
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_DEFAULT_VALUE,
23+
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_EXPRESSION,
2224
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_FIELD,
25+
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_INHERITED,
2326
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_NAME,
2427
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_SCOPE,
2528
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_SIZE,
@@ -33,9 +36,18 @@ public class CloudWorkloadSecurityAgentRuleActionSet {
3336
public static final String JSON_PROPERTY_APPEND = "append";
3437
private Boolean append;
3538

39+
public static final String JSON_PROPERTY_DEFAULT_VALUE = "default_value";
40+
private String defaultValue;
41+
42+
public static final String JSON_PROPERTY_EXPRESSION = "expression";
43+
private String expression;
44+
3645
public static final String JSON_PROPERTY_FIELD = "field";
3746
private String field;
3847

48+
public static final String JSON_PROPERTY_INHERITED = "inherited";
49+
private Boolean inherited;
50+
3951
public static final String JSON_PROPERTY_NAME = "name";
4052
private String name;
4153

@@ -72,6 +84,48 @@ public void setAppend(Boolean append) {
7284
this.append = append;
7385
}
7486

87+
public CloudWorkloadSecurityAgentRuleActionSet defaultValue(String defaultValue) {
88+
this.defaultValue = defaultValue;
89+
return this;
90+
}
91+
92+
/**
93+
* The default value of the set action
94+
*
95+
* @return defaultValue
96+
*/
97+
@jakarta.annotation.Nullable
98+
@JsonProperty(JSON_PROPERTY_DEFAULT_VALUE)
99+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
100+
public String getDefaultValue() {
101+
return defaultValue;
102+
}
103+
104+
public void setDefaultValue(String defaultValue) {
105+
this.defaultValue = defaultValue;
106+
}
107+
108+
public CloudWorkloadSecurityAgentRuleActionSet expression(String expression) {
109+
this.expression = expression;
110+
return this;
111+
}
112+
113+
/**
114+
* The expression of the set action
115+
*
116+
* @return expression
117+
*/
118+
@jakarta.annotation.Nullable
119+
@JsonProperty(JSON_PROPERTY_EXPRESSION)
120+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
121+
public String getExpression() {
122+
return expression;
123+
}
124+
125+
public void setExpression(String expression) {
126+
this.expression = expression;
127+
}
128+
75129
public CloudWorkloadSecurityAgentRuleActionSet field(String field) {
76130
this.field = field;
77131
return this;
@@ -93,6 +147,27 @@ public void setField(String field) {
93147
this.field = field;
94148
}
95149

150+
public CloudWorkloadSecurityAgentRuleActionSet inherited(Boolean inherited) {
151+
this.inherited = inherited;
152+
return this;
153+
}
154+
155+
/**
156+
* Whether the value should be inherited
157+
*
158+
* @return inherited
159+
*/
160+
@jakarta.annotation.Nullable
161+
@JsonProperty(JSON_PROPERTY_INHERITED)
162+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
163+
public Boolean getInherited() {
164+
return inherited;
165+
}
166+
167+
public void setInherited(Boolean inherited) {
168+
this.inherited = inherited;
169+
}
170+
96171
public CloudWorkloadSecurityAgentRuleActionSet name(String name) {
97172
this.name = name;
98173
return this;
@@ -256,7 +331,10 @@ public boolean equals(Object o) {
256331
CloudWorkloadSecurityAgentRuleActionSet cloudWorkloadSecurityAgentRuleActionSet =
257332
(CloudWorkloadSecurityAgentRuleActionSet) o;
258333
return Objects.equals(this.append, cloudWorkloadSecurityAgentRuleActionSet.append)
334+
&& Objects.equals(this.defaultValue, cloudWorkloadSecurityAgentRuleActionSet.defaultValue)
335+
&& Objects.equals(this.expression, cloudWorkloadSecurityAgentRuleActionSet.expression)
259336
&& Objects.equals(this.field, cloudWorkloadSecurityAgentRuleActionSet.field)
337+
&& Objects.equals(this.inherited, cloudWorkloadSecurityAgentRuleActionSet.inherited)
260338
&& Objects.equals(this.name, cloudWorkloadSecurityAgentRuleActionSet.name)
261339
&& Objects.equals(this.scope, cloudWorkloadSecurityAgentRuleActionSet.scope)
262340
&& Objects.equals(this.size, cloudWorkloadSecurityAgentRuleActionSet.size)
@@ -269,15 +347,29 @@ public boolean equals(Object o) {
269347

270348
@Override
271349
public int hashCode() {
272-
return Objects.hash(append, field, name, scope, size, ttl, value, additionalProperties);
350+
return Objects.hash(
351+
append,
352+
defaultValue,
353+
expression,
354+
field,
355+
inherited,
356+
name,
357+
scope,
358+
size,
359+
ttl,
360+
value,
361+
additionalProperties);
273362
}
274363

275364
@Override
276365
public String toString() {
277366
StringBuilder sb = new StringBuilder();
278367
sb.append("class CloudWorkloadSecurityAgentRuleActionSet {\n");
279368
sb.append(" append: ").append(toIndentedString(append)).append("\n");
369+
sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n");
370+
sb.append(" expression: ").append(toIndentedString(expression)).append("\n");
280371
sb.append(" field: ").append(toIndentedString(field)).append("\n");
372+
sb.append(" inherited: ").append(toIndentedString(inherited)).append("\n");
281373
sb.append(" name: ").append(toIndentedString(name)).append("\n");
282374
sb.append(" scope: ").append(toIndentedString(scope)).append("\n");
283375
sb.append(" size: ").append(toIndentedString(size)).append("\n");

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
/** Create a new Cloud Workload Security Agent rule. */
2424
@JsonPropertyOrder({
2525
CloudWorkloadSecurityAgentRuleCreateAttributes.JSON_PROPERTY_ACTIONS,
26+
CloudWorkloadSecurityAgentRuleCreateAttributes.JSON_PROPERTY_AGENT_VERSION,
2627
CloudWorkloadSecurityAgentRuleCreateAttributes.JSON_PROPERTY_BLOCKING,
2728
CloudWorkloadSecurityAgentRuleCreateAttributes.JSON_PROPERTY_DESCRIPTION,
2829
CloudWorkloadSecurityAgentRuleCreateAttributes.JSON_PROPERTY_DISABLED,
@@ -42,6 +43,9 @@ public class CloudWorkloadSecurityAgentRuleCreateAttributes {
4243
private JsonNullable<List<CloudWorkloadSecurityAgentRuleAction>> actions =
4344
JsonNullable.<List<CloudWorkloadSecurityAgentRuleAction>>undefined();
4445

46+
public static final String JSON_PROPERTY_AGENT_VERSION = "agent_version";
47+
private String agentVersion;
48+
4549
public static final String JSON_PROPERTY_BLOCKING = "blocking";
4650
private List<String> blocking = null;
4751

@@ -128,6 +132,27 @@ public void setActions(List<CloudWorkloadSecurityAgentRuleAction> actions) {
128132
this.actions = JsonNullable.<List<CloudWorkloadSecurityAgentRuleAction>>of(actions);
129133
}
130134

135+
public CloudWorkloadSecurityAgentRuleCreateAttributes agentVersion(String agentVersion) {
136+
this.agentVersion = agentVersion;
137+
return this;
138+
}
139+
140+
/**
141+
* Constrain the rule to specific versions of the Datadog Agent
142+
*
143+
* @return agentVersion
144+
*/
145+
@jakarta.annotation.Nullable
146+
@JsonProperty(JSON_PROPERTY_AGENT_VERSION)
147+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148+
public String getAgentVersion() {
149+
return agentVersion;
150+
}
151+
152+
public void setAgentVersion(String agentVersion) {
153+
this.agentVersion = agentVersion;
154+
}
155+
131156
public CloudWorkloadSecurityAgentRuleCreateAttributes blocking(List<String> blocking) {
132157
this.blocking = blocking;
133158
return this;
@@ -435,6 +460,8 @@ public boolean equals(Object o) {
435460
CloudWorkloadSecurityAgentRuleCreateAttributes cloudWorkloadSecurityAgentRuleCreateAttributes =
436461
(CloudWorkloadSecurityAgentRuleCreateAttributes) o;
437462
return Objects.equals(this.actions, cloudWorkloadSecurityAgentRuleCreateAttributes.actions)
463+
&& Objects.equals(
464+
this.agentVersion, cloudWorkloadSecurityAgentRuleCreateAttributes.agentVersion)
438465
&& Objects.equals(this.blocking, cloudWorkloadSecurityAgentRuleCreateAttributes.blocking)
439466
&& Objects.equals(
440467
this.description, cloudWorkloadSecurityAgentRuleCreateAttributes.description)
@@ -458,6 +485,7 @@ public boolean equals(Object o) {
458485
public int hashCode() {
459486
return Objects.hash(
460487
actions,
488+
agentVersion,
461489
blocking,
462490
description,
463491
disabled,
@@ -476,6 +504,7 @@ public String toString() {
476504
StringBuilder sb = new StringBuilder();
477505
sb.append("class CloudWorkloadSecurityAgentRuleCreateAttributes {\n");
478506
sb.append(" actions: ").append(toIndentedString(actions)).append("\n");
507+
sb.append(" agentVersion: ").append(toIndentedString(agentVersion)).append("\n");
479508
sb.append(" blocking: ").append(toIndentedString(blocking)).append("\n");
480509
sb.append(" description: ").append(toIndentedString(description)).append("\n");
481510
sb.append(" disabled: ").append(toIndentedString(disabled)).append("\n");

0 commit comments

Comments
 (0)