Skip to content

Commit 7119d46

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fb522ba of spec repo
1 parent d34602c commit 7119d46

7 files changed

Lines changed: 40 additions & 7 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:45:21.765"
2+
"spec_repo_commit": "fb522ba",
3+
"generated": "2025-08-27 10:19:43.054"
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.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
body = CreateDataDeletionRequestBody(
1717
data=CreateDataDeletionRequestBodyData(
1818
attributes=CreateDataDeletionRequestBodyAttributes(
19+
displayed_total=25000,
1920
_from=1672527600000,
2021
indexes=[
2122
"test-index",

src/datadog_api_client/v2/model/create_data_deletion_request_body_attributes.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,36 @@ class CreateDataDeletionRequestBodyAttributes(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"displayed_total": (int,),
2021
"_from": (int,),
2122
"indexes": ([str],),
2223
"query": ({str: (str,)},),
2324
"to": (int,),
2425
}
2526

2627
attribute_map = {
28+
"displayed_total": "displayed_total",
2729
"_from": "from",
2830
"indexes": "indexes",
2931
"query": "query",
3032
"to": "to",
3133
}
3234

3335
def __init__(
34-
self_, _from: int, query: Dict[str, str], to: int, indexes: Union[List[str], UnsetType] = unset, **kwargs
36+
self_,
37+
displayed_total: int,
38+
_from: int,
39+
query: Dict[str, str],
40+
to: int,
41+
indexes: Union[List[str], UnsetType] = unset,
42+
**kwargs,
3543
):
3644
"""
3745
Attributes for creating a data deletion request.
3846
47+
:param displayed_total: The total number of elements to be deleted that the UI shows to the user.
48+
:type displayed_total: int
49+
3950
:param _from: Start of requested time window, milliseconds since Unix epoch.
4051
:type _from: int
4152
@@ -52,6 +63,7 @@ def __init__(
5263
kwargs["indexes"] = indexes
5364
super().__init__(kwargs)
5465

66+
self_.displayed_total = displayed_total
5567
self_._from = _from
5668
self_.query = query
5769
self_.to = to

src/datadog_api_client/v2/model/data_deletion_response_item_attributes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def openapi_types(_):
2828
"starting_at": (str,),
2929
"status": (str,),
3030
"to_time": (int,),
31+
"total_displayed": (int,),
3132
"total_unrestricted": (int,),
3233
"updated_at": (str,),
3334
}
@@ -44,6 +45,7 @@ def openapi_types(_):
4445
"starting_at": "starting_at",
4546
"status": "status",
4647
"to_time": "to_time",
48+
"total_displayed": "total_displayed",
4749
"total_unrestricted": "total_unrestricted",
4850
"updated_at": "updated_at",
4951
}
@@ -60,6 +62,7 @@ def __init__(
6062
starting_at: str,
6163
status: str,
6264
to_time: int,
65+
total_displayed: int,
6366
total_unrestricted: int,
6467
updated_at: str,
6568
indexes: Union[List[str], UnsetType] = unset,
@@ -101,6 +104,9 @@ def __init__(
101104
:param to_time: End of requested time window, milliseconds since Unix epoch.
102105
:type to_time: int
103106
107+
:param total_displayed: Total number of elements to be deleted according to the UI.
108+
:type total_displayed: int
109+
104110
:param total_unrestricted: Total number of elements to be deleted. Only the data accessible to the current user that matches the query and timeframe provided will be deleted.
105111
:type total_unrestricted: int
106112
@@ -121,5 +127,6 @@ def __init__(
121127
self_.starting_at = starting_at
122128
self_.status = status
123129
self_.to_time = to_time
130+
self_.total_displayed = total_displayed
124131
self_.total_unrestricted = total_unrestricted
125132
self_.updated_at = updated_at

tests/v2/features/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

tests/v2/features/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)