Skip to content

Commit 234302f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Marks the paths as unstable since the API is in private beta (#2313)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3115f91 commit 234302f

File tree

7 files changed

+35
-12
lines changed

7 files changed

+35
-12
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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-13 14:48:37.018535",
8-
"spec_repo_commit": "5392df51"
7+
"regenerated": "2024-12-13 15:30:14.197293",
8+
"spec_repo_commit": "e7a707af"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-13 14:48:37.036168",
13-
"spec_repo_commit": "5392df51"
12+
"regenerated": "2024-12-13 15:30:14.215421",
13+
"spec_repo_commit": "e7a707af"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31356,6 +31356,9 @@ paths:
3135631356
permissions:
3135731357
- rum_delete_data
3135831358
- logs_delete_data
31359+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
31360+
31361+
contact [Datadog support](https://docs.datadoghq.com/help/).'
3135931362
/api/v2/deletion/requests:
3136031363
get:
3136131364
description: Gets a list of data deletion requests based on several filter parameters.
@@ -31431,6 +31434,9 @@ paths:
3143131434
permissions:
3143231435
- rum_delete_data
3143331436
- logs_delete_data
31437+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
31438+
31439+
contact [Datadog support](https://docs.datadoghq.com/help/).'
3143431440
/api/v2/deletion/requests/{id}/cancel:
3143531441
put:
3143631442
description: Cancels a data deletion request by providing its ID.
@@ -31473,6 +31479,9 @@ paths:
3147331479
permissions:
3147431480
- rum_delete_data
3147531481
- logs_delete_data
31482+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
31483+
31484+
contact [Datadog support](https://docs.datadoghq.com/help/).'
3147631485
/api/v2/domain_allowlist:
3147731486
get:
3147831487
description: Get the domain allowlist for an organization.

examples/v2/data-deletion/CancelDataDeletionRequest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
DELETION_REQUEST_DATA_ID = environ["DELETION_REQUEST_DATA_ID"]
1111

1212
configuration = Configuration()
13+
configuration.unstable_operations["cancel_data_deletion_request"] = True
1314
with ApiClient(configuration) as api_client:
1415
api_instance = DataDeletionApi(api_client)
1516
response = api_instance.cancel_data_deletion_request(

examples/v2/data-deletion/CreateDataDeletionRequest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
)
2929

3030
configuration = Configuration()
31+
configuration.unstable_operations["create_data_deletion_request"] = True
3132
with ApiClient(configuration) as api_client:
3233
api_instance = DataDeletionApi(api_client)
3334
response = api_instance.create_data_deletion_request(product="logs", body=body)

examples/v2/data-deletion/GetDataDeletionRequests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from datadog_api_client.v2.api.data_deletion_api import DataDeletionApi
77

88
configuration = Configuration()
9+
configuration.unstable_operations["get_data_deletion_requests"] = True
910
with ApiClient(configuration) as api_client:
1011
api_instance = DataDeletionApi(api_client)
1112
response = api_instance.get_data_deletion_requests()

src/datadog_api_client/configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ def __init__(
244244
"v2.get_active_billing_dimensions": False,
245245
"v2.get_billing_dimension_mapping": False,
246246
"v2.get_monthly_cost_attribution": False,
247+
"v2.cancel_data_deletion_request": False,
248+
"v2.create_data_deletion_request": False,
249+
"v2.get_data_deletion_requests": False,
247250
"v2.create_dora_deployment": False,
248251
"v2.create_dora_incident": False,
249252
"v2.create_incident": False,

tests/v2/features/data_deletion.feature

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ Feature: Data Deletion
1111

1212
@replay-only @team:DataDog/supportability-engineering
1313
Scenario: Cancels a data deletion request returns "Bad Request" response
14-
Given new "CancelDataDeletionRequest" request
14+
Given operation "CancelDataDeletionRequest" enabled
15+
And new "CancelDataDeletionRequest" request
1516
And request contains "id" parameter with value "id-1"
1617
When the request is sent
1718
Then the response status is 400 Bad Request
1819

1920
@team:DataDog/supportability-engineering
2021
Scenario: Cancels a data deletion request returns "OK" response
21-
Given there is a valid "deletion_request" in the system
22+
Given operation "CancelDataDeletionRequest" enabled
23+
And there is a valid "deletion_request" in the system
2224
And new "CancelDataDeletionRequest" request
2325
And request contains "id" parameter from "deletion_request.data.id"
2426
When the request is sent
@@ -30,22 +32,25 @@ Feature: Data Deletion
3032

3133
@replay-only @team:DataDog/supportability-engineering
3234
Scenario: Cancels a data deletion request returns "Precondition failed error" response
33-
Given new "CancelDataDeletionRequest" request
35+
Given operation "CancelDataDeletionRequest" enabled
36+
And new "CancelDataDeletionRequest" request
3437
And request contains "id" parameter with value "-1"
3538
When the request is sent
3639
Then the response status is 412 Precondition failed error
3740

3841
@generated @skip @team:DataDog/supportability-engineering
3942
Scenario: Creates a data deletion request returns "Bad Request" response
40-
Given new "CreateDataDeletionRequest" request
43+
Given operation "CreateDataDeletionRequest" enabled
44+
And new "CreateDataDeletionRequest" request
4145
And request contains "product" parameter from "REPLACE.ME"
4246
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}}
4347
When the request is sent
4448
Then the response status is 400 Bad Request
4549

4650
@team:DataDog/supportability-engineering
4751
Scenario: Creates a data deletion request returns "OK" response
48-
Given new "CreateDataDeletionRequest" request
52+
Given operation "CreateDataDeletionRequest" enabled
53+
And new "CreateDataDeletionRequest" request
4954
And request contains "product" parameter with value "logs"
5055
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}}
5156
When the request is sent
@@ -56,21 +61,24 @@ Feature: Data Deletion
5661

5762
@replay-only @team:DataDog/supportability-engineering
5863
Scenario: Creates a data deletion request returns "Precondition failed error" response
59-
Given new "CreateDataDeletionRequest" request
64+
Given operation "CreateDataDeletionRequest" enabled
65+
And new "CreateDataDeletionRequest" request
6066
And request contains "product" parameter with value "logs"
6167
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {}, "to": 1704063600000}}}
6268
When the request is sent
6369
Then the response status is 412 Precondition failed error
6470

6571
@generated @skip @team:DataDog/supportability-engineering
6672
Scenario: Gets a list of data deletion requests returns "Bad Request" response
67-
Given new "GetDataDeletionRequests" request
73+
Given operation "GetDataDeletionRequests" enabled
74+
And new "GetDataDeletionRequests" request
6875
When the request is sent
6976
Then the response status is 400 Bad Request
7077

7178
@team:DataDog/supportability-engineering
7279
Scenario: Gets a list of data deletion requests returns "OK" response
73-
Given there is a valid "deletion_request" in the system
80+
Given operation "GetDataDeletionRequests" enabled
81+
And there is a valid "deletion_request" in the system
7482
And new "GetDataDeletionRequests" request
7583
When the request is sent
7684
Then the response status is 200 OK

0 commit comments

Comments
 (0)