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 @@ -28,6 +28,7 @@ def openapi_types(_):
"org_id": (int,),
"product": (str,),
"query": (str,),
"recoverable_until": (str,),
"source": (str,),
"starting_at": (str,),
"status": (str,),
Expand All @@ -48,6 +49,7 @@ def openapi_types(_):
"org_id": "org_id",
"product": "product",
"query": "query",
"recoverable_until": "recoverable_until",
"source": "source",
"starting_at": "starting_at",
"status": "status",
Expand All @@ -74,6 +76,7 @@ def __init__(
customer_message: Union[str, UnsetType] = unset,
error_category: Union[str, UnsetType] = unset,
indexes: Union[List[str], UnsetType] = unset,
recoverable_until: Union[str, UnsetType] = unset,
source: Union[str, UnsetType] = unset,
**kwargs,
):
Expand Down Expand Up @@ -113,6 +116,9 @@ def __init__(
:param query: Query for creating a data deletion request.
:type query: str

:param recoverable_until: 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.
:type recoverable_until: str, optional

:param source: The source of the deletion request.
:type source: str, optional

Expand All @@ -137,6 +143,8 @@ def __init__(
kwargs["error_category"] = error_category
if indexes is not unset:
kwargs["indexes"] = indexes
if recoverable_until is not unset:
kwargs["recoverable_until"] = recoverable_until
if source is not unset:
kwargs["source"] = source
super().__init__(kwargs)
Expand Down
16 changes: 16 additions & 0 deletions src/datadog_api_client/v2/model/data_deletion_response_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,31 @@ class DataDeletionResponseMeta(ModelNormal):
@cached_property
def openapi_types(_):
return {
"available_slots": (int,),
"count_product": ({str: (int,)},),
"count_status": ({str: (int,)},),
"max_concurrent_requests": (int,),
"next_page": (str,),
"product": (str,),
"request_status": (str,),
}

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",
}

def __init__(
self_,
available_slots: Union[int, UnsetType] = unset,
count_product: Union[Dict[str, int], UnsetType] = unset,
count_status: Union[Dict[str, int], UnsetType] = unset,
max_concurrent_requests: Union[int, UnsetType] = unset,
next_page: Union[str, UnsetType] = unset,
product: Union[str, UnsetType] = unset,
request_status: Union[str, UnsetType] = unset,
Expand All @@ -44,12 +50,18 @@ def __init__(
"""
The metadata of the data deletion response.

:param available_slots: 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.
:type available_slots: int, optional

:param count_product: The total deletion requests created by product.
:type count_product: {str: (int,)}, optional

:param count_status: The total deletion requests created by status.
:type count_status: {str: (int,)}, optional

:param max_concurrent_requests: 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.
:type max_concurrent_requests: int, optional

:param next_page: The next page when searching deletion requests created in the current organization.
:type next_page: str, optional

Expand All @@ -59,10 +71,14 @@ def __init__(
:param request_status: The status of the executed request.
:type request_status: str, optional
"""
if available_slots is not unset:
kwargs["available_slots"] = available_slots
if count_product is not unset:
kwargs["count_product"] = count_product
if count_status is not unset:
kwargs["count_status"] = count_status
if max_concurrent_requests is not unset:
kwargs["max_concurrent_requests"] = max_concurrent_requests
if next_page is not unset:
kwargs["next_page"] = next_page
if product is not unset:
Expand Down
36 changes: 18 additions & 18 deletions tests/generated-test/test-server-data/v2/data-deletion.json

Large diffs are not rendered by default.

Loading