Skip to content

Commit 4bfeabf

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a72df82 of spec repo (#4268)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 16c0e3d commit 4bfeabf

3 files changed

Lines changed: 130 additions & 2 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19348,6 +19348,10 @@ components:
1934819348
CloudWorkloadSecurityAgentRuleAction:
1934919349
description: "The action the rule can perform if triggered"
1935019350
properties:
19351+
disabled:
19352+
description: "Whether the action is disabled"
19353+
example: false
19354+
type: boolean
1935119355
filter:
1935219356
description: "SECL expression used to target the container to apply the action on"
1935319357
type: string
@@ -19437,6 +19441,10 @@ components:
1943719441
agentConstraint:
1943819442
description: "The version of the Agent"
1943919443
type: string
19444+
agent_version:
19445+
description: "The version constraint of the Datadog Agent the rule applies to"
19446+
example: ">=7.62"
19447+
type: string
1944019448
blocking:
1944119449
description: "The blocking policies that the rule belongs to"
1944219450
items:
@@ -19476,6 +19484,11 @@ components:
1947619484
description: "Whether the Agent rule is enabled"
1947719485
example: true
1947819486
type: boolean
19487+
every:
19488+
description: "The rate limiting duration of the Agent rule, in nanoseconds"
19489+
example: 60000000000
19490+
format: int64
19491+
type: integer
1947919492
expression:
1948019493
description: "The SECL expression of the Agent rule"
1948119494
example: 'exec.file.name == "sh"'
@@ -19486,6 +19499,10 @@ components:
1948619499
description: "A platform filter that the Agent rule is supported on."
1948719500
type: string
1948819501
type: array
19502+
group_id:
19503+
description: "The group of rules the Agent rule belongs to"
19504+
example: "group_id"
19505+
type: string
1948919506
monitoring:
1949019507
description: "The monitoring policies that the rule belongs to"
1949119508
items:

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

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/** The action the rule can perform if triggered */
2020
@JsonPropertyOrder({
21+
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_DISABLED,
2122
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_FILTER,
2223
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_HASH,
2324
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_KILL,
@@ -28,6 +29,9 @@
2829
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2930
public class CloudWorkloadSecurityAgentRuleAction {
3031
@JsonIgnore public boolean unparsed = false;
32+
public static final String JSON_PROPERTY_DISABLED = "disabled";
33+
private Boolean disabled;
34+
3135
public static final String JSON_PROPERTY_FILTER = "filter";
3236
private String filter;
3337

@@ -43,6 +47,27 @@ public class CloudWorkloadSecurityAgentRuleAction {
4347
public static final String JSON_PROPERTY_SET = "set";
4448
private CloudWorkloadSecurityAgentRuleActionSet set;
4549

50+
public CloudWorkloadSecurityAgentRuleAction disabled(Boolean disabled) {
51+
this.disabled = disabled;
52+
return this;
53+
}
54+
55+
/**
56+
* Whether the action is disabled
57+
*
58+
* @return disabled
59+
*/
60+
@jakarta.annotation.Nullable
61+
@JsonProperty(JSON_PROPERTY_DISABLED)
62+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63+
public Boolean getDisabled() {
64+
return disabled;
65+
}
66+
67+
public void setDisabled(Boolean disabled) {
68+
this.disabled = disabled;
69+
}
70+
4671
public CloudWorkloadSecurityAgentRuleAction filter(String filter) {
4772
this.filter = filter;
4873
return this;
@@ -222,7 +247,8 @@ public boolean equals(Object o) {
222247
}
223248
CloudWorkloadSecurityAgentRuleAction cloudWorkloadSecurityAgentRuleAction =
224249
(CloudWorkloadSecurityAgentRuleAction) o;
225-
return Objects.equals(this.filter, cloudWorkloadSecurityAgentRuleAction.filter)
250+
return Objects.equals(this.disabled, cloudWorkloadSecurityAgentRuleAction.disabled)
251+
&& Objects.equals(this.filter, cloudWorkloadSecurityAgentRuleAction.filter)
226252
&& Objects.equals(this.hash, cloudWorkloadSecurityAgentRuleAction.hash)
227253
&& Objects.equals(this.kill, cloudWorkloadSecurityAgentRuleAction.kill)
228254
&& Objects.equals(this.metadata, cloudWorkloadSecurityAgentRuleAction.metadata)
@@ -233,13 +259,14 @@ public boolean equals(Object o) {
233259

234260
@Override
235261
public int hashCode() {
236-
return Objects.hash(filter, hash, kill, metadata, set, additionalProperties);
262+
return Objects.hash(disabled, filter, hash, kill, metadata, set, additionalProperties);
237263
}
238264

239265
@Override
240266
public String toString() {
241267
StringBuilder sb = new StringBuilder();
242268
sb.append("class CloudWorkloadSecurityAgentRuleAction {\n");
269+
sb.append(" disabled: ").append(toIndentedString(disabled)).append("\n");
243270
sb.append(" filter: ").append(toIndentedString(filter)).append("\n");
244271
sb.append(" hash: ").append(toIndentedString(hash)).append("\n");
245272
sb.append(" kill: ").append(toIndentedString(kill)).append("\n");

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

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
@JsonPropertyOrder({
2424
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_ACTIONS,
2525
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_AGENT_CONSTRAINT,
26+
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_AGENT_VERSION,
2627
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_BLOCKING,
2728
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CATEGORY,
2829
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CREATION_AUTHOR_UU_ID,
@@ -32,8 +33,10 @@
3233
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_DESCRIPTION,
3334
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_DISABLED,
3435
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_ENABLED,
36+
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_EVERY,
3537
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_EXPRESSION,
3638
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_FILTERS,
39+
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_GROUP_ID,
3740
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_MONITORING,
3841
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_NAME,
3942
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_PRODUCT_TAGS,
@@ -55,6 +58,9 @@ public class CloudWorkloadSecurityAgentRuleAttributes {
5558
public static final String JSON_PROPERTY_AGENT_CONSTRAINT = "agentConstraint";
5659
private String agentConstraint;
5760

61+
public static final String JSON_PROPERTY_AGENT_VERSION = "agent_version";
62+
private String agentVersion;
63+
5864
public static final String JSON_PROPERTY_BLOCKING = "blocking";
5965
private List<String> blocking = null;
6066

@@ -82,12 +88,18 @@ public class CloudWorkloadSecurityAgentRuleAttributes {
8288
public static final String JSON_PROPERTY_ENABLED = "enabled";
8389
private Boolean enabled;
8490

91+
public static final String JSON_PROPERTY_EVERY = "every";
92+
private Long every;
93+
8594
public static final String JSON_PROPERTY_EXPRESSION = "expression";
8695
private String expression;
8796

8897
public static final String JSON_PROPERTY_FILTERS = "filters";
8998
private List<String> filters = null;
9099

100+
public static final String JSON_PROPERTY_GROUP_ID = "group_id";
101+
private String groupId;
102+
91103
public static final String JSON_PROPERTY_MONITORING = "monitoring";
92104
private List<String> monitoring = null;
93105

@@ -182,6 +194,27 @@ public void setAgentConstraint(String agentConstraint) {
182194
this.agentConstraint = agentConstraint;
183195
}
184196

197+
public CloudWorkloadSecurityAgentRuleAttributes agentVersion(String agentVersion) {
198+
this.agentVersion = agentVersion;
199+
return this;
200+
}
201+
202+
/**
203+
* The version constraint of the Datadog Agent the rule applies to
204+
*
205+
* @return agentVersion
206+
*/
207+
@jakarta.annotation.Nullable
208+
@JsonProperty(JSON_PROPERTY_AGENT_VERSION)
209+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
210+
public String getAgentVersion() {
211+
return agentVersion;
212+
}
213+
214+
public void setAgentVersion(String agentVersion) {
215+
this.agentVersion = agentVersion;
216+
}
217+
185218
public CloudWorkloadSecurityAgentRuleAttributes blocking(List<String> blocking) {
186219
this.blocking = blocking;
187220
return this;
@@ -392,6 +425,27 @@ public void setEnabled(Boolean enabled) {
392425
this.enabled = enabled;
393426
}
394427

428+
public CloudWorkloadSecurityAgentRuleAttributes every(Long every) {
429+
this.every = every;
430+
return this;
431+
}
432+
433+
/**
434+
* The rate limiting duration of the Agent rule, in nanoseconds
435+
*
436+
* @return every
437+
*/
438+
@jakarta.annotation.Nullable
439+
@JsonProperty(JSON_PROPERTY_EVERY)
440+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
441+
public Long getEvery() {
442+
return every;
443+
}
444+
445+
public void setEvery(Long every) {
446+
this.every = every;
447+
}
448+
395449
public CloudWorkloadSecurityAgentRuleAttributes expression(String expression) {
396450
this.expression = expression;
397451
return this;
@@ -442,6 +496,27 @@ public void setFilters(List<String> filters) {
442496
this.filters = filters;
443497
}
444498

499+
public CloudWorkloadSecurityAgentRuleAttributes groupId(String groupId) {
500+
this.groupId = groupId;
501+
return this;
502+
}
503+
504+
/**
505+
* The group of rules the Agent rule belongs to
506+
*
507+
* @return groupId
508+
*/
509+
@jakarta.annotation.Nullable
510+
@JsonProperty(JSON_PROPERTY_GROUP_ID)
511+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
512+
public String getGroupId() {
513+
return groupId;
514+
}
515+
516+
public void setGroupId(String groupId) {
517+
this.groupId = groupId;
518+
}
519+
445520
public CloudWorkloadSecurityAgentRuleAttributes monitoring(List<String> monitoring) {
446521
this.monitoring = monitoring;
447522
return this;
@@ -712,6 +787,7 @@ public boolean equals(Object o) {
712787
return Objects.equals(this.actions, cloudWorkloadSecurityAgentRuleAttributes.actions)
713788
&& Objects.equals(
714789
this.agentConstraint, cloudWorkloadSecurityAgentRuleAttributes.agentConstraint)
790+
&& Objects.equals(this.agentVersion, cloudWorkloadSecurityAgentRuleAttributes.agentVersion)
715791
&& Objects.equals(this.blocking, cloudWorkloadSecurityAgentRuleAttributes.blocking)
716792
&& Objects.equals(this.category, cloudWorkloadSecurityAgentRuleAttributes.category)
717793
&& Objects.equals(
@@ -722,8 +798,10 @@ public boolean equals(Object o) {
722798
&& Objects.equals(this.description, cloudWorkloadSecurityAgentRuleAttributes.description)
723799
&& Objects.equals(this.disabled, cloudWorkloadSecurityAgentRuleAttributes.disabled)
724800
&& Objects.equals(this.enabled, cloudWorkloadSecurityAgentRuleAttributes.enabled)
801+
&& Objects.equals(this.every, cloudWorkloadSecurityAgentRuleAttributes.every)
725802
&& Objects.equals(this.expression, cloudWorkloadSecurityAgentRuleAttributes.expression)
726803
&& Objects.equals(this.filters, cloudWorkloadSecurityAgentRuleAttributes.filters)
804+
&& Objects.equals(this.groupId, cloudWorkloadSecurityAgentRuleAttributes.groupId)
727805
&& Objects.equals(this.monitoring, cloudWorkloadSecurityAgentRuleAttributes.monitoring)
728806
&& Objects.equals(this.name, cloudWorkloadSecurityAgentRuleAttributes.name)
729807
&& Objects.equals(this.productTags, cloudWorkloadSecurityAgentRuleAttributes.productTags)
@@ -744,6 +822,7 @@ public int hashCode() {
744822
return Objects.hash(
745823
actions,
746824
agentConstraint,
825+
agentVersion,
747826
blocking,
748827
category,
749828
creationAuthorUuId,
@@ -753,8 +832,10 @@ public int hashCode() {
753832
description,
754833
disabled,
755834
enabled,
835+
every,
756836
expression,
757837
filters,
838+
groupId,
758839
monitoring,
759840
name,
760841
productTags,
@@ -773,6 +854,7 @@ public String toString() {
773854
sb.append("class CloudWorkloadSecurityAgentRuleAttributes {\n");
774855
sb.append(" actions: ").append(toIndentedString(actions)).append("\n");
775856
sb.append(" agentConstraint: ").append(toIndentedString(agentConstraint)).append("\n");
857+
sb.append(" agentVersion: ").append(toIndentedString(agentVersion)).append("\n");
776858
sb.append(" blocking: ").append(toIndentedString(blocking)).append("\n");
777859
sb.append(" category: ").append(toIndentedString(category)).append("\n");
778860
sb.append(" creationAuthorUuId: ").append(toIndentedString(creationAuthorUuId)).append("\n");
@@ -782,8 +864,10 @@ public String toString() {
782864
sb.append(" description: ").append(toIndentedString(description)).append("\n");
783865
sb.append(" disabled: ").append(toIndentedString(disabled)).append("\n");
784866
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
867+
sb.append(" every: ").append(toIndentedString(every)).append("\n");
785868
sb.append(" expression: ").append(toIndentedString(expression)).append("\n");
786869
sb.append(" filters: ").append(toIndentedString(filters)).append("\n");
870+
sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n");
787871
sb.append(" monitoring: ").append(toIndentedString(monitoring)).append("\n");
788872
sb.append(" name: ").append(toIndentedString(name)).append("\n");
789873
sb.append(" productTags: ").append(toIndentedString(productTags)).append("\n");

0 commit comments

Comments
 (0)