Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,6 @@ public CompletableFuture<TeamsOwnershipMappingResponse> createTeamsOwnershipMapp
*/
public ApiResponse<TeamsOwnershipMappingResponse> 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
Expand Down Expand Up @@ -149,17 +142,6 @@ public ApiResponse<TeamsOwnershipMappingResponse> createTeamsOwnershipMappingWit
*/
public CompletableFuture<ApiResponse<TeamsOwnershipMappingResponse>>
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<ApiResponse<TeamsOwnershipMappingResponse>> 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
Expand Down Expand Up @@ -261,13 +243,6 @@ public TeamsOwnershipMappingBatchResponse createTeamsOwnershipMappingsBatch(
public ApiResponse<TeamsOwnershipMappingBatchResponse>
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
Expand Down Expand Up @@ -311,17 +286,6 @@ public TeamsOwnershipMappingBatchResponse createTeamsOwnershipMappingsBatch(
*/
public CompletableFuture<ApiResponse<TeamsOwnershipMappingBatchResponse>>
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<ApiResponse<TeamsOwnershipMappingBatchResponse>> 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
Expand Down Expand Up @@ -413,13 +377,6 @@ public CompletableFuture<Void> deleteTeamsOwnershipMappingAsync(String id) {
* </table>
*/
public ApiResponse<Void> 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
Expand Down Expand Up @@ -464,16 +421,6 @@ public ApiResponse<Void> deleteTeamsOwnershipMappingWithHttpInfo(String id) thro
*/
public CompletableFuture<ApiResponse<Void>> 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<ApiResponse<Void>> 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
Expand Down Expand Up @@ -565,13 +512,6 @@ public CompletableFuture<TeamsOwnershipMappingResponse> getTeamsOwnershipMapping
*/
public ApiResponse<TeamsOwnershipMappingResponse> 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
Expand Down Expand Up @@ -616,17 +556,6 @@ public ApiResponse<TeamsOwnershipMappingResponse> getTeamsOwnershipMappingWithHt
*/
public CompletableFuture<ApiResponse<TeamsOwnershipMappingResponse>>
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<ApiResponse<TeamsOwnershipMappingResponse>> 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
Expand Down Expand Up @@ -808,13 +737,6 @@ public CompletableFuture<TeamsOwnershipMappingsResponse> listTeamsOwnershipMappi
*/
public ApiResponse<TeamsOwnershipMappingsResponse> 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<String> filterViewName = parameters.filterViewName;
List<String> filterTeamHandle = parameters.filterTeamHandle;
Expand Down Expand Up @@ -866,17 +788,6 @@ public ApiResponse<TeamsOwnershipMappingsResponse> listTeamsOwnershipMappingsWit
public CompletableFuture<ApiResponse<TeamsOwnershipMappingsResponse>>
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<ApiResponse<TeamsOwnershipMappingsResponse>> result =
new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;
List<String> filterViewName = parameters.filterViewName;
List<String> filterTeamHandle = parameters.filterTeamHandle;
Expand Down Expand Up @@ -1060,13 +971,6 @@ public CompletableFuture<TeamsOwnershipRulesResponse> listTeamsOwnershipRulesAsy
*/
public ApiResponse<TeamsOwnershipRulesResponse> 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<String> filterViewName = parameters.filterViewName;
List<String> filterTeamHandle = parameters.filterTeamHandle;
Expand Down Expand Up @@ -1118,17 +1022,6 @@ public ApiResponse<TeamsOwnershipRulesResponse> listTeamsOwnershipRulesWithHttpI
public CompletableFuture<ApiResponse<TeamsOwnershipRulesResponse>>
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<ApiResponse<TeamsOwnershipRulesResponse>> result =
new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;
List<String> filterViewName = parameters.filterViewName;
List<String> filterTeamHandle = parameters.filterTeamHandle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down
Loading