diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 23d3b7fb9b8..f6a6f45d8e2 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -249644,9 +249644,6 @@ paths: operator: OR permissions: - rum_apps_read - x-unstable: |- - **Note**: This endpoint is in Preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- Create a teams ownership mapping for your organization. @@ -249706,9 +249703,6 @@ paths: operator: OR permissions: - rum_apps_write - x-unstable: |- - **Note**: This endpoint is in Preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/rum/config/teams-ownership/mappings/operations: post: description: |- @@ -249805,9 +249799,6 @@ paths: operator: OR permissions: - rum_apps_write - x-unstable: |- - **Note**: This endpoint is in Preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/rum/config/teams-ownership/mappings/{id}: delete: description: Delete a specific teams ownership mapping from your organization. @@ -249830,9 +249821,6 @@ paths: operator: OR permissions: - rum_apps_write - x-unstable: |- - **Note**: This endpoint is in Preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: Get a specific teams ownership mapping from your organization. operationId: GetTeamsOwnershipMapping @@ -249873,9 +249861,6 @@ paths: operator: OR permissions: - rum_apps_read - x-unstable: |- - **Note**: This endpoint is in Preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/rum/config/teams-ownership/rules: get: description: |- @@ -249922,9 +249907,6 @@ paths: operator: OR permissions: - rum_apps_read - x-unstable: |- - **Note**: This endpoint is in Preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/rum/events: get: description: |- diff --git a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.java b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.java index 0e6d90edeca..339ad0c0ad6 100644 --- a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.java +++ b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.java @@ -15,7 +15,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.createTeamsOwnershipMapping", true); RumTeamsOwnershipApi apiInstance = new RumTeamsOwnershipApi(defaultClient); TeamsOwnershipMappingCreateRequest body = diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index 5044cdd7ee4..fa62696f614 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -1730,12 +1730,6 @@ public class ApiClient { put("v2.createRumConfig", false); put("v2.getRumConfig", false); put("v2.updateRumConfig", false); - put("v2.createTeamsOwnershipMapping", false); - put("v2.createTeamsOwnershipMappingsBatch", false); - put("v2.deleteTeamsOwnershipMapping", false); - put("v2.getTeamsOwnershipMapping", false); - put("v2.listTeamsOwnershipMappings", false); - put("v2.listTeamsOwnershipRules", false); put("v2.queryAggregatedLongTasks", false); put("v2.queryAggregatedWaterfall", false); put("v2.createScorecardOutcomesBatch", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/RumTeamsOwnershipApi.java b/src/main/java/com/datadog/api/client/v2/api/RumTeamsOwnershipApi.java index 3deb7d4b203..eb64017a02e 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RumTeamsOwnershipApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RumTeamsOwnershipApi.java @@ -100,13 +100,6 @@ public CompletableFuture createTeamsOwnershipMapp */ public ApiResponse createTeamsOwnershipMappingWithHttpInfo( TeamsOwnershipMappingCreateRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "createTeamsOwnershipMapping"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -149,17 +142,6 @@ public ApiResponse createTeamsOwnershipMappingWit */ public CompletableFuture> createTeamsOwnershipMappingWithHttpInfoAsync(TeamsOwnershipMappingCreateRequest body) { - // Check if unstable operation is enabled - String operationId = "createTeamsOwnershipMapping"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -261,13 +243,6 @@ public TeamsOwnershipMappingBatchResponse createTeamsOwnershipMappingsBatch( public ApiResponse createTeamsOwnershipMappingsBatchWithHttpInfo(TeamsOwnershipMappingBatchRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "createTeamsOwnershipMappingsBatch"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -311,17 +286,6 @@ public TeamsOwnershipMappingBatchResponse createTeamsOwnershipMappingsBatch( */ public CompletableFuture> createTeamsOwnershipMappingsBatchWithHttpInfoAsync(TeamsOwnershipMappingBatchRequest body) { - // Check if unstable operation is enabled - String operationId = "createTeamsOwnershipMappingsBatch"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -413,13 +377,6 @@ public CompletableFuture deleteTeamsOwnershipMappingAsync(String id) { * */ public ApiResponse deleteTeamsOwnershipMappingWithHttpInfo(String id) throws ApiException { - // Check if unstable operation is enabled - String operationId = "deleteTeamsOwnershipMapping"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -464,16 +421,6 @@ public ApiResponse deleteTeamsOwnershipMappingWithHttpInfo(String id) thro */ public CompletableFuture> deleteTeamsOwnershipMappingWithHttpInfoAsync( String id) { - // Check if unstable operation is enabled - String operationId = "deleteTeamsOwnershipMapping"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -565,13 +512,6 @@ public CompletableFuture getTeamsOwnershipMapping */ public ApiResponse getTeamsOwnershipMappingWithHttpInfo(String id) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getTeamsOwnershipMapping"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -616,17 +556,6 @@ public ApiResponse getTeamsOwnershipMappingWithHt */ public CompletableFuture> getTeamsOwnershipMappingWithHttpInfoAsync(String id) { - // Check if unstable operation is enabled - String operationId = "getTeamsOwnershipMapping"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -808,13 +737,6 @@ public CompletableFuture listTeamsOwnershipMappi */ public ApiResponse listTeamsOwnershipMappingsWithHttpInfo( ListTeamsOwnershipMappingsOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listTeamsOwnershipMappings"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; List filterViewName = parameters.filterViewName; List filterTeamHandle = parameters.filterTeamHandle; @@ -866,17 +788,6 @@ public ApiResponse listTeamsOwnershipMappingsWit public CompletableFuture> listTeamsOwnershipMappingsWithHttpInfoAsync( ListTeamsOwnershipMappingsOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "listTeamsOwnershipMappings"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; List filterViewName = parameters.filterViewName; List filterTeamHandle = parameters.filterTeamHandle; @@ -1060,13 +971,6 @@ public CompletableFuture listTeamsOwnershipRulesAsy */ public ApiResponse listTeamsOwnershipRulesWithHttpInfo( ListTeamsOwnershipRulesOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listTeamsOwnershipRules"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; List filterViewName = parameters.filterViewName; List filterTeamHandle = parameters.filterTeamHandle; @@ -1118,17 +1022,6 @@ public ApiResponse listTeamsOwnershipRulesWithHttpI public CompletableFuture> listTeamsOwnershipRulesWithHttpInfoAsync( ListTeamsOwnershipRulesOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "listTeamsOwnershipRules"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; List filterViewName = parameters.filterViewName; List filterTeamHandle = parameters.filterTeamHandle; diff --git a/src/test/resources/com/datadog/api/client/v2/api/rum_teams_ownership.feature b/src/test/resources/com/datadog/api/client/v2/api/rum_teams_ownership.feature index 39c2dce95f3..36372a51a43 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/rum_teams_ownership.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/rum_teams_ownership.feature @@ -18,24 +18,21 @@ Feature: Rum Teams Ownership @skip @team:ddoghq/rum-backend Scenario: Bulk create and remove teams ownership mappings returns "Bad Request. One or more operations failed validation, so none of the operations were applied." response - Given operation "CreateTeamsOwnershipMappingsBatch" enabled - And new "CreateTeamsOwnershipMappingsBatch" request + Given new "CreateTeamsOwnershipMappingsBatch" request And body with value {"atomic:operations": [{"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}, "op": "add", "ref": {"id": "{{ unique }}", "type": "teams_ownership_mappings"}}]} When the request is sent Then the response status is 400 Bad Request. One or more operations failed validation, so none of the operations were applied. @generated @skip @team:ddoghq/rum-backend Scenario: Bulk create and remove teams ownership mappings returns "Conflict. One or more mappings requested for creation already exist." response - Given operation "CreateTeamsOwnershipMappingsBatch" enabled - And new "CreateTeamsOwnershipMappingsBatch" request + Given new "CreateTeamsOwnershipMappingsBatch" request And body with value {"atomic:operations": [{"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}, "op": "add", "ref": {"id": "456", "type": "teams_ownership_mappings"}}]} When the request is sent Then the response status is 409 Conflict. One or more mappings requested for creation already exist. @generated @skip @team:ddoghq/rum-backend Scenario: Bulk create and remove teams ownership mappings returns "Not Found. One or more mappings requested for removal do not exist." response - Given operation "CreateTeamsOwnershipMappingsBatch" enabled - And new "CreateTeamsOwnershipMappingsBatch" request + Given new "CreateTeamsOwnershipMappingsBatch" request And body with value {"atomic:operations": [{"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}, "op": "add", "ref": {"id": "456", "type": "teams_ownership_mappings"}}]} When the request is sent Then the response status is 404 Not Found. One or more mappings requested for removal do not exist. @@ -59,16 +56,14 @@ Feature: Rum Teams Ownership @generated @skip @team:ddoghq/rum-backend Scenario: Create a teams ownership mapping returns "Bad Request" response - Given operation "CreateTeamsOwnershipMapping" enabled - And new "CreateTeamsOwnershipMapping" request + Given new "CreateTeamsOwnershipMapping" request And body with value {"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:ddoghq/rum-backend Scenario: Create a teams ownership mapping returns "Created" response - Given operation "CreateTeamsOwnershipMapping" enabled - And new "CreateTeamsOwnershipMapping" request + Given new "CreateTeamsOwnershipMapping" request And body with value {"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}} When the request is sent Then the response status is 201 Created @@ -129,8 +124,7 @@ Feature: Rum Teams Ownership @generated @skip @team:ddoghq/rum-backend Scenario: List teams ownership mappings returns "Bad Request" response - Given operation "ListTeamsOwnershipMappings" enabled - And new "ListTeamsOwnershipMappings" request + Given new "ListTeamsOwnershipMappings" request When the request is sent Then the response status is 400 Bad Request @@ -150,8 +144,7 @@ Feature: Rum Teams Ownership @generated @skip @team:ddoghq/rum-backend Scenario: List teams ownership rules returns "Bad Request" response - Given operation "ListTeamsOwnershipRules" enabled - And new "ListTeamsOwnershipRules" request + Given new "ListTeamsOwnershipRules" request When the request is sent Then the response status is 400 Bad Request