Skip to content

Commit e82474f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 07e3abbd of spec repo
1 parent bdfda77 commit e82474f

16 files changed

+100
-88
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-01-15 09:47:02.950531",
8-
"spec_repo_commit": "21b02fc5"
7+
"regenerated": "2025-01-15 18:03:53.605788",
8+
"spec_repo_commit": "07e3abbd"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-15 09:47:02.988116",
13-
"spec_repo_commit": "21b02fc5"
12+
"regenerated": "2025-01-15 18:03:53.620456",
13+
"spec_repo_commit": "07e3abbd"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -7194,8 +7194,13 @@ components:
71947194
properties:
71957195
attributes:
71967196
$ref: '#/components/schemas/CreateDataDeletionRequestBodyAttributes'
7197+
type:
7198+
description: The deletion request type.
7199+
example: create_deletion_req
7200+
type: string
71977201
required:
71987202
- attributes
7203+
- type
71997204
type: object
72007205
CreateDataDeletionResponseBody:
72017206
description: The response from the create data deletion request endpoint.

examples/v2/data-deletion/CreateDataDeletionRequest.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
),
2525
to=1704063600000,
2626
),
27+
type="create_deletion_req",
2728
),
2829
)
2930

src/datadog_api_client/v2/model/create_data_deletion_request_body_data.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,25 @@ def openapi_types(_):
2626

2727
return {
2828
"attributes": (CreateDataDeletionRequestBodyAttributes,),
29+
"type": (str,),
2930
}
3031

3132
attribute_map = {
3233
"attributes": "attributes",
34+
"type": "type",
3335
}
3436

35-
def __init__(self_, attributes: CreateDataDeletionRequestBodyAttributes, **kwargs):
37+
def __init__(self_, attributes: CreateDataDeletionRequestBodyAttributes, type: str, **kwargs):
3638
"""
3739
Data needed to create a data deletion request.
3840
3941
:param attributes: Attributes for creating a data deletion request.
4042
:type attributes: CreateDataDeletionRequestBodyAttributes
43+
44+
:param type: The deletion request type.
45+
:type type: str
4146
"""
4247
super().__init__(kwargs)
4348

4449
self_.attributes = attributes
50+
self_.type = type
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-05T09:23:41.160Z
1+
2025-01-15T14:25:54.929Z
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-05T09:23:41.674Z
1+
2025-01-15T14:26:08.930Z

tests/v2/cassettes/test_scenarios/test_cancels_a_data_deletion_request_returns_ok_response.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000}}}'
3+
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000},"type":"create_deletion_req"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,8 +10,8 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/deletion/data/logs
1111
response:
1212
body:
13-
string: '{"data":{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613164Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
14-
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"pending","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:42.016613164Z"}},"meta":{"product":"logs"}}'
13+
string: '{"data":{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.447960191Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
14+
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"pending","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:26:09.447960191Z"}},"meta":{"product":"logs"}}'
1515
headers:
1616
content-type:
1717
- application/vnd.api+json
@@ -24,11 +24,11 @@ interactions:
2424
accept:
2525
- application/json
2626
method: PUT
27-
uri: https://api.datadoghq.com/api/v2/deletion/requests/523/cancel
27+
uri: https://api.datadoghq.com/api/v2/deletion/requests/753/cancel
2828
response:
2929
body:
30-
string: '{"data":{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
31-
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:42.384299Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
30+
string: '{"data":{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.44796Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
31+
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:26:10.016496Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
3232
headers:
3333
content-type:
3434
- application/vnd.api+json
@@ -41,11 +41,11 @@ interactions:
4141
accept:
4242
- application/json
4343
method: PUT
44-
uri: https://api.datadoghq.com/api/v2/deletion/requests/523/cancel
44+
uri: https://api.datadoghq.com/api/v2/deletion/requests/753/cancel
4545
response:
4646
body:
47-
string: '{"data":{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
48-
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:42.384299Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
47+
string: '{"data":{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.44796Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
48+
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:26:10.016496Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
4949
headers:
5050
content-type:
5151
- application/vnd.api+json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-05T09:23:42.850Z
1+
2025-01-15T14:26:26.195Z
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-05T09:23:43.197Z
1+
2025-01-15T14:27:27.929Z

tests/v2/cassettes/test_scenarios/test_creates_a_data_deletion_request_returns_ok_response.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000}}}'
3+
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000},"type":"create_deletion_req"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,8 +10,8 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/deletion/data/logs
1111
response:
1212
body:
13-
string: '{"data":{"id":"524","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:43.527574137Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
14-
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"pending","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:43.527574137Z"}},"meta":{"product":"logs"}}'
13+
string: '{"data":{"id":"754","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:27:28.457837225Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
14+
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"pending","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:27:28.457837225Z"}},"meta":{"product":"logs"}}'
1515
headers:
1616
content-type:
1717
- application/vnd.api+json
@@ -24,11 +24,11 @@ interactions:
2424
accept:
2525
- application/json
2626
method: PUT
27-
uri: https://api.datadoghq.com/api/v2/deletion/requests/524/cancel
27+
uri: https://api.datadoghq.com/api/v2/deletion/requests/754/cancel
2828
response:
2929
body:
30-
string: '{"data":{"id":"524","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:43.527574Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
31-
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:44.017414Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
30+
string: '{"data":{"id":"754","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:27:28.457837Z","created_by":"[email protected]","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
31+
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:27:28.841156Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
3232
headers:
3333
content-type:
3434
- application/vnd.api+json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-05T09:23:44.038Z
1+
2025-01-15T14:27:45.329Z

tests/v2/cassettes/test_scenarios/test_creates_a_data_deletion_request_returns_precondition_failed_error_response.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{},"to":1704063600000}}}'
3+
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{},"to":1704063600000},"type":"create_deletion_req"}}'
44
headers:
55
accept:
66
- application/json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-05T09:23:44.395Z
1+
2025-01-15T14:28:03.053Z

0 commit comments

Comments
 (0)