Skip to content

incident-app: deprecate todos endpoints #2230

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

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:05.819748",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-04 19:29:37.604167",
"spec_repo_commit": "4b363b50"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-04 14:10:05.835266",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-04 19:29:37.620207",
"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
15 changes: 15 additions & 0 deletions lib/datadog_api_client/v2/api/incidents_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,14 @@ def create_incident_todo(incident_id, body, opts = {})
#
# Create an incident todo.
#
# @deprecated This API is deprecated.
#
# @param incident_id [String] The UUID of the incident.
# @param body [IncidentTodoCreateRequest] Incident todo payload.
# @param opts [Hash] the optional parameters
# @return [Array<(IncidentTodoResponse, Integer, Hash)>] IncidentTodoResponse data, response status code and response headers
def create_incident_todo_with_http_info(incident_id, body, opts = {})
warn "[DEPRECATION] `CreateIncidentTodo` is deprecated."
unstable_enabled = @api_client.config.unstable_operations["v2.create_incident_todo".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_incident_todo")
Expand Down Expand Up @@ -484,11 +487,14 @@ def delete_incident_todo(incident_id, todo_id, opts = {})
#
# Delete an incident todo.
#
# @deprecated This API is deprecated.
#
# @param incident_id [String] The UUID of the incident.
# @param todo_id [String] The UUID of the incident todo.
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def delete_incident_todo_with_http_info(incident_id, todo_id, opts = {})
warn "[DEPRECATION] `DeleteIncidentTodo` is deprecated."
unstable_enabled = @api_client.config.unstable_operations["v2.delete_incident_todo".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_incident_todo")
Expand Down Expand Up @@ -780,11 +786,14 @@ def get_incident_todo(incident_id, todo_id, opts = {})
#
# Get incident todo details.
#
# @deprecated This API is deprecated.
#
# @param incident_id [String] The UUID of the incident.
# @param todo_id [String] The UUID of the incident todo.
# @param opts [Hash] the optional parameters
# @return [Array<(IncidentTodoResponse, Integer, Hash)>] IncidentTodoResponse data, response status code and response headers
def get_incident_todo_with_http_info(incident_id, todo_id, opts = {})
warn "[DEPRECATION] `GetIncidentTodo` is deprecated."
unstable_enabled = @api_client.config.unstable_operations["v2.get_incident_todo".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_incident_todo")
Expand Down Expand Up @@ -1166,10 +1175,13 @@ def list_incident_todos(incident_id, opts = {})
#
# Get all todos for an incident.
#
# @deprecated This API is deprecated.
#
# @param incident_id [String] The UUID of the incident.
# @param opts [Hash] the optional parameters
# @return [Array<(IncidentTodoListResponse, Integer, Hash)>] IncidentTodoListResponse data, response status code and response headers
def list_incident_todos_with_http_info(incident_id, opts = {})
warn "[DEPRECATION] `ListIncidentTodos` is deprecated."
unstable_enabled = @api_client.config.unstable_operations["v2.list_incident_todos".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_incident_todos")
Expand Down Expand Up @@ -1657,12 +1669,15 @@ def update_incident_todo(incident_id, todo_id, body, opts = {})
#
# Update an incident todo.
#
# @deprecated This API is deprecated.
#
# @param incident_id [String] The UUID of the incident.
# @param todo_id [String] The UUID of the incident todo.
# @param body [IncidentTodoPatchRequest] Incident todo payload.
# @param opts [Hash] the optional parameters
# @return [Array<(IncidentTodoResponse, Integer, Hash)>] IncidentTodoResponse data, response status code and response headers
def update_incident_todo_with_http_info(incident_id, todo_id, body, opts = {})
warn "[DEPRECATION] `UpdateIncidentTodo` is deprecated."
unstable_enabled = @api_client.config.unstable_operations["v2.update_incident_todo".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_incident_todo")
Expand Down
Loading