Skip to content

Commit d7ffaf4

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

File tree

10 files changed

+9
-75
lines changed

10 files changed

+9
-75
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.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.deleteTeamConnections"] = true;
98
const apiInstance = new v2.TeamsApi(configuration);
109

1110
const params: v2.TeamsApiDeleteTeamConnectionsRequest = {

examples/v2/teams/GetTeamSync.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.getTeamSync"] = true;
98
const apiInstance = new v2.TeamsApi(configuration);
109

1110
const params: v2.TeamsApiGetTeamSyncRequest = {

examples/v2/teams/ListTeamConnections.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.listTeamConnections"] = true;
98
const apiInstance = new v2.TeamsApi(configuration);
109

1110
apiInstance

examples/v2/teams/ListTeamConnections_2418873869.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.listTeamConnections"] = true;
98
const apiInstance = new v2.TeamsApi(configuration);
109

1110
(async () => {

examples/v2/teams/SyncTeams.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.syncTeams"] = true;
98
const apiInstance = new v2.TeamsApi(configuration);
109

1110
const params: v2.TeamsApiSyncTeamsRequest = {

examples/v2/teams/SyncTeams_3215592344.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.syncTeams"] = true;
98
const apiInstance = new v2.TeamsApi(configuration);
109

1110
const params: v2.TeamsApiSyncTeamsRequest = {

features/v2/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

packages/datadog-api-client-common/configuration.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,8 @@ export function createConfiguration(
368368
"v2.createSCAResolveVulnerableSymbols": false,
369369
"v2.createSCAResult": false,
370370
"v2.addMemberTeam": false,
371-
"v2.createTeamConnections": false,
372-
"v2.deleteTeamConnections": false,
373-
"v2.getTeamSync": false,
374371
"v2.listMemberTeams": false,
375-
"v2.listTeamConnections": false,
376372
"v2.removeMemberTeam": false,
377-
"v2.syncTeams": false,
378373
"v2.createIncidentTeam": false,
379374
"v2.deleteIncidentTeam": false,
380375
"v2.getIncidentTeam": false,

packages/datadog-api-client-v2/apis/TeamsApi.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
197197
): Promise<RequestContext> {
198198
const _config = _options || this.configuration;
199199

200-
logger.warn("Using unstable operation 'createTeamConnections'");
201-
if (!_config.unstableOperations["v2.createTeamConnections"]) {
202-
throw new Error("Unstable operation 'createTeamConnections' is disabled");
203-
}
204-
205200
// verify required parameter 'body' is not null or undefined
206201
if (body === null || body === undefined) {
207202
throw new RequiredError("body", "createTeamConnections");
@@ -380,11 +375,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
380375
): Promise<RequestContext> {
381376
const _config = _options || this.configuration;
382377

383-
logger.warn("Using unstable operation 'deleteTeamConnections'");
384-
if (!_config.unstableOperations["v2.deleteTeamConnections"]) {
385-
throw new Error("Unstable operation 'deleteTeamConnections' is disabled");
386-
}
387-
388378
// verify required parameter 'body' is not null or undefined
389379
if (body === null || body === undefined) {
390380
throw new RequiredError("body", "deleteTeamConnections");
@@ -748,11 +738,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
748738
): Promise<RequestContext> {
749739
const _config = _options || this.configuration;
750740

751-
logger.warn("Using unstable operation 'getTeamSync'");
752-
if (!_config.unstableOperations["v2.getTeamSync"]) {
753-
throw new Error("Unstable operation 'getTeamSync' is disabled");
754-
}
755-
756741
// verify required parameter 'filterSource' is not null or undefined
757742
if (filterSource === null || filterSource === undefined) {
758743
throw new RequiredError("filterSource", "getTeamSync");
@@ -901,11 +886,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
901886
): Promise<RequestContext> {
902887
const _config = _options || this.configuration;
903888

904-
logger.warn("Using unstable operation 'listTeamConnections'");
905-
if (!_config.unstableOperations["v2.listTeamConnections"]) {
906-
throw new Error("Unstable operation 'listTeamConnections' is disabled");
907-
}
908-
909889
// Path Params
910890
const localVarPath = "/api/v2/team/connections";
911891

@@ -1197,11 +1177,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
11971177
): Promise<RequestContext> {
11981178
const _config = _options || this.configuration;
11991179

1200-
logger.warn("Using unstable operation 'syncTeams'");
1201-
if (!_config.unstableOperations["v2.syncTeams"]) {
1202-
throw new Error("Unstable operation 'syncTeams' is disabled");
1203-
}
1204-
12051180
// verify required parameter 'body' is not null or undefined
12061181
if (body === null || body === undefined) {
12071182
throw new RequiredError("body", "syncTeams");

0 commit comments

Comments
 (0)