Skip to content

Commit be0d56b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix GetBudget endpoint to return BudgetWithEntries instead of BudgetValidationRequest (#3119)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e1bb661 commit be0d56b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71515,7 +71515,7 @@ paths:
7151571515
content:
7151671516
application/json:
7151771517
schema:
71518-
$ref: '#/components/schemas/BudgetValidationRequest'
71518+
$ref: '#/components/schemas/BudgetWithEntries'
7151971519
description: OK
7152071520
'429':
7152171521
$ref: '#/components/responses/TooManyRequestsResponse'

src/datadog_api_client/v2/api/cloud_cost_management_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def __init__(self, api_client=None):
320320

321321
self._get_budget_endpoint = _Endpoint(
322322
settings={
323-
"response_type": (BudgetValidationRequest,),
323+
"response_type": (BudgetWithEntries,),
324324
"auth": ["apiKeyAuth", "appKeyAuth"],
325325
"endpoint_path": "/api/v2/cost/budget/{budget_id}",
326326
"operation_id": "get_budget",
@@ -1095,14 +1095,14 @@ def delete_tag_pipelines_ruleset(
10951095
def get_budget(
10961096
self,
10971097
budget_id: str,
1098-
) -> BudgetValidationRequest:
1098+
) -> BudgetWithEntries:
10991099
"""Get budget.
11001100
11011101
Get a budget
11021102
11031103
:param budget_id: Budget id.
11041104
:type budget_id: str
1105-
:rtype: BudgetValidationRequest
1105+
:rtype: BudgetWithEntries
11061106
"""
11071107
kwargs: Dict[str, Any] = {}
11081108
kwargs["budget_id"] = budget_id

0 commit comments

Comments
 (0)