diff --git a/.apigentools-info b/.apigentools-info index d4decc495149..8543f235f369 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-17 19:31:36.926082", - "spec_repo_commit": "45186abe" + "regenerated": "2025-01-17 20:19:19.375093", + "spec_repo_commit": "4e5906d6" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-17 19:31:36.940864", - "spec_repo_commit": "45186abe" + "regenerated": "2025-01-17 20:19:19.390248", + "spec_repo_commit": "4e5906d6" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c0f7b54f032f..6a9029ca65bf 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -7378,9 +7378,20 @@ components: properties: attributes: $ref: '#/components/schemas/CreateDataDeletionRequestBodyAttributes' + type: + $ref: '#/components/schemas/CreateDataDeletionRequestBodyDataType' required: - attributes + - type type: object + CreateDataDeletionRequestBodyDataType: + description: The deletion request type. + enum: + - create_deletion_req + example: create_deletion_req + type: string + x-enum-varnames: + - CREATE_DELETION_REQ CreateDataDeletionResponseBody: description: The response from the create data deletion request endpoint. properties: diff --git a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.frozen b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.frozen index fca6681a8d91..88d6a9afa893 100644 --- a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.frozen @@ -1 +1 @@ -2024-12-05T09:23:41.160Z \ No newline at end of file +2025-01-15T14:25:54.929Z \ No newline at end of file diff --git a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.yml b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.yml index 143acd36f268..761ca05123c8 100644 --- a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Thu, 05 Dec 2024 09:23:41 GMT +- recorded_at: Wed, 15 Jan 2025 14:25:54 GMT request: body: null headers: diff --git a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.frozen b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.frozen index 1ac5089444fe..7ef7817da7e0 100644 --- a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.frozen +++ b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.frozen @@ -1 +1 @@ -2024-12-05T09:23:41.674Z \ No newline at end of file +2025-01-15T14:26:08.930Z \ No newline at end of file diff --git a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.yml b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.yml index ba6bf7fb3f18..db770b7eb79f 100644 --- a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.yml +++ b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-OK-response.yml @@ -1,9 +1,9 @@ http_interactions: -- recorded_at: Thu, 05 Dec 2024 09:23:41 GMT +- recorded_at: Wed, 15 Jan 2025 14:26:08 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000}}}' + string: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000},"type":"create_deletion_req"}}' headers: Accept: - application/json @@ -14,46 +14,46 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613164Z","created_by":"frog@datadoghq.com","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"}}' + string: '{"data":{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.447960191Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:26:09.447960191Z"}},"meta":{"product":"logs"}}' headers: Content-Type: - application/vnd.api+json status: code: 200 message: OK -- recorded_at: Thu, 05 Dec 2024 09:23:41 GMT +- recorded_at: Wed, 15 Jan 2025 14:26:08 GMT request: body: null headers: Accept: - application/json method: PUT - uri: https://api.datadoghq.com/api/v2/deletion/requests/523/cancel + uri: https://api.datadoghq.com/api/v2/deletion/requests/753/cancel response: body: encoding: UTF-8 - string: '{"data":{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613Z","created_by":"frog@datadoghq.com","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"}}' + string: '{"data":{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.44796Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:26:10.016496Z"}},"meta":{"product":"logs","request_status":"canceled"}}' headers: Content-Type: - application/vnd.api+json status: code: 200 message: OK -- recorded_at: Thu, 05 Dec 2024 09:23:41 GMT +- recorded_at: Wed, 15 Jan 2025 14:26:08 GMT request: body: null headers: Accept: - application/json method: PUT - uri: https://api.datadoghq.com/api/v2/deletion/requests/523/cancel + uri: https://api.datadoghq.com/api/v2/deletion/requests/753/cancel response: body: encoding: UTF-8 - string: '{"data":{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613Z","created_by":"frog@datadoghq.com","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"}}' + string: '{"data":{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.44796Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:26:10.016496Z"}},"meta":{"product":"logs","request_status":"canceled"}}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.frozen b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.frozen index 9fb1cf5f42bd..6e3bf9d41553 100644 --- a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.frozen +++ b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.frozen @@ -1 +1 @@ -2024-12-05T09:23:42.850Z \ No newline at end of file +2025-01-15T14:26:26.195Z \ No newline at end of file diff --git a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.yml b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.yml index 1c7533407313..3ad5da091316 100644 --- a/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.yml +++ b/cassettes/features/v2/data_deletion/Cancels-a-data-deletion-request-returns-Precondition-failed-error-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Thu, 05 Dec 2024 09:23:42 GMT +- recorded_at: Wed, 15 Jan 2025 14:26:26 GMT request: body: null headers: diff --git a/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.frozen b/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.frozen index 36dd41d62f07..72e9b695b5f6 100644 --- a/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.frozen +++ b/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.frozen @@ -1 +1 @@ -2024-12-05T09:23:43.197Z \ No newline at end of file +2025-01-15T14:27:27.929Z \ No newline at end of file diff --git a/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.yml b/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.yml index 4ba4fe5df274..1e0236620029 100644 --- a/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.yml +++ b/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-OK-response.yml @@ -1,9 +1,9 @@ http_interactions: -- recorded_at: Thu, 05 Dec 2024 09:23:43 GMT +- recorded_at: Wed, 15 Jan 2025 14:27:27 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000}}}' + string: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000},"type":"create_deletion_req"}}' headers: Accept: - application/json @@ -14,27 +14,27 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"524","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:43.527574137Z","created_by":"frog@datadoghq.com","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"}}' + string: '{"data":{"id":"754","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:27:28.457837225Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:27:28.457837225Z"}},"meta":{"product":"logs"}}' headers: Content-Type: - application/vnd.api+json status: code: 200 message: OK -- recorded_at: Thu, 05 Dec 2024 09:23:43 GMT +- recorded_at: Wed, 15 Jan 2025 14:27:27 GMT request: body: null headers: Accept: - application/json method: PUT - uri: https://api.datadoghq.com/api/v2/deletion/requests/524/cancel + uri: https://api.datadoghq.com/api/v2/deletion/requests/754/cancel response: body: encoding: UTF-8 - string: '{"data":{"id":"524","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:43.527574Z","created_by":"frog@datadoghq.com","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"}}' + string: '{"data":{"id":"754","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:27:28.457837Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:27:28.841156Z"}},"meta":{"product":"logs","request_status":"canceled"}}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.frozen b/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.frozen index 803680c00cc9..6b5b3b9c6ddd 100644 --- a/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.frozen +++ b/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.frozen @@ -1 +1 @@ -2024-12-05T09:23:44.038Z \ No newline at end of file +2025-01-15T14:27:45.329Z \ No newline at end of file diff --git a/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.yml b/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.yml index df1f30a3ab3d..0edf94b1a755 100644 --- a/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.yml +++ b/cassettes/features/v2/data_deletion/Creates-a-data-deletion-request-returns-Precondition-failed-error-response.yml @@ -1,9 +1,9 @@ http_interactions: -- recorded_at: Thu, 05 Dec 2024 09:23:44 GMT +- recorded_at: Wed, 15 Jan 2025 14:27:45 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{},"to":1704063600000}}}' + string: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{},"to":1704063600000},"type":"create_deletion_req"}}' headers: Accept: - application/json diff --git a/cassettes/features/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.frozen b/cassettes/features/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.frozen index c80aa7789116..fa1e1b7f6d45 100644 --- a/cassettes/features/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.frozen +++ b/cassettes/features/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.frozen @@ -1 +1 @@ -2024-12-05T09:23:44.395Z \ No newline at end of file +2025-01-15T14:28:03.053Z \ No newline at end of file diff --git a/cassettes/features/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.yml b/cassettes/features/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.yml index e770c1b78164..d1adca96322e 100644 --- a/cassettes/features/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.yml +++ b/cassettes/features/v2/data_deletion/Gets-a-list-of-data-deletion-requests-returns-OK-response.yml @@ -1,9 +1,9 @@ http_interactions: -- recorded_at: Thu, 05 Dec 2024 09:23:44 GMT +- recorded_at: Wed, 15 Jan 2025 14:28:03 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000}}}' + string: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000},"type":"create_deletion_req"}}' headers: Accept: - application/json @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"525","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:44.733234992Z","created_by":"frog@datadoghq.com","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:44.733234992Z"}},"meta":{"product":"logs"}}' + string: '{"data":{"id":"755","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:28:03.561191422Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:28:03.561191422Z"}},"meta":{"product":"logs"}}' headers: Content-Type: - application/vnd.api+json status: code: 200 message: OK -- recorded_at: Thu, 05 Dec 2024 09:23:44 GMT +- recorded_at: Wed, 15 Jan 2025 14:28:03 GMT request: body: null headers: @@ -33,76 +33,76 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":[{"id":"525","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:44.733234Z","created_by":"frog@datadoghq.com","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:44.733234Z"}},{"id":"524","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:43.527574Z","created_by":"frog@datadoghq.com","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.558963Z"}},{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613Z","created_by":"frog@datadoghq.com","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.57098Z"}},{"id":"522","type":"deletion_request","attributes":{"created_at":"2024-12-05T08:54:02.022684Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["*"],"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-05T08:54:04.800257Z"}},{"id":"521","type":"deletion_request","attributes":{"created_at":"2024-12-05T08:54:01.274039Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["*"],"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-05T08:54:05.766783Z"}},{"id":"520","type":"deletion_request","attributes":{"created_at":"2024-12-05T08:54:00.039418Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["*"],"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-05T08:54:06.29108Z"}},{"id":"519","type":"deletion_request","attributes":{"created_at":"2024-12-05T08:37:13.099975Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["*"],"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-05T08:37:13.973482Z"}},{"id":"518","type":"deletion_request","attributes":{"created_at":"2024-12-05T08:36:07.9972Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["*"],"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-05T08:36:09.894949Z"}},{"id":"517","type":"deletion_request","attributes":{"created_at":"2024-12-05T08:34:02.804665Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["*"],"is_created":true,"org_id":321813,"product":"logs","query":"host:abc - service:xyz","starting_at":"2024-12-05T10:34:02.974336Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T08:34:04.095987Z"}},{"id":"516","type":"deletion_request","attributes":{"created_at":"2024-12-05T08:27:36.47085Z","created_by":"frog@datadoghq.com","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-12-05T08:27:37.785739Z"}},{"id":"515","type":"deletion_request","attributes":{"created_at":"2024-12-05T08:27:10.521718Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["*"],"is_created":true,"org_id":321813,"product":"logs","query":"host:abc - service:xyz","starting_at":"2024-12-05T10:27:10.807482Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T08:27:11.919794Z"}},{"id":"514","type":"deletion_request","attributes":{"created_at":"2024-12-05T08:26:17.901525Z","created_by":"frog@datadoghq.com","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-12-05T08:26:51.782987Z"}},{"id":"513","type":"deletion_request","attributes":{"created_at":"2024-12-05T05:10:34.538615Z","created_by":"frog@datadoghq.com","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-12-05T05:10:35.227581Z"}},{"id":"512","type":"deletion_request","attributes":{"created_at":"2024-12-05T05:10:34.373277Z","created_by":"frog@datadoghq.com","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-12-05T05:10:35.503602Z"}},{"id":"511","type":"deletion_request","attributes":{"created_at":"2024-12-05T05:10:34.166373Z","created_by":"frog@datadoghq.com","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-12-05T05:10:37.636971Z"}},{"id":"510","type":"deletion_request","attributes":{"created_at":"2024-12-05T04:17:28.502647Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T04:17:39.442202Z"}},{"id":"509","type":"deletion_request","attributes":{"created_at":"2024-12-05T04:17:28.286399Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T04:17:42.739397Z"}},{"id":"508","type":"deletion_request","attributes":{"created_at":"2024-12-05T04:17:27.050714Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T04:17:38.940905Z"}},{"id":"507","type":"deletion_request","attributes":{"created_at":"2024-12-05T03:33:02.553569Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T03:33:05.468663Z"}},{"id":"506","type":"deletion_request","attributes":{"created_at":"2024-12-05T03:33:01.829772Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T03:33:02.207077Z"}},{"id":"505","type":"deletion_request","attributes":{"created_at":"2024-12-05T03:32:59.717089Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T03:33:39.611917Z"}},{"id":"504","type":"deletion_request","attributes":{"created_at":"2024-12-05T02:39:30.452252Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T02:40:03.389961Z"}},{"id":"503","type":"deletion_request","attributes":{"created_at":"2024-12-05T02:39:29.731164Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T02:39:30.598348Z"}},{"id":"502","type":"deletion_request","attributes":{"created_at":"2024-12-05T02:39:27.67525Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T02:39:29.772504Z"}},{"id":"501","type":"deletion_request","attributes":{"created_at":"2024-12-05T01:38:32.938444Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T01:38:37.212394Z"}},{"id":"500","type":"deletion_request","attributes":{"created_at":"2024-12-05T01:33:29.07009Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T01:33:32.929175Z"}},{"id":"499","type":"deletion_request","attributes":{"created_at":"2024-12-05T01:33:19.247177Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T01:33:50.172479Z"}},{"id":"498","type":"deletion_request","attributes":{"created_at":"2024-12-05T00:10:39.176953Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T00:11:12.052185Z"}},{"id":"497","type":"deletion_request","attributes":{"created_at":"2024-12-05T00:10:38.929169Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T00:10:40.583573Z"}},{"id":"496","type":"deletion_request","attributes":{"created_at":"2024-12-05T00:10:37.536443Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-05T00:10:39.843751Z"}},{"id":"495","type":"deletion_request","attributes":{"created_at":"2024-12-04T11:23:40.020775Z","created_by":"frog@datadoghq.com","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-12-04T11:24:11.570354Z"}},{"id":"494","type":"deletion_request","attributes":{"created_at":"2024-12-04T11:23:39.300942Z","created_by":"frog@datadoghq.com","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-12-04T11:23:39.848Z"}},{"id":"493","type":"deletion_request","attributes":{"created_at":"2024-12-04T11:23:38.06132Z","created_by":"frog@datadoghq.com","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-12-04T11:23:39.834766Z"}},{"id":"492","type":"deletion_request","attributes":{"created_at":"2024-12-04T11:12:49.664389Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T11:13:20.678256Z"}},{"id":"491","type":"deletion_request","attributes":{"created_at":"2024-12-04T11:12:48.671067Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T11:12:49.857767Z"}},{"id":"490","type":"deletion_request","attributes":{"created_at":"2024-12-04T11:12:47.413052Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T11:12:49.845378Z"}},{"id":"489","type":"deletion_request","attributes":{"created_at":"2024-12-04T05:13:08.790941Z","created_by":"frog@datadoghq.com","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-12-04T05:13:09.56614Z"}},{"id":"488","type":"deletion_request","attributes":{"created_at":"2024-12-04T05:13:07.941751Z","created_by":"frog@datadoghq.com","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-12-04T05:13:08.161545Z"}},{"id":"487","type":"deletion_request","attributes":{"created_at":"2024-12-04T05:13:07.002206Z","created_by":"frog@datadoghq.com","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-12-04T05:13:09.526302Z"}},{"id":"486","type":"deletion_request","attributes":{"created_at":"2024-12-04T04:17:55.137432Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T04:18:27.401167Z"}},{"id":"485","type":"deletion_request","attributes":{"created_at":"2024-12-04T04:17:54.772224Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T04:17:57.509139Z"}},{"id":"484","type":"deletion_request","attributes":{"created_at":"2024-12-04T04:17:53.215582Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T04:17:56.14153Z"}},{"id":"483","type":"deletion_request","attributes":{"created_at":"2024-12-04T03:31:43.474476Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T03:31:45.102956Z"}},{"id":"482","type":"deletion_request","attributes":{"created_at":"2024-12-04T03:31:42.536945Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T03:31:47.227213Z"}},{"id":"481","type":"deletion_request","attributes":{"created_at":"2024-12-04T03:31:40.277056Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T03:32:12.271899Z"}},{"id":"480","type":"deletion_request","attributes":{"created_at":"2024-12-04T02:35:20.16826Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T02:35:21.604216Z"}},{"id":"479","type":"deletion_request","attributes":{"created_at":"2024-12-04T02:35:19.945093Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T02:35:21.332214Z"}},{"id":"478","type":"deletion_request","attributes":{"created_at":"2024-12-04T02:35:18.637912Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T02:35:21.106744Z"}},{"id":"477","type":"deletion_request","attributes":{"created_at":"2024-12-04T01:40:16.332256Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T01:40:49.189761Z"}},{"id":"476","type":"deletion_request","attributes":{"created_at":"2024-12-04T01:39:37.000253Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12-04T01:39:41.461154Z"}}],"meta":{"next_page":"eyJQcm9kdWN0cyI6bnVsbCwiUXVlcnkiOiIiLCJTdGF0dXMiOiIiLCJQYWdlU2l6ZSI6NTAsIkxhc3RJdGVtSWQiOjQ3NX0K","count_status":{"canceled":125,"pending":1},"count_product":{"logs":126}}}' + string: '{"data":[{"id":"755","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:28:03.561191Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:28:03.561191Z"}},{"id":"754","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:27:28.457837Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:27:29.845912Z"}},{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.44796Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:26:40.778007Z"}},{"id":"752","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:25:29.051089Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:25:29.487794Z"}},{"id":"714","type":"deletion_request","attributes":{"created_at":"2024-12-13T11:10:11.283679Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T11:10:12.030383Z"}},{"id":"713","type":"deletion_request","attributes":{"created_at":"2024-12-13T11:10:10.997244Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T11:10:11.762718Z"}},{"id":"712","type":"deletion_request","attributes":{"created_at":"2024-12-13T11:10:10.589382Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T11:10:11.996616Z"}},{"id":"711","type":"deletion_request","attributes":{"created_at":"2024-12-13T05:12:36.867077Z","created_by":"frog@datadoghq.com","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-13T05:12:37.582675Z"}},{"id":"710","type":"deletion_request","attributes":{"created_at":"2024-12-13T05:12:36.409111Z","created_by":"frog@datadoghq.com","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-13T05:12:37.523535Z"}},{"id":"709","type":"deletion_request","attributes":{"created_at":"2024-12-13T05:12:35.772827Z","created_by":"frog@datadoghq.com","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-13T05:12:37.358453Z"}},{"id":"708","type":"deletion_request","attributes":{"created_at":"2024-12-13T04:20:49.519001Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T04:21:21.590926Z"}},{"id":"707","type":"deletion_request","attributes":{"created_at":"2024-12-13T04:20:48.85652Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T04:20:50.409776Z"}},{"id":"706","type":"deletion_request","attributes":{"created_at":"2024-12-13T04:20:46.836697Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T04:20:49.900177Z"}},{"id":"705","type":"deletion_request","attributes":{"created_at":"2024-12-13T03:29:33.148865Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T03:30:05.402385Z"}},{"id":"704","type":"deletion_request","attributes":{"created_at":"2024-12-13T03:29:32.873575Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T03:29:34.480198Z"}},{"id":"703","type":"deletion_request","attributes":{"created_at":"2024-12-13T03:29:31.474974Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T03:29:34.575551Z"}},{"id":"702","type":"deletion_request","attributes":{"created_at":"2024-12-13T02:35:46.220064Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T02:36:16.89516Z"}},{"id":"701","type":"deletion_request","attributes":{"created_at":"2024-12-13T02:35:46.023077Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T02:35:48.234014Z"}},{"id":"700","type":"deletion_request","attributes":{"created_at":"2024-12-13T02:35:44.731426Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T02:36:15.503554Z"}},{"id":"699","type":"deletion_request","attributes":{"created_at":"2024-12-13T01:48:30.752051Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T01:48:31.279909Z"}},{"id":"698","type":"deletion_request","attributes":{"created_at":"2024-12-13T01:48:05.417998Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T01:48:36.25558Z"}},{"id":"697","type":"deletion_request","attributes":{"created_at":"2024-12-13T01:45:32.382234Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T01:45:36.312471Z"}},{"id":"696","type":"deletion_request","attributes":{"created_at":"2024-12-13T00:10:48.46036Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T00:10:49.886692Z"}},{"id":"695","type":"deletion_request","attributes":{"created_at":"2024-12-13T00:10:48.327767Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T00:10:48.780992Z"}},{"id":"694","type":"deletion_request","attributes":{"created_at":"2024-12-13T00:10:47.122825Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-13T00:10:48.487494Z"}},{"id":"685","type":"deletion_request","attributes":{"created_at":"2024-12-12T11:12:38.870862Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T11:12:39.89965Z"}},{"id":"684","type":"deletion_request","attributes":{"created_at":"2024-12-12T11:12:38.199983Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T11:12:39.049625Z"}},{"id":"683","type":"deletion_request","attributes":{"created_at":"2024-12-12T11:12:36.807002Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T11:13:07.805293Z"}},{"id":"682","type":"deletion_request","attributes":{"created_at":"2024-12-12T05:12:52.684546Z","created_by":"frog@datadoghq.com","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-12T05:12:53.685522Z"}},{"id":"681","type":"deletion_request","attributes":{"created_at":"2024-12-12T05:12:52.16783Z","created_by":"frog@datadoghq.com","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-12T05:12:53.950165Z"}},{"id":"680","type":"deletion_request","attributes":{"created_at":"2024-12-12T05:12:51.544717Z","created_by":"frog@datadoghq.com","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-12T05:12:53.828301Z"}},{"id":"679","type":"deletion_request","attributes":{"created_at":"2024-12-12T04:17:01.83844Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T04:17:03.845361Z"}},{"id":"678","type":"deletion_request","attributes":{"created_at":"2024-12-12T04:17:01.663259Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T04:17:03.964271Z"}},{"id":"677","type":"deletion_request","attributes":{"created_at":"2024-12-12T04:17:00.420697Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T04:17:03.326956Z"}},{"id":"676","type":"deletion_request","attributes":{"created_at":"2024-12-12T03:33:57.914898Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T03:34:00.243844Z"}},{"id":"675","type":"deletion_request","attributes":{"created_at":"2024-12-12T03:33:57.247608Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T03:33:57.967989Z"}},{"id":"674","type":"deletion_request","attributes":{"created_at":"2024-12-12T03:33:55.222307Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T03:34:27.685207Z"}},{"id":"673","type":"deletion_request","attributes":{"created_at":"2024-12-12T02:35:45.009347Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T02:36:16.117622Z"}},{"id":"672","type":"deletion_request","attributes":{"created_at":"2024-12-12T02:35:44.703999Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T02:35:45.087818Z"}},{"id":"671","type":"deletion_request","attributes":{"created_at":"2024-12-12T02:35:43.243266Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T02:35:44.412883Z"}},{"id":"670","type":"deletion_request","attributes":{"created_at":"2024-12-12T01:37:54.871601Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T01:37:56.816539Z"}},{"id":"669","type":"deletion_request","attributes":{"created_at":"2024-12-12T01:35:59.187862Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T01:36:00.746255Z"}},{"id":"668","type":"deletion_request","attributes":{"created_at":"2024-12-12T01:33:43.354197Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T01:33:48.502764Z"}},{"id":"667","type":"deletion_request","attributes":{"created_at":"2024-12-12T00:10:04.772518Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T00:10:07.559594Z"}},{"id":"666","type":"deletion_request","attributes":{"created_at":"2024-12-12T00:10:04.623831Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T00:10:05.077168Z"}},{"id":"665","type":"deletion_request","attributes":{"created_at":"2024-12-12T00:10:03.407238Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-12T00:10:07.423403Z"}},{"id":"663","type":"deletion_request","attributes":{"created_at":"2024-12-11T13:24:23.783684Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-11T13:24:55.748311Z"}},{"id":"662","type":"deletion_request","attributes":{"created_at":"2024-12-11T13:24:23.268323Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-11T13:24:23.989092Z"}},{"id":"661","type":"deletion_request","attributes":{"created_at":"2024-12-11T13:24:21.411605Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-11T13:24:24.416787Z"}},{"id":"660","type":"deletion_request","attributes":{"created_at":"2024-12-11T11:10:35.376536Z","created_by":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","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-11T11:10:35.80173Z"}}],"meta":{"next_page":"eyJQcm9kdWN0cyI6bnVsbCwiUXVlcnkiOiIiLCJTdGF0dXMiOiIiLCJQYWdlU2l6ZSI6NTAsIkxhc3RJdGVtSWQiOjY1OX0K","count_status":{"canceled":303,"pending":1},"count_product":{"logs":304}}}' headers: Content-Type: - application/vnd.api+json status: code: 200 message: OK -- recorded_at: Thu, 05 Dec 2024 09:23:44 GMT +- recorded_at: Wed, 15 Jan 2025 14:28:03 GMT request: body: null headers: Accept: - application/json method: PUT - uri: https://api.datadoghq.com/api/v2/deletion/requests/525/cancel + uri: https://api.datadoghq.com/api/v2/deletion/requests/755/cancel response: body: encoding: UTF-8 - string: '{"data":{"id":"525","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:44.733234Z","created_by":"frog@datadoghq.com","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:45.715101Z"}},"meta":{"product":"logs","request_status":"canceled"}}' + string: '{"data":{"id":"755","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:28:03.561191Z","created_by":"frog@datadoghq.com","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":"2025-01-15T14:28:04.405914Z"}},"meta":{"product":"logs","request_status":"canceled"}}' headers: Content-Type: - application/vnd.api+json diff --git a/examples/v2/data-deletion/CreateDataDeletionRequest.rb b/examples/v2/data-deletion/CreateDataDeletionRequest.rb index 5ad13527928a..406f64ff1655 100644 --- a/examples/v2/data-deletion/CreateDataDeletionRequest.rb +++ b/examples/v2/data-deletion/CreateDataDeletionRequest.rb @@ -19,6 +19,7 @@ }, to: 1704063600000, }), + type: DatadogAPIClient::V2::CreateDataDeletionRequestBodyDataType::CREATE_DELETION_REQ, }), }) p api_instance.create_data_deletion_request("logs", body) diff --git a/features/v2/data_deletion.feature b/features/v2/data_deletion.feature index fa8a94e55203..4085e586ba13 100644 --- a/features/v2/data_deletion.feature +++ b/features/v2/data_deletion.feature @@ -43,7 +43,7 @@ Feature: Data Deletion Given operation "CreateDataDeletionRequest" enabled And new "CreateDataDeletionRequest" request And request contains "product" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}} + 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"}} When the request is sent Then the response status is 400 Bad Request @@ -52,7 +52,7 @@ Feature: Data Deletion Given operation "CreateDataDeletionRequest" enabled And new "CreateDataDeletionRequest" request And request contains "product" parameter with value "logs" - And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}} + 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"}} When the request is sent Then the response status is 200 OK And the response "data.type" is equal to "deletion_request" @@ -64,7 +64,7 @@ Feature: Data Deletion Given operation "CreateDataDeletionRequest" enabled And new "CreateDataDeletionRequest" request And request contains "product" parameter with value "logs" - And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {}, "to": 1704063600000}}} + And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {}, "to": 1704063600000}, "type": "create_deletion_req"}} When the request is sent Then the response status is 412 Precondition failed error diff --git a/features/v2/given.json b/features/v2/given.json index 2af5f560d204..e5c2cbcc488a 100644 --- a/features/v2/given.json +++ b/features/v2/given.json @@ -160,7 +160,7 @@ }, { "name": "body", - "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 }\n}" + "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}" } ], "step": "there is a valid \"deletion_request\" in the system", diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 9feb1fc8a2b5..d051ffb8d6f1 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -1312,6 +1312,7 @@ def overrides "v2.create_data_deletion_request_body" => "CreateDataDeletionRequestBody", "v2.create_data_deletion_request_body_attributes" => "CreateDataDeletionRequestBodyAttributes", "v2.create_data_deletion_request_body_data" => "CreateDataDeletionRequestBodyData", + "v2.create_data_deletion_request_body_data_type" => "CreateDataDeletionRequestBodyDataType", "v2.create_data_deletion_response_body" => "CreateDataDeletionResponseBody", "v2.create_open_api_response" => "CreateOpenAPIResponse", "v2.create_open_api_response_attributes" => "CreateOpenAPIResponseAttributes", diff --git a/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data.rb b/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data.rb index f3b8cf9d0071..ca2b417b6b6b 100644 --- a/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data.rb +++ b/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data.rb @@ -24,13 +24,17 @@ class CreateDataDeletionRequestBodyData # Attributes for creating a data deletion request. attr_reader :attributes + # The deletion request type. + attr_reader :type + attr_accessor :additional_properties # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map { - :'attributes' => :'attributes' + :'attributes' => :'attributes', + :'type' => :'type' } end @@ -38,7 +42,8 @@ def self.attribute_map # @!visibility private def self.openapi_types { - :'attributes' => :'CreateDataDeletionRequestBodyAttributes' + :'attributes' => :'CreateDataDeletionRequestBodyAttributes', + :'type' => :'CreateDataDeletionRequestBodyDataType' } end @@ -63,6 +68,10 @@ def initialize(attributes = {}) if attributes.key?(:'attributes') self.attributes = attributes[:'attributes'] end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end end # Check to see if the all the properties in the model are valid @@ -70,6 +79,7 @@ def initialize(attributes = {}) # @!visibility private def valid? return false if @attributes.nil? + return false if @type.nil? true end @@ -83,6 +93,16 @@ def attributes=(attributes) @attributes = attributes end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + # @!visibility private + def type=(type) + if type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private @@ -110,6 +130,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && attributes == o.attributes && + type == o.type && additional_properties == o.additional_properties end @@ -117,7 +138,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [attributes, additional_properties].hash + [attributes, type, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data_type.rb b/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data_type.rb new file mode 100644 index 000000000000..c275ffe29174 --- /dev/null +++ b/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data_type.rb @@ -0,0 +1,26 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The deletion request type. + class CreateDataDeletionRequestBodyDataType + include BaseEnumModel + + CREATE_DELETION_REQ = "create_deletion_req".freeze + end +end