From 665a4f1e471be670da92caeaa0ef993612be10e9 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 4 Feb 2025 19:30:09 +0000 Subject: [PATCH] Regenerate client from commit 4b363b50 of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 5 +++++ src/datadog_api_client/v2/api/incidents_api.py | 16 +++++++++++----- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 382dc7de6d..4e3a93ba72 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-04 14:10:04.791613", - "spec_repo_commit": "4fb9047a" + "regenerated": "2025-02-04 19:29:34.566192", + "spec_repo_commit": "4b363b50" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-04 14:10:04.806083", - "spec_repo_commit": "4fb9047a" + "regenerated": "2025-02-04 19:29:34.581175", + "spec_repo_commit": "4b363b50" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 831530e258..7789e709ec 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/src/datadog_api_client/v2/api/incidents_api.py b/src/datadog_api_client/v2/api/incidents_api.py index 26e8efb239..395c880af8 100644 --- a/src/datadog_api_client/v2/api/incidents_api.py +++ b/src/datadog_api_client/v2/api/incidents_api.py @@ -5,6 +5,7 @@ import collections from typing import Any, Dict, List, Union +import warnings from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint from datadog_api_client.configuration import Configuration @@ -741,7 +742,7 @@ def create_incident_todo( incident_id: str, body: IncidentTodoCreateRequest, ) -> IncidentTodoResponse: - """Create an incident todo. + """Create an incident todo. **Deprecated**. Create an incident todo. @@ -756,6 +757,7 @@ def create_incident_todo( kwargs["body"] = body + warnings.warn("create_incident_todo is deprecated", DeprecationWarning, stacklevel=2) return self._create_incident_todo_endpoint.call_with_http_info(**kwargs) def create_incident_type( @@ -819,7 +821,7 @@ def delete_incident_todo( incident_id: str, todo_id: str, ) -> None: - """Delete an incident todo. + """Delete an incident todo. **Deprecated**. Delete an incident todo. @@ -834,6 +836,7 @@ def delete_incident_todo( kwargs["todo_id"] = todo_id + warnings.warn("delete_incident_todo is deprecated", DeprecationWarning, stacklevel=2) return self._delete_incident_todo_endpoint.call_with_http_info(**kwargs) def delete_incident_type( @@ -904,7 +907,7 @@ def get_incident_todo( incident_id: str, todo_id: str, ) -> IncidentTodoResponse: - """Get incident todo details. + """Get incident todo details. **Deprecated**. Get incident todo details. @@ -919,6 +922,7 @@ def get_incident_todo( kwargs["todo_id"] = todo_id + warnings.warn("get_incident_todo is deprecated", DeprecationWarning, stacklevel=2) return self._get_incident_todo_endpoint.call_with_http_info(**kwargs) def get_incident_type( @@ -1063,7 +1067,7 @@ def list_incident_todos( self, incident_id: str, ) -> IncidentTodoListResponse: - """Get a list of an incident's todos. + """Get a list of an incident's todos. **Deprecated**. Get all todos for an incident. @@ -1074,6 +1078,7 @@ def list_incident_todos( kwargs: Dict[str, Any] = {} kwargs["incident_id"] = incident_id + warnings.warn("list_incident_todos is deprecated", DeprecationWarning, stacklevel=2) return self._list_incident_todos_endpoint.call_with_http_info(**kwargs) def list_incident_types( @@ -1286,7 +1291,7 @@ def update_incident_todo( todo_id: str, body: IncidentTodoPatchRequest, ) -> IncidentTodoResponse: - """Update an incident todo. + """Update an incident todo. **Deprecated**. Update an incident todo. @@ -1305,6 +1310,7 @@ def update_incident_todo( kwargs["body"] = body + warnings.warn("update_incident_todo is deprecated", DeprecationWarning, stacklevel=2) return self._update_incident_todo_endpoint.call_with_http_info(**kwargs) def update_incident_type(