Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32485,6 +32485,11 @@ components:
description: Query for creating a data deletion request.
example: "service:xyz host:abc"
type: string
recoverable_until:
description: |-
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.
example: "2024-01-11T02:00:00.000000Z"
type: string
source:
description: The source of the deletion request.
example: "standard"
Expand Down Expand Up @@ -32529,6 +32534,12 @@ components:
DataDeletionResponseMeta:
description: The metadata of the data deletion response.
properties:
available_slots:
description: |-
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.
example: 3
format: int64
type: integer
count_product:
additionalProperties:
format: int64
Expand All @@ -32543,6 +32554,12 @@ components:
description: The total deletion requests created by status.
example: {"completed": 10, "pending": 5}
type: object
max_concurrent_requests:
description: |-
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.
example: 5
format: int64
type: integer
next_page:
description: The next page when searching deletion requests created in the current organization.
example: "cGFnZTI="
Expand Down Expand Up @@ -165170,7 +165187,27 @@ paths:
updated_at: "2024-01-01T00:00:00.000000Z"
id: "1"
type: deletion_request
- attributes:
created_at: "2024-01-01T00:00:00.000000Z"
created_by: test@example.com
displayed_total: 50
from_time: 1672527600000
is_created: true
org_id: 123
product: logs
query: "service:abc"
recoverable_until: "2024-01-11T02:00:00.000000Z"
source: standard
starting_at: "2024-01-01T02:00:00.000000Z"
status: in_progress
to_time: 1704063600000
total_unrestricted: 50
updated_at: "2024-01-01T02:00:00.000000Z"
id: "2"
type: deletion_request
meta:
available_slots: 3
max_concurrent_requests: 5
next_page: "cGFnZTI="
product: logs
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
DataDeletionResponseItemAttributes.JSON_PROPERTY_ORG_ID,
DataDeletionResponseItemAttributes.JSON_PROPERTY_PRODUCT,
DataDeletionResponseItemAttributes.JSON_PROPERTY_QUERY,
DataDeletionResponseItemAttributes.JSON_PROPERTY_RECOVERABLE_UNTIL,
DataDeletionResponseItemAttributes.JSON_PROPERTY_SOURCE,
DataDeletionResponseItemAttributes.JSON_PROPERTY_STARTING_AT,
DataDeletionResponseItemAttributes.JSON_PROPERTY_STATUS,
Expand Down Expand Up @@ -76,6 +77,9 @@ public class DataDeletionResponseItemAttributes {
public static final String JSON_PROPERTY_QUERY = "query";
private String query;

public static final String JSON_PROPERTY_RECOVERABLE_UNTIL = "recoverable_until";
private String recoverableUntil;

public static final String JSON_PROPERTY_SOURCE = "source";
private String source;

Expand Down Expand Up @@ -359,6 +363,31 @@ public void setQuery(String query) {
this.query = query;
}

public DataDeletionResponseItemAttributes recoverableUntil(String recoverableUntil) {
this.recoverableUntil = recoverableUntil;
return this;
}

/**
* 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 <code>deleting</code> within a few minutes. This field is returned only for <code>
* in_progress</code> requests when listing deletion requests, and is omitted if the value cannot
* be determined.
*
* @return recoverableUntil
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RECOVERABLE_UNTIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRecoverableUntil() {
return recoverableUntil;
}

public void setRecoverableUntil(String recoverableUntil) {
this.recoverableUntil = recoverableUntil;
}

public DataDeletionResponseItemAttributes source(String source) {
this.source = source;
return this;
Expand Down Expand Up @@ -549,6 +578,8 @@ public boolean equals(Object o) {
&& Objects.equals(this.orgId, dataDeletionResponseItemAttributes.orgId)
&& Objects.equals(this.product, dataDeletionResponseItemAttributes.product)
&& Objects.equals(this.query, dataDeletionResponseItemAttributes.query)
&& Objects.equals(
this.recoverableUntil, dataDeletionResponseItemAttributes.recoverableUntil)
&& Objects.equals(this.source, dataDeletionResponseItemAttributes.source)
&& Objects.equals(this.startingAt, dataDeletionResponseItemAttributes.startingAt)
&& Objects.equals(this.status, dataDeletionResponseItemAttributes.status)
Expand All @@ -574,6 +605,7 @@ public int hashCode() {
orgId,
product,
query,
recoverableUntil,
source,
startingAt,
status,
Expand All @@ -598,6 +630,7 @@ public String toString() {
sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n");
sb.append(" product: ").append(toIndentedString(product)).append("\n");
sb.append(" query: ").append(toIndentedString(query)).append("\n");
sb.append(" recoverableUntil: ").append(toIndentedString(recoverableUntil)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" startingAt: ").append(toIndentedString(startingAt)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@

/** The metadata of the data deletion response. */
@JsonPropertyOrder({
DataDeletionResponseMeta.JSON_PROPERTY_AVAILABLE_SLOTS,
DataDeletionResponseMeta.JSON_PROPERTY_COUNT_PRODUCT,
DataDeletionResponseMeta.JSON_PROPERTY_COUNT_STATUS,
DataDeletionResponseMeta.JSON_PROPERTY_MAX_CONCURRENT_REQUESTS,
DataDeletionResponseMeta.JSON_PROPERTY_NEXT_PAGE,
DataDeletionResponseMeta.JSON_PROPERTY_PRODUCT,
DataDeletionResponseMeta.JSON_PROPERTY_REQUEST_STATUS
Expand All @@ -28,12 +30,18 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class DataDeletionResponseMeta {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_AVAILABLE_SLOTS = "available_slots";
private Long availableSlots;

public static final String JSON_PROPERTY_COUNT_PRODUCT = "count_product";
private Map<String, Long> countProduct = null;

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

public static final String JSON_PROPERTY_MAX_CONCURRENT_REQUESTS = "max_concurrent_requests";
private Long maxConcurrentRequests;

public static final String JSON_PROPERTY_NEXT_PAGE = "next_page";
private String nextPage;

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

public DataDeletionResponseMeta availableSlots(Long availableSlots) {
this.availableSlots = availableSlots;
return this;
}

/**
* Number of additional deletion requests the current organization can create before reaching the
* concurrency limit. Requests with a <code>pending</code>, <code>in_progress</code>, or <code>
* deleting</code> status count toward the limit. This field is returned only when listing
* deletion requests, and is omitted if the value cannot be determined.
*
* @return availableSlots
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AVAILABLE_SLOTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getAvailableSlots() {
return availableSlots;
}

public void setAvailableSlots(Long availableSlots) {
this.availableSlots = availableSlots;
}

public DataDeletionResponseMeta countProduct(Map<String, Long> countProduct) {
this.countProduct = countProduct;
return this;
Expand Down Expand Up @@ -101,6 +133,30 @@ public void setCountStatus(Map<String, Long> countStatus) {
this.countStatus = countStatus;
}

public DataDeletionResponseMeta maxConcurrentRequests(Long maxConcurrentRequests) {
this.maxConcurrentRequests = maxConcurrentRequests;
return this;
}

/**
* Maximum number of deletion requests with a <code>pending</code>, <code>in_progress</code>, or
* <code>deleting</code> 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.
*
* @return maxConcurrentRequests
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MAX_CONCURRENT_REQUESTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getMaxConcurrentRequests() {
return maxConcurrentRequests;
}

public void setMaxConcurrentRequests(Long maxConcurrentRequests) {
this.maxConcurrentRequests = maxConcurrentRequests;
}

public DataDeletionResponseMeta nextPage(String nextPage) {
this.nextPage = nextPage;
return this;
Expand Down Expand Up @@ -220,8 +276,11 @@ public boolean equals(Object o) {
return false;
}
DataDeletionResponseMeta dataDeletionResponseMeta = (DataDeletionResponseMeta) o;
return Objects.equals(this.countProduct, dataDeletionResponseMeta.countProduct)
return Objects.equals(this.availableSlots, dataDeletionResponseMeta.availableSlots)
&& Objects.equals(this.countProduct, dataDeletionResponseMeta.countProduct)
&& Objects.equals(this.countStatus, dataDeletionResponseMeta.countStatus)
&& Objects.equals(
this.maxConcurrentRequests, dataDeletionResponseMeta.maxConcurrentRequests)
&& Objects.equals(this.nextPage, dataDeletionResponseMeta.nextPage)
&& Objects.equals(this.product, dataDeletionResponseMeta.product)
&& Objects.equals(this.requestStatus, dataDeletionResponseMeta.requestStatus)
Expand All @@ -231,15 +290,26 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
countProduct, countStatus, nextPage, product, requestStatus, additionalProperties);
availableSlots,
countProduct,
countStatus,
maxConcurrentRequests,
nextPage,
product,
requestStatus,
additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataDeletionResponseMeta {\n");
sb.append(" availableSlots: ").append(toIndentedString(availableSlots)).append("\n");
sb.append(" countProduct: ").append(toIndentedString(countProduct)).append("\n");
sb.append(" countStatus: ").append(toIndentedString(countStatus)).append("\n");
sb.append(" maxConcurrentRequests: ")
.append(toIndentedString(maxConcurrentRequests))
.append("\n");
sb.append(" nextPage: ").append(toIndentedString(nextPage)).append("\n");
sb.append(" product: ").append(toIndentedString(product)).append("\n");
sb.append(" requestStatus: ").append(toIndentedString(requestStatus)).append("\n");
Expand Down
Loading
Loading