diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index bed8d5118..e1fcef0a8 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/examples/v2_cloud-cost-management_DeleteCustomForecast.rs b/examples/v2_cloud-cost-management_DeleteCustomForecast.rs index 38499640f..41dfd70e2 100644 --- a/examples/v2_cloud-cost-management_DeleteCustomForecast.rs +++ b/examples/v2_cloud-cost-management_DeleteCustomForecast.rs @@ -4,8 +4,7 @@ use datadog_api_client::datadogV2::api_cloud_cost_management::CloudCostManagemen #[tokio::main] async fn main() { - let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.DeleteCustomForecast", true); + let configuration = datadog::Configuration::new(); let api = CloudCostManagementAPI::with_config(configuration); let resp = api.delete_custom_forecast("budget_id".to_string()).await; if let Ok(value) = resp { diff --git a/examples/v2_cloud-cost-management_GetCustomForecast.rs b/examples/v2_cloud-cost-management_GetCustomForecast.rs index 22ac179cd..20db36426 100644 --- a/examples/v2_cloud-cost-management_GetCustomForecast.rs +++ b/examples/v2_cloud-cost-management_GetCustomForecast.rs @@ -4,8 +4,7 @@ use datadog_api_client::datadogV2::api_cloud_cost_management::CloudCostManagemen #[tokio::main] async fn main() { - let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.GetCustomForecast", true); + let configuration = datadog::Configuration::new(); let api = CloudCostManagementAPI::with_config(configuration); let resp = api.get_custom_forecast("budget_id".to_string()).await; if let Ok(value) = resp { diff --git a/examples/v2_cloud-cost-management_UpsertCustomForecast.rs b/examples/v2_cloud-cost-management_UpsertCustomForecast.rs index 72491dfb4..cf6428554 100644 --- a/examples/v2_cloud-cost-management_UpsertCustomForecast.rs +++ b/examples/v2_cloud-cost-management_UpsertCustomForecast.rs @@ -27,8 +27,7 @@ async fn main() { ) .id("".to_string()), ); - let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.UpsertCustomForecast", true); + let configuration = datadog::Configuration::new(); let api = CloudCostManagementAPI::with_config(configuration); let resp = api.upsert_custom_forecast(body).await; if let Ok(value) = resp { diff --git a/src/datadog/configuration.rs b/src/datadog/configuration.rs index e61234317..13bc308ea 100644 --- a/src/datadog/configuration.rs +++ b/src/datadog/configuration.rs @@ -498,7 +498,6 @@ impl Default for Configuration { ("v2.get_code_coverage_branch_summary".to_owned(), false), ("v2.get_code_coverage_commit_summary".to_owned(), false), ("v2.get_rule_based_view".to_owned(), false), - ("v2.delete_custom_forecast".to_owned(), false), ("v2.get_commitments_commitment_list".to_owned(), false), ("v2.get_commitments_coverage_scalar".to_owned(), false), ("v2.get_commitments_coverage_timeseries".to_owned(), false), @@ -515,7 +514,6 @@ impl Default for Configuration { ), ("v2.get_cost_anomaly".to_owned(), false), ("v2.get_cost_tag_metadata_currency".to_owned(), false), - ("v2.get_custom_forecast".to_owned(), false), ("v2.list_cost_anomalies".to_owned(), false), ("v2.list_cost_tag_key_sources".to_owned(), false), ("v2.list_cost_tag_metadata".to_owned(), false), @@ -523,7 +521,6 @@ impl Default for Configuration { ("v2.list_cost_tag_metadata_months".to_owned(), false), ("v2.list_cost_tag_metadata_orchestrators".to_owned(), false), ("v2.search_cost_recommendations".to_owned(), false), - ("v2.upsert_custom_forecast".to_owned(), false), ("v2.create_ownership_feedback".to_owned(), false), ("v2.get_ownership_evidence".to_owned(), false), ("v2.get_ownership_inference".to_owned(), false), diff --git a/src/datadogV2/api/api_cloud_cost_management.rs b/src/datadogV2/api/api_cloud_cost_management.rs index feee19fc4..99fa9664c 100644 --- a/src/datadogV2/api/api_cloud_cost_management.rs +++ b/src/datadogV2/api/api_cloud_cost_management.rs @@ -2726,14 +2726,6 @@ impl CloudCostManagementAPI { ) -> Result, datadog::Error> { let local_configuration = &self.config; let operation_id = "v2.delete_custom_forecast"; - if local_configuration.is_unstable_operation_enabled(operation_id) { - warn!("Using unstable operation {operation_id}"); - } else { - let local_error = datadog::UnstableOperationDisabledError { - msg: "Operation 'v2.delete_custom_forecast' is not enabled".to_string(), - }; - return Err(datadog::Error::UnstableOperationDisabledError(local_error)); - } let local_client = &self.client; @@ -5469,14 +5461,6 @@ impl CloudCostManagementAPI { > { let local_configuration = &self.config; let operation_id = "v2.get_custom_forecast"; - if local_configuration.is_unstable_operation_enabled(operation_id) { - warn!("Using unstable operation {operation_id}"); - } else { - let local_error = datadog::UnstableOperationDisabledError { - msg: "Operation 'v2.get_custom_forecast' is not enabled".to_string(), - }; - return Err(datadog::Error::UnstableOperationDisabledError(local_error)); - } let local_client = &self.client; @@ -9909,14 +9893,6 @@ impl CloudCostManagementAPI { > { let local_configuration = &self.config; let operation_id = "v2.upsert_custom_forecast"; - if local_configuration.is_unstable_operation_enabled(operation_id) { - warn!("Using unstable operation {operation_id}"); - } else { - let local_error = datadog::UnstableOperationDisabledError { - msg: "Operation 'v2.upsert_custom_forecast' is not enabled".to_string(), - }; - return Err(datadog::Error::UnstableOperationDisabledError(local_error)); - } let local_client = &self.client; diff --git a/tests/scenarios/features/v2/cloud_cost_management.feature b/tests/scenarios/features/v2/cloud_cost_management.feature index a8693074a..57849f54f 100644 --- a/tests/scenarios/features/v2/cloud_cost_management.feature +++ b/tests/scenarios/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