Skip to content

Commit 6883049

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit 843392e2 of spec repo (#2604)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 8ab6109 commit 6883049

17 files changed

+51
-49
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": "2024-12-05 14:56:06.302730",
8-
"spec_repo_commit": "cfc6b497"
7+
"regenerated": "2024-12-05 16:15:46.931965",
8+
"spec_repo_commit": "843392e2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-05 14:56:06.322740",
13-
"spec_repo_commit": "cfc6b497"
12+
"regenerated": "2024-12-05 16:15:46.951025",
13+
"spec_repo_commit": "843392e2"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+9-7
Original file line numberDiff line numberDiff line change
@@ -6414,8 +6414,8 @@ components:
64146414
description: List of indexes for the search. If not provided, the search
64156415
is performed in all indexes.
64166416
example:
6417-
- index-1
6418-
- index-2
6417+
- test-index
6418+
- test-index-2
64196419
items:
64206420
description: Individual index.
64216421
type: string
@@ -7783,14 +7783,16 @@ components:
77837783
description: List of indexes for the search. If not provided, the search
77847784
is performed in all indexes.
77857785
example:
7786-
- index-1
7787-
- index-2
7786+
- test-index
7787+
- test-index-2
77887788
items:
77897789
description: Individual index.
77907790
type: string
77917791
type: array
77927792
is_created:
7793-
description: Whether the deletion request is fully created or not.
7793+
description: Whether the deletion request is fully created or not. It can
7794+
take several minutes to fully create a deletion request depending on the
7795+
target query and timeframe.
77947796
example: true
77957797
type: boolean
77967798
org_id:
@@ -31137,8 +31139,8 @@ paths:
3113731139
x-codegen-request-body-name: body
3113831140
/api/v2/deletion/data/{product}:
3113931141
post:
31140-
description: Creates a data deletion request by providing a query and a time
31141-
frame targeting the proper data.
31142+
description: Creates a data deletion request by providing a query and a timeframe
31143+
targeting the proper data.
3114231144
operationId: CreateDataDeletionRequest
3114331145
parameters:
3114431146
- $ref: '#/components/parameters/ProductName'

examples/v2/data-deletion/CreateDataDeletionRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void main(String[] args) {
2222
.attributes(
2323
new CreateDataDeletionRequestBodyAttributes()
2424
.from(1672527600000L)
25-
.indexes(Arrays.asList("index-1", "index-2"))
25+
.indexes(Arrays.asList("test-index", "test-index-2"))
2626
.query(
2727
Map.ofEntries(
2828
Map.entry("host", "abc"), Map.entry("service", "xyz")))

src/main/java/com/datadog/api/client/v2/api/DataDeletionApi.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ public CompletableFuture<CreateDataDeletionResponseBody> createDataDeletionReque
223223
}
224224

225225
/**
226-
* Creates a data deletion request by providing a query and a time frame targeting the proper
227-
* data.
226+
* Creates a data deletion request by providing a query and a timeframe targeting the proper data.
228227
*
229228
* @param product Name of the product to be deleted, either <code>logs</code> or <code>rum</code>.
230229
* (required)

src/main/java/com/datadog/api/client/v2/model/DataDeletionResponseItemAttributes.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ public DataDeletionResponseItemAttributes isCreated(Boolean isCreated) {
204204
}
205205

206206
/**
207-
* Whether the deletion request is fully created or not.
207+
* Whether the deletion request is fully created or not. It can take several minutes to fully
208+
* create a deletion request depending on the target query and timeframe.
208209
*
209210
* @return isCreated
210211
*/
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-15T08:56:51.182Z
1+
2024-12-05T09:23:41.160Z
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-15T08:57:02.769Z
1+
2024-12-05T09:23:41.674Z

src/test/resources/cassettes/features/v2/Cancels_a_data_deletion_request_returns_OK_response.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
6+
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841331Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.242841331Z\"}},\"meta\":{\"product\":\"logs\"}}",
15+
"body": "{\"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 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\"}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/vnd.api+json"
@@ -27,18 +27,18 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "5cd4cf47-94a7-8539-6a9c-e898d8edd4fb"
30+
"id": "599b5d26-fcc8-db18-1a6e-dfc958964914"
3131
},
3232
{
3333
"httpRequest": {
3434
"headers": {},
3535
"method": "PUT",
36-
"path": "/api/v2/deletion/requests/303/cancel",
36+
"path": "/api/v2/deletion/requests/523/cancel",
3737
"keepAlive": false,
3838
"secure": true
3939
},
4040
"httpResponse": {
41-
"body": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.638067Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}",
41+
"body": "{\"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 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\"}}",
4242
"headers": {
4343
"Content-Type": [
4444
"application/vnd.api+json"
@@ -53,18 +53,18 @@
5353
"timeToLive": {
5454
"unlimited": true
5555
},
56-
"id": "5c48cf25-6248-675c-8bce-de02c7c5fb57"
56+
"id": "ec6f7ff8-dba2-9b00-6429-8e9f391044e3"
5757
},
5858
{
5959
"httpRequest": {
6060
"headers": {},
6161
"method": "PUT",
62-
"path": "/api/v2/deletion/requests/303/cancel",
62+
"path": "/api/v2/deletion/requests/523/cancel",
6363
"keepAlive": false,
6464
"secure": true
6565
},
6666
"httpResponse": {
67-
"body": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:57:03.936325Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}",
67+
"body": "{\"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 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\"}}",
6868
"headers": {
6969
"Content-Type": [
7070
"application/vnd.api+json"
@@ -79,6 +79,6 @@
7979
"timeToLive": {
8080
"unlimited": true
8181
},
82-
"id": "5c48cf25-6248-675c-8bce-de02c7c5fb58"
82+
"id": "ec6f7ff8-dba2-9b00-6429-8e9f391044e4"
8383
}
8484
]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-15T08:57:14.890Z
1+
2024-12-05T09:23:42.850Z
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-15T08:59:09.810Z
1+
2024-12-05T09:23:43.197Z

src/test/resources/cassettes/features/v2/Creates_a_data_deletion_request_returns_OK_response.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
6+
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"data\":{\"id\":\"305\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:59:10.304195172Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"pending\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:59:10.304195172Z\"}},\"meta\":{\"product\":\"logs\"}}",
15+
"body": "{\"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 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\"}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/vnd.api+json"
@@ -27,18 +27,18 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "5cd4cf47-94a7-8539-6a9c-e898d8edd4fd"
30+
"id": "599b5d26-fcc8-db18-1a6e-dfc958964916"
3131
},
3232
{
3333
"httpRequest": {
3434
"headers": {},
3535
"method": "PUT",
36-
"path": "/api/v2/deletion/requests/305/cancel",
36+
"path": "/api/v2/deletion/requests/524/cancel",
3737
"keepAlive": false,
3838
"secure": true
3939
},
4040
"httpResponse": {
41-
"body": "{\"data\":{\"id\":\"305\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:59:10.304195Z\",\"created_by\":\"[email protected]\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"is_created\":false,\"org_id\":321813,\"product\":\"logs\",\"query\":\"host:abc service:xyz\",\"starting_at\":\"0001-01-01T00:00:00Z\",\"status\":\"canceled\",\"to_time\":1704063600000,\"total_unrestricted\":0,\"updated_at\":\"2024-11-15T08:59:10.681676Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}",
41+
"body": "{\"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 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\"}}",
4242
"headers": {
4343
"Content-Type": [
4444
"application/vnd.api+json"
@@ -53,6 +53,6 @@
5353
"timeToLive": {
5454
"unlimited": true
5555
},
56-
"id": "7ee59a12-6bea-0625-a080-1c7a65384828"
56+
"id": "f7d7b19c-0391-4246-c87c-6d32dfeb6b9f"
5757
}
5858
]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-15T08:59:22.532Z
1+
2024-12-05T09:23:44.038Z

src/test/resources/cassettes/features/v2/Creates_a_data_deletion_request_returns_Precondition_failed_error_response.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{},\"to\":1704063600000}}}"
6+
"json": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{},\"to\":1704063600000}}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -27,6 +27,6 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "38a81782-900f-1977-8fe0-51f319bdc048"
30+
"id": "dfc8b718-20e3-903c-facc-d726d2607b48"
3131
}
3232
]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-15T08:57:26.678Z
1+
2024-12-05T09:23:44.395Z

0 commit comments

Comments
 (0)