diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index bed8d5118405..e1fcef0a81a5 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 @@ -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 @@ -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. diff --git a/features/v2/cloud_cost_management.feature b/features/v2/cloud_cost_management.feature index a8693074a7d2..57849f54f3c7 100644 --- a/features/v2/cloud_cost_management.feature +++ b/features/v2/cloud_cost_management.feature @@ -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 @@ -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 @@ -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 diff --git a/services/cloud_cost_management/src/v2/CloudCostManagementApi.ts b/services/cloud_cost_management/src/v2/CloudCostManagementApi.ts index 9f71c8d4891b..ab3dc3f61d89 100644 --- a/services/cloud_cost_management/src/v2/CloudCostManagementApi.ts +++ b/services/cloud_cost_management/src/v2/CloudCostManagementApi.ts @@ -692,16 +692,6 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CloudCostManagementApi.v2.deleteCustomForecast" - ] - ) { - throw new Error( - "Unstable operation 'deleteCustomForecast' is disabled. Enable it by setting `configuration.unstableOperations['CloudCostManagementApi.v2.deleteCustomForecast'] = true`", - ); - } - // verify required parameter 'budgetId' is not null or undefined if (budgetId === null || budgetId === undefined) { throw new RequiredError("budgetId", "deleteCustomForecast"); @@ -2327,14 +2317,6 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CloudCostManagementApi.v2.getCustomForecast"] - ) { - throw new Error( - "Unstable operation 'getCustomForecast' is disabled. Enable it by setting `configuration.unstableOperations['CloudCostManagementApi.v2.getCustomForecast'] = true`", - ); - } - // verify required parameter 'budgetId' is not null or undefined if (budgetId === null || budgetId === undefined) { throw new RequiredError("budgetId", "getCustomForecast"); @@ -4222,16 +4204,6 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CloudCostManagementApi.v2.upsertCustomForecast" - ] - ) { - throw new Error( - "Unstable operation 'upsertCustomForecast' is disabled. Enable it by setting `configuration.unstableOperations['CloudCostManagementApi.v2.upsertCustomForecast'] = true`", - ); - } - // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { throw new RequiredError("body", "upsertCustomForecast");