From 6eaaaeef313d389c9daa601ac95c55a777928b53 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 23 Jan 2026 14:09:26 +0000 Subject: [PATCH] Regenerate client from commit 0fee65c of spec repo --- .generator/schemas/v2/openapi.yaml | 2 +- .../v2/cloud-cost-management/GetBudget.java | 4 +-- .../client/v2/api/CloudCostManagementApi.java | 25 +++++++++---------- src/test/java/com/datadog/api/Undo.java | 6 ++++- src/test/java/com/datadog/api/World.java | 16 +++++++++--- 5 files changed, 32 insertions(+), 21 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index de9b3ca4f4d..55cdf706319 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -71267,7 +71267,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BudgetValidationRequest' + $ref: '#/components/schemas/BudgetWithEntries' description: OK '429': $ref: '#/components/responses/TooManyRequestsResponse' diff --git a/examples/v2/cloud-cost-management/GetBudget.java b/examples/v2/cloud-cost-management/GetBudget.java index 759d4628345..cbbbd414fe4 100644 --- a/examples/v2/cloud-cost-management/GetBudget.java +++ b/examples/v2/cloud-cost-management/GetBudget.java @@ -3,7 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.CloudCostManagementApi; -import com.datadog.api.client.v2.model.BudgetValidationRequest; +import com.datadog.api.client.v2.model.BudgetWithEntries; public class Example { public static void main(String[] args) { @@ -11,7 +11,7 @@ public static void main(String[] args) { CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient); try { - BudgetValidationRequest result = apiInstance.getBudget("budget_id"); + BudgetWithEntries result = apiInstance.getBudget("budget_id"); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CloudCostManagementApi#getBudget"); diff --git a/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java index fe16ca198f5..c9eeeecd2df 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java @@ -1712,10 +1712,10 @@ public CompletableFuture> deleteTagPipelinesRulesetWithHttpInf *

See {@link #getBudgetWithHttpInfo}. * * @param budgetId Budget id. (required) - * @return BudgetValidationRequest + * @return BudgetWithEntries * @throws ApiException if fails to make API call */ - public BudgetValidationRequest getBudget(String budgetId) throws ApiException { + public BudgetWithEntries getBudget(String budgetId) throws ApiException { return getBudgetWithHttpInfo(budgetId).getData(); } @@ -1725,9 +1725,9 @@ public BudgetValidationRequest getBudget(String budgetId) throws ApiException { *

See {@link #getBudgetWithHttpInfoAsync}. * * @param budgetId Budget id. (required) - * @return CompletableFuture<BudgetValidationRequest> + * @return CompletableFuture<BudgetWithEntries> */ - public CompletableFuture getBudgetAsync(String budgetId) { + public CompletableFuture getBudgetAsync(String budgetId) { return getBudgetWithHttpInfoAsync(budgetId) .thenApply( response -> { @@ -1739,7 +1739,7 @@ public CompletableFuture getBudgetAsync(String budgetId * Get a budget * * @param budgetId Budget id. (required) - * @return ApiResponse<BudgetValidationRequest> + * @return ApiResponse<BudgetWithEntries> * @throws ApiException if fails to make API call * @http.response.details * @@ -1749,8 +1749,7 @@ public CompletableFuture getBudgetAsync(String budgetId * *
429 Too many requests -
*/ - public ApiResponse getBudgetWithHttpInfo(String budgetId) - throws ApiException { + public ApiResponse getBudgetWithHttpInfo(String budgetId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'budgetId' is set @@ -1782,7 +1781,7 @@ public ApiResponse getBudgetWithHttpInfo(String budgetI localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -1791,15 +1790,15 @@ public ApiResponse getBudgetWithHttpInfo(String budgetI *

See {@link #getBudgetWithHttpInfo}. * * @param budgetId Budget id. (required) - * @return CompletableFuture<ApiResponse<BudgetValidationRequest>> + * @return CompletableFuture<ApiResponse<BudgetWithEntries>> */ - public CompletableFuture> getBudgetWithHttpInfoAsync( + public CompletableFuture> getBudgetWithHttpInfoAsync( String budgetId) { Object localVarPostBody = null; // verify the required parameter 'budgetId' is set if (budgetId == null) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( 400, "Missing the required parameter 'budgetId' when calling getBudget")); @@ -1824,7 +1823,7 @@ public CompletableFuture> getBudgetWithHttp new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; } @@ -1836,7 +1835,7 @@ public CompletableFuture> getBudgetWithHttp localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** diff --git a/src/test/java/com/datadog/api/Undo.java b/src/test/java/com/datadog/api/Undo.java index b92c71990a6..30b8016b9af 100644 --- a/src/test/java/com/datadog/api/Undo.java +++ b/src/test/java/com/datadog/api/Undo.java @@ -30,7 +30,11 @@ public static class Parameter { public List parameters; public Map getRequestParameters( - Object responseData, Object requestData, Method requestBuilder, ObjectMapper mapper, Map pathParameters) { + Object responseData, + Object requestData, + Method requestBuilder, + ObjectMapper mapper, + Map pathParameters) { Map requestParams = new HashMap(); for (int i = 0; i < parameters.size(); i++) { Undo.UndoMethod.Parameter p = parameters.get(i); diff --git a/src/test/java/com/datadog/api/World.java b/src/test/java/com/datadog/api/World.java index 275da232dc6..7cf1d7e8ce3 100644 --- a/src/test/java/com/datadog/api/World.java +++ b/src/test/java/com/datadog/api/World.java @@ -274,7 +274,7 @@ public void newRequest(String name) { } } parametersArray = new ArrayList<>(); - pathParameters = new HashMap<>(); // Clear path parameters for new request + pathParameters = new HashMap<>(); // Clear path parameters for new request } public void addRequestParameter(String parameterName, String value) @@ -458,7 +458,9 @@ public void given(String apiVersion, Given step) throws Exception { Undo undoSettings = UndoAction.UndoAction().getUndo(apiVersion, step.getOperationName()); if (undoSettings != null) { - undo.add(getRequestUndo(apiVersion, undoSettings, responseData, givenParametersArray.get(0), pathParameters)); + undo.add( + getRequestUndo( + apiVersion, undoSettings, responseData, givenParametersArray.get(0), pathParameters)); } if (step.source != null) { @@ -471,7 +473,11 @@ public void given(String apiVersion, Given step) throws Exception { } public Callable getRequestUndo( - String apiVersion, Undo undoSettings, Object responseData, Object requestData, Map pathParameters) + String apiVersion, + Undo undoSettings, + Object responseData, + Object requestData, + Map pathParameters) throws Exception { // find API service based on undo tag value Class undoAPIClass = @@ -579,7 +585,9 @@ public void sendRequest() throws Exception { } catch (Exception e) { throw new Exception(e.getCause()); } - undo.add(getRequestUndo(apiVersion, undoSettings, responseData, parametersArray.get(0), pathParameters)); + undo.add( + getRequestUndo( + apiVersion, undoSettings, responseData, parametersArray.get(0), pathParameters)); } }