Skip to content

Commit 9400243

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5eb2497 of spec repo
1 parent 2b59847 commit 9400243

10 files changed

Lines changed: 11 additions & 50 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67941,6 +67941,7 @@ paths:
6794167941
- us3.datadoghq.com
6794267942
- us5.datadoghq.com
6794367943
- ap1.datadoghq.com
67944+
- ap2.datadoghq.com
6794467945
- datadoghq.eu
6794567946
- ddog-gov.com
6794667947
subdomain:
@@ -85125,10 +85126,6 @@ paths:
8512585126
operator: OR
8512685127
permissions:
8512785128
- teams_read
85128-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
85129-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
85130-
85131-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8513285129
get:
8513385130
description: Returns all team connections.
8513485131
operationId: ListTeamConnections
@@ -85208,10 +85205,6 @@ paths:
8520885205
operator: OR
8520985206
permissions:
8521085207
- teams_read
85211-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
85212-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
85213-
85214-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8521585208
post:
8521685209
description: Create multiple team connections.
8521785210
operationId: CreateTeamConnections
@@ -85248,10 +85241,6 @@ paths:
8524885241
operator: OR
8524985242
permissions:
8525085243
- teams_read
85251-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
85252-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
85253-
85254-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8525585244
/api/v2/team/sync:
8525685245
get:
8525785246
description: 'Get all team synchronization configurations.
@@ -85295,10 +85284,6 @@ paths:
8529585284
operator: OR
8529685285
permissions:
8529785286
- teams_read
85298-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
85299-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
85300-
85301-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8530285287
post:
8530385288
description: 'This endpoint attempts to link your existing Datadog teams with
8530485289
GitHub teams by matching their names.
@@ -85360,10 +85345,6 @@ paths:
8536085345
operator: AND
8536185346
permissions:
8536285347
- teams_manage
85363-
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
85364-
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
85365-
85366-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
8536785348
/api/v2/team/{super_team_id}/member_teams:
8536885349
get:
8536985350
deprecated: true

examples/v2/teams/DeleteTeamConnections.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
)
1919

2020
configuration = Configuration()
21-
configuration.unstable_operations["delete_team_connections"] = True
2221
with ApiClient(configuration) as api_client:
2322
api_instance = TeamsApi(api_client)
2423
api_instance.delete_team_connections(body=body)

examples/v2/teams/GetTeamSync.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from datadog_api_client.v2.model.team_sync_attributes_source import TeamSyncAttributesSource
88

99
configuration = Configuration()
10-
configuration.unstable_operations["get_team_sync"] = True
1110
with ApiClient(configuration) as api_client:
1211
api_instance = TeamsApi(api_client)
1312
response = api_instance.get_team_sync(

examples/v2/teams/ListTeamConnections.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from datadog_api_client.v2.api.teams_api import TeamsApi
77

88
configuration = Configuration()
9-
configuration.unstable_operations["list_team_connections"] = True
109
with ApiClient(configuration) as api_client:
1110
api_instance = TeamsApi(api_client)
1211
response = api_instance.list_team_connections()

examples/v2/teams/ListTeamConnections_2418873869.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from datadog_api_client.v2.api.teams_api import TeamsApi
77

88
configuration = Configuration()
9-
configuration.unstable_operations["list_team_connections"] = True
109
with ApiClient(configuration) as api_client:
1110
api_instance = TeamsApi(api_client)
1211
items = api_instance.list_team_connections_with_pagination()

examples/v2/teams/SyncTeams.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
)
2323

2424
configuration = Configuration()
25-
configuration.unstable_operations["sync_teams"] = True
2625
with ApiClient(configuration) as api_client:
2726
api_instance = TeamsApi(api_client)
2827
api_instance.sync_teams(body=body)

examples/v2/teams/SyncTeams_3215592344.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
)
2323

2424
configuration = Configuration()
25-
configuration.unstable_operations["sync_teams"] = True
2625
with ApiClient(configuration) as api_client:
2726
api_instance = TeamsApi(api_client)
2827
api_instance.sync_teams(body=body)

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,8 @@ def __init__(
396396
"v2.create_sca_resolve_vulnerable_symbols": False,
397397
"v2.create_sca_result": False,
398398
"v2.add_member_team": False,
399-
"v2.create_team_connections": False,
400-
"v2.delete_team_connections": False,
401-
"v2.get_team_sync": False,
402399
"v2.list_member_teams": False,
403-
"v2.list_team_connections": False,
404400
"v2.remove_member_team": False,
405-
"v2.sync_teams": False,
406401
"v2.create_incident_team": False,
407402
"v2.delete_incident_team": False,
408403
"v2.get_incident_team": False,

src/datadog_api_client/v2/api/events_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def __init__(self, api_client=None):
5555
"us3.datadoghq.com",
5656
"us5.datadoghq.com",
5757
"ap1.datadoghq.com",
58+
"ap2.datadoghq.com",
5859
"datadoghq.eu",
5960
"ddog-gov.com",
6061
],

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