Skip to content

Commit 963308b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove preview/unstable tags from GitHub team sync and connections endpoints (#3320)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d3a952f commit 963308b

File tree

10 files changed

+9
-135
lines changed

10 files changed

+9
-135
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85860,10 +85860,6 @@ paths:
8586085860
operator: OR
8586185861
permissions:
8586285862
- teams_read
85863-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
85864-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
85865-
85866-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8586785863
get:
8586885864
description: Returns all team connections.
8586985865
operationId: ListTeamConnections
@@ -85943,10 +85939,6 @@ paths:
8594385939
operator: OR
8594485940
permissions:
8594585941
- teams_read
85946-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
85947-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
85948-
85949-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8595085942
post:
8595185943
description: Create multiple team connections.
8595285944
operationId: CreateTeamConnections
@@ -85983,10 +85975,6 @@ paths:
8598385975
operator: OR
8598485976
permissions:
8598585977
- teams_read
85986-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
85987-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
85988-
85989-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8599085978
/api/v2/team/sync:
8599185979
get:
8599285980
description: 'Get all team synchronization configurations.
@@ -86030,10 +86018,6 @@ paths:
8603086018
operator: OR
8603186019
permissions:
8603286020
- teams_read
86033-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
86034-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
86035-
86036-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8603786021
post:
8603886022
description: 'This endpoint attempts to link your existing Datadog teams with
8603986023
GitHub teams by matching their names.
@@ -86095,10 +86079,6 @@ paths:
8609586079
operator: AND
8609686080
permissions:
8609786081
- teams_manage
86098-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
86099-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
86100-
86101-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8610286082
/api/v2/team/{super_team_id}/member_teams:
8610386083
get:
8610486084
deprecated: true

examples/v2/teams/DeleteTeamConnections.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
public class Example {
1212
public static void main(String[] args) {
1313
ApiClient defaultClient = ApiClient.getDefaultApiClient();
14-
defaultClient.setUnstableOperationEnabled("v2.deleteTeamConnections", true);
1514
TeamsApi apiInstance = new TeamsApi(defaultClient);
1615

1716
TeamConnectionDeleteRequest body =

examples/v2/teams/GetTeamSync.java

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

1514
try {

examples/v2/teams/ListTeamConnections.java

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

1413
try {

examples/v2/teams/ListTeamConnections_2418873869.java

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

1413
try {

examples/v2/teams/SyncTeams.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
public class Example {
1414
public static void main(String[] args) {
1515
ApiClient defaultClient = ApiClient.getDefaultApiClient();
16-
defaultClient.setUnstableOperationEnabled("v2.syncTeams", true);
1716
TeamsApi apiInstance = new TeamsApi(defaultClient);
1817

1918
TeamSyncRequest body =

examples/v2/teams/SyncTeams_3215592344.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
public class Example {
1414
public static void main(String[] args) {
1515
ApiClient defaultClient = ApiClient.getDefaultApiClient();
16-
defaultClient.setUnstableOperationEnabled("v2.syncTeams", true);
1716
TeamsApi apiInstance = new TeamsApi(defaultClient);
1817

1918
TeamSyncRequest body =

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -834,13 +834,8 @@ public class ApiClient {
834834
put("v2.createSCAResolveVulnerableSymbols", false);
835835
put("v2.createSCAResult", false);
836836
put("v2.addMemberTeam", false);
837-
put("v2.createTeamConnections", false);
838-
put("v2.deleteTeamConnections", false);
839-
put("v2.getTeamSync", false);
840837
put("v2.listMemberTeams", false);
841-
put("v2.listTeamConnections", false);
842838
put("v2.removeMemberTeam", false);
843-
put("v2.syncTeams", false);
844839
put("v2.createIncidentTeam", false);
845840
put("v2.deleteIncidentTeam", false);
846841
put("v2.getIncidentTeam", false);

src/main/java/com/datadog/api/client/v2/api/TeamsApi.java

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,6 @@ public CompletableFuture<TeamConnectionsResponse> createTeamConnectionsAsync(
575575
*/
576576
public ApiResponse<TeamConnectionsResponse> createTeamConnectionsWithHttpInfo(
577577
TeamConnectionCreateRequest body) throws ApiException {
578-
// Check if unstable operation is enabled
579-
String operationId = "createTeamConnections";
580-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
581-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
582-
} else {
583-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
584-
}
585578
Object localVarPostBody = body;
586579

587580
// verify the required parameter 'body' is set
@@ -624,16 +617,6 @@ public ApiResponse<TeamConnectionsResponse> createTeamConnectionsWithHttpInfo(
624617
*/
625618
public CompletableFuture<ApiResponse<TeamConnectionsResponse>>
626619
createTeamConnectionsWithHttpInfoAsync(TeamConnectionCreateRequest body) {
627-
// Check if unstable operation is enabled
628-
String operationId = "createTeamConnections";
629-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
630-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
631-
} else {
632-
CompletableFuture<ApiResponse<TeamConnectionsResponse>> result = new CompletableFuture<>();
633-
result.completeExceptionally(
634-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
635-
return result;
636-
}
637620
Object localVarPostBody = body;
638621

639622
// verify the required parameter 'body' is set
@@ -1174,13 +1157,6 @@ public CompletableFuture<Void> deleteTeamConnectionsAsync(TeamConnectionDeleteRe
11741157
*/
11751158
public ApiResponse<Void> deleteTeamConnectionsWithHttpInfo(TeamConnectionDeleteRequest body)
11761159
throws ApiException {
1177-
// Check if unstable operation is enabled
1178-
String operationId = "deleteTeamConnections";
1179-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1180-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1181-
} else {
1182-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
1183-
}
11841160
Object localVarPostBody = body;
11851161

11861162
// verify the required parameter 'body' is set
@@ -1223,16 +1199,6 @@ public ApiResponse<Void> deleteTeamConnectionsWithHttpInfo(TeamConnectionDeleteR
12231199
*/
12241200
public CompletableFuture<ApiResponse<Void>> deleteTeamConnectionsWithHttpInfoAsync(
12251201
TeamConnectionDeleteRequest body) {
1226-
// Check if unstable operation is enabled
1227-
String operationId = "deleteTeamConnections";
1228-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1229-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1230-
} else {
1231-
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
1232-
result.completeExceptionally(
1233-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
1234-
return result;
1235-
}
12361202
Object localVarPostBody = body;
12371203

12381204
// verify the required parameter 'body' is set
@@ -2637,13 +2603,6 @@ public CompletableFuture<TeamSyncResponse> getTeamSyncAsync(
26372603
*/
26382604
public ApiResponse<TeamSyncResponse> getTeamSyncWithHttpInfo(
26392605
TeamSyncAttributesSource filterSource) throws ApiException {
2640-
// Check if unstable operation is enabled
2641-
String operationId = "getTeamSync";
2642-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
2643-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
2644-
} else {
2645-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
2646-
}
26472606
Object localVarPostBody = null;
26482607

26492608
// verify the required parameter 'filterSource' is set
@@ -2689,16 +2648,6 @@ public ApiResponse<TeamSyncResponse> getTeamSyncWithHttpInfo(
26892648
*/
26902649
public CompletableFuture<ApiResponse<TeamSyncResponse>> getTeamSyncWithHttpInfoAsync(
26912650
TeamSyncAttributesSource filterSource) {
2692-
// Check if unstable operation is enabled
2693-
String operationId = "getTeamSync";
2694-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
2695-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
2696-
} else {
2697-
CompletableFuture<ApiResponse<TeamSyncResponse>> result = new CompletableFuture<>();
2698-
result.completeExceptionally(
2699-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
2700-
return result;
2701-
}
27022651
Object localVarPostBody = null;
27032652

27042653
// verify the required parameter 'filterSource' is set
@@ -3411,13 +3360,6 @@ public PaginationIterable<TeamConnection> listTeamConnectionsWithPagination(
34113360
*/
34123361
public ApiResponse<TeamConnectionsResponse> listTeamConnectionsWithHttpInfo(
34133362
ListTeamConnectionsOptionalParameters parameters) throws ApiException {
3414-
// Check if unstable operation is enabled
3415-
String operationId = "listTeamConnections";
3416-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
3417-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
3418-
} else {
3419-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
3420-
}
34213363
Object localVarPostBody = null;
34223364
Long pageSize = parameters.pageSize;
34233365
Long pageNumber = parameters.pageNumber;
@@ -3471,16 +3413,6 @@ public ApiResponse<TeamConnectionsResponse> listTeamConnectionsWithHttpInfo(
34713413
*/
34723414
public CompletableFuture<ApiResponse<TeamConnectionsResponse>>
34733415
listTeamConnectionsWithHttpInfoAsync(ListTeamConnectionsOptionalParameters parameters) {
3474-
// Check if unstable operation is enabled
3475-
String operationId = "listTeamConnections";
3476-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
3477-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
3478-
} else {
3479-
CompletableFuture<ApiResponse<TeamConnectionsResponse>> result = new CompletableFuture<>();
3480-
result.completeExceptionally(
3481-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
3482-
return result;
3483-
}
34843416
Object localVarPostBody = null;
34853417
Long pageSize = parameters.pageSize;
34863418
Long pageNumber = parameters.pageNumber;
@@ -4501,13 +4433,6 @@ public CompletableFuture<Void> syncTeamsAsync(TeamSyncRequest body) {
45014433
* </table>
45024434
*/
45034435
public ApiResponse<Void> syncTeamsWithHttpInfo(TeamSyncRequest body) throws ApiException {
4504-
// Check if unstable operation is enabled
4505-
String operationId = "syncTeams";
4506-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
4507-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
4508-
} else {
4509-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
4510-
}
45114436
Object localVarPostBody = body;
45124437

45134438
// verify the required parameter 'body' is set
@@ -4548,16 +4473,6 @@ public ApiResponse<Void> syncTeamsWithHttpInfo(TeamSyncRequest body) throws ApiE
45484473
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
45494474
*/
45504475
public CompletableFuture<ApiResponse<Void>> syncTeamsWithHttpInfoAsync(TeamSyncRequest body) {
4551-
// Check if unstable operation is enabled
4552-
String operationId = "syncTeams";
4553-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
4554-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
4555-
} else {
4556-
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
4557-
result.completeExceptionally(
4558-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
4559-
return result;
4560-
}
45614476
Object localVarPostBody = body;
45624477

45634478
// verify the required parameter 'body' is set

src/test/resources/com/datadog/api/client/v2/api/teams.feature

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ Feature: Teams
125125

126126
@generated @skip @team:DataDog/aaa-omg
127127
Scenario: Create team connections returns "Conflict" response
128-
Given operation "CreateTeamConnections" enabled
129-
And new "CreateTeamConnections" request
128+
Given new "CreateTeamConnections" request
130129
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"}]}
131130
When the request is sent
132131
Then the response status is 409 Conflict
@@ -155,16 +154,14 @@ Feature: Teams
155154

156155
@generated @skip @team:DataDog/aaa-omg
157156
Scenario: Delete team connections returns "No Content" response
158-
Given operation "DeleteTeamConnections" enabled
159-
And new "DeleteTeamConnections" request
157+
Given new "DeleteTeamConnections" request
160158
And body with value {"data": [{"id": "12345678-1234-5678-9abc-123456789012", "type": "team_connection"}]}
161159
When the request is sent
162160
Then the response status is 204 No Content
163161

164162
@generated @skip @team:DataDog/aaa-omg
165163
Scenario: Delete team connections returns "Not Found" response
166-
Given operation "DeleteTeamConnections" enabled
167-
And new "DeleteTeamConnections" request
164+
Given new "DeleteTeamConnections" request
168165
And body with value {"data": [{"id": "12345678-1234-5678-9abc-123456789012", "type": "team_connection"}]}
169166
When the request is sent
170167
Then the response status is 404 Not Found
@@ -357,16 +354,14 @@ Feature: Teams
357354

358355
@generated @skip @team:DataDog/aaa-omg
359356
Scenario: Get team sync configurations returns "OK" response
360-
Given operation "GetTeamSync" enabled
361-
And new "GetTeamSync" request
357+
Given new "GetTeamSync" request
362358
And request contains "filter[source]" parameter from "REPLACE.ME"
363359
When the request is sent
364360
Then the response status is 200 OK
365361

366362
@generated @skip @team:DataDog/aaa-omg
367363
Scenario: Get team sync configurations returns "Team sync configurations not found" response
368-
Given operation "GetTeamSync" enabled
369-
And new "GetTeamSync" request
364+
Given new "GetTeamSync" request
370365
And request contains "filter[source]" parameter from "REPLACE.ME"
371366
When the request is sent
372367
Then the response status is 404 Team sync configurations not found
@@ -389,30 +384,26 @@ Feature: Teams
389384

390385
@generated @skip @team:DataDog/aaa-omg
391386
Scenario: Link Teams with GitHub Teams returns "OK" response
392-
Given operation "SyncTeams" enabled
393-
And new "SyncTeams" request
387+
Given new "SyncTeams" request
394388
And body with value {"data": {"attributes": {"source": "github", "type": "link"}, "type": "team_sync_bulk"}}
395389
When the request is sent
396390
Then the response status is 200 OK
397391

398392
@generated @skip @team:DataDog/aaa-omg
399393
Scenario: List team connections returns "Bad Request" response
400-
Given operation "ListTeamConnections" enabled
401-
And new "ListTeamConnections" request
394+
Given new "ListTeamConnections" request
402395
When the request is sent
403396
Then the response status is 400 Bad Request
404397

405398
@generated @skip @team:DataDog/aaa-omg
406399
Scenario: List team connections returns "OK" response
407-
Given operation "ListTeamConnections" enabled
408-
And new "ListTeamConnections" request
400+
Given new "ListTeamConnections" request
409401
When the request is sent
410402
Then the response status is 200 OK
411403

412404
@generated @skip @team:DataDog/aaa-omg @with-pagination
413405
Scenario: List team connections returns "OK" response with pagination
414-
Given operation "ListTeamConnections" enabled
415-
And new "ListTeamConnections" request
406+
Given new "ListTeamConnections" request
416407
When the request with pagination is sent
417408
Then the response status is 200 OK
418409

@@ -515,7 +506,6 @@ Feature: Teams
515506
@replay-only @team:DataDog/aaa-omg
516507
Scenario: Sync teams returns "OK" response
517508
Given new "SyncTeams" request
518-
And operation "SyncTeams" enabled
519509
And body with value {"data": {"attributes": {"source": "github", "type": "link"}, "type": "team_sync_bulk"}}
520510
When the request is sent
521511
Then the response status is 200 OK

0 commit comments

Comments
 (0)