Skip to content

Commit 51a69ef

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing cloud workload security fields (#1887)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e31dff9 commit 51a69ef

File tree

3 files changed

+136
-5
lines changed

3 files changed

+136
-5
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.5",
7-
"regenerated": "2023-07-11 16:39:23.599213",
8-
"spec_repo_commit": "824086bb"
7+
"regenerated": "2023-07-13 19:08:16.170880",
8+
"spec_repo_commit": "9ad4f63e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-11 16:39:23.611735",
13-
"spec_repo_commit": "824086bb"
12+
"regenerated": "2023-07-13 19:08:16.193816",
13+
"spec_repo_commit": "9ad4f63e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,10 +2756,17 @@ components:
27562756
CloudWorkloadSecurityAgentRuleAttributes:
27572757
description: A Cloud Workload Security Agent rule returned by the API.
27582758
properties:
2759+
agentConstraint:
2760+
description: The version of the agent.
2761+
type: string
27592762
category:
27602763
description: The category of the Agent rule.
27612764
example: Process Activity
27622765
type: string
2766+
creationAuthorUuId:
2767+
description: The ID of the user who created the rule.
2768+
example: e51c9744-d158-11ec-ad23-da7ad0900002
2769+
type: string
27632770
creationDate:
27642771
description: When the Agent rule was created, timestamp in milliseconds.
27652772
example: 1624366480320
@@ -2787,6 +2794,15 @@ components:
27872794
description: The name of the Agent rule.
27882795
example: my_agent_rule
27892796
type: string
2797+
updateAuthorUuId:
2798+
description: The ID of the user who updated the rule.
2799+
example: e51c9744-d158-11ec-ad23-da7ad0900002
2800+
type: string
2801+
updateDate:
2802+
description: Timestamp in milliseconds when the Agent rule was last updated.
2803+
example: 1624366480320
2804+
format: int64
2805+
type: integer
27902806
updatedAt:
27912807
description: When the Agent rule was last updated, timestamp in milliseconds.
27922808
example: 1624366480320

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

Lines changed: 116 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@
1818

1919
/** A Cloud Workload Security Agent rule returned by the API. */
2020
@JsonPropertyOrder({
21+
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_AGENT_CONSTRAINT,
2122
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CATEGORY,
23+
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CREATION_AUTHOR_UU_ID,
2224
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CREATION_DATE,
2325
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CREATOR,
2426
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_DEFAULT_RULE,
2527
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_DESCRIPTION,
2628
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_ENABLED,
2729
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_EXPRESSION,
2830
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_NAME,
31+
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_UPDATE_AUTHOR_UU_ID,
32+
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_UPDATE_DATE,
2933
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_UPDATED_AT,
3034
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_UPDATER,
3135
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_VERSION
@@ -34,9 +38,15 @@
3438
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
3539
public class CloudWorkloadSecurityAgentRuleAttributes {
3640
@JsonIgnore public boolean unparsed = false;
41+
public static final String JSON_PROPERTY_AGENT_CONSTRAINT = "agentConstraint";
42+
private String agentConstraint;
43+
3744
public static final String JSON_PROPERTY_CATEGORY = "category";
3845
private String category;
3946

47+
public static final String JSON_PROPERTY_CREATION_AUTHOR_UU_ID = "creationAuthorUuId";
48+
private String creationAuthorUuId;
49+
4050
public static final String JSON_PROPERTY_CREATION_DATE = "creationDate";
4151
private Long creationDate;
4252

@@ -58,6 +68,12 @@ public class CloudWorkloadSecurityAgentRuleAttributes {
5868
public static final String JSON_PROPERTY_NAME = "name";
5969
private String name;
6070

71+
public static final String JSON_PROPERTY_UPDATE_AUTHOR_UU_ID = "updateAuthorUuId";
72+
private String updateAuthorUuId;
73+
74+
public static final String JSON_PROPERTY_UPDATE_DATE = "updateDate";
75+
private Long updateDate;
76+
6177
public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt";
6278
private Long updatedAt;
6379

@@ -67,6 +83,27 @@ public class CloudWorkloadSecurityAgentRuleAttributes {
6783
public static final String JSON_PROPERTY_VERSION = "version";
6884
private Long version;
6985

86+
public CloudWorkloadSecurityAgentRuleAttributes agentConstraint(String agentConstraint) {
87+
this.agentConstraint = agentConstraint;
88+
return this;
89+
}
90+
91+
/**
92+
* The version of the agent.
93+
*
94+
* @return agentConstraint
95+
*/
96+
@jakarta.annotation.Nullable
97+
@JsonProperty(JSON_PROPERTY_AGENT_CONSTRAINT)
98+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
99+
public String getAgentConstraint() {
100+
return agentConstraint;
101+
}
102+
103+
public void setAgentConstraint(String agentConstraint) {
104+
this.agentConstraint = agentConstraint;
105+
}
106+
70107
public CloudWorkloadSecurityAgentRuleAttributes category(String category) {
71108
this.category = category;
72109
return this;
@@ -88,6 +125,27 @@ public void setCategory(String category) {
88125
this.category = category;
89126
}
90127

128+
public CloudWorkloadSecurityAgentRuleAttributes creationAuthorUuId(String creationAuthorUuId) {
129+
this.creationAuthorUuId = creationAuthorUuId;
130+
return this;
131+
}
132+
133+
/**
134+
* The ID of the user who created the rule.
135+
*
136+
* @return creationAuthorUuId
137+
*/
138+
@jakarta.annotation.Nullable
139+
@JsonProperty(JSON_PROPERTY_CREATION_AUTHOR_UU_ID)
140+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
141+
public String getCreationAuthorUuId() {
142+
return creationAuthorUuId;
143+
}
144+
145+
public void setCreationAuthorUuId(String creationAuthorUuId) {
146+
this.creationAuthorUuId = creationAuthorUuId;
147+
}
148+
91149
public CloudWorkloadSecurityAgentRuleAttributes creationDate(Long creationDate) {
92150
this.creationDate = creationDate;
93151
return this;
@@ -237,6 +295,48 @@ public void setName(String name) {
237295
this.name = name;
238296
}
239297

298+
public CloudWorkloadSecurityAgentRuleAttributes updateAuthorUuId(String updateAuthorUuId) {
299+
this.updateAuthorUuId = updateAuthorUuId;
300+
return this;
301+
}
302+
303+
/**
304+
* The ID of the user who updated the rule.
305+
*
306+
* @return updateAuthorUuId
307+
*/
308+
@jakarta.annotation.Nullable
309+
@JsonProperty(JSON_PROPERTY_UPDATE_AUTHOR_UU_ID)
310+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
311+
public String getUpdateAuthorUuId() {
312+
return updateAuthorUuId;
313+
}
314+
315+
public void setUpdateAuthorUuId(String updateAuthorUuId) {
316+
this.updateAuthorUuId = updateAuthorUuId;
317+
}
318+
319+
public CloudWorkloadSecurityAgentRuleAttributes updateDate(Long updateDate) {
320+
this.updateDate = updateDate;
321+
return this;
322+
}
323+
324+
/**
325+
* Timestamp in milliseconds when the Agent rule was last updated.
326+
*
327+
* @return updateDate
328+
*/
329+
@jakarta.annotation.Nullable
330+
@JsonProperty(JSON_PROPERTY_UPDATE_DATE)
331+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
332+
public Long getUpdateDate() {
333+
return updateDate;
334+
}
335+
336+
public void setUpdateDate(Long updateDate) {
337+
this.updateDate = updateDate;
338+
}
339+
240340
public CloudWorkloadSecurityAgentRuleAttributes updatedAt(Long updatedAt) {
241341
this.updatedAt = updatedAt;
242342
return this;
@@ -359,14 +459,21 @@ public boolean equals(Object o) {
359459
}
360460
CloudWorkloadSecurityAgentRuleAttributes cloudWorkloadSecurityAgentRuleAttributes =
361461
(CloudWorkloadSecurityAgentRuleAttributes) o;
362-
return Objects.equals(this.category, cloudWorkloadSecurityAgentRuleAttributes.category)
462+
return Objects.equals(
463+
this.agentConstraint, cloudWorkloadSecurityAgentRuleAttributes.agentConstraint)
464+
&& Objects.equals(this.category, cloudWorkloadSecurityAgentRuleAttributes.category)
465+
&& Objects.equals(
466+
this.creationAuthorUuId, cloudWorkloadSecurityAgentRuleAttributes.creationAuthorUuId)
363467
&& Objects.equals(this.creationDate, cloudWorkloadSecurityAgentRuleAttributes.creationDate)
364468
&& Objects.equals(this.creator, cloudWorkloadSecurityAgentRuleAttributes.creator)
365469
&& Objects.equals(this.defaultRule, cloudWorkloadSecurityAgentRuleAttributes.defaultRule)
366470
&& Objects.equals(this.description, cloudWorkloadSecurityAgentRuleAttributes.description)
367471
&& Objects.equals(this.enabled, cloudWorkloadSecurityAgentRuleAttributes.enabled)
368472
&& Objects.equals(this.expression, cloudWorkloadSecurityAgentRuleAttributes.expression)
369473
&& Objects.equals(this.name, cloudWorkloadSecurityAgentRuleAttributes.name)
474+
&& Objects.equals(
475+
this.updateAuthorUuId, cloudWorkloadSecurityAgentRuleAttributes.updateAuthorUuId)
476+
&& Objects.equals(this.updateDate, cloudWorkloadSecurityAgentRuleAttributes.updateDate)
370477
&& Objects.equals(this.updatedAt, cloudWorkloadSecurityAgentRuleAttributes.updatedAt)
371478
&& Objects.equals(this.updater, cloudWorkloadSecurityAgentRuleAttributes.updater)
372479
&& Objects.equals(this.version, cloudWorkloadSecurityAgentRuleAttributes.version)
@@ -378,14 +485,18 @@ public boolean equals(Object o) {
378485
@Override
379486
public int hashCode() {
380487
return Objects.hash(
488+
agentConstraint,
381489
category,
490+
creationAuthorUuId,
382491
creationDate,
383492
creator,
384493
defaultRule,
385494
description,
386495
enabled,
387496
expression,
388497
name,
498+
updateAuthorUuId,
499+
updateDate,
389500
updatedAt,
390501
updater,
391502
version,
@@ -396,14 +507,18 @@ public int hashCode() {
396507
public String toString() {
397508
StringBuilder sb = new StringBuilder();
398509
sb.append("class CloudWorkloadSecurityAgentRuleAttributes {\n");
510+
sb.append(" agentConstraint: ").append(toIndentedString(agentConstraint)).append("\n");
399511
sb.append(" category: ").append(toIndentedString(category)).append("\n");
512+
sb.append(" creationAuthorUuId: ").append(toIndentedString(creationAuthorUuId)).append("\n");
400513
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
401514
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
402515
sb.append(" defaultRule: ").append(toIndentedString(defaultRule)).append("\n");
403516
sb.append(" description: ").append(toIndentedString(description)).append("\n");
404517
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
405518
sb.append(" expression: ").append(toIndentedString(expression)).append("\n");
406519
sb.append(" name: ").append(toIndentedString(name)).append("\n");
520+
sb.append(" updateAuthorUuId: ").append(toIndentedString(updateAuthorUuId)).append("\n");
521+
sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n");
407522
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
408523
sb.append(" updater: ").append(toIndentedString(updater)).append("\n");
409524
sb.append(" version: ").append(toIndentedString(version)).append("\n");

0 commit comments

Comments
 (0)