diff --git a/.apigentools-info b/.apigentools-info index 1c931005619..dcd31ae9e5a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-05-04 18:37:02.644907", - "spec_repo_commit": "05a49f9c" + "regenerated": "2023-05-04 18:52:23.772285", + "spec_repo_commit": "4706b973" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-05-04 18:37:02.658322", - "spec_repo_commit": "05a49f9c" + "regenerated": "2023-05-04 18:52:23.785037", + "spec_repo_commit": "4706b973" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d8ff0ff86fc..9f62d86310f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -23142,6 +23142,7 @@ paths: x-codegen-request-body-name: body /api/v2/teams: get: + deprecated: true description: Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. @@ -23176,10 +23177,9 @@ paths: summary: Get a list of all incident teams tags: - Incident Teams - x-unstable: '**Note**: This endpoint is in public beta. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' + x-unstable: '**Note**: This endpoint is deprecated. See the [Teams API endpoints](https://docs.datadoghq.com/api/latest/teams/).' post: + deprecated: true description: Creates a new incident team. operationId: CreateIncidentTeam requestBody: @@ -23215,11 +23215,10 @@ paths: tags: - Incident Teams x-codegen-request-body-name: body - x-unstable: '**Note**: This endpoint is in public beta. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' + x-unstable: '**Note**: This endpoint is deprecated. See the [Teams API endpoints](https://docs.datadoghq.com/api/latest/teams/).' /api/v2/teams/{team_id}: delete: + deprecated: true description: Deletes an existing incident team. operationId: DeleteIncidentTeam parameters: @@ -23245,10 +23244,9 @@ paths: summary: Delete an existing incident team tags: - Incident Teams - x-unstable: '**Note**: This endpoint is in public beta. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' + x-unstable: '**Note**: This endpoint is deprecated. See the [Teams API endpoints](https://docs.datadoghq.com/api/latest/teams/).' get: + deprecated: true description: 'Get details of an incident team. If the `include[users]` query parameter is provided, @@ -23282,10 +23280,9 @@ paths: summary: Get details of an incident team tags: - Incident Teams - x-unstable: '**Note**: This endpoint is in public beta. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' + x-unstable: '**Note**: This endpoint is deprecated. See the [Teams API endpoints](https://docs.datadoghq.com/api/latest/teams/).' patch: + deprecated: true description: Updates an existing incident team. Only provide the attributes which should be updated as this request is a partial update. operationId: UpdateIncidentTeam @@ -23324,9 +23321,7 @@ paths: tags: - Incident Teams x-codegen-request-body-name: body - x-unstable: '**Note**: This endpoint is in public beta. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' + x-unstable: '**Note**: This endpoint is deprecated. See the [Teams API endpoints](https://docs.datadoghq.com/api/latest/teams/).' /api/v2/usage/application_security: get: description: 'Get hourly usage for application security . @@ -24331,8 +24326,8 @@ tags: - description: Create, update, delete, and retrieve services which can be associated with incidents. name: Incident Services -- description: Create, update, delete and retrieve teams which can be associated with - incidents. +- description: The Incident Teams endpoints are deprecated. See the [Teams API endpoints](https://docs.datadoghq.com/api/latest/teams/) + to create, update, delete, and retrieve teams which can be associated with incidents. name: Incident Teams - description: Manage incident response. name: Incidents diff --git a/src/main/java/com/datadog/api/client/v2/api/IncidentTeamsApi.java b/src/main/java/com/datadog/api/client/v2/api/IncidentTeamsApi.java index 72fc5c7840f..dd093b6f984 100644 --- a/src/main/java/com/datadog/api/client/v2/api/IncidentTeamsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/IncidentTeamsApi.java @@ -56,7 +56,9 @@ public void setApiClient(ApiClient apiClient) { * @param body Incident Team Payload. (required) * @return IncidentTeamResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public IncidentTeamResponse createIncidentTeam(IncidentTeamCreateRequest body) throws ApiException { return createIncidentTeamWithHttpInfo(body).getData(); @@ -69,7 +71,9 @@ public IncidentTeamResponse createIncidentTeam(IncidentTeamCreateRequest body) * * @param body Incident Team Payload. (required) * @return CompletableFuture<IncidentTeamResponse> + * @deprecated */ + @Deprecated public CompletableFuture createIncidentTeamAsync( IncidentTeamCreateRequest body) { return createIncidentTeamWithHttpInfoAsync(body) @@ -96,7 +100,10 @@ public CompletableFuture createIncidentTeamAsync( * 404 Not Found - * 429 Too many requests - * + * + * @deprecated */ + @Deprecated public ApiResponse createIncidentTeamWithHttpInfo( IncidentTeamCreateRequest body) throws ApiException { // Check if unstable operation is enabled @@ -145,7 +152,9 @@ public ApiResponse createIncidentTeamWithHttpInfo( * * @param body Incident Team Payload. (required) * @return CompletableFuture<ApiResponse<IncidentTeamResponse>> + * @deprecated */ + @Deprecated public CompletableFuture> createIncidentTeamWithHttpInfoAsync( IncidentTeamCreateRequest body) { // Check if unstable operation is enabled @@ -207,7 +216,9 @@ public CompletableFuture> createIncidentTeamWi * * @param teamId The ID of the incident team. (required) * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public void deleteIncidentTeam(String teamId) throws ApiException { deleteIncidentTeamWithHttpInfo(teamId); } @@ -219,7 +230,9 @@ public void deleteIncidentTeam(String teamId) throws ApiException { * * @param teamId The ID of the incident team. (required) * @return CompletableFuture + * @deprecated */ + @Deprecated public CompletableFuture deleteIncidentTeamAsync(String teamId) { return deleteIncidentTeamWithHttpInfoAsync(teamId) .thenApply( @@ -245,7 +258,10 @@ public CompletableFuture deleteIncidentTeamAsync(String teamId) { * 404 Not Found - * 429 Too many requests - * + * + * @deprecated */ + @Deprecated public ApiResponse deleteIncidentTeamWithHttpInfo(String teamId) throws ApiException { // Check if unstable operation is enabled String operationId = "deleteIncidentTeam"; @@ -295,7 +311,9 @@ public ApiResponse deleteIncidentTeamWithHttpInfo(String teamId) throws Ap * * @param teamId The ID of the incident team. (required) * @return CompletableFuture<ApiResponse<Void>> + * @deprecated */ + @Deprecated public CompletableFuture> deleteIncidentTeamWithHttpInfoAsync(String teamId) { // Check if unstable operation is enabled String operationId = "deleteIncidentTeam"; @@ -376,7 +394,9 @@ public GetIncidentTeamOptionalParameters include(IncidentRelatedObject include) * @param teamId The ID of the incident team. (required) * @return IncidentTeamResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public IncidentTeamResponse getIncidentTeam(String teamId) throws ApiException { return getIncidentTeamWithHttpInfo(teamId, new GetIncidentTeamOptionalParameters()).getData(); } @@ -388,7 +408,9 @@ public IncidentTeamResponse getIncidentTeam(String teamId) throws ApiException { * * @param teamId The ID of the incident team. (required) * @return CompletableFuture<IncidentTeamResponse> + * @deprecated */ + @Deprecated public CompletableFuture getIncidentTeamAsync(String teamId) { return getIncidentTeamWithHttpInfoAsync(teamId, new GetIncidentTeamOptionalParameters()) .thenApply( @@ -406,7 +428,9 @@ public CompletableFuture getIncidentTeamAsync(String teamI * @param parameters Optional parameters for the request. * @return IncidentTeamResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public IncidentTeamResponse getIncidentTeam( String teamId, GetIncidentTeamOptionalParameters parameters) throws ApiException { return getIncidentTeamWithHttpInfo(teamId, parameters).getData(); @@ -420,7 +444,9 @@ public IncidentTeamResponse getIncidentTeam( * @param teamId The ID of the incident team. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<IncidentTeamResponse> + * @deprecated */ + @Deprecated public CompletableFuture getIncidentTeamAsync( String teamId, GetIncidentTeamOptionalParameters parameters) { return getIncidentTeamWithHttpInfoAsync(teamId, parameters) @@ -449,7 +475,10 @@ public CompletableFuture getIncidentTeamAsync( * 404 Not Found - * 429 Too many requests - * + * + * @deprecated */ + @Deprecated public ApiResponse getIncidentTeamWithHttpInfo( String teamId, GetIncidentTeamOptionalParameters parameters) throws ApiException { // Check if unstable operation is enabled @@ -505,7 +534,9 @@ public ApiResponse getIncidentTeamWithHttpInfo( * @param teamId The ID of the incident team. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<ApiResponse<IncidentTeamResponse>> + * @deprecated */ + @Deprecated public CompletableFuture> getIncidentTeamWithHttpInfoAsync( String teamId, GetIncidentTeamOptionalParameters parameters) { // Check if unstable operation is enabled @@ -628,7 +659,9 @@ public ListIncidentTeamsOptionalParameters filter(String filter) { * * @return IncidentTeamsResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public IncidentTeamsResponse listIncidentTeams() throws ApiException { return listIncidentTeamsWithHttpInfo(new ListIncidentTeamsOptionalParameters()).getData(); } @@ -639,7 +672,9 @@ public IncidentTeamsResponse listIncidentTeams() throws ApiException { *

See {@link #listIncidentTeamsWithHttpInfoAsync}. * * @return CompletableFuture<IncidentTeamsResponse> + * @deprecated */ + @Deprecated public CompletableFuture listIncidentTeamsAsync() { return listIncidentTeamsWithHttpInfoAsync(new ListIncidentTeamsOptionalParameters()) .thenApply( @@ -656,7 +691,9 @@ public CompletableFuture listIncidentTeamsAsync() { * @param parameters Optional parameters for the request. * @return IncidentTeamsResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public IncidentTeamsResponse listIncidentTeams(ListIncidentTeamsOptionalParameters parameters) throws ApiException { return listIncidentTeamsWithHttpInfo(parameters).getData(); @@ -669,7 +706,9 @@ public IncidentTeamsResponse listIncidentTeams(ListIncidentTeamsOptionalParamete * * @param parameters Optional parameters for the request. * @return CompletableFuture<IncidentTeamsResponse> + * @deprecated */ + @Deprecated public CompletableFuture listIncidentTeamsAsync( ListIncidentTeamsOptionalParameters parameters) { return listIncidentTeamsWithHttpInfoAsync(parameters) @@ -698,7 +737,10 @@ public CompletableFuture listIncidentTeamsAsync( * 404 Not Found - * 429 Too many requests - * + * + * @deprecated */ + @Deprecated public ApiResponse listIncidentTeamsWithHttpInfo( ListIncidentTeamsOptionalParameters parameters) throws ApiException { // Check if unstable operation is enabled @@ -751,7 +793,9 @@ public ApiResponse listIncidentTeamsWithHttpInfo( * * @param parameters Optional parameters for the request. * @return CompletableFuture<ApiResponse<IncidentTeamsResponse>> + * @deprecated */ + @Deprecated public CompletableFuture> listIncidentTeamsWithHttpInfoAsync( ListIncidentTeamsOptionalParameters parameters) { // Check if unstable operation is enabled @@ -816,7 +860,9 @@ public CompletableFuture> listIncidentTeamsWi * @param body Incident Team Payload. (required) * @return IncidentTeamResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public IncidentTeamResponse updateIncidentTeam(String teamId, IncidentTeamUpdateRequest body) throws ApiException { return updateIncidentTeamWithHttpInfo(teamId, body).getData(); @@ -830,7 +876,9 @@ public IncidentTeamResponse updateIncidentTeam(String teamId, IncidentTeamUpdate * @param teamId The ID of the incident team. (required) * @param body Incident Team Payload. (required) * @return CompletableFuture<IncidentTeamResponse> + * @deprecated */ + @Deprecated public CompletableFuture updateIncidentTeamAsync( String teamId, IncidentTeamUpdateRequest body) { return updateIncidentTeamWithHttpInfoAsync(teamId, body) @@ -859,7 +907,10 @@ public CompletableFuture updateIncidentTeamAsync( * 404 Not Found - * 429 Too many requests - * + * + * @deprecated */ + @Deprecated public ApiResponse updateIncidentTeamWithHttpInfo( String teamId, IncidentTeamUpdateRequest body) throws ApiException { // Check if unstable operation is enabled @@ -917,7 +968,9 @@ public ApiResponse updateIncidentTeamWithHttpInfo( * @param teamId The ID of the incident team. (required) * @param body Incident Team Payload. (required) * @return CompletableFuture<ApiResponse<IncidentTeamResponse>> + * @deprecated */ + @Deprecated public CompletableFuture> updateIncidentTeamWithHttpInfoAsync( String teamId, IncidentTeamUpdateRequest body) { // Check if unstable operation is enabled diff --git a/src/test/resources/com/datadog/api/client/v2/api/incident_teams.feature b/src/test/resources/com/datadog/api/client/v2/api/incident_teams.feature index bd7c93179fc..5bbb4926393 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/incident_teams.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/incident_teams.feature @@ -1,7 +1,8 @@ @endpoint(incident-teams) @endpoint(incident-teams-v2) Feature: Incident Teams - Create, update, delete and retrieve teams which can be associated with - incidents. + The Incident Teams endpoints are deprecated. See the [Teams API + endpoints](https://docs.datadoghq.com/api/latest/teams/) to create, + update, delete, and retrieve teams which can be associated with incidents. Background: Given a valid "apiKeyAuth" key in the system