Skip to content

Commit da43cd9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9d87307 of spec repo
1 parent 8c46ef7 commit da43cd9

4 files changed

Lines changed: 160 additions & 20 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32485,6 +32485,11 @@ components:
3248532485
description: Query for creating a data deletion request.
3248632486
example: "service:xyz host:abc"
3248732487
type: string
32488+
recoverable_until:
32489+
description: |-
32490+
Time when the recovery period for the deletion request ends. Before this time, you can cancel the request and recover the data. After this time, permanent deletion begins, and the status changes to `deleting` within a few minutes. This field is returned only for `in_progress` requests when listing deletion requests, and is omitted if the value cannot be determined.
32491+
example: "2024-01-11T02:00:00.000000Z"
32492+
type: string
3248832493
source:
3248932494
description: The source of the deletion request.
3249032495
example: "standard"
@@ -32529,6 +32534,12 @@ components:
3252932534
DataDeletionResponseMeta:
3253032535
description: The metadata of the data deletion response.
3253132536
properties:
32537+
available_slots:
32538+
description: |-
32539+
Number of additional deletion requests the current organization can create before reaching the concurrency limit. Requests with a `pending`, `in_progress`, or `deleting` status count toward the limit. This field is returned only when listing deletion requests, and is omitted if the value cannot be determined.
32540+
example: 3
32541+
format: int64
32542+
type: integer
3253232543
count_product:
3253332544
additionalProperties:
3253432545
format: int64
@@ -32543,6 +32554,12 @@ components:
3254332554
description: The total deletion requests created by status.
3254432555
example: {"completed": 10, "pending": 5}
3254532556
type: object
32557+
max_concurrent_requests:
32558+
description: |-
32559+
Maximum number of deletion requests with a `pending`, `in_progress`, or `deleting` status that the current organization can have at the same time. This field is returned only when listing deletion requests, and is omitted if the value cannot be determined.
32560+
example: 5
32561+
format: int64
32562+
type: integer
3254632563
next_page:
3254732564
description: The next page when searching deletion requests created in the current organization.
3254832565
example: "cGFnZTI="
@@ -165608,7 +165625,27 @@ paths:
165608165625
updated_at: "2024-01-01T00:00:00.000000Z"
165609165626
id: "1"
165610165627
type: deletion_request
165628+
- attributes:
165629+
created_at: "2024-01-01T00:00:00.000000Z"
165630+
created_by: test@example.com
165631+
displayed_total: 50
165632+
from_time: 1672527600000
165633+
is_created: true
165634+
org_id: 123
165635+
product: logs
165636+
query: "service:abc"
165637+
recoverable_until: "2024-01-11T02:00:00.000000Z"
165638+
source: standard
165639+
starting_at: "2024-01-01T02:00:00.000000Z"
165640+
status: in_progress
165641+
to_time: 1704063600000
165642+
total_unrestricted: 50
165643+
updated_at: "2024-01-01T02:00:00.000000Z"
165644+
id: "2"
165645+
type: deletion_request
165611165646
meta:
165647+
available_slots: 3
165648+
max_concurrent_requests: 5
165612165649
next_page: "cGFnZTI="
165613165650
product: logs
165614165651
schema:

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
DataDeletionResponseItemAttributes.JSON_PROPERTY_ORG_ID,
3333
DataDeletionResponseItemAttributes.JSON_PROPERTY_PRODUCT,
3434
DataDeletionResponseItemAttributes.JSON_PROPERTY_QUERY,
35+
DataDeletionResponseItemAttributes.JSON_PROPERTY_RECOVERABLE_UNTIL,
3536
DataDeletionResponseItemAttributes.JSON_PROPERTY_SOURCE,
3637
DataDeletionResponseItemAttributes.JSON_PROPERTY_STARTING_AT,
3738
DataDeletionResponseItemAttributes.JSON_PROPERTY_STATUS,
@@ -76,6 +77,9 @@ public class DataDeletionResponseItemAttributes {
7677
public static final String JSON_PROPERTY_QUERY = "query";
7778
private String query;
7879

80+
public static final String JSON_PROPERTY_RECOVERABLE_UNTIL = "recoverable_until";
81+
private String recoverableUntil;
82+
7983
public static final String JSON_PROPERTY_SOURCE = "source";
8084
private String source;
8185

@@ -359,6 +363,31 @@ public void setQuery(String query) {
359363
this.query = query;
360364
}
361365

366+
public DataDeletionResponseItemAttributes recoverableUntil(String recoverableUntil) {
367+
this.recoverableUntil = recoverableUntil;
368+
return this;
369+
}
370+
371+
/**
372+
* Time when the recovery period for the deletion request ends. Before this time, you can cancel
373+
* the request and recover the data. After this time, permanent deletion begins, and the status
374+
* changes to <code>deleting</code> within a few minutes. This field is returned only for <code>
375+
* in_progress</code> requests when listing deletion requests, and is omitted if the value cannot
376+
* be determined.
377+
*
378+
* @return recoverableUntil
379+
*/
380+
@jakarta.annotation.Nullable
381+
@JsonProperty(JSON_PROPERTY_RECOVERABLE_UNTIL)
382+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
383+
public String getRecoverableUntil() {
384+
return recoverableUntil;
385+
}
386+
387+
public void setRecoverableUntil(String recoverableUntil) {
388+
this.recoverableUntil = recoverableUntil;
389+
}
390+
362391
public DataDeletionResponseItemAttributes source(String source) {
363392
this.source = source;
364393
return this;
@@ -549,6 +578,8 @@ public boolean equals(Object o) {
549578
&& Objects.equals(this.orgId, dataDeletionResponseItemAttributes.orgId)
550579
&& Objects.equals(this.product, dataDeletionResponseItemAttributes.product)
551580
&& Objects.equals(this.query, dataDeletionResponseItemAttributes.query)
581+
&& Objects.equals(
582+
this.recoverableUntil, dataDeletionResponseItemAttributes.recoverableUntil)
552583
&& Objects.equals(this.source, dataDeletionResponseItemAttributes.source)
553584
&& Objects.equals(this.startingAt, dataDeletionResponseItemAttributes.startingAt)
554585
&& Objects.equals(this.status, dataDeletionResponseItemAttributes.status)
@@ -574,6 +605,7 @@ public int hashCode() {
574605
orgId,
575606
product,
576607
query,
608+
recoverableUntil,
577609
source,
578610
startingAt,
579611
status,
@@ -598,6 +630,7 @@ public String toString() {
598630
sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n");
599631
sb.append(" product: ").append(toIndentedString(product)).append("\n");
600632
sb.append(" query: ").append(toIndentedString(query)).append("\n");
633+
sb.append(" recoverableUntil: ").append(toIndentedString(recoverableUntil)).append("\n");
601634
sb.append(" source: ").append(toIndentedString(source)).append("\n");
602635
sb.append(" startingAt: ").append(toIndentedString(startingAt)).append("\n");
603636
sb.append(" status: ").append(toIndentedString(status)).append("\n");

‎src/main/java/com/datadog/api/client/v2/model/DataDeletionResponseMeta.java‎

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818

1919
/** The metadata of the data deletion response. */
2020
@JsonPropertyOrder({
21+
DataDeletionResponseMeta.JSON_PROPERTY_AVAILABLE_SLOTS,
2122
DataDeletionResponseMeta.JSON_PROPERTY_COUNT_PRODUCT,
2223
DataDeletionResponseMeta.JSON_PROPERTY_COUNT_STATUS,
24+
DataDeletionResponseMeta.JSON_PROPERTY_MAX_CONCURRENT_REQUESTS,
2325
DataDeletionResponseMeta.JSON_PROPERTY_NEXT_PAGE,
2426
DataDeletionResponseMeta.JSON_PROPERTY_PRODUCT,
2527
DataDeletionResponseMeta.JSON_PROPERTY_REQUEST_STATUS
@@ -28,12 +30,18 @@
2830
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2931
public class DataDeletionResponseMeta {
3032
@JsonIgnore public boolean unparsed = false;
33+
public static final String JSON_PROPERTY_AVAILABLE_SLOTS = "available_slots";
34+
private Long availableSlots;
35+
3136
public static final String JSON_PROPERTY_COUNT_PRODUCT = "count_product";
3237
private Map<String, Long> countProduct = null;
3338

3439
public static final String JSON_PROPERTY_COUNT_STATUS = "count_status";
3540
private Map<String, Long> countStatus = null;
3641

42+
public static final String JSON_PROPERTY_MAX_CONCURRENT_REQUESTS = "max_concurrent_requests";
43+
private Long maxConcurrentRequests;
44+
3745
public static final String JSON_PROPERTY_NEXT_PAGE = "next_page";
3846
private String nextPage;
3947

@@ -43,6 +51,30 @@ public class DataDeletionResponseMeta {
4351
public static final String JSON_PROPERTY_REQUEST_STATUS = "request_status";
4452
private String requestStatus;
4553

54+
public DataDeletionResponseMeta availableSlots(Long availableSlots) {
55+
this.availableSlots = availableSlots;
56+
return this;
57+
}
58+
59+
/**
60+
* Number of additional deletion requests the current organization can create before reaching the
61+
* concurrency limit. Requests with a <code>pending</code>, <code>in_progress</code>, or <code>
62+
* deleting</code> status count toward the limit. This field is returned only when listing
63+
* deletion requests, and is omitted if the value cannot be determined.
64+
*
65+
* @return availableSlots
66+
*/
67+
@jakarta.annotation.Nullable
68+
@JsonProperty(JSON_PROPERTY_AVAILABLE_SLOTS)
69+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
70+
public Long getAvailableSlots() {
71+
return availableSlots;
72+
}
73+
74+
public void setAvailableSlots(Long availableSlots) {
75+
this.availableSlots = availableSlots;
76+
}
77+
4678
public DataDeletionResponseMeta countProduct(Map<String, Long> countProduct) {
4779
this.countProduct = countProduct;
4880
return this;
@@ -101,6 +133,30 @@ public void setCountStatus(Map<String, Long> countStatus) {
101133
this.countStatus = countStatus;
102134
}
103135

136+
public DataDeletionResponseMeta maxConcurrentRequests(Long maxConcurrentRequests) {
137+
this.maxConcurrentRequests = maxConcurrentRequests;
138+
return this;
139+
}
140+
141+
/**
142+
* Maximum number of deletion requests with a <code>pending</code>, <code>in_progress</code>, or
143+
* <code>deleting</code> status that the current organization can have at the same time. This
144+
* field is returned only when listing deletion requests, and is omitted if the value cannot be
145+
* determined.
146+
*
147+
* @return maxConcurrentRequests
148+
*/
149+
@jakarta.annotation.Nullable
150+
@JsonProperty(JSON_PROPERTY_MAX_CONCURRENT_REQUESTS)
151+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152+
public Long getMaxConcurrentRequests() {
153+
return maxConcurrentRequests;
154+
}
155+
156+
public void setMaxConcurrentRequests(Long maxConcurrentRequests) {
157+
this.maxConcurrentRequests = maxConcurrentRequests;
158+
}
159+
104160
public DataDeletionResponseMeta nextPage(String nextPage) {
105161
this.nextPage = nextPage;
106162
return this;
@@ -220,8 +276,11 @@ public boolean equals(Object o) {
220276
return false;
221277
}
222278
DataDeletionResponseMeta dataDeletionResponseMeta = (DataDeletionResponseMeta) o;
223-
return Objects.equals(this.countProduct, dataDeletionResponseMeta.countProduct)
279+
return Objects.equals(this.availableSlots, dataDeletionResponseMeta.availableSlots)
280+
&& Objects.equals(this.countProduct, dataDeletionResponseMeta.countProduct)
224281
&& Objects.equals(this.countStatus, dataDeletionResponseMeta.countStatus)
282+
&& Objects.equals(
283+
this.maxConcurrentRequests, dataDeletionResponseMeta.maxConcurrentRequests)
225284
&& Objects.equals(this.nextPage, dataDeletionResponseMeta.nextPage)
226285
&& Objects.equals(this.product, dataDeletionResponseMeta.product)
227286
&& Objects.equals(this.requestStatus, dataDeletionResponseMeta.requestStatus)
@@ -231,15 +290,26 @@ public boolean equals(Object o) {
231290
@Override
232291
public int hashCode() {
233292
return Objects.hash(
234-
countProduct, countStatus, nextPage, product, requestStatus, additionalProperties);
293+
availableSlots,
294+
countProduct,
295+
countStatus,
296+
maxConcurrentRequests,
297+
nextPage,
298+
product,
299+
requestStatus,
300+
additionalProperties);
235301
}
236302

237303
@Override
238304
public String toString() {
239305
StringBuilder sb = new StringBuilder();
240306
sb.append("class DataDeletionResponseMeta {\n");
307+
sb.append(" availableSlots: ").append(toIndentedString(availableSlots)).append("\n");
241308
sb.append(" countProduct: ").append(toIndentedString(countProduct)).append("\n");
242309
sb.append(" countStatus: ").append(toIndentedString(countStatus)).append("\n");
310+
sb.append(" maxConcurrentRequests: ")
311+
.append(toIndentedString(maxConcurrentRequests))
312+
.append("\n");
243313
sb.append(" nextPage: ").append(toIndentedString(nextPage)).append("\n");
244314
sb.append(" product: ").append(toIndentedString(product)).append("\n");
245315
sb.append(" requestStatus: ").append(toIndentedString(requestStatus)).append("\n");

0 commit comments

Comments
 (0)