diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a954de475f6..acfe08bcfb9 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -85761,10 +85761,6 @@ paths: operator: OR permissions: - teams_read - x-unstable: '**Note**: This endpoint is in Preview. To request access, fill - out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/). - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' get: description: Returns all team connections. operationId: ListTeamConnections @@ -85844,10 +85840,6 @@ paths: operator: OR permissions: - teams_read - x-unstable: '**Note**: This endpoint is in Preview. To request access, fill - out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/). - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' post: description: Create multiple team connections. operationId: CreateTeamConnections @@ -85884,10 +85876,6 @@ paths: operator: OR permissions: - teams_read - x-unstable: '**Note**: This endpoint is in Preview. To request access, fill - out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/). - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/team/sync: get: description: 'Get all team synchronization configurations. @@ -85931,10 +85919,6 @@ paths: operator: OR permissions: - teams_read - x-unstable: '**Note**: This endpoint is in Preview. To request access, fill - out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/). - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' post: description: 'This endpoint attempts to link your existing Datadog teams with GitHub teams by matching their names. @@ -85996,10 +85980,6 @@ paths: operator: AND permissions: - teams_manage - x-unstable: '**Note**: This endpoint is in Preview. To request access, fill - out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/). - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/team/{super_team_id}/member_teams: get: deprecated: true diff --git a/examples/v2/teams/DeleteTeamConnections.java b/examples/v2/teams/DeleteTeamConnections.java index 3a67286fa03..2f0173354d7 100644 --- a/examples/v2/teams/DeleteTeamConnections.java +++ b/examples/v2/teams/DeleteTeamConnections.java @@ -11,7 +11,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.deleteTeamConnections", true); TeamsApi apiInstance = new TeamsApi(defaultClient); TeamConnectionDeleteRequest body = diff --git a/examples/v2/teams/GetTeamSync.java b/examples/v2/teams/GetTeamSync.java index 731f7dd3ea2..a82786bb0bc 100644 --- a/examples/v2/teams/GetTeamSync.java +++ b/examples/v2/teams/GetTeamSync.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.getTeamSync", true); TeamsApi apiInstance = new TeamsApi(defaultClient); try { diff --git a/examples/v2/teams/ListTeamConnections.java b/examples/v2/teams/ListTeamConnections.java index 9336f55c0a2..8699ef7a09c 100644 --- a/examples/v2/teams/ListTeamConnections.java +++ b/examples/v2/teams/ListTeamConnections.java @@ -8,7 +8,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.listTeamConnections", true); TeamsApi apiInstance = new TeamsApi(defaultClient); try { diff --git a/examples/v2/teams/ListTeamConnections_2418873869.java b/examples/v2/teams/ListTeamConnections_2418873869.java index d3b04e3ecab..1b3edaf7023 100644 --- a/examples/v2/teams/ListTeamConnections_2418873869.java +++ b/examples/v2/teams/ListTeamConnections_2418873869.java @@ -8,7 +8,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.listTeamConnections", true); TeamsApi apiInstance = new TeamsApi(defaultClient); try { diff --git a/examples/v2/teams/SyncTeams.java b/examples/v2/teams/SyncTeams.java index e80845b08ba..5060942386c 100644 --- a/examples/v2/teams/SyncTeams.java +++ b/examples/v2/teams/SyncTeams.java @@ -13,7 +13,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.syncTeams", true); TeamsApi apiInstance = new TeamsApi(defaultClient); TeamSyncRequest body = diff --git a/examples/v2/teams/SyncTeams_3215592344.java b/examples/v2/teams/SyncTeams_3215592344.java index 7e96af78e4e..a71b55edbff 100644 --- a/examples/v2/teams/SyncTeams_3215592344.java +++ b/examples/v2/teams/SyncTeams_3215592344.java @@ -13,7 +13,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.syncTeams", true); TeamsApi apiInstance = new TeamsApi(defaultClient); TeamSyncRequest body = diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index 00e0a8a9303..055495902d1 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -834,13 +834,8 @@ public class ApiClient { put("v2.createSCAResolveVulnerableSymbols", false); put("v2.createSCAResult", false); put("v2.addMemberTeam", false); - put("v2.createTeamConnections", false); - put("v2.deleteTeamConnections", false); - put("v2.getTeamSync", false); put("v2.listMemberTeams", false); - put("v2.listTeamConnections", false); put("v2.removeMemberTeam", false); - put("v2.syncTeams", false); put("v2.createIncidentTeam", false); put("v2.deleteIncidentTeam", false); put("v2.getIncidentTeam", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/TeamsApi.java b/src/main/java/com/datadog/api/client/v2/api/TeamsApi.java index 537308ab103..5c13c64019c 100644 --- a/src/main/java/com/datadog/api/client/v2/api/TeamsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/TeamsApi.java @@ -575,13 +575,6 @@ public CompletableFuture createTeamConnectionsAsync( */ public ApiResponse createTeamConnectionsWithHttpInfo( TeamConnectionCreateRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "createTeamConnections"; - 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 @@ -624,16 +617,6 @@ public ApiResponse createTeamConnectionsWithHttpInfo( */ public CompletableFuture> createTeamConnectionsWithHttpInfoAsync(TeamConnectionCreateRequest body) { - // Check if unstable operation is enabled - String operationId = "createTeamConnections"; - 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 @@ -1174,13 +1157,6 @@ public CompletableFuture deleteTeamConnectionsAsync(TeamConnectionDeleteRe */ public ApiResponse deleteTeamConnectionsWithHttpInfo(TeamConnectionDeleteRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "deleteTeamConnections"; - 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 @@ -1223,16 +1199,6 @@ public ApiResponse deleteTeamConnectionsWithHttpInfo(TeamConnectionDeleteR */ public CompletableFuture> deleteTeamConnectionsWithHttpInfoAsync( TeamConnectionDeleteRequest body) { - // Check if unstable operation is enabled - String operationId = "deleteTeamConnections"; - 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 @@ -2637,13 +2603,6 @@ public CompletableFuture getTeamSyncAsync( */ public ApiResponse getTeamSyncWithHttpInfo( TeamSyncAttributesSource filterSource) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getTeamSync"; - 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 'filterSource' is set @@ -2689,16 +2648,6 @@ public ApiResponse getTeamSyncWithHttpInfo( */ public CompletableFuture> getTeamSyncWithHttpInfoAsync( TeamSyncAttributesSource filterSource) { - // Check if unstable operation is enabled - String operationId = "getTeamSync"; - 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 'filterSource' is set @@ -3411,13 +3360,6 @@ public PaginationIterable listTeamConnectionsWithPagination( */ public ApiResponse listTeamConnectionsWithHttpInfo( ListTeamConnectionsOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listTeamConnections"; - 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; Long pageSize = parameters.pageSize; Long pageNumber = parameters.pageNumber; @@ -3471,16 +3413,6 @@ public ApiResponse listTeamConnectionsWithHttpInfo( */ public CompletableFuture> listTeamConnectionsWithHttpInfoAsync(ListTeamConnectionsOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "listTeamConnections"; - 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; Long pageSize = parameters.pageSize; Long pageNumber = parameters.pageNumber; @@ -4501,13 +4433,6 @@ public CompletableFuture syncTeamsAsync(TeamSyncRequest body) { * */ public ApiResponse syncTeamsWithHttpInfo(TeamSyncRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "syncTeams"; - 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 @@ -4548,16 +4473,6 @@ public ApiResponse syncTeamsWithHttpInfo(TeamSyncRequest body) throws ApiE * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> syncTeamsWithHttpInfoAsync(TeamSyncRequest body) { - // Check if unstable operation is enabled - String operationId = "syncTeams"; - 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 diff --git a/src/test/resources/com/datadog/api/client/v2/api/teams.feature b/src/test/resources/com/datadog/api/client/v2/api/teams.feature index c2f52d0d96e..9deac2e88af 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/teams.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/teams.feature @@ -125,8 +125,7 @@ Feature: Teams @generated @skip @team:DataDog/aaa-omg Scenario: Create team connections returns "Conflict" response - Given operation "CreateTeamConnections" enabled - And new "CreateTeamConnections" request + Given new "CreateTeamConnections" request And body with value {"data": [{"attributes": {"managed_by": "github_sync", "source": "github"}, "relationships": {"connected_team": {"data": {"id": "@GitHubOrg/team-handle", "type": "github_team"}}, "team": {"data": {"id": "87654321-4321-8765-dcba-210987654321", "type": "team"}}}, "type": "team_connection"}]} When the request is sent Then the response status is 409 Conflict @@ -155,16 +154,14 @@ Feature: Teams @generated @skip @team:DataDog/aaa-omg Scenario: Delete team connections returns "No Content" response - Given operation "DeleteTeamConnections" enabled - And new "DeleteTeamConnections" request + Given new "DeleteTeamConnections" request And body with value {"data": [{"id": "12345678-1234-5678-9abc-123456789012", "type": "team_connection"}]} When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/aaa-omg Scenario: Delete team connections returns "Not Found" response - Given operation "DeleteTeamConnections" enabled - And new "DeleteTeamConnections" request + Given new "DeleteTeamConnections" request And body with value {"data": [{"id": "12345678-1234-5678-9abc-123456789012", "type": "team_connection"}]} When the request is sent Then the response status is 404 Not Found @@ -357,16 +354,14 @@ Feature: Teams @generated @skip @team:DataDog/aaa-omg Scenario: Get team sync configurations returns "OK" response - Given operation "GetTeamSync" enabled - And new "GetTeamSync" request + Given new "GetTeamSync" request And request contains "filter[source]" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/aaa-omg Scenario: Get team sync configurations returns "Team sync configurations not found" response - Given operation "GetTeamSync" enabled - And new "GetTeamSync" request + Given new "GetTeamSync" request And request contains "filter[source]" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Team sync configurations not found @@ -389,30 +384,26 @@ Feature: Teams @generated @skip @team:DataDog/aaa-omg Scenario: Link Teams with GitHub Teams returns "OK" response - Given operation "SyncTeams" enabled - And new "SyncTeams" request + Given new "SyncTeams" request And body with value {"data": {"attributes": {"source": "github", "type": "link"}, "type": "team_sync_bulk"}} When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/aaa-omg Scenario: List team connections returns "Bad Request" response - Given operation "ListTeamConnections" enabled - And new "ListTeamConnections" request + Given new "ListTeamConnections" request When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/aaa-omg Scenario: List team connections returns "OK" response - Given operation "ListTeamConnections" enabled - And new "ListTeamConnections" request + Given new "ListTeamConnections" request When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/aaa-omg @with-pagination Scenario: List team connections returns "OK" response with pagination - Given operation "ListTeamConnections" enabled - And new "ListTeamConnections" request + Given new "ListTeamConnections" request When the request with pagination is sent Then the response status is 200 OK @@ -515,7 +506,6 @@ Feature: Teams @replay-only @team:DataDog/aaa-omg Scenario: Sync teams returns "OK" response Given new "SyncTeams" request - And operation "SyncTeams" enabled And body with value {"data": {"attributes": {"source": "github", "type": "link"}, "type": "team_sync_bulk"}} When the request is sent Then the response status is 200 OK