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
36 changes: 18 additions & 18 deletions generated-test/test-server-data/v2/data-deletion.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class DataDeletionResponseItemAttributes
# Query for creating a data deletion request.
attr_reader :query

# 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.
attr_accessor :recoverable_until

# The source of the deletion request.
attr_accessor :source

Expand Down Expand Up @@ -89,6 +92,7 @@ def self.attribute_map
:'org_id' => :'org_id',
:'product' => :'product',
:'query' => :'query',
:'recoverable_until' => :'recoverable_until',
:'source' => :'source',
:'starting_at' => :'starting_at',
:'status' => :'status',
Expand All @@ -113,6 +117,7 @@ def self.openapi_types
:'org_id' => :'Integer',
:'product' => :'String',
:'query' => :'String',
:'recoverable_until' => :'String',
:'source' => :'String',
:'starting_at' => :'String',
:'status' => :'String',
Expand Down Expand Up @@ -186,6 +191,10 @@ def initialize(attributes = {})
self.query = attributes[:'query']
end

if attributes.key?(:'recoverable_until')
self.recoverable_until = attributes[:'recoverable_until']
end

if attributes.key?(:'source')
self.source = attributes[:'source']
end
Expand Down Expand Up @@ -398,6 +407,7 @@ def ==(o)
org_id == o.org_id &&
product == o.product &&
query == o.query &&
recoverable_until == o.recoverable_until &&
source == o.source &&
starting_at == o.starting_at &&
status == o.status &&
Expand All @@ -411,7 +421,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[created_at, created_by, customer_message, displayed_total, error_category, from_time, indexes, is_created, org_id, product, query, source, starting_at, status, to_time, total_unrestricted, updated_at, additional_properties].hash
[created_at, created_by, customer_message, displayed_total, error_category, from_time, indexes, is_created, org_id, product, query, recoverable_until, source, starting_at, status, to_time, total_unrestricted, updated_at, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ module DatadogAPIClient::V2
class DataDeletionResponseMeta
include BaseGenericModel

# 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.
attr_accessor :available_slots

# The total deletion requests created by product.
attr_accessor :count_product

# The total deletion requests created by status.
attr_accessor :count_status

# 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.
attr_accessor :max_concurrent_requests

# The next page when searching deletion requests created in the current organization.
attr_accessor :next_page

Expand All @@ -42,8 +48,10 @@ class DataDeletionResponseMeta
# @!visibility private
def self.attribute_map
{
:'available_slots' => :'available_slots',
:'count_product' => :'count_product',
:'count_status' => :'count_status',
:'max_concurrent_requests' => :'max_concurrent_requests',
:'next_page' => :'next_page',
:'product' => :'product',
:'request_status' => :'request_status'
Expand All @@ -54,8 +62,10 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'available_slots' => :'Integer',
:'count_product' => :'Hash<String, Integer>',
:'count_status' => :'Hash<String, Integer>',
:'max_concurrent_requests' => :'Integer',
:'next_page' => :'String',
:'product' => :'String',
:'request_status' => :'String'
Expand All @@ -80,6 +90,10 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'available_slots')
self.available_slots = attributes[:'available_slots']
end

if attributes.key?(:'count_product')
self.count_product = attributes[:'count_product']
end
Expand All @@ -88,6 +102,10 @@ def initialize(attributes = {})
self.count_status = attributes[:'count_status']
end

if attributes.key?(:'max_concurrent_requests')
self.max_concurrent_requests = attributes[:'max_concurrent_requests']
end

if attributes.key?(:'next_page')
self.next_page = attributes[:'next_page']
end
Expand Down Expand Up @@ -127,8 +145,10 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
available_slots == o.available_slots &&
count_product == o.count_product &&
count_status == o.count_status &&
max_concurrent_requests == o.max_concurrent_requests &&
next_page == o.next_page &&
product == o.product &&
request_status == o.request_status &&
Expand All @@ -139,7 +159,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[count_product, count_status, next_page, product, request_status, additional_properties].hash
[available_slots, count_product, count_status, max_concurrent_requests, next_page, product, request_status, additional_properties].hash
end
end
end
Loading