diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a954de475f68..acfe08bcfb96 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 @@ -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 @@ -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. @@ -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. @@ -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 diff --git a/examples/v2/teams/DeleteTeamConnections.rb b/examples/v2/teams/DeleteTeamConnections.rb index 779bb69a3e63..ed3b589bd296 100644 --- a/examples/v2/teams/DeleteTeamConnections.rb +++ b/examples/v2/teams/DeleteTeamConnections.rb @@ -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({ diff --git a/examples/v2/teams/GetTeamSync.rb b/examples/v2/teams/GetTeamSync.rb index 5bebde440321..f3a967d958fe 100644 --- a/examples/v2/teams/GetTeamSync.rb +++ b/examples/v2/teams/GetTeamSync.rb @@ -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) diff --git a/examples/v2/teams/ListTeamConnections.rb b/examples/v2/teams/ListTeamConnections.rb index 811ff077fb68..d984ab32b850 100644 --- a/examples/v2/teams/ListTeamConnections.rb +++ b/examples/v2/teams/ListTeamConnections.rb @@ -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() diff --git a/examples/v2/teams/ListTeamConnections_2418873869.rb b/examples/v2/teams/ListTeamConnections_2418873869.rb index 9cc7601b19e3..b8cf57fee460 100644 --- a/examples/v2/teams/ListTeamConnections_2418873869.rb +++ b/examples/v2/teams/ListTeamConnections_2418873869.rb @@ -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 } diff --git a/examples/v2/teams/SyncTeams.rb b/examples/v2/teams/SyncTeams.rb index 37e298cb99e3..2675eff6ac68 100644 --- a/examples/v2/teams/SyncTeams.rb +++ b/examples/v2/teams/SyncTeams.rb @@ -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({ diff --git a/examples/v2/teams/SyncTeams_3215592344.rb b/examples/v2/teams/SyncTeams_3215592344.rb index 357b991a88e5..acb04129ae52 100644 --- a/examples/v2/teams/SyncTeams_3215592344.rb +++ b/examples/v2/teams/SyncTeams_3215592344.rb @@ -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({ diff --git a/features/v2/teams.feature b/features/v2/teams.feature index c2f52d0d96e8..9deac2e88afd 100644 --- a/features/v2/teams.feature +++ b/features/v2/teams.feature @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index 707078fa9174..5afe995637c9 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -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, diff --git a/lib/datadog_api_client/v2/api/teams_api.rb b/lib/datadog_api_client/v2/api/teams_api.rb index 95a0824385bf..4403821b3798 100644 --- a/lib/datadog_api_client/v2/api/teams_api.rb +++ b/lib/datadog_api_client/v2/api/teams_api.rb @@ -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 ...' @@ -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 ...' @@ -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 ...' @@ -1439,12 +1421,6 @@ def list_team_connections(opts = {}) # @option opts [Array] :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 ...' @@ -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 ...'