Skip to content

Commit af7c397

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

File tree

3 files changed

+9
-69
lines changed

3 files changed

+9
-69
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

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

services/teams/src/v2/TeamsApi.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
240240
): Promise<RequestContext> {
241241
const _config = _options || this.configuration;
242242

243-
if (!_config.unstableOperations["TeamsApi.v2.createTeamConnections"]) {
244-
throw new Error(
245-
"Unstable operation 'createTeamConnections' is disabled. Enable it by setting `configuration.unstableOperations['TeamsApi.v2.createTeamConnections'] = true`",
246-
);
247-
}
248-
249243
// verify required parameter 'body' is not null or undefined
250244
if (body === null || body === undefined) {
251245
throw new RequiredError("body", "createTeamConnections");
@@ -462,12 +456,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
462456
): Promise<RequestContext> {
463457
const _config = _options || this.configuration;
464458

465-
if (!_config.unstableOperations["TeamsApi.v2.deleteTeamConnections"]) {
466-
throw new Error(
467-
"Unstable operation 'deleteTeamConnections' is disabled. Enable it by setting `configuration.unstableOperations['TeamsApi.v2.deleteTeamConnections'] = true`",
468-
);
469-
}
470-
471459
// verify required parameter 'body' is not null or undefined
472460
if (body === null || body === undefined) {
473461
throw new RequiredError("body", "deleteTeamConnections");
@@ -928,12 +916,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
928916
): Promise<RequestContext> {
929917
const _config = _options || this.configuration;
930918

931-
if (!_config.unstableOperations["TeamsApi.v2.getTeamSync"]) {
932-
throw new Error(
933-
"Unstable operation 'getTeamSync' is disabled. Enable it by setting `configuration.unstableOperations['TeamsApi.v2.getTeamSync'] = true`",
934-
);
935-
}
936-
937919
// verify required parameter 'filterSource' is not null or undefined
938920
if (filterSource === null || filterSource === undefined) {
939921
throw new RequiredError("filterSource", "getTeamSync");
@@ -1112,12 +1094,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
11121094
): Promise<RequestContext> {
11131095
const _config = _options || this.configuration;
11141096

1115-
if (!_config.unstableOperations["TeamsApi.v2.listTeamConnections"]) {
1116-
throw new Error(
1117-
"Unstable operation 'listTeamConnections' is disabled. Enable it by setting `configuration.unstableOperations['TeamsApi.v2.listTeamConnections'] = true`",
1118-
);
1119-
}
1120-
11211097
// Path Params
11221098
const localVarPath = "/api/v2/team/connections";
11231099

@@ -1465,12 +1441,6 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory {
14651441
): Promise<RequestContext> {
14661442
const _config = _options || this.configuration;
14671443

1468-
if (!_config.unstableOperations["TeamsApi.v2.syncTeams"]) {
1469-
throw new Error(
1470-
"Unstable operation 'syncTeams' is disabled. Enable it by setting `configuration.unstableOperations['TeamsApi.v2.syncTeams'] = true`",
1471-
);
1472-
}
1473-
14741444
// verify required parameter 'body' is not null or undefined
14751445
if (body === null || body === undefined) {
14761446
throw new RequiredError("body", "syncTeams");

0 commit comments

Comments
 (0)