Skip to content

Commit d66064d

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

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.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'

api/datadogV2/api_cloud_cost_management.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,11 +905,11 @@ func (a *CloudCostManagementApi) DeleteTagPipelinesRuleset(ctx _context.Context,
905905

906906
// GetBudget Get budget.
907907
// Get a budget
908-
func (a *CloudCostManagementApi) GetBudget(ctx _context.Context, budgetId string) (BudgetValidationRequest, *_nethttp.Response, error) {
908+
func (a *CloudCostManagementApi) GetBudget(ctx _context.Context, budgetId string) (BudgetWithEntries, *_nethttp.Response, error) {
909909
var (
910910
localVarHTTPMethod = _nethttp.MethodGet
911911
localVarPostBody interface{}
912-
localVarReturnValue BudgetValidationRequest
912+
localVarReturnValue BudgetWithEntries
913913
)
914914

915915
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudCostManagementApi.GetBudget")

0 commit comments

Comments
 (0)