Skip to content

Commit c763faa

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fb522ba of spec repo
1 parent 33b7971 commit c763faa

7 files changed

Lines changed: 80 additions & 8 deletions

File tree

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "98e3371",
3-
"generated": "2025-08-27 08:46:33.176"
2+
"spec_repo_commit": "fb522ba",
3+
"generated": "2025-08-27 10:21:02.267"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10662,6 +10662,12 @@ components:
1066210662
CreateDataDeletionRequestBodyAttributes:
1066310663
description: Attributes for creating a data deletion request.
1066410664
properties:
10665+
displayed_total:
10666+
description: The total number of elements to be deleted that the UI shows
10667+
to the user.
10668+
example: 25000
10669+
format: int64
10670+
type: integer
1066510671
from:
1066610672
description: Start of requested time window, milliseconds since Unix epoch.
1066710673
example: 1672527600000
@@ -10694,6 +10700,7 @@ components:
1069410700
- query
1069510701
- from
1069610702
- to
10703+
- displayed_total
1069710704
type: object
1069810705
CreateDataDeletionRequestBodyData:
1069910706
description: Data needed to create a data deletion request.
@@ -12947,6 +12954,11 @@ components:
1294712954
example: 1704063600000
1294812955
format: int64
1294912956
type: integer
12957+
total_displayed:
12958+
description: Total number of elements to be deleted according to the UI.
12959+
example: 100
12960+
format: int64
12961+
type: integer
1295012962
total_unrestricted:
1295112963
description: Total number of elements to be deleted. Only the data accessible
1295212964
to the current user that matches the query and timeframe provided will
@@ -12969,6 +12981,7 @@ components:
1296912981
- starting_at
1297012982
- status
1297112983
- to_time
12984+
- total_displayed
1297212985
- total_unrestricted
1297312986
- updated_at
1297412987
type: object

examples/v2/data-deletion/CreateDataDeletionRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public static void main(String[] args) {
2323
new CreateDataDeletionRequestBodyData()
2424
.attributes(
2525
new CreateDataDeletionRequestBodyAttributes()
26+
.displayedTotal(25000L)
2627
.from(1672527600000L)
2728
.indexes(Arrays.asList("test-index", "test-index-2"))
2829
.query(

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

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
/** Attributes for creating a data deletion request. */
2323
@JsonPropertyOrder({
24+
CreateDataDeletionRequestBodyAttributes.JSON_PROPERTY_DISPLAYED_TOTAL,
2425
CreateDataDeletionRequestBodyAttributes.JSON_PROPERTY_FROM,
2526
CreateDataDeletionRequestBodyAttributes.JSON_PROPERTY_INDEXES,
2627
CreateDataDeletionRequestBodyAttributes.JSON_PROPERTY_QUERY,
@@ -30,6 +31,9 @@
3031
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
3132
public class CreateDataDeletionRequestBodyAttributes {
3233
@JsonIgnore public boolean unparsed = false;
34+
public static final String JSON_PROPERTY_DISPLAYED_TOTAL = "displayed_total";
35+
private Long displayedTotal;
36+
3337
public static final String JSON_PROPERTY_FROM = "from";
3438
private Long from;
3539

@@ -46,14 +50,36 @@ public CreateDataDeletionRequestBodyAttributes() {}
4650

4751
@JsonCreator
4852
public CreateDataDeletionRequestBodyAttributes(
53+
@JsonProperty(required = true, value = JSON_PROPERTY_DISPLAYED_TOTAL) Long displayedTotal,
4954
@JsonProperty(required = true, value = JSON_PROPERTY_FROM) Long from,
5055
@JsonProperty(required = true, value = JSON_PROPERTY_QUERY) Map<String, String> query,
5156
@JsonProperty(required = true, value = JSON_PROPERTY_TO) Long to) {
57+
this.displayedTotal = displayedTotal;
5258
this.from = from;
5359
this.query = query;
5460
this.to = to;
5561
}
5662

63+
public CreateDataDeletionRequestBodyAttributes displayedTotal(Long displayedTotal) {
64+
this.displayedTotal = displayedTotal;
65+
return this;
66+
}
67+
68+
/**
69+
* The total number of elements to be deleted that the UI shows to the user.
70+
*
71+
* @return displayedTotal
72+
*/
73+
@JsonProperty(JSON_PROPERTY_DISPLAYED_TOTAL)
74+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
75+
public Long getDisplayedTotal() {
76+
return displayedTotal;
77+
}
78+
79+
public void setDisplayedTotal(Long displayedTotal) {
80+
this.displayedTotal = displayedTotal;
81+
}
82+
5783
public CreateDataDeletionRequestBodyAttributes from(Long from) {
5884
this.from = from;
5985
return this;
@@ -205,7 +231,9 @@ public boolean equals(Object o) {
205231
}
206232
CreateDataDeletionRequestBodyAttributes createDataDeletionRequestBodyAttributes =
207233
(CreateDataDeletionRequestBodyAttributes) o;
208-
return Objects.equals(this.from, createDataDeletionRequestBodyAttributes.from)
234+
return Objects.equals(
235+
this.displayedTotal, createDataDeletionRequestBodyAttributes.displayedTotal)
236+
&& Objects.equals(this.from, createDataDeletionRequestBodyAttributes.from)
209237
&& Objects.equals(this.indexes, createDataDeletionRequestBodyAttributes.indexes)
210238
&& Objects.equals(this.query, createDataDeletionRequestBodyAttributes.query)
211239
&& Objects.equals(this.to, createDataDeletionRequestBodyAttributes.to)
@@ -216,13 +244,14 @@ public boolean equals(Object o) {
216244

217245
@Override
218246
public int hashCode() {
219-
return Objects.hash(from, indexes, query, to, additionalProperties);
247+
return Objects.hash(displayedTotal, from, indexes, query, to, additionalProperties);
220248
}
221249

222250
@Override
223251
public String toString() {
224252
StringBuilder sb = new StringBuilder();
225253
sb.append("class CreateDataDeletionRequestBodyAttributes {\n");
254+
sb.append(" displayedTotal: ").append(toIndentedString(displayedTotal)).append("\n");
226255
sb.append(" from: ").append(toIndentedString(from)).append("\n");
227256
sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n");
228257
sb.append(" query: ").append(toIndentedString(query)).append("\n");

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
DataDeletionResponseItemAttributes.JSON_PROPERTY_STARTING_AT,
3333
DataDeletionResponseItemAttributes.JSON_PROPERTY_STATUS,
3434
DataDeletionResponseItemAttributes.JSON_PROPERTY_TO_TIME,
35+
DataDeletionResponseItemAttributes.JSON_PROPERTY_TOTAL_DISPLAYED,
3536
DataDeletionResponseItemAttributes.JSON_PROPERTY_TOTAL_UNRESTRICTED,
3637
DataDeletionResponseItemAttributes.JSON_PROPERTY_UPDATED_AT
3738
})
@@ -72,6 +73,9 @@ public class DataDeletionResponseItemAttributes {
7273
public static final String JSON_PROPERTY_TO_TIME = "to_time";
7374
private Long toTime;
7475

76+
public static final String JSON_PROPERTY_TOTAL_DISPLAYED = "total_displayed";
77+
private Long totalDisplayed;
78+
7579
public static final String JSON_PROPERTY_TOTAL_UNRESTRICTED = "total_unrestricted";
7680
private Long totalUnrestricted;
7781

@@ -92,6 +96,7 @@ public DataDeletionResponseItemAttributes(
9296
@JsonProperty(required = true, value = JSON_PROPERTY_STARTING_AT) String startingAt,
9397
@JsonProperty(required = true, value = JSON_PROPERTY_STATUS) String status,
9498
@JsonProperty(required = true, value = JSON_PROPERTY_TO_TIME) Long toTime,
99+
@JsonProperty(required = true, value = JSON_PROPERTY_TOTAL_DISPLAYED) Long totalDisplayed,
95100
@JsonProperty(required = true, value = JSON_PROPERTY_TOTAL_UNRESTRICTED)
96101
Long totalUnrestricted,
97102
@JsonProperty(required = true, value = JSON_PROPERTY_UPDATED_AT) String updatedAt) {
@@ -105,6 +110,7 @@ public DataDeletionResponseItemAttributes(
105110
this.startingAt = startingAt;
106111
this.status = status;
107112
this.toTime = toTime;
113+
this.totalDisplayed = totalDisplayed;
108114
this.totalUnrestricted = totalUnrestricted;
109115
this.updatedAt = updatedAt;
110116
}
@@ -339,6 +345,26 @@ public void setToTime(Long toTime) {
339345
this.toTime = toTime;
340346
}
341347

348+
public DataDeletionResponseItemAttributes totalDisplayed(Long totalDisplayed) {
349+
this.totalDisplayed = totalDisplayed;
350+
return this;
351+
}
352+
353+
/**
354+
* Total number of elements to be deleted according to the UI.
355+
*
356+
* @return totalDisplayed
357+
*/
358+
@JsonProperty(JSON_PROPERTY_TOTAL_DISPLAYED)
359+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
360+
public Long getTotalDisplayed() {
361+
return totalDisplayed;
362+
}
363+
364+
public void setTotalDisplayed(Long totalDisplayed) {
365+
this.totalDisplayed = totalDisplayed;
366+
}
367+
342368
public DataDeletionResponseItemAttributes totalUnrestricted(Long totalUnrestricted) {
343369
this.totalUnrestricted = totalUnrestricted;
344370
return this;
@@ -448,6 +474,7 @@ public boolean equals(Object o) {
448474
&& Objects.equals(this.startingAt, dataDeletionResponseItemAttributes.startingAt)
449475
&& Objects.equals(this.status, dataDeletionResponseItemAttributes.status)
450476
&& Objects.equals(this.toTime, dataDeletionResponseItemAttributes.toTime)
477+
&& Objects.equals(this.totalDisplayed, dataDeletionResponseItemAttributes.totalDisplayed)
451478
&& Objects.equals(
452479
this.totalUnrestricted, dataDeletionResponseItemAttributes.totalUnrestricted)
453480
&& Objects.equals(this.updatedAt, dataDeletionResponseItemAttributes.updatedAt)
@@ -469,6 +496,7 @@ public int hashCode() {
469496
startingAt,
470497
status,
471498
toTime,
499+
totalDisplayed,
472500
totalUnrestricted,
473501
updatedAt,
474502
additionalProperties);
@@ -489,6 +517,7 @@ public String toString() {
489517
sb.append(" startingAt: ").append(toIndentedString(startingAt)).append("\n");
490518
sb.append(" status: ").append(toIndentedString(status)).append("\n");
491519
sb.append(" toTime: ").append(toIndentedString(toTime)).append("\n");
520+
sb.append(" totalDisplayed: ").append(toIndentedString(totalDisplayed)).append("\n");
492521
sb.append(" totalUnrestricted: ").append(toIndentedString(totalUnrestricted)).append("\n");
493522
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
494523
sb.append(" additionalProperties: ")

src/test/resources/com/datadog/api/client/v2/api/data_deletion.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Feature: Data Deletion
4343
Given operation "CreateDataDeletionRequest" enabled
4444
And new "CreateDataDeletionRequest" request
4545
And request contains "product" parameter from "REPLACE.ME"
46-
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}, "type": "create_deletion_req"}}
46+
And body with value {"data": {"attributes": {"displayed_total": 25000, "from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}, "type": "create_deletion_req"}}
4747
When the request is sent
4848
Then the response status is 400 Bad Request
4949

@@ -52,7 +52,7 @@ Feature: Data Deletion
5252
Given operation "CreateDataDeletionRequest" enabled
5353
And new "CreateDataDeletionRequest" request
5454
And request contains "product" parameter with value "logs"
55-
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}, "type": "create_deletion_req"}}
55+
And body with value {"data": {"attributes": {"displayed_total": 25000, "from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}, "type": "create_deletion_req"}}
5656
When the request is sent
5757
Then the response status is 200 OK
5858
And the response "data.type" is equal to "deletion_request"
@@ -64,7 +64,7 @@ Feature: Data Deletion
6464
Given operation "CreateDataDeletionRequest" enabled
6565
And new "CreateDataDeletionRequest" request
6666
And request contains "product" parameter with value "logs"
67-
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {}, "to": 1704063600000}, "type": "create_deletion_req"}}
67+
And body with value {"data": {"attributes": {"displayed_total": 25000, "from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {}, "to": 1704063600000}, "type": "create_deletion_req"}}
6868
When the request is sent
6969
Then the response status is 412 Precondition failed error
7070

src/test/resources/com/datadog/api/client/v2/api/given.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
},
198198
{
199199
"name": "body",
200-
"value": "{\n \"data\": {\n \"attributes\": {\n \"from\": 1672527600000,\n \"to\": 1704063600000,\n \"indexes\": [\"test-index\", \"test-index-2\"],\n \"query\": {\"host\": \"abc\", \"service\": \"xyz\"}\n },\n \"type\": \"create_deletion_req\"\n }\n}"
200+
"value": "{\n \"data\": {\n \"attributes\": {\n \"from\": 1672527600000,\n \"to\": 1704063600000,\n \"indexes\": [\"test-index\", \"test-index-2\"],\n \"query\": {\"host\": \"abc\", \"service\": \"xyz\"},\n \"displayed_total\": 25000\n },\n \"type\": \"create_deletion_req\"\n }\n}"
201201
}
202202
],
203203
"step": "there is a valid \"deletion_request\" in the system",

0 commit comments

Comments
 (0)