Skip to content

Commit 6efa2ee

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 07a3330 of spec repo
1 parent 290a7f7 commit 6efa2ee

4 files changed

Lines changed: 151 additions & 2 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19045,6 +19045,11 @@ components:
1904519045
format: int32
1904619046
maximum: 2147483647
1904719047
type: integer
19048+
contentPackUpdateAvailable:
19049+
description: "Whether a content pack update is available for the policy."
19050+
example: false
19051+
nullable: true
19052+
type: boolean
1904819053
datadogManaged:
1904919054
description: "Whether the policy is managed by Datadog"
1905019055
example: false
@@ -19111,6 +19116,10 @@ components:
1911119116
format: int32
1911219117
maximum: 2147483647
1911319118
type: integer
19119+
sourceDefaultPolicyId:
19120+
description: "The ID of the Datadog-managed default policy this policy is sourced from."
19121+
example: "threat-detection.policy"
19122+
type: string
1911419123
updateDate:
1911519124
description: "Timestamp in milliseconds when the policy was last updated"
1911619125
example: 1624366480320
@@ -19293,6 +19302,9 @@ components:
1929319302
CloudWorkloadSecurityAgentRuleAction:
1929419303
description: "The action the rule can perform if triggered"
1929519304
properties:
19305+
disabled:
19306+
description: "Whether the action is disabled."
19307+
type: boolean
1929619308
filter:
1929719309
description: "SECL expression used to target the container to apply the action on"
1929819310
type: string
@@ -19349,6 +19361,9 @@ components:
1934919361
scope:
1935019362
description: "The scope of the set action."
1935119363
type: string
19364+
scope_field:
19365+
description: "The scope field of the set action."
19366+
type: string
1935219367
size:
1935319368
description: "The size of the set action."
1935419369
format: int64

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

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
import java.util.List;
1818
import java.util.Map;
1919
import java.util.Objects;
20+
import org.openapitools.jackson.nullable.JsonNullable;
2021

2122
/** A Cloud Workload Security Agent policy returned by the API */
2223
@JsonPropertyOrder({
2324
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_BLOCKING_RULES_COUNT,
25+
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_CONTENT_PACK_UPDATE_AVAILABLE,
2426
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_DATADOG_MANAGED,
2527
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_DESCRIPTION,
2628
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_DISABLED_RULES_COUNT,
@@ -34,6 +36,7 @@
3436
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_POLICY_VERSION,
3537
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_PRIORITY,
3638
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_RULE_COUNT,
39+
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_SOURCE_DEFAULT_POLICY_ID,
3740
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_UPDATE_DATE,
3841
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_UPDATED_AT,
3942
CloudWorkloadSecurityAgentPolicyAttributes.JSON_PROPERTY_UPDATER,
@@ -46,6 +49,10 @@ public class CloudWorkloadSecurityAgentPolicyAttributes {
4649
public static final String JSON_PROPERTY_BLOCKING_RULES_COUNT = "blockingRulesCount";
4750
private Integer blockingRulesCount;
4851

52+
public static final String JSON_PROPERTY_CONTENT_PACK_UPDATE_AVAILABLE =
53+
"contentPackUpdateAvailable";
54+
private JsonNullable<Boolean> contentPackUpdateAvailable = JsonNullable.<Boolean>undefined();
55+
4956
public static final String JSON_PROPERTY_DATADOG_MANAGED = "datadogManaged";
5057
private Boolean datadogManaged;
5158

@@ -85,6 +92,9 @@ public class CloudWorkloadSecurityAgentPolicyAttributes {
8592
public static final String JSON_PROPERTY_RULE_COUNT = "ruleCount";
8693
private Integer ruleCount;
8794

95+
public static final String JSON_PROPERTY_SOURCE_DEFAULT_POLICY_ID = "sourceDefaultPolicyId";
96+
private String sourceDefaultPolicyId;
97+
8898
public static final String JSON_PROPERTY_UPDATE_DATE = "updateDate";
8999
private Long updateDate;
90100

@@ -118,6 +128,39 @@ public void setBlockingRulesCount(Integer blockingRulesCount) {
118128
this.blockingRulesCount = blockingRulesCount;
119129
}
120130

131+
public CloudWorkloadSecurityAgentPolicyAttributes contentPackUpdateAvailable(
132+
Boolean contentPackUpdateAvailable) {
133+
this.contentPackUpdateAvailable = JsonNullable.<Boolean>of(contentPackUpdateAvailable);
134+
return this;
135+
}
136+
137+
/**
138+
* Whether a content pack update is available for the policy.
139+
*
140+
* @return contentPackUpdateAvailable
141+
*/
142+
@jakarta.annotation.Nullable
143+
@JsonIgnore
144+
public Boolean getContentPackUpdateAvailable() {
145+
return contentPackUpdateAvailable.orElse(null);
146+
}
147+
148+
@JsonProperty(JSON_PROPERTY_CONTENT_PACK_UPDATE_AVAILABLE)
149+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
150+
public JsonNullable<Boolean> getContentPackUpdateAvailable_JsonNullable() {
151+
return contentPackUpdateAvailable;
152+
}
153+
154+
@JsonProperty(JSON_PROPERTY_CONTENT_PACK_UPDATE_AVAILABLE)
155+
public void setContentPackUpdateAvailable_JsonNullable(
156+
JsonNullable<Boolean> contentPackUpdateAvailable) {
157+
this.contentPackUpdateAvailable = contentPackUpdateAvailable;
158+
}
159+
160+
public void setContentPackUpdateAvailable(Boolean contentPackUpdateAvailable) {
161+
this.contentPackUpdateAvailable = JsonNullable.<Boolean>of(contentPackUpdateAvailable);
162+
}
163+
121164
public CloudWorkloadSecurityAgentPolicyAttributes datadogManaged(Boolean datadogManaged) {
122165
this.datadogManaged = datadogManaged;
123166
return this;
@@ -411,6 +454,28 @@ public void setRuleCount(Integer ruleCount) {
411454
this.ruleCount = ruleCount;
412455
}
413456

457+
public CloudWorkloadSecurityAgentPolicyAttributes sourceDefaultPolicyId(
458+
String sourceDefaultPolicyId) {
459+
this.sourceDefaultPolicyId = sourceDefaultPolicyId;
460+
return this;
461+
}
462+
463+
/**
464+
* The ID of the Datadog-managed default policy this policy is sourced from.
465+
*
466+
* @return sourceDefaultPolicyId
467+
*/
468+
@jakarta.annotation.Nullable
469+
@JsonProperty(JSON_PROPERTY_SOURCE_DEFAULT_POLICY_ID)
470+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
471+
public String getSourceDefaultPolicyId() {
472+
return sourceDefaultPolicyId;
473+
}
474+
475+
public void setSourceDefaultPolicyId(String sourceDefaultPolicyId) {
476+
this.sourceDefaultPolicyId = sourceDefaultPolicyId;
477+
}
478+
414479
public CloudWorkloadSecurityAgentPolicyAttributes updateDate(Long updateDate) {
415480
this.updateDate = updateDate;
416481
return this;
@@ -581,6 +646,9 @@ public boolean equals(Object o) {
581646
(CloudWorkloadSecurityAgentPolicyAttributes) o;
582647
return Objects.equals(
583648
this.blockingRulesCount, cloudWorkloadSecurityAgentPolicyAttributes.blockingRulesCount)
649+
&& Objects.equals(
650+
this.contentPackUpdateAvailable,
651+
cloudWorkloadSecurityAgentPolicyAttributes.contentPackUpdateAvailable)
584652
&& Objects.equals(
585653
this.datadogManaged, cloudWorkloadSecurityAgentPolicyAttributes.datadogManaged)
586654
&& Objects.equals(this.description, cloudWorkloadSecurityAgentPolicyAttributes.description)
@@ -600,6 +668,9 @@ public boolean equals(Object o) {
600668
this.policyVersion, cloudWorkloadSecurityAgentPolicyAttributes.policyVersion)
601669
&& Objects.equals(this.priority, cloudWorkloadSecurityAgentPolicyAttributes.priority)
602670
&& Objects.equals(this.ruleCount, cloudWorkloadSecurityAgentPolicyAttributes.ruleCount)
671+
&& Objects.equals(
672+
this.sourceDefaultPolicyId,
673+
cloudWorkloadSecurityAgentPolicyAttributes.sourceDefaultPolicyId)
603674
&& Objects.equals(this.updateDate, cloudWorkloadSecurityAgentPolicyAttributes.updateDate)
604675
&& Objects.equals(this.updatedAt, cloudWorkloadSecurityAgentPolicyAttributes.updatedAt)
605676
&& Objects.equals(this.updater, cloudWorkloadSecurityAgentPolicyAttributes.updater)
@@ -613,6 +684,7 @@ public boolean equals(Object o) {
613684
public int hashCode() {
614685
return Objects.hash(
615686
blockingRulesCount,
687+
contentPackUpdateAvailable,
616688
datadogManaged,
617689
description,
618690
disabledRulesCount,
@@ -626,6 +698,7 @@ public int hashCode() {
626698
policyVersion,
627699
priority,
628700
ruleCount,
701+
sourceDefaultPolicyId,
629702
updateDate,
630703
updatedAt,
631704
updater,
@@ -638,6 +711,9 @@ public String toString() {
638711
StringBuilder sb = new StringBuilder();
639712
sb.append("class CloudWorkloadSecurityAgentPolicyAttributes {\n");
640713
sb.append(" blockingRulesCount: ").append(toIndentedString(blockingRulesCount)).append("\n");
714+
sb.append(" contentPackUpdateAvailable: ")
715+
.append(toIndentedString(contentPackUpdateAvailable))
716+
.append("\n");
641717
sb.append(" datadogManaged: ").append(toIndentedString(datadogManaged)).append("\n");
642718
sb.append(" description: ").append(toIndentedString(description)).append("\n");
643719
sb.append(" disabledRulesCount: ").append(toIndentedString(disabledRulesCount)).append("\n");
@@ -653,6 +729,9 @@ public String toString() {
653729
sb.append(" policyVersion: ").append(toIndentedString(policyVersion)).append("\n");
654730
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
655731
sb.append(" ruleCount: ").append(toIndentedString(ruleCount)).append("\n");
732+
sb.append(" sourceDefaultPolicyId: ")
733+
.append(toIndentedString(sourceDefaultPolicyId))
734+
.append("\n");
656735
sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n");
657736
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
658737
sb.append(" updater: ").append(toIndentedString(updater)).append("\n");

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/CloudWorkloadSecurityAgentRuleActionSet.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_INHERITED,
2626
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_NAME,
2727
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_SCOPE,
28+
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_SCOPE_FIELD,
2829
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_SIZE,
2930
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_TTL,
3031
CloudWorkloadSecurityAgentRuleActionSet.JSON_PROPERTY_VALUE
@@ -54,6 +55,9 @@ public class CloudWorkloadSecurityAgentRuleActionSet {
5455
public static final String JSON_PROPERTY_SCOPE = "scope";
5556
private String scope;
5657

58+
public static final String JSON_PROPERTY_SCOPE_FIELD = "scope_field";
59+
private String scopeField;
60+
5761
public static final String JSON_PROPERTY_SIZE = "size";
5862
private Long size;
5963

@@ -210,6 +214,27 @@ public void setScope(String scope) {
210214
this.scope = scope;
211215
}
212216

217+
public CloudWorkloadSecurityAgentRuleActionSet scopeField(String scopeField) {
218+
this.scopeField = scopeField;
219+
return this;
220+
}
221+
222+
/**
223+
* The scope field of the set action.
224+
*
225+
* @return scopeField
226+
*/
227+
@jakarta.annotation.Nullable
228+
@JsonProperty(JSON_PROPERTY_SCOPE_FIELD)
229+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230+
public String getScopeField() {
231+
return scopeField;
232+
}
233+
234+
public void setScopeField(String scopeField) {
235+
this.scopeField = scopeField;
236+
}
237+
213238
public CloudWorkloadSecurityAgentRuleActionSet size(Long size) {
214239
this.size = size;
215240
return this;
@@ -342,6 +367,7 @@ public boolean equals(Object o) {
342367
&& Objects.equals(this.inherited, cloudWorkloadSecurityAgentRuleActionSet.inherited)
343368
&& Objects.equals(this.name, cloudWorkloadSecurityAgentRuleActionSet.name)
344369
&& Objects.equals(this.scope, cloudWorkloadSecurityAgentRuleActionSet.scope)
370+
&& Objects.equals(this.scopeField, cloudWorkloadSecurityAgentRuleActionSet.scopeField)
345371
&& Objects.equals(this.size, cloudWorkloadSecurityAgentRuleActionSet.size)
346372
&& Objects.equals(this.ttl, cloudWorkloadSecurityAgentRuleActionSet.ttl)
347373
&& Objects.equals(this.value, cloudWorkloadSecurityAgentRuleActionSet.value)
@@ -360,6 +386,7 @@ public int hashCode() {
360386
inherited,
361387
name,
362388
scope,
389+
scopeField,
363390
size,
364391
ttl,
365392
value,
@@ -377,6 +404,7 @@ public String toString() {
377404
sb.append(" inherited: ").append(toIndentedString(inherited)).append("\n");
378405
sb.append(" name: ").append(toIndentedString(name)).append("\n");
379406
sb.append(" scope: ").append(toIndentedString(scope)).append("\n");
407+
sb.append(" scopeField: ").append(toIndentedString(scopeField)).append("\n");
380408
sb.append(" size: ").append(toIndentedString(size)).append("\n");
381409
sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n");
382410
sb.append(" value: ").append(toIndentedString(value)).append("\n");

0 commit comments

Comments
 (0)