Skip to content
Merged
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
9 changes: 0 additions & 9 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129641,9 +129641,6 @@ paths:
summary: Create or replace a budget's custom forecast
tags:
- Cloud Cost Management
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/cost/budget/validate:
post:
description: Validate a budget configuration without creating or modifying it
Expand Down Expand Up @@ -129837,9 +129834,6 @@ paths:
summary: Delete a budget's custom forecast
tags:
- Cloud Cost Management
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
get:
description: Get the custom forecast for a budget.
operationId: GetCustomForecast
Expand Down Expand Up @@ -129887,9 +129881,6 @@ paths:
summary: Get a budget's custom forecast
tags:
- Cloud Cost Management
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/cost/budgets:
get:
description: List budgets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.deleteCustomForecast", true);
CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient);

try {
Expand Down
1 change: 0 additions & 1 deletion examples/v2/cloud-cost-management/GetCustomForecast.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.getCustomForecast", true);
CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient);

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.upsertCustomForecast", true);
CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient);

CustomForecastUpsertRequest body =
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,6 @@ public class ApiClient {
put("v2.getCodeCoverageBranchSummary", false);
put("v2.getCodeCoverageCommitSummary", false);
put("v2.getRuleBasedView", false);
put("v2.deleteCustomForecast", false);
put("v2.getCommitmentsCommitmentList", false);
put("v2.getCommitmentsCoverageScalar", false);
put("v2.getCommitmentsCoverageTimeseries", false);
Expand All @@ -1013,15 +1012,13 @@ public class ApiClient {
put("v2.getCommitmentsUtilizationTimeseries", false);
put("v2.getCostAnomaly", false);
put("v2.getCostTagMetadataCurrency", false);
put("v2.getCustomForecast", false);
put("v2.listCostAnomalies", false);
put("v2.listCostTagKeySources", false);
put("v2.listCostTagMetadata", false);
put("v2.listCostTagMetadataMetrics", false);
put("v2.listCostTagMetadataMonths", false);
put("v2.listCostTagMetadataOrchestrators", false);
put("v2.searchCostRecommendations", false);
put("v2.upsertCustomForecast", false);
put("v2.createOwnershipFeedback", false);
put("v2.getOwnershipEvidence", false);
put("v2.getOwnershipInference", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1856,13 +1856,6 @@ public CompletableFuture<Void> deleteCustomForecastAsync(String budgetId) {
* </table>
*/
public ApiResponse<Void> deleteCustomForecastWithHttpInfo(String budgetId) throws ApiException {
// Check if unstable operation is enabled
String operationId = "deleteCustomForecast";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;

// verify the required parameter 'budgetId' is set
Expand Down Expand Up @@ -1907,16 +1900,6 @@ public ApiResponse<Void> deleteCustomForecastWithHttpInfo(String budgetId) throw
*/
public CompletableFuture<ApiResponse<Void>> deleteCustomForecastWithHttpInfoAsync(
String budgetId) {
// Check if unstable operation is enabled
String operationId = "deleteCustomForecast";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'budgetId' is set
Expand Down Expand Up @@ -6811,13 +6794,6 @@ public CompletableFuture<CustomForecastResponse> getCustomForecastAsync(String b
*/
public ApiResponse<CustomForecastResponse> getCustomForecastWithHttpInfo(String budgetId)
throws ApiException {
// Check if unstable operation is enabled
String operationId = "getCustomForecast";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;

// verify the required parameter 'budgetId' is set
Expand Down Expand Up @@ -6862,16 +6838,6 @@ public ApiResponse<CustomForecastResponse> getCustomForecastWithHttpInfo(String
*/
public CompletableFuture<ApiResponse<CustomForecastResponse>> getCustomForecastWithHttpInfoAsync(
String budgetId) {
// Check if unstable operation is enabled
String operationId = "getCustomForecast";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<CustomForecastResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'budgetId' is set
Expand Down Expand Up @@ -12370,13 +12336,6 @@ public CompletableFuture<CustomForecastResponse> upsertCustomForecastAsync(
*/
public ApiResponse<CustomForecastResponse> upsertCustomForecastWithHttpInfo(
CustomForecastUpsertRequest body) throws ApiException {
// Check if unstable operation is enabled
String operationId = "upsertCustomForecast";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = body;

// verify the required parameter 'body' is set
Expand Down Expand Up @@ -12419,16 +12378,6 @@ public ApiResponse<CustomForecastResponse> upsertCustomForecastWithHttpInfo(
*/
public CompletableFuture<ApiResponse<CustomForecastResponse>>
upsertCustomForecastWithHttpInfoAsync(CustomForecastUpsertRequest body) {
// Check if unstable operation is enabled
String operationId = "upsertCustomForecast";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<CustomForecastResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;

// verify the required parameter 'body' is set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,21 @@ Feature: Cloud Cost Management

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Create or replace a budget's custom forecast returns "Bad Request" response
Given operation "UpsertCustomForecast" enabled
And new "UpsertCustomForecast" request
Given new "UpsertCustomForecast" request
And body with value {"data": {"attributes": {"budget_uid": "00000000-0000-0000-0000-000000000001", "entries": [{"amount": 400, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}]}, "id": "", "type": "custom_forecast"}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Create or replace a budget's custom forecast returns "Not Found" response
Given operation "UpsertCustomForecast" enabled
And new "UpsertCustomForecast" request
Given new "UpsertCustomForecast" request
And body with value {"data": {"attributes": {"budget_uid": "00000000-0000-0000-0000-000000000001", "entries": [{"amount": 400, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}]}, "id": "", "type": "custom_forecast"}}
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Create or replace a budget's custom forecast returns "OK" response
Given operation "UpsertCustomForecast" enabled
And new "UpsertCustomForecast" request
Given new "UpsertCustomForecast" request
And body with value {"data": {"attributes": {"budget_uid": "00000000-0000-0000-0000-000000000001", "entries": [{"amount": 400, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}]}, "id": "", "type": "custom_forecast"}}
When the request is sent
Then the response status is 200 OK
Expand Down Expand Up @@ -237,24 +234,21 @@ Feature: Cloud Cost Management

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Delete a budget's custom forecast returns "Bad Request" response
Given operation "DeleteCustomForecast" enabled
And new "DeleteCustomForecast" request
Given new "DeleteCustomForecast" request
And request contains "budget_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Delete a budget's custom forecast returns "No Content" response
Given operation "DeleteCustomForecast" enabled
And new "DeleteCustomForecast" request
Given new "DeleteCustomForecast" request
And request contains "budget_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 204 No Content

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Delete a budget's custom forecast returns "Not Found" response
Given operation "DeleteCustomForecast" enabled
And new "DeleteCustomForecast" request
Given new "DeleteCustomForecast" request
And request contains "budget_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found
Expand Down Expand Up @@ -377,24 +371,21 @@ Feature: Cloud Cost Management

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get a budget's custom forecast returns "Bad Request" response
Given operation "GetCustomForecast" enabled
And new "GetCustomForecast" request
Given new "GetCustomForecast" request
And request contains "budget_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get a budget's custom forecast returns "Not Found" response
Given operation "GetCustomForecast" enabled
And new "GetCustomForecast" request
Given new "GetCustomForecast" request
And request contains "budget_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get a budget's custom forecast returns "OK" response
Given operation "GetCustomForecast" enabled
And new "GetCustomForecast" request
Given new "GetCustomForecast" request
And request contains "budget_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
Expand Down
Loading