Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incident-app: deprecate todos endpoints #2914

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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.6",
"regenerated": "2025-02-04 14:10:02.073714",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-04 19:29:37.538977",
"spec_repo_commit": "4b363b50"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-04 14:10:02.090085",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-04 19:29:37.553939",
"spec_repo_commit": "4b363b50"
}
}
}
5 changes: 5 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36988,6 +36988,7 @@ paths:
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/incidents/{incident_id}/relationships/todos:
get:
deprecated: true
description: Get all todos for an incident.
operationId: ListIncidentTodos
parameters:
Expand Down Expand Up @@ -37025,6 +37026,7 @@ paths:

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
post:
deprecated: true
description: Create an incident todo.
operationId: CreateIncidentTodo
parameters:
Expand Down Expand Up @@ -37071,6 +37073,7 @@ paths:
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}:
delete:
deprecated: true
description: Delete an incident todo.
operationId: DeleteIncidentTodo
parameters:
Expand Down Expand Up @@ -37105,6 +37108,7 @@ paths:

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
get:
deprecated: true
description: Get incident todo details.
operationId: GetIncidentTodo
parameters:
Expand Down Expand Up @@ -37143,6 +37147,7 @@ paths:

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
patch:
deprecated: true
description: Update an incident todo.
operationId: UpdateIncidentTodo
parameters:
Expand Down
10 changes: 10 additions & 0 deletions api/datadogV2/api_incidents.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ func (a *IncidentsApi) CreateIncidentIntegration(ctx _context.Context, incidentI

// CreateIncidentTodo Create an incident todo.
// Create an incident todo.
//
// Deprecated: This API is deprecated.
func (a *IncidentsApi) CreateIncidentTodo(ctx _context.Context, incidentId string, body IncidentTodoCreateRequest) (IncidentTodoResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
Expand Down Expand Up @@ -490,6 +492,8 @@ func (a *IncidentsApi) DeleteIncidentIntegration(ctx _context.Context, incidentI

// DeleteIncidentTodo Delete an incident todo.
// Delete an incident todo.
//
// Deprecated: This API is deprecated.
func (a *IncidentsApi) DeleteIncidentTodo(ctx _context.Context, incidentId string, todoId string) (*_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodDelete
Expand Down Expand Up @@ -820,6 +824,8 @@ func (a *IncidentsApi) GetIncidentIntegration(ctx _context.Context, incidentId s

// GetIncidentTodo Get incident todo details.
// Get incident todo details.
//
// Deprecated: This API is deprecated.
func (a *IncidentsApi) GetIncidentTodo(ctx _context.Context, incidentId string, todoId string) (IncidentTodoResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
Expand Down Expand Up @@ -1179,6 +1185,8 @@ func (a *IncidentsApi) ListIncidentIntegrations(ctx _context.Context, incidentId

// ListIncidentTodos Get a list of an incident's todos.
// Get all todos for an incident.
//
// Deprecated: This API is deprecated.
func (a *IncidentsApi) ListIncidentTodos(ctx _context.Context, incidentId string) (IncidentTodoListResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
Expand Down Expand Up @@ -2045,6 +2053,8 @@ func (a *IncidentsApi) UpdateIncidentIntegration(ctx _context.Context, incidentI

// UpdateIncidentTodo Update an incident todo.
// Update an incident todo.
//
// Deprecated: This API is deprecated.
func (a *IncidentsApi) UpdateIncidentTodo(ctx _context.Context, incidentId string, todoId string, body IncidentTodoPatchRequest) (IncidentTodoResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPatch
Expand Down
Loading