Skip to content

Commit 82da2dc

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

10 files changed

Lines changed: 9 additions & 95 deletions

File tree

.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

api/datadog/configuration.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -747,13 +747,8 @@ func NewConfiguration() *Configuration {
747747
"v2.CreateSCAResolveVulnerableSymbols": false,
748748
"v2.CreateSCAResult": false,
749749
"v2.AddMemberTeam": false,
750-
"v2.CreateTeamConnections": false,
751-
"v2.DeleteTeamConnections": false,
752-
"v2.GetTeamSync": false,
753750
"v2.ListMemberTeams": false,
754-
"v2.ListTeamConnections": false,
755751
"v2.RemoveMemberTeam": false,
756-
"v2.SyncTeams": false,
757752
"v2.CreateIncidentTeam": false,
758753
"v2.DeleteIncidentTeam": false,
759754
"v2.GetIncidentTeam": false,

api/datadogV2/api_teams.go

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,6 @@ func (a *TeamsApi) CreateTeamConnections(ctx _context.Context, body TeamConnecti
273273
localVarReturnValue TeamConnectionsResponse
274274
)
275275

276-
operationId := "v2.CreateTeamConnections"
277-
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
278-
if !isOperationEnabled {
279-
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
280-
}
281-
if isOperationEnabled && a.Client.Cfg.Debug {
282-
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
283-
}
284-
285276
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TeamsApi.CreateTeamConnections")
286277
if err != nil {
287278
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
@@ -593,15 +584,6 @@ func (a *TeamsApi) DeleteTeamConnections(ctx _context.Context, body TeamConnecti
593584
localVarPostBody interface{}
594585
)
595586

596-
operationId := "v2.DeleteTeamConnections"
597-
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
598-
if !isOperationEnabled {
599-
return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
600-
}
601-
if isOperationEnabled && a.Client.Cfg.Debug {
602-
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
603-
}
604-
605587
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TeamsApi.DeleteTeamConnections")
606588
if err != nil {
607589
return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
@@ -1389,15 +1371,6 @@ func (a *TeamsApi) GetTeamSync(ctx _context.Context, filterSource TeamSyncAttrib
13891371
localVarReturnValue TeamSyncResponse
13901372
)
13911373

1392-
operationId := "v2.GetTeamSync"
1393-
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
1394-
if !isOperationEnabled {
1395-
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
1396-
}
1397-
if isOperationEnabled && a.Client.Cfg.Debug {
1398-
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
1399-
}
1400-
14011374
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TeamsApi.GetTeamSync")
14021375
if err != nil {
14031376
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
@@ -1802,15 +1775,6 @@ func (a *TeamsApi) ListTeamConnections(ctx _context.Context, o ...ListTeamConnec
18021775
optionalParams = o[0]
18031776
}
18041777

1805-
operationId := "v2.ListTeamConnections"
1806-
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
1807-
if !isOperationEnabled {
1808-
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
1809-
}
1810-
if isOperationEnabled && a.Client.Cfg.Debug {
1811-
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
1812-
}
1813-
18141778
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TeamsApi.ListTeamConnections")
18151779
if err != nil {
18161780
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
@@ -2518,15 +2482,6 @@ func (a *TeamsApi) SyncTeams(ctx _context.Context, body TeamSyncRequest) (*_neth
25182482
localVarPostBody interface{}
25192483
)
25202484

2521-
operationId := "v2.SyncTeams"
2522-
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
2523-
if !isOperationEnabled {
2524-
return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
2525-
}
2526-
if isOperationEnabled && a.Client.Cfg.Debug {
2527-
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
2528-
}
2529-
25302485
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TeamsApi.SyncTeams")
25312486
if err != nil {
25322487
return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}

examples/v2/teams/DeleteTeamConnections.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ func main() {
2222
}
2323
ctx := datadog.NewDefaultContext(context.Background())
2424
configuration := datadog.NewConfiguration()
25-
configuration.SetUnstableOperationEnabled("v2.DeleteTeamConnections", true)
2625
apiClient := datadog.NewAPIClient(configuration)
2726
api := datadogV2.NewTeamsApi(apiClient)
2827
r, err := api.DeleteTeamConnections(ctx, body)

examples/v2/teams/GetTeamSync.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
func main() {
1616
ctx := datadog.NewDefaultContext(context.Background())
1717
configuration := datadog.NewConfiguration()
18-
configuration.SetUnstableOperationEnabled("v2.GetTeamSync", true)
1918
apiClient := datadog.NewAPIClient(configuration)
2019
api := datadogV2.NewTeamsApi(apiClient)
2120
resp, r, err := api.GetTeamSync(ctx, datadogV2.TEAMSYNCATTRIBUTESSOURCE_GITHUB)

examples/v2/teams/ListTeamConnections.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
func main() {
1616
ctx := datadog.NewDefaultContext(context.Background())
1717
configuration := datadog.NewConfiguration()
18-
configuration.SetUnstableOperationEnabled("v2.ListTeamConnections", true)
1918
apiClient := datadog.NewAPIClient(configuration)
2019
api := datadogV2.NewTeamsApi(apiClient)
2120
resp, r, err := api.ListTeamConnections(ctx, *datadogV2.NewListTeamConnectionsOptionalParameters())

examples/v2/teams/ListTeamConnections_2418873869.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
func main() {
1616
ctx := datadog.NewDefaultContext(context.Background())
1717
configuration := datadog.NewConfiguration()
18-
configuration.SetUnstableOperationEnabled("v2.ListTeamConnections", true)
1918
apiClient := datadog.NewAPIClient(configuration)
2019
api := datadogV2.NewTeamsApi(apiClient)
2120
resp, _ := api.ListTeamConnectionsWithPagination(ctx, *datadogV2.NewListTeamConnectionsOptionalParameters())

examples/v2/teams/SyncTeams.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ func main() {
2323
}
2424
ctx := datadog.NewDefaultContext(context.Background())
2525
configuration := datadog.NewConfiguration()
26-
configuration.SetUnstableOperationEnabled("v2.SyncTeams", true)
2726
apiClient := datadog.NewAPIClient(configuration)
2827
api := datadogV2.NewTeamsApi(apiClient)
2928
r, err := api.SyncTeams(ctx, body)

examples/v2/teams/SyncTeams_3215592344.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ func main() {
2323
}
2424
ctx := datadog.NewDefaultContext(context.Background())
2525
configuration := datadog.NewConfiguration()
26-
configuration.SetUnstableOperationEnabled("v2.SyncTeams", true)
2726
apiClient := datadog.NewAPIClient(configuration)
2827
api := datadogV2.NewTeamsApi(apiClient)
2928
r, err := api.SyncTeams(ctx, body)

tests/scenarios/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

0 commit comments

Comments
 (0)