From adf49febb11ef094cf2a0ed4297deb3426dc1e17 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 16 Oct 2025 09:00:28 +0000 Subject: [PATCH] Regenerate client from commit 673f988 of spec repo --- .generator/schemas/v2/openapi.yaml | 2 +- ...ipeline-ruleset-returns-OK-response.frozen | 1 + ...g-pipeline-ruleset-returns-OK-response.yml | 24 ++++++++++++++++++ .../GetTagPipelinesRuleset.rb | 4 +-- .../GetTagPipelinesRuleset_2339377367.rb | 5 ---- features/v2/cloud_cost_management.feature | 25 +++++++------------ .../v2/api/cloud_cost_management_api.rb | 4 +-- 7 files changed, 39 insertions(+), 26 deletions(-) create mode 100644 cassettes/features/v2/cloud_cost_management/Get-a-tag-pipeline-ruleset-returns-OK-response.frozen create mode 100644 cassettes/features/v2/cloud_cost_management/Get-a-tag-pipeline-ruleset-returns-OK-response.yml delete mode 100644 examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.rb diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 961406c151e..9f43840f754 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -75610,7 +75610,7 @@ paths: appKeyAuth: [] - AuthZ: - cloud_cost_management_read - summary: Get ruleset + summary: Get a tag pipeline ruleset tags: - Cloud Cost Management patch: diff --git a/cassettes/features/v2/cloud_cost_management/Get-a-tag-pipeline-ruleset-returns-OK-response.frozen b/cassettes/features/v2/cloud_cost_management/Get-a-tag-pipeline-ruleset-returns-OK-response.frozen new file mode 100644 index 00000000000..fa8c1263567 --- /dev/null +++ b/cassettes/features/v2/cloud_cost_management/Get-a-tag-pipeline-ruleset-returns-OK-response.frozen @@ -0,0 +1 @@ +2025-10-14T20:06:56.512Z \ No newline at end of file diff --git a/cassettes/features/v2/cloud_cost_management/Get-a-tag-pipeline-ruleset-returns-OK-response.yml b/cassettes/features/v2/cloud_cost_management/Get-a-tag-pipeline-ruleset-returns-OK-response.yml new file mode 100644 index 00000000000..c62b6a3c6a1 --- /dev/null +++ b/cassettes/features/v2/cloud_cost_management/Get-a-tag-pipeline-ruleset-returns-OK-response.yml @@ -0,0 +1,24 @@ +http_interactions: +- recorded_at: Tue, 14 Oct 2025 20:06:56 GMT + request: + body: null + headers: + Accept: + - application/json + method: GET + uri: https://api.datadoghq.com/api/v2/tags/enrichment/a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de + response: + body: + encoding: UTF-8 + string: '{"data":{"id":"a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de","type":"ruleset","attributes":{"created":{"seconds":1753803214,"nanos":75009000},"enabled":false,"last_modified_user_uuid":"4acae75b-78ac-11ef-9c0d-e6936f49688e","modified":{"seconds":1753803214,"nanos":75009000},"name":"EVP + Cost Tags","position":1,"processing_status":"done","rules":[{"name":"EVP Cost + Tags","enabled":true,"query":null,"mapping":null,"reference_table":{"table_name":"evp_cost_tags","source_keys":["pod_name"],"field_pairs":[{"input_column":"cost_service","output_key":"cost_service"},{"input_column":"cogs","output_key":"cogs"},{"input_column":"cost_team","output_key":"cost_team"},{"input_column":"cost_product","output_key":"cost_product"},{"input_column":"subscription","output_key":"subscription"},{"input_column":"cost_group","output_key":"cost_group"},{"input_column":"cost_subservice","output_key":"cost_subservice"},{"input_column":"cost_customer","output_key":"cost_customer"},{"input_column":"cost_isolation_id","output_key":"cost_isolation_id"}],"case_insensitivity":false,"if_not_exists":false},"metadata":null},{"name":"Load + balancer runtimecosts-team","enabled":true,"query":{"query":"dd-frontend-service:evp_* + OR dd-frontend-service:logs_*","addition":{"key":"runtimecosts-team","value":"event-platform"},"if_not_exists":true,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3588223}}}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 200 + message: OK +recorded_with: VCR 6.0.0 diff --git a/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb b/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb index e76027068e6..17721b5551f 100644 --- a/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb +++ b/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb @@ -1,5 +1,5 @@ -# Get ruleset returns "OK" response +# Get a tag pipeline ruleset returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new -p api_instance.get_tag_pipelines_ruleset("ruleset_id") +p api_instance.get_tag_pipelines_ruleset("a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de") diff --git a/examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.rb b/examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.rb deleted file mode 100644 index 59090678a86..00000000000 --- a/examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Get tag pipeline ruleset returns "OK" response - -require "datadog_api_client" -api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new -p api_instance.get_tag_pipelines_ruleset("ee10c3ff-312f-464c-b4f6-46adaa6d00a1") diff --git a/features/v2/cloud_cost_management.feature b/features/v2/cloud_cost_management.feature index ba6cdda25c3..d141b80f7ba 100644 --- a/features/v2/cloud_cost_management.feature +++ b/features/v2/cloud_cost_management.feature @@ -262,6 +262,15 @@ Feature: Cloud Cost Management When the request is sent Then the response status is 200 OK + @replay-only @team:DataDog/cloud-cost-management + Scenario: Get a tag pipeline ruleset returns "OK" response + Given new "GetTagPipelinesRuleset" request + And request contains "ruleset_id" parameter with value "a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de" + When the request is sent + Then the response status is 200 OK + And the response "data.type" is equal to "ruleset" + And the response "data.attributes.name" is equal to "EVP Cost Tags" + @replay-only @team:DataDog/cloud-cost-management Scenario: Get cost AWS CUR config returns "OK" response Given new "GetCostAWSCURConfig" request @@ -288,22 +297,6 @@ Feature: Cloud Cost Management When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/cloud-cost-management - Scenario: Get ruleset returns "OK" response - Given new "GetTagPipelinesRuleset" request - And request contains "ruleset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @replay-only @team:DataDog/cloud-cost-management - Scenario: Get tag pipeline ruleset returns "OK" response - Given new "GetTagPipelinesRuleset" request - And request contains "ruleset_id" parameter with value "ee10c3ff-312f-464c-b4f6-46adaa6d00a1" - When the request is sent - Then the response status is 200 OK - And the response "data.type" is equal to "ruleset" - And the response "data.attributes.name" is equal to "New Ruleset" - @replay-only @team:DataDog/cloud-cost-management Scenario: List Cloud Cost Management AWS CUR configs returns "OK" response Given new "ListCostAWSCURConfigs" request diff --git a/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb b/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb index ce881d5542a..0f5790f6bf3 100644 --- a/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +++ b/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb @@ -1215,7 +1215,7 @@ def get_custom_costs_file_with_http_info(file_id, opts = {}) return data, status_code, headers end - # Get ruleset. + # Get a tag pipeline ruleset. # # @see #get_tag_pipelines_ruleset_with_http_info def get_tag_pipelines_ruleset(ruleset_id, opts = {}) @@ -1223,7 +1223,7 @@ def get_tag_pipelines_ruleset(ruleset_id, opts = {}) data end - # Get ruleset. + # Get a tag pipeline ruleset. # # Get a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID #