Skip to content

Commit 70ea360

Browse files
dd-octo-sts[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 084a8a1 of spec repo (#4473)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent c7c8ca7 commit 70ea360

9 files changed

Lines changed: 12 additions & 135 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -216309,9 +216309,6 @@ paths:
216309216309
summary: Get all RUM exclusion filters
216310216310
tags:
216311216311
- Rum Retention Filters
216312-
x-unstable: |-
216313-
**Note**: This endpoint is in preview and is subject to change.
216314-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
216315216312
post:
216316216313
description: |-
216317216314
Create an exclusion filter for a RUM application.
@@ -216368,9 +216365,6 @@ paths:
216368216365
tags:
216369216366
- Rum Retention Filters
216370216367
x-codegen-request-body-name: body
216371-
x-unstable: |-
216372-
**Note**: This endpoint is in preview and is subject to change.
216373-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
216374216368
/api/v2/rum/applications/{app_id}/retention_filters/exclusion/{ef_id}:
216375216369
delete:
216376216370
description: |-
@@ -216395,9 +216389,6 @@ paths:
216395216389
summary: Delete a RUM exclusion filter
216396216390
tags:
216397216391
- Rum Retention Filters
216398-
x-unstable: |-
216399-
**Note**: This endpoint is in preview and is subject to change.
216400-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
216401216392
get:
216402216393
description: Get a single exclusion filter for a RUM application.
216403216394
operationId: GetExclusionFilter
@@ -216435,9 +216426,6 @@ paths:
216435216426
summary: Get a RUM exclusion filter
216436216427
tags:
216437216428
- Rum Retention Filters
216438-
x-unstable: |-
216439-
**Note**: This endpoint is in preview and is subject to change.
216440-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
216441216429
patch:
216442216430
description: |-
216443216431
Update an exclusion filter for a RUM application.
@@ -216502,9 +216490,6 @@ paths:
216502216490
tags:
216503216491
- Rum Retention Filters
216504216492
x-codegen-request-body-name: body
216505-
x-unstable: |-
216506-
**Note**: This endpoint is in preview and is subject to change.
216507-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
216508216493
/api/v2/rum/applications/{app_id}/retention_filters/permanent:
216509216494
get:
216510216495
description: |-

‎examples/v2/rum-retention-filters/CreateExclusionFilter.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public class Example {
1414
public static void main(String[] args) {
1515
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1616
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
17-
defaultClient.setUnstableOperationEnabled("v2.createExclusionFilter", true);
1817
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);
1918

2019
RumExclusionFilterCreateRequest body =

‎examples/v2/rum-retention-filters/DeleteExclusionFilter.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public class Example {
88
public static void main(String[] args) {
99
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1010
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
11-
defaultClient.setUnstableOperationEnabled("v2.deleteExclusionFilter", true);
1211
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);
1312

1413
try {

‎examples/v2/rum-retention-filters/GetExclusionFilter.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1111
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
12-
defaultClient.setUnstableOperationEnabled("v2.getExclusionFilter", true);
1312
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);
1413

1514
try {

‎examples/v2/rum-retention-filters/ListExclusionFilters.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1111
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
12-
defaultClient.setUnstableOperationEnabled("v2.listExclusionFilters", true);
1312
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);
1413

1514
try {

‎examples/v2/rum-retention-filters/UpdateExclusionFilter.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public class Example {
1414
public static void main(String[] args) {
1515
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1616
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
17-
defaultClient.setUnstableOperationEnabled("v2.updateExclusionFilter", true);
1817
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);
1918

2019
RumExclusionFilterUpdateRequest body =

‎src/main/java/com/datadog/api/client/ApiClient.java‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,11 +1548,6 @@ public class ApiClient {
15481548
put("v2.getSourcemaps", false);
15491549
put("v2.listSourcemaps", false);
15501550
put("v2.restoreSourcemaps", false);
1551-
put("v2.createExclusionFilter", false);
1552-
put("v2.deleteExclusionFilter", false);
1553-
put("v2.getExclusionFilter", false);
1554-
put("v2.listExclusionFilters", false);
1555-
put("v2.updateExclusionFilter", false);
15561551
put("v2.createRumConfig", false);
15571552
put("v2.getRumConfig", false);
15581553
put("v2.updateRumConfig", false);

‎src/main/java/com/datadog/api/client/v2/api/RumRetentionFiltersApi.java‎

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,6 @@ public CompletableFuture<RumExclusionFilterResponse> createExclusionFilterAsync(
109109
*/
110110
public ApiResponse<RumExclusionFilterResponse> createExclusionFilterWithHttpInfo(
111111
String appId, RumExclusionFilterCreateRequest body) throws ApiException {
112-
// Check if unstable operation is enabled
113-
String operationId = "createExclusionFilter";
114-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
115-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
116-
} else {
117-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
118-
}
119112
Object localVarPostBody = body;
120113

121114
// verify the required parameter 'appId' is set
@@ -167,16 +160,6 @@ public ApiResponse<RumExclusionFilterResponse> createExclusionFilterWithHttpInfo
167160
*/
168161
public CompletableFuture<ApiResponse<RumExclusionFilterResponse>>
169162
createExclusionFilterWithHttpInfoAsync(String appId, RumExclusionFilterCreateRequest body) {
170-
// Check if unstable operation is enabled
171-
String operationId = "createExclusionFilter";
172-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
173-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
174-
} else {
175-
CompletableFuture<ApiResponse<RumExclusionFilterResponse>> result = new CompletableFuture<>();
176-
result.completeExceptionally(
177-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
178-
return result;
179-
}
180163
Object localVarPostBody = body;
181164

182165
// verify the required parameter 'appId' is set
@@ -439,13 +422,6 @@ public CompletableFuture<Void> deleteExclusionFilterAsync(String appId, String e
439422
*/
440423
public ApiResponse<Void> deleteExclusionFilterWithHttpInfo(String appId, String efId)
441424
throws ApiException {
442-
// Check if unstable operation is enabled
443-
String operationId = "deleteExclusionFilter";
444-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
445-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
446-
} else {
447-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
448-
}
449425
Object localVarPostBody = null;
450426

451427
// verify the required parameter 'appId' is set
@@ -498,16 +474,6 @@ public ApiResponse<Void> deleteExclusionFilterWithHttpInfo(String appId, String
498474
*/
499475
public CompletableFuture<ApiResponse<Void>> deleteExclusionFilterWithHttpInfoAsync(
500476
String appId, String efId) {
501-
// Check if unstable operation is enabled
502-
String operationId = "deleteExclusionFilter";
503-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
504-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
505-
} else {
506-
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
507-
result.completeExceptionally(
508-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
509-
return result;
510-
}
511477
Object localVarPostBody = null;
512478

513479
// verify the required parameter 'appId' is set
@@ -769,13 +735,6 @@ public CompletableFuture<RumExclusionFilterResponse> getExclusionFilterAsync(
769735
*/
770736
public ApiResponse<RumExclusionFilterResponse> getExclusionFilterWithHttpInfo(
771737
String appId, String efId) throws ApiException {
772-
// Check if unstable operation is enabled
773-
String operationId = "getExclusionFilter";
774-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
775-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
776-
} else {
777-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
778-
}
779738
Object localVarPostBody = null;
780739

781740
// verify the required parameter 'appId' is set
@@ -828,16 +787,6 @@ public ApiResponse<RumExclusionFilterResponse> getExclusionFilterWithHttpInfo(
828787
*/
829788
public CompletableFuture<ApiResponse<RumExclusionFilterResponse>>
830789
getExclusionFilterWithHttpInfoAsync(String appId, String efId) {
831-
// Check if unstable operation is enabled
832-
String operationId = "getExclusionFilter";
833-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
834-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
835-
} else {
836-
CompletableFuture<ApiResponse<RumExclusionFilterResponse>> result = new CompletableFuture<>();
837-
result.completeExceptionally(
838-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
839-
return result;
840-
}
841790
Object localVarPostBody = null;
842791

843792
// verify the required parameter 'appId' is set
@@ -1268,13 +1217,6 @@ public CompletableFuture<RumExclusionFiltersResponse> listExclusionFiltersAsync(
12681217
*/
12691218
public ApiResponse<RumExclusionFiltersResponse> listExclusionFiltersWithHttpInfo(String appId)
12701219
throws ApiException {
1271-
// Check if unstable operation is enabled
1272-
String operationId = "listExclusionFilters";
1273-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1274-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1275-
} else {
1276-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
1277-
}
12781220
Object localVarPostBody = null;
12791221

12801222
// verify the required parameter 'appId' is set
@@ -1319,17 +1261,6 @@ public ApiResponse<RumExclusionFiltersResponse> listExclusionFiltersWithHttpInfo
13191261
*/
13201262
public CompletableFuture<ApiResponse<RumExclusionFiltersResponse>>
13211263
listExclusionFiltersWithHttpInfoAsync(String appId) {
1322-
// Check if unstable operation is enabled
1323-
String operationId = "listExclusionFilters";
1324-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1325-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1326-
} else {
1327-
CompletableFuture<ApiResponse<RumExclusionFiltersResponse>> result =
1328-
new CompletableFuture<>();
1329-
result.completeExceptionally(
1330-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
1331-
return result;
1332-
}
13331264
Object localVarPostBody = null;
13341265

13351266
// verify the required parameter 'appId' is set
@@ -1873,13 +1804,6 @@ public CompletableFuture<RumExclusionFilterResponse> updateExclusionFilterAsync(
18731804
*/
18741805
public ApiResponse<RumExclusionFilterResponse> updateExclusionFilterWithHttpInfo(
18751806
String appId, String efId, RumExclusionFilterUpdateRequest body) throws ApiException {
1876-
// Check if unstable operation is enabled
1877-
String operationId = "updateExclusionFilter";
1878-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1879-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1880-
} else {
1881-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
1882-
}
18831807
Object localVarPostBody = body;
18841808

18851809
// verify the required parameter 'appId' is set
@@ -1940,16 +1864,6 @@ public ApiResponse<RumExclusionFilterResponse> updateExclusionFilterWithHttpInfo
19401864
public CompletableFuture<ApiResponse<RumExclusionFilterResponse>>
19411865
updateExclusionFilterWithHttpInfoAsync(
19421866
String appId, String efId, RumExclusionFilterUpdateRequest body) {
1943-
// Check if unstable operation is enabled
1944-
String operationId = "updateExclusionFilter";
1945-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1946-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1947-
} else {
1948-
CompletableFuture<ApiResponse<RumExclusionFilterResponse>> result = new CompletableFuture<>();
1949-
result.completeExceptionally(
1950-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
1951-
return result;
1952-
}
19531867
Object localVarPostBody = body;
19541868

19551869
// verify the required parameter 'appId' is set

‎src/test/resources/com/datadog/api/client/v2/api/rum_retention_filters.feature‎

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ Feature: Rum Retention Filters
1111

1212
@generated @skip @team:ddoghq/rum-backend
1313
Scenario: Create a RUM exclusion filter returns "Bad Request" response
14-
Given operation "CreateExclusionFilter" enabled
15-
And new "CreateExclusionFilter" request
14+
Given new "CreateExclusionFilter" request
1615
And request contains "app_id" parameter from "REPLACE.ME"
1716
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "type": "exclusion_filters"}}
1817
When the request is sent
1918
Then the response status is 400 Bad Request
2019

2120
@generated @skip @team:ddoghq/rum-backend
2221
Scenario: Create a RUM exclusion filter returns "Created" response
23-
Given operation "CreateExclusionFilter" enabled
24-
And new "CreateExclusionFilter" request
22+
Given new "CreateExclusionFilter" request
2523
And request contains "app_id" parameter from "REPLACE.ME"
2624
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "type": "exclusion_filters"}}
2725
When the request is sent
@@ -51,26 +49,23 @@ Feature: Rum Retention Filters
5149

5250
@generated @skip @team:ddoghq/rum-backend
5351
Scenario: Delete a RUM exclusion filter returns "Method Not Allowed" response
54-
Given operation "DeleteExclusionFilter" enabled
55-
And new "DeleteExclusionFilter" request
52+
Given new "DeleteExclusionFilter" request
5653
And request contains "app_id" parameter from "REPLACE.ME"
5754
And request contains "ef_id" parameter from "REPLACE.ME"
5855
When the request is sent
5956
Then the response status is 405 Method Not Allowed
6057

6158
@generated @skip @team:ddoghq/rum-backend
6259
Scenario: Delete a RUM exclusion filter returns "No Content" response
63-
Given operation "DeleteExclusionFilter" enabled
64-
And new "DeleteExclusionFilter" request
60+
Given new "DeleteExclusionFilter" request
6561
And request contains "app_id" parameter from "REPLACE.ME"
6662
And request contains "ef_id" parameter from "REPLACE.ME"
6763
When the request is sent
6864
Then the response status is 204 No Content
6965

7066
@generated @skip @team:ddoghq/rum-backend
7167
Scenario: Delete a RUM exclusion filter returns "Not Found" response
72-
Given operation "DeleteExclusionFilter" enabled
73-
And new "DeleteExclusionFilter" request
68+
Given new "DeleteExclusionFilter" request
7469
And request contains "app_id" parameter from "REPLACE.ME"
7570
And request contains "ef_id" parameter from "REPLACE.ME"
7671
When the request is sent
@@ -94,17 +89,15 @@ Feature: Rum Retention Filters
9489

9590
@generated @skip @team:ddoghq/rum-backend
9691
Scenario: Get a RUM exclusion filter returns "Not Found" response
97-
Given operation "GetExclusionFilter" enabled
98-
And new "GetExclusionFilter" request
92+
Given new "GetExclusionFilter" request
9993
And request contains "app_id" parameter from "REPLACE.ME"
10094
And request contains "ef_id" parameter from "REPLACE.ME"
10195
When the request is sent
10296
Then the response status is 404 Not Found
10397

10498
@generated @skip @team:ddoghq/rum-backend
10599
Scenario: Get a RUM exclusion filter returns "OK" response
106-
Given operation "GetExclusionFilter" enabled
107-
And new "GetExclusionFilter" request
100+
Given new "GetExclusionFilter" request
108101
And request contains "app_id" parameter from "REPLACE.ME"
109102
And request contains "ef_id" parameter from "REPLACE.ME"
110103
When the request is sent
@@ -151,8 +144,7 @@ Feature: Rum Retention Filters
151144

152145
@generated @skip @team:ddoghq/rum-backend
153146
Scenario: Get all RUM exclusion filters returns "OK" response
154-
Given operation "ListExclusionFilters" enabled
155-
And new "ListExclusionFilters" request
147+
Given new "ListExclusionFilters" request
156148
And request contains "app_id" parameter from "REPLACE.ME"
157149
When the request is sent
158150
Then the response status is 200 OK
@@ -193,8 +185,7 @@ Feature: Rum Retention Filters
193185

194186
@generated @skip @team:ddoghq/rum-backend
195187
Scenario: Update a RUM exclusion filter returns "Bad Request" response
196-
Given operation "UpdateExclusionFilter" enabled
197-
And new "UpdateExclusionFilter" request
188+
Given new "UpdateExclusionFilter" request
198189
And request contains "app_id" parameter from "REPLACE.ME"
199190
And request contains "ef_id" parameter from "REPLACE.ME"
200191
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}}
@@ -203,8 +194,7 @@ Feature: Rum Retention Filters
203194

204195
@generated @skip @team:ddoghq/rum-backend
205196
Scenario: Update a RUM exclusion filter returns "Conflict" response
206-
Given operation "UpdateExclusionFilter" enabled
207-
And new "UpdateExclusionFilter" request
197+
Given new "UpdateExclusionFilter" request
208198
And request contains "app_id" parameter from "REPLACE.ME"
209199
And request contains "ef_id" parameter from "REPLACE.ME"
210200
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}}
@@ -213,8 +203,7 @@ Feature: Rum Retention Filters
213203

214204
@generated @skip @team:ddoghq/rum-backend
215205
Scenario: Update a RUM exclusion filter returns "Not Found" response
216-
Given operation "UpdateExclusionFilter" enabled
217-
And new "UpdateExclusionFilter" request
206+
Given new "UpdateExclusionFilter" request
218207
And request contains "app_id" parameter from "REPLACE.ME"
219208
And request contains "ef_id" parameter from "REPLACE.ME"
220209
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}}
@@ -223,8 +212,7 @@ Feature: Rum Retention Filters
223212

224213
@generated @skip @team:ddoghq/rum-backend
225214
Scenario: Update a RUM exclusion filter returns "Updated" response
226-
Given operation "UpdateExclusionFilter" enabled
227-
And new "UpdateExclusionFilter" request
215+
Given new "UpdateExclusionFilter" request
228216
And request contains "app_id" parameter from "REPLACE.ME"
229217
And request contains "ef_id" parameter from "REPLACE.ME"
230218
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}}

0 commit comments

Comments
 (0)