Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85761,10 +85761,6 @@ paths:
operator: OR
permissions:
- teams_read
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
get:
description: Returns all team connections.
operationId: ListTeamConnections
Expand Down Expand Up @@ -85844,10 +85840,6 @@ paths:
operator: OR
permissions:
- teams_read
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
post:
description: Create multiple team connections.
operationId: CreateTeamConnections
Expand Down Expand Up @@ -85884,10 +85876,6 @@ paths:
operator: OR
permissions:
- teams_read
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/team/sync:
get:
description: 'Get all team synchronization configurations.
Expand Down Expand Up @@ -85931,10 +85919,6 @@ paths:
operator: OR
permissions:
- teams_read
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
post:
description: 'This endpoint attempts to link your existing Datadog teams with
GitHub teams by matching their names.
Expand Down Expand Up @@ -85996,10 +85980,6 @@ paths:
operator: AND
permissions:
- teams_manage
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/team/{super_team_id}/member_teams:
get:
deprecated: true
Expand Down
3 changes: 0 additions & 3 deletions examples/v2/teams/DeleteTeamConnections.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Delete team connections returns "No Content" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.delete_team_connections".to_sym] = true
end
api_instance = DatadogAPIClient::V2::TeamsAPI.new

body = DatadogAPIClient::V2::TeamConnectionDeleteRequest.new({
Expand Down
3 changes: 0 additions & 3 deletions examples/v2/teams/GetTeamSync.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Get team sync configurations returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.get_team_sync".to_sym] = true
end
api_instance = DatadogAPIClient::V2::TeamsAPI.new
p api_instance.get_team_sync(TeamSyncAttributesSource::GITHUB)
3 changes: 0 additions & 3 deletions examples/v2/teams/ListTeamConnections.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# List team connections returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_team_connections".to_sym] = true
end
api_instance = DatadogAPIClient::V2::TeamsAPI.new
p api_instance.list_team_connections()
3 changes: 0 additions & 3 deletions examples/v2/teams/ListTeamConnections_2418873869.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# List team connections returns "OK" response with pagination

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_team_connections".to_sym] = true
end
api_instance = DatadogAPIClient::V2::TeamsAPI.new
api_instance.list_team_connections_with_pagination() { |item| puts item }
3 changes: 0 additions & 3 deletions examples/v2/teams/SyncTeams.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Link Teams with GitHub Teams returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.sync_teams".to_sym] = true
end
api_instance = DatadogAPIClient::V2::TeamsAPI.new

body = DatadogAPIClient::V2::TeamSyncRequest.new({
Expand Down
3 changes: 0 additions & 3 deletions examples/v2/teams/SyncTeams_3215592344.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Sync teams returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.sync_teams".to_sym] = true
end
api_instance = DatadogAPIClient::V2::TeamsAPI.new

body = DatadogAPIClient::V2::TeamSyncRequest.new({
Expand Down
28 changes: 9 additions & 19 deletions features/v2/teams.feature
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ Feature: Teams

@generated @skip @team:DataDog/aaa-omg
Scenario: Create team connections returns "Conflict" response
Given operation "CreateTeamConnections" enabled
And new "CreateTeamConnections" request
Given new "CreateTeamConnections" request
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"}]}
When the request is sent
Then the response status is 409 Conflict
Expand Down Expand Up @@ -155,16 +154,14 @@ Feature: Teams

@generated @skip @team:DataDog/aaa-omg
Scenario: Delete team connections returns "No Content" response
Given operation "DeleteTeamConnections" enabled
And new "DeleteTeamConnections" request
Given new "DeleteTeamConnections" request
And body with value {"data": [{"id": "12345678-1234-5678-9abc-123456789012", "type": "team_connection"}]}
When the request is sent
Then the response status is 204 No Content

@generated @skip @team:DataDog/aaa-omg
Scenario: Delete team connections returns "Not Found" response
Given operation "DeleteTeamConnections" enabled
And new "DeleteTeamConnections" request
Given new "DeleteTeamConnections" request
And body with value {"data": [{"id": "12345678-1234-5678-9abc-123456789012", "type": "team_connection"}]}
When the request is sent
Then the response status is 404 Not Found
Expand Down Expand Up @@ -357,16 +354,14 @@ Feature: Teams

@generated @skip @team:DataDog/aaa-omg
Scenario: Get team sync configurations returns "OK" response
Given operation "GetTeamSync" enabled
And new "GetTeamSync" request
Given new "GetTeamSync" request
And request contains "filter[source]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aaa-omg
Scenario: Get team sync configurations returns "Team sync configurations not found" response
Given operation "GetTeamSync" enabled
And new "GetTeamSync" request
Given new "GetTeamSync" request
And request contains "filter[source]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Team sync configurations not found
Expand All @@ -389,30 +384,26 @@ Feature: Teams

@generated @skip @team:DataDog/aaa-omg
Scenario: Link Teams with GitHub Teams returns "OK" response
Given operation "SyncTeams" enabled
And new "SyncTeams" request
Given new "SyncTeams" request
And body with value {"data": {"attributes": {"source": "github", "type": "link"}, "type": "team_sync_bulk"}}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aaa-omg
Scenario: List team connections returns "Bad Request" response
Given operation "ListTeamConnections" enabled
And new "ListTeamConnections" request
Given new "ListTeamConnections" request
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aaa-omg
Scenario: List team connections returns "OK" response
Given operation "ListTeamConnections" enabled
And new "ListTeamConnections" request
Given new "ListTeamConnections" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aaa-omg @with-pagination
Scenario: List team connections returns "OK" response with pagination
Given operation "ListTeamConnections" enabled
And new "ListTeamConnections" request
Given new "ListTeamConnections" request
When the request with pagination is sent
Then the response status is 200 OK

Expand Down Expand Up @@ -515,7 +506,6 @@ Feature: Teams
@replay-only @team:DataDog/aaa-omg
Scenario: Sync teams returns "OK" response
Given new "SyncTeams" request
And operation "SyncTeams" enabled
And body with value {"data": {"attributes": {"source": "github", "type": "link"}, "type": "team_sync_bulk"}}
When the request is sent
Then the response status is 200 OK
Expand Down
5 changes: 0 additions & 5 deletions lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,8 @@ def initialize
"v2.create_sca_resolve_vulnerable_symbols": false,
"v2.create_sca_result": false,
"v2.add_member_team": false,
"v2.create_team_connections": false,
"v2.delete_team_connections": false,
"v2.get_team_sync": false,
"v2.list_member_teams": false,
"v2.list_team_connections": false,
"v2.remove_member_team": false,
"v2.sync_teams": false,
"v2.create_incident_team": false,
"v2.delete_incident_team": false,
"v2.get_incident_team": false,
Expand Down
30 changes: 0 additions & 30 deletions lib/datadog_api_client/v2/api/teams_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,6 @@ def create_team_connections(body, opts = {})
# @param opts [Hash] the optional parameters
# @return [Array<(TeamConnectionsResponse, Integer, Hash)>] TeamConnectionsResponse data, response status code and response headers
def create_team_connections_with_http_info(body, opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.create_team_connections".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_team_connections")
else
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_team_connections"))
end

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

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

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

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

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TeamsAPI.sync_teams ...'
Expand Down
Loading