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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
29 changes: 12 additions & 17 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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,

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 .
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -69,7 +71,9 @@ public IncidentTeamResponse createIncidentTeam(IncidentTeamCreateRequest body)
*
* @param body Incident Team Payload. (required)
* @return CompletableFuture<IncidentTeamResponse>
* @deprecated
*/
@Deprecated
public CompletableFuture<IncidentTeamResponse> createIncidentTeamAsync(
IncidentTeamCreateRequest body) {
return createIncidentTeamWithHttpInfoAsync(body)
Expand All @@ -96,7 +100,10 @@ public CompletableFuture<IncidentTeamResponse> createIncidentTeamAsync(
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<IncidentTeamResponse> createIncidentTeamWithHttpInfo(
IncidentTeamCreateRequest body) throws ApiException {
// Check if unstable operation is enabled
Expand Down Expand Up @@ -145,7 +152,9 @@ public ApiResponse<IncidentTeamResponse> createIncidentTeamWithHttpInfo(
*
* @param body Incident Team Payload. (required)
* @return CompletableFuture&lt;ApiResponse&lt;IncidentTeamResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<IncidentTeamResponse>> createIncidentTeamWithHttpInfoAsync(
IncidentTeamCreateRequest body) {
// Check if unstable operation is enabled
Expand Down Expand Up @@ -207,7 +216,9 @@ public CompletableFuture<ApiResponse<IncidentTeamResponse>> 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);
}
Expand All @@ -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<Void> deleteIncidentTeamAsync(String teamId) {
return deleteIncidentTeamWithHttpInfoAsync(teamId)
.thenApply(
Expand All @@ -245,7 +258,10 @@ public CompletableFuture<Void> deleteIncidentTeamAsync(String teamId) {
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<Void> deleteIncidentTeamWithHttpInfo(String teamId) throws ApiException {
// Check if unstable operation is enabled
String operationId = "deleteIncidentTeam";
Expand Down Expand Up @@ -295,7 +311,9 @@ public ApiResponse<Void> deleteIncidentTeamWithHttpInfo(String teamId) throws Ap
*
* @param teamId The ID of the incident team. (required)
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<Void>> deleteIncidentTeamWithHttpInfoAsync(String teamId) {
// Check if unstable operation is enabled
String operationId = "deleteIncidentTeam";
Expand Down Expand Up @@ -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();
}
Expand All @@ -388,7 +408,9 @@ public IncidentTeamResponse getIncidentTeam(String teamId) throws ApiException {
*
* @param teamId The ID of the incident team. (required)
* @return CompletableFuture&lt;IncidentTeamResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<IncidentTeamResponse> getIncidentTeamAsync(String teamId) {
return getIncidentTeamWithHttpInfoAsync(teamId, new GetIncidentTeamOptionalParameters())
.thenApply(
Expand All @@ -406,7 +428,9 @@ public CompletableFuture<IncidentTeamResponse> 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();
Expand All @@ -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&lt;IncidentTeamResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<IncidentTeamResponse> getIncidentTeamAsync(
String teamId, GetIncidentTeamOptionalParameters parameters) {
return getIncidentTeamWithHttpInfoAsync(teamId, parameters)
Expand Down Expand Up @@ -449,7 +475,10 @@ public CompletableFuture<IncidentTeamResponse> getIncidentTeamAsync(
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<IncidentTeamResponse> getIncidentTeamWithHttpInfo(
String teamId, GetIncidentTeamOptionalParameters parameters) throws ApiException {
// Check if unstable operation is enabled
Expand Down Expand Up @@ -505,7 +534,9 @@ public ApiResponse<IncidentTeamResponse> getIncidentTeamWithHttpInfo(
* @param teamId The ID of the incident team. (required)
* @param parameters Optional parameters for the request.
* @return CompletableFuture&lt;ApiResponse&lt;IncidentTeamResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<IncidentTeamResponse>> getIncidentTeamWithHttpInfoAsync(
String teamId, GetIncidentTeamOptionalParameters parameters) {
// Check if unstable operation is enabled
Expand Down Expand Up @@ -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();
}
Expand All @@ -639,7 +672,9 @@ public IncidentTeamsResponse listIncidentTeams() throws ApiException {
* <p>See {@link #listIncidentTeamsWithHttpInfoAsync}.
*
* @return CompletableFuture&lt;IncidentTeamsResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<IncidentTeamsResponse> listIncidentTeamsAsync() {
return listIncidentTeamsWithHttpInfoAsync(new ListIncidentTeamsOptionalParameters())
.thenApply(
Expand All @@ -656,7 +691,9 @@ public CompletableFuture<IncidentTeamsResponse> 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();
Expand All @@ -669,7 +706,9 @@ public IncidentTeamsResponse listIncidentTeams(ListIncidentTeamsOptionalParamete
*
* @param parameters Optional parameters for the request.
* @return CompletableFuture&lt;IncidentTeamsResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<IncidentTeamsResponse> listIncidentTeamsAsync(
ListIncidentTeamsOptionalParameters parameters) {
return listIncidentTeamsWithHttpInfoAsync(parameters)
Expand Down Expand Up @@ -698,7 +737,10 @@ public CompletableFuture<IncidentTeamsResponse> listIncidentTeamsAsync(
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<IncidentTeamsResponse> listIncidentTeamsWithHttpInfo(
ListIncidentTeamsOptionalParameters parameters) throws ApiException {
// Check if unstable operation is enabled
Expand Down Expand Up @@ -751,7 +793,9 @@ public ApiResponse<IncidentTeamsResponse> listIncidentTeamsWithHttpInfo(
*
* @param parameters Optional parameters for the request.
* @return CompletableFuture&lt;ApiResponse&lt;IncidentTeamsResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<IncidentTeamsResponse>> listIncidentTeamsWithHttpInfoAsync(
ListIncidentTeamsOptionalParameters parameters) {
// Check if unstable operation is enabled
Expand Down Expand Up @@ -816,7 +860,9 @@ public CompletableFuture<ApiResponse<IncidentTeamsResponse>> 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();
Expand All @@ -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&lt;IncidentTeamResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<IncidentTeamResponse> updateIncidentTeamAsync(
String teamId, IncidentTeamUpdateRequest body) {
return updateIncidentTeamWithHttpInfoAsync(teamId, body)
Expand Down Expand Up @@ -859,7 +907,10 @@ public CompletableFuture<IncidentTeamResponse> updateIncidentTeamAsync(
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<IncidentTeamResponse> updateIncidentTeamWithHttpInfo(
String teamId, IncidentTeamUpdateRequest body) throws ApiException {
// Check if unstable operation is enabled
Expand Down Expand Up @@ -917,7 +968,9 @@ public ApiResponse<IncidentTeamResponse> updateIncidentTeamWithHttpInfo(
* @param teamId The ID of the incident team. (required)
* @param body Incident Team Payload. (required)
* @return CompletableFuture&lt;ApiResponse&lt;IncidentTeamResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<IncidentTeamResponse>> updateIncidentTeamWithHttpInfoAsync(
String teamId, IncidentTeamUpdateRequest body) {
// Check if unstable operation is enabled
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down