Skip to content

Commit 0a87194

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5eb2497 of spec repo
1 parent 23e952c commit 0a87194

File tree

10 files changed

+11
-92
lines changed

10 files changed

+11
-92
lines changed

.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.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Delete team connections returns "No Content" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.delete_team_connections".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::TeamsAPI.new
85

96
body = DatadogAPIClient::V2::TeamConnectionDeleteRequest.new({

examples/v2/teams/GetTeamSync.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Get team sync configurations returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_team_sync".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::TeamsAPI.new
85
p api_instance.get_team_sync(TeamSyncAttributesSource::GITHUB)
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# List team connections returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.list_team_connections".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::TeamsAPI.new
85
p api_instance.list_team_connections()
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# List team connections returns "OK" response with pagination
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.list_team_connections".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::TeamsAPI.new
85
api_instance.list_team_connections_with_pagination() { |item| puts item }

examples/v2/teams/SyncTeams.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Link Teams with GitHub Teams returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.sync_teams".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::TeamsAPI.new
85

96
body = DatadogAPIClient::V2::TeamSyncRequest.new({

examples/v2/teams/SyncTeams_3215592344.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Sync teams returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.sync_teams".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::TeamsAPI.new
85

96
body = DatadogAPIClient::V2::TeamSyncRequest.new({

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

lib/datadog_api_client/configuration.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,8 @@ def initialize
338338
"v2.create_sca_resolve_vulnerable_symbols": false,
339339
"v2.create_sca_result": false,
340340
"v2.add_member_team": false,
341-
"v2.create_team_connections": false,
342-
"v2.delete_team_connections": false,
343-
"v2.get_team_sync": false,
344341
"v2.list_member_teams": false,
345-
"v2.list_team_connections": false,
346342
"v2.remove_member_team": false,
347-
"v2.sync_teams": false,
348343
"v2.create_incident_team": false,
349344
"v2.delete_incident_team": false,
350345
"v2.get_incident_team": false,
@@ -627,6 +622,7 @@ def operation_server_settings
627622
"us3.datadoghq.com",
628623
"us5.datadoghq.com",
629624
"ap1.datadoghq.com",
625+
"ap2.datadoghq.com",
630626
"datadoghq.eu",
631627
"ddog-gov.com"
632628
]

lib/datadog_api_client/v2/api/teams_api.rb

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,6 @@ def create_team_connections(body, opts = {})
258258
# @param opts [Hash] the optional parameters
259259
# @return [Array<(TeamConnectionsResponse, Integer, Hash)>] TeamConnectionsResponse data, response status code and response headers
260260
def create_team_connections_with_http_info(body, opts = {})
261-
unstable_enabled = @api_client.config.unstable_operations["v2.create_team_connections".to_sym]
262-
if unstable_enabled
263-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_team_connections")
264-
else
265-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_team_connections"))
266-
end
267261

268262
if @api_client.config.debugging
269263
@api_client.config.logger.debug 'Calling API: TeamsAPI.create_team_connections ...'
@@ -542,12 +536,6 @@ def delete_team_connections(body, opts = {})
542536
# @param opts [Hash] the optional parameters
543537
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
544538
def delete_team_connections_with_http_info(body, opts = {})
545-
unstable_enabled = @api_client.config.unstable_operations["v2.delete_team_connections".to_sym]
546-
if unstable_enabled
547-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_team_connections")
548-
else
549-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_team_connections"))
550-
end
551539

552540
if @api_client.config.debugging
553541
@api_client.config.logger.debug 'Calling API: TeamsAPI.delete_team_connections ...'
@@ -1187,12 +1175,6 @@ def get_team_sync(filter_source, opts = {})
11871175
# @param opts [Hash] the optional parameters
11881176
# @return [Array<(TeamSyncResponse, Integer, Hash)>] TeamSyncResponse data, response status code and response headers
11891177
def get_team_sync_with_http_info(filter_source, opts = {})
1190-
unstable_enabled = @api_client.config.unstable_operations["v2.get_team_sync".to_sym]
1191-
if unstable_enabled
1192-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_team_sync")
1193-
else
1194-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_team_sync"))
1195-
end
11961178

11971179
if @api_client.config.debugging
11981180
@api_client.config.logger.debug 'Calling API: TeamsAPI.get_team_sync ...'
@@ -1439,12 +1421,6 @@ def list_team_connections(opts = {})
14391421
# @option opts [Array<String>] :filter_connection_ids Filter team connections by connection IDs.
14401422
# @return [Array<(TeamConnectionsResponse, Integer, Hash)>] TeamConnectionsResponse data, response status code and response headers
14411423
def list_team_connections_with_http_info(opts = {})
1442-
unstable_enabled = @api_client.config.unstable_operations["v2.list_team_connections".to_sym]
1443-
if unstable_enabled
1444-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_team_connections")
1445-
else
1446-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_team_connections"))
1447-
end
14481424

14491425
if @api_client.config.debugging
14501426
@api_client.config.logger.debug 'Calling API: TeamsAPI.list_team_connections ...'
@@ -1882,12 +1858,6 @@ def sync_teams(body, opts = {})
18821858
# @param opts [Hash] the optional parameters
18831859
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
18841860
def sync_teams_with_http_info(body, opts = {})
1885-
unstable_enabled = @api_client.config.unstable_operations["v2.sync_teams".to_sym]
1886-
if unstable_enabled
1887-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.sync_teams")
1888-
else
1889-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.sync_teams"))
1890-
end
18911861

18921862
if @api_client.config.debugging
18931863
@api_client.config.logger.debug 'Calling API: TeamsAPI.sync_teams ...'

0 commit comments

Comments
 (0)