From c4b9d60282fe80a124b8c359ec625688f9bfddac Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 16 Oct 2026 21:32:06 +0000 Subject: [PATCH] Regenerate client from commit 084a8a1 of spec repo --- .generator/schemas/v2/openapi.yaml | 15 ------- ...retention-filters_CreateExclusionFilter.rs | 3 +- ...retention-filters_DeleteExclusionFilter.rs | 3 +- ...um-retention-filters_GetExclusionFilter.rs | 3 +- ...-retention-filters_ListExclusionFilters.rs | 3 +- ...retention-filters_UpdateExclusionFilter.rs | 3 +- src/datadog/configuration.rs | 5 --- .../api/api_rum_retention_filters.rs | 41 ------------------- .../features/v2/rum_retention_filters.feature | 36 ++++++---------- 9 files changed, 17 insertions(+), 95 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6b96392bdd..6bb7fe1f89 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -215513,9 +215513,6 @@ paths: summary: Get all RUM exclusion filters tags: - Rum Retention Filters - 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/). post: description: |- Create an exclusion filter for a RUM application. @@ -215572,9 +215569,6 @@ paths: tags: - Rum Retention Filters x-codegen-request-body-name: body - 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/rum/applications/{app_id}/retention_filters/exclusion/{ef_id}: delete: description: |- @@ -215599,9 +215593,6 @@ paths: summary: Delete a RUM exclusion filter tags: - Rum Retention Filters - 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 a single exclusion filter for a RUM application. operationId: GetExclusionFilter @@ -215639,9 +215630,6 @@ paths: summary: Get a RUM exclusion filter tags: - Rum Retention Filters - 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/). patch: description: |- Update an exclusion filter for a RUM application. @@ -215706,9 +215694,6 @@ paths: tags: - Rum Retention Filters x-codegen-request-body-name: body - 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/rum/applications/{app_id}/retention_filters/permanent: get: description: |- diff --git a/examples/v2_rum-retention-filters_CreateExclusionFilter.rs b/examples/v2_rum-retention-filters_CreateExclusionFilter.rs index ac1eb72b92..e0fa3895ca 100644 --- a/examples/v2_rum-retention-filters_CreateExclusionFilter.rs +++ b/examples/v2_rum-retention-filters_CreateExclusionFilter.rs @@ -18,8 +18,7 @@ async fn main() { .query("@error.message:*extension*".to_string()), RumExclusionFilterType::EXCLUSION_FILTERS, )); - let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.create_exclusion_filter", true); + let configuration = datadog::Configuration::new(); let api = RumRetentionFiltersAPI::with_config(configuration); let resp = api .create_exclusion_filter("app_id".to_string(), body) diff --git a/examples/v2_rum-retention-filters_DeleteExclusionFilter.rs b/examples/v2_rum-retention-filters_DeleteExclusionFilter.rs index 634b266b34..436fcb79f6 100644 --- a/examples/v2_rum-retention-filters_DeleteExclusionFilter.rs +++ b/examples/v2_rum-retention-filters_DeleteExclusionFilter.rs @@ -4,8 +4,7 @@ use datadog_api_client::datadogV2::api_rum_retention_filters::RumRetentionFilter #[tokio::main] async fn main() { - let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.delete_exclusion_filter", true); + let configuration = datadog::Configuration::new(); let api = RumRetentionFiltersAPI::with_config(configuration); let resp = api .delete_exclusion_filter("app_id".to_string(), "ef_id".to_string()) diff --git a/examples/v2_rum-retention-filters_GetExclusionFilter.rs b/examples/v2_rum-retention-filters_GetExclusionFilter.rs index d54939e6b2..046be9cc8d 100644 --- a/examples/v2_rum-retention-filters_GetExclusionFilter.rs +++ b/examples/v2_rum-retention-filters_GetExclusionFilter.rs @@ -4,8 +4,7 @@ use datadog_api_client::datadogV2::api_rum_retention_filters::RumRetentionFilter #[tokio::main] async fn main() { - let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.get_exclusion_filter", true); + let configuration = datadog::Configuration::new(); let api = RumRetentionFiltersAPI::with_config(configuration); let resp = api .get_exclusion_filter("app_id".to_string(), "ef_id".to_string()) diff --git a/examples/v2_rum-retention-filters_ListExclusionFilters.rs b/examples/v2_rum-retention-filters_ListExclusionFilters.rs index 7478c2f0cd..31f7dd537c 100644 --- a/examples/v2_rum-retention-filters_ListExclusionFilters.rs +++ b/examples/v2_rum-retention-filters_ListExclusionFilters.rs @@ -4,8 +4,7 @@ use datadog_api_client::datadogV2::api_rum_retention_filters::RumRetentionFilter #[tokio::main] async fn main() { - let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.list_exclusion_filters", true); + let configuration = datadog::Configuration::new(); let api = RumRetentionFiltersAPI::with_config(configuration); let resp = api.list_exclusion_filters("app_id".to_string()).await; if let Ok(value) = resp { diff --git a/examples/v2_rum-retention-filters_UpdateExclusionFilter.rs b/examples/v2_rum-retention-filters_UpdateExclusionFilter.rs index b3ea4bc2a4..f99aef0de2 100644 --- a/examples/v2_rum-retention-filters_UpdateExclusionFilter.rs +++ b/examples/v2_rum-retention-filters_UpdateExclusionFilter.rs @@ -18,8 +18,7 @@ async fn main() { "051601eb-54a0-abc0-03f9-cc02efa18892".to_string(), RumExclusionFilterType::EXCLUSION_FILTERS, )); - let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.update_exclusion_filter", true); + let configuration = datadog::Configuration::new(); let api = RumRetentionFiltersAPI::with_config(configuration); let resp = api .update_exclusion_filter("app_id".to_string(), "ef_id".to_string(), body) diff --git a/src/datadog/configuration.rs b/src/datadog/configuration.rs index df89c3d7f8..d4cdf687dc 100644 --- a/src/datadog/configuration.rs +++ b/src/datadog/configuration.rs @@ -977,11 +977,6 @@ impl Default for Configuration { ("v2.get_sourcemaps".to_owned(), false), ("v2.list_sourcemaps".to_owned(), false), ("v2.restore_sourcemaps".to_owned(), false), - ("v2.create_exclusion_filter".to_owned(), false), - ("v2.delete_exclusion_filter".to_owned(), false), - ("v2.get_exclusion_filter".to_owned(), false), - ("v2.list_exclusion_filters".to_owned(), false), - ("v2.update_exclusion_filter".to_owned(), false), ("v2.create_rum_config".to_owned(), false), ("v2.get_rum_config".to_owned(), false), ("v2.update_rum_config".to_owned(), false), diff --git a/src/datadogV2/api/api_rum_retention_filters.rs b/src/datadogV2/api/api_rum_retention_filters.rs index 638adc32b0..144f52e0c2 100644 --- a/src/datadogV2/api/api_rum_retention_filters.rs +++ b/src/datadogV2/api/api_rum_retention_filters.rs @@ -6,7 +6,6 @@ use flate2::{ write::{GzEncoder, ZlibEncoder}, Compression, }; -use log::warn; use reqwest::header::{HeaderMap, HeaderValue}; use serde::{Deserialize, Serialize}; use std::io::Write; @@ -236,14 +235,6 @@ impl RumRetentionFiltersAPI { > { let local_configuration = &self.config; let local_operation_id = "v2.create_exclusion_filter"; - if local_configuration.is_unstable_operation_enabled(local_operation_id) { - warn!("Using unstable operation {local_operation_id}"); - } else { - let local_error = datadog::UnstableOperationDisabledError { - msg: "Operation 'v2.create_exclusion_filter' is not enabled".to_string(), - }; - return Err(datadog::Error::UnstableOperationDisabledError(local_error)); - } let local_client = &self.client; @@ -558,14 +549,6 @@ impl RumRetentionFiltersAPI { ) -> Result, datadog::Error> { let local_configuration = &self.config; let local_operation_id = "v2.delete_exclusion_filter"; - if local_configuration.is_unstable_operation_enabled(local_operation_id) { - warn!("Using unstable operation {local_operation_id}"); - } else { - let local_error = datadog::UnstableOperationDisabledError { - msg: "Operation 'v2.delete_exclusion_filter' is not enabled".to_string(), - }; - return Err(datadog::Error::UnstableOperationDisabledError(local_error)); - } let local_client = &self.client; @@ -768,14 +751,6 @@ impl RumRetentionFiltersAPI { > { let local_configuration = &self.config; let local_operation_id = "v2.get_exclusion_filter"; - if local_configuration.is_unstable_operation_enabled(local_operation_id) { - warn!("Using unstable operation {local_operation_id}"); - } else { - let local_error = datadog::UnstableOperationDisabledError { - msg: "Operation 'v2.get_exclusion_filter' is not enabled".to_string(), - }; - return Err(datadog::Error::UnstableOperationDisabledError(local_error)); - } let local_client = &self.client; @@ -1118,14 +1093,6 @@ impl RumRetentionFiltersAPI { > { let local_configuration = &self.config; let local_operation_id = "v2.list_exclusion_filters"; - if local_configuration.is_unstable_operation_enabled(local_operation_id) { - warn!("Using unstable operation {local_operation_id}"); - } else { - let local_error = datadog::UnstableOperationDisabledError { - msg: "Operation 'v2.list_exclusion_filters' is not enabled".to_string(), - }; - return Err(datadog::Error::UnstableOperationDisabledError(local_error)); - } let local_client = &self.client; @@ -1637,14 +1604,6 @@ impl RumRetentionFiltersAPI { > { let local_configuration = &self.config; let local_operation_id = "v2.update_exclusion_filter"; - if local_configuration.is_unstable_operation_enabled(local_operation_id) { - warn!("Using unstable operation {local_operation_id}"); - } else { - let local_error = datadog::UnstableOperationDisabledError { - msg: "Operation 'v2.update_exclusion_filter' is not enabled".to_string(), - }; - return Err(datadog::Error::UnstableOperationDisabledError(local_error)); - } let local_client = &self.client; diff --git a/tests/scenarios/features/v2/rum_retention_filters.feature b/tests/scenarios/features/v2/rum_retention_filters.feature index 31d5ea00f5..179ea21ae4 100644 --- a/tests/scenarios/features/v2/rum_retention_filters.feature +++ b/tests/scenarios/features/v2/rum_retention_filters.feature @@ -11,8 +11,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Create a RUM exclusion filter returns "Bad Request" response - Given operation "CreateExclusionFilter" enabled - And new "CreateExclusionFilter" request + Given new "CreateExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "type": "exclusion_filters"}} When the request is sent @@ -20,8 +19,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Create a RUM exclusion filter returns "Created" response - Given operation "CreateExclusionFilter" enabled - And new "CreateExclusionFilter" request + Given new "CreateExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "type": "exclusion_filters"}} When the request is sent @@ -51,8 +49,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Delete a RUM exclusion filter returns "Method Not Allowed" response - Given operation "DeleteExclusionFilter" enabled - And new "DeleteExclusionFilter" request + Given new "DeleteExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And request contains "ef_id" parameter from "REPLACE.ME" When the request is sent @@ -60,8 +57,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Delete a RUM exclusion filter returns "No Content" response - Given operation "DeleteExclusionFilter" enabled - And new "DeleteExclusionFilter" request + Given new "DeleteExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And request contains "ef_id" parameter from "REPLACE.ME" When the request is sent @@ -69,8 +65,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Delete a RUM exclusion filter returns "Not Found" response - Given operation "DeleteExclusionFilter" enabled - And new "DeleteExclusionFilter" request + Given new "DeleteExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And request contains "ef_id" parameter from "REPLACE.ME" When the request is sent @@ -94,8 +89,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Get a RUM exclusion filter returns "Not Found" response - Given operation "GetExclusionFilter" enabled - And new "GetExclusionFilter" request + Given new "GetExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And request contains "ef_id" parameter from "REPLACE.ME" When the request is sent @@ -103,8 +97,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Get a RUM exclusion filter returns "OK" response - Given operation "GetExclusionFilter" enabled - And new "GetExclusionFilter" request + Given new "GetExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And request contains "ef_id" parameter from "REPLACE.ME" When the request is sent @@ -151,8 +144,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Get all RUM exclusion filters returns "OK" response - Given operation "ListExclusionFilters" enabled - And new "ListExclusionFilters" request + Given new "ListExclusionFilters" request And request contains "app_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK @@ -193,8 +185,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Update a RUM exclusion filter returns "Bad Request" response - Given operation "UpdateExclusionFilter" enabled - And new "UpdateExclusionFilter" request + Given new "UpdateExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And request contains "ef_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}} @@ -203,8 +194,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Update a RUM exclusion filter returns "Conflict" response - Given operation "UpdateExclusionFilter" enabled - And new "UpdateExclusionFilter" request + Given new "UpdateExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And request contains "ef_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}} @@ -213,8 +203,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Update a RUM exclusion filter returns "Not Found" response - Given operation "UpdateExclusionFilter" enabled - And new "UpdateExclusionFilter" request + Given new "UpdateExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And request contains "ef_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}} @@ -223,8 +212,7 @@ Feature: Rum Retention Filters @generated @skip @team:ddoghq/rum-backend Scenario: Update a RUM exclusion filter returns "Updated" response - Given operation "UpdateExclusionFilter" enabled - And new "UpdateExclusionFilter" request + Given new "UpdateExclusionFilter" request And request contains "app_id" parameter from "REPLACE.ME" And request contains "ef_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}}