From 22d4c2704b714d37d35e2d69a98c4fca909aabdd Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 22 Jun 2026 15:48:56 +0000 Subject: [PATCH] Regenerate client from commit 20c8623 of spec repo --- .generator/schemas/v2/openapi.yaml | 6 ++++++ src/datadogV2/api/api_cloud_cost_management.rs | 14 ++++++++++++++ tests/scenarios/function_mappings.rs | 4 ++++ 3 files changed, 24 insertions(+) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 99b25f0ac..e4a35d331 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -125771,6 +125771,12 @@ paths: name: filter[provider] schema: type: string + - description: When `true`, only return metrics for currently enabled accounts. When omitted or `false`, return all metrics present in tag metadata. Metrics not recognized by Cloud Cost Management are always excluded. + example: true + in: query + name: filter[enabled_metrics_only] + schema: + type: boolean responses: "200": content: diff --git a/src/datadogV2/api/api_cloud_cost_management.rs b/src/datadogV2/api/api_cloud_cost_management.rs index 9f35c8a9c..d7e81e40b 100644 --- a/src/datadogV2/api/api_cloud_cost_management.rs +++ b/src/datadogV2/api/api_cloud_cost_management.rs @@ -434,6 +434,8 @@ impl ListCostTagMetadataOptionalParams { pub struct ListCostTagMetadataMetricsOptionalParams { /// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive. pub filter_provider: Option, + /// When `true`, only return metrics for currently enabled accounts. When omitted or `false`, return all metrics present in tag metadata. Metrics not recognized by Cloud Cost Management are always excluded. + pub filter_enabled_metrics_only: Option, } impl ListCostTagMetadataMetricsOptionalParams { @@ -442,6 +444,11 @@ impl ListCostTagMetadataMetricsOptionalParams { self.filter_provider = Some(value); self } + /// When `true`, only return metrics for currently enabled accounts. When omitted or `false`, return all metrics present in tag metadata. Metrics not recognized by Cloud Cost Management are always excluded. + pub fn filter_enabled_metrics_only(mut self, value: bool) -> Self { + self.filter_enabled_metrics_only = Some(value); + self + } } /// ListCostTagMetadataOrchestratorsOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_cost_tag_metadata_orchestrators`] @@ -6500,6 +6507,7 @@ impl CloudCostManagementAPI { // unbox and build optional parameters let filter_provider = params.filter_provider; + let filter_enabled_metrics_only = params.filter_enabled_metrics_only; let local_client = &self.client; @@ -6516,6 +6524,12 @@ impl CloudCostManagementAPI { local_req_builder = local_req_builder.query(&[("filter[provider]", &local_query_param.to_string())]); }; + if let Some(ref local_query_param) = filter_enabled_metrics_only { + local_req_builder = local_req_builder.query(&[( + "filter[enabled_metrics_only]", + &local_query_param.to_string(), + )]); + }; // build headers let mut headers = HeaderMap::new(); diff --git a/tests/scenarios/function_mappings.rs b/tests/scenarios/function_mappings.rs index 4b2bcdac9..f23af2b92 100644 --- a/tests/scenarios/function_mappings.rs +++ b/tests/scenarios/function_mappings.rs @@ -32175,9 +32175,13 @@ fn test_v2_list_cost_tag_metadata_metrics( let filter_provider = _parameters .get("filter[provider]") .and_then(|param| Some(serde_json::from_value(param.clone()).unwrap())); + let filter_enabled_metrics_only = _parameters + .get("filter[enabled_metrics_only]") + .and_then(|param| Some(serde_json::from_value(param.clone()).unwrap())); let mut params = datadogV2::api_cloud_cost_management::ListCostTagMetadataMetricsOptionalParams::default(); params.filter_provider = filter_provider; + params.filter_enabled_metrics_only = filter_enabled_metrics_only; let response = match block_on(api.list_cost_tag_metadata_metrics_with_http_info(filter_month, params)) { Ok(response) => response,