From cdb43ac69064845f3b096505fffbb195ee07b488 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 16 Oct 2025 09:01:44 +0000 Subject: [PATCH] Regenerate client from commit 673f988 of spec repo --- .generator/schemas/v2/openapi.yaml | 2 +- .../GetTagPipelinesRuleset.java | 5 ++-- .../GetTagPipelinesRuleset_2339377367.java | 25 ----------------- .../client/v2/api/CloudCostManagementApi.java | 6 ++-- ...ipeline_ruleset_returns_OK_response.freeze | 1 + ..._pipeline_ruleset_returns_OK_response.json | 28 +++++++++++++++++++ .../v2/api/cloud_cost_management.feature | 25 ++++++----------- 7 files changed, 45 insertions(+), 47 deletions(-) delete mode 100644 examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.java create mode 100644 src/test/resources/cassettes/features/v2/Get_a_tag_pipeline_ruleset_returns_OK_response.freeze create mode 100644 src/test/resources/cassettes/features/v2/Get_a_tag_pipeline_ruleset_returns_OK_response.json 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/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.java b/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.java index 421f5241102..1c04f42fd9f 100644 --- a/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.java +++ b/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.java @@ -1,4 +1,4 @@ -// Get ruleset returns "OK" response +// Get a tag pipeline ruleset returns "OK" response import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; @@ -11,7 +11,8 @@ public static void main(String[] args) { CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient); try { - RulesetResp result = apiInstance.getTagPipelinesRuleset("ruleset_id"); + RulesetResp result = + apiInstance.getTagPipelinesRuleset("a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de"); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CloudCostManagementApi#getTagPipelinesRuleset"); diff --git a/examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.java b/examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.java deleted file mode 100644 index c2952f8fab6..00000000000 --- a/examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.java +++ /dev/null @@ -1,25 +0,0 @@ -// Get tag pipeline ruleset returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.CloudCostManagementApi; -import com.datadog.api.client.v2.model.RulesetResp; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient); - - try { - RulesetResp result = - apiInstance.getTagPipelinesRuleset("ee10c3ff-312f-464c-b4f6-46adaa6d00a1"); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling CloudCostManagementApi#getTagPipelinesRuleset"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java index 96f805cd5bb..94bd17e4862 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java @@ -2524,7 +2524,7 @@ public ApiResponse getCustomCostsFileWithHttpInfo(St } /** - * Get ruleset. + * Get a tag pipeline ruleset. * *

See {@link #getTagPipelinesRulesetWithHttpInfo}. * @@ -2537,7 +2537,7 @@ public RulesetResp getTagPipelinesRuleset(String rulesetId) throws ApiException } /** - * Get ruleset. + * Get a tag pipeline ruleset. * *

See {@link #getTagPipelinesRulesetWithHttpInfoAsync}. * @@ -2603,7 +2603,7 @@ public ApiResponse getTagPipelinesRulesetWithHttpInfo(String rulese } /** - * Get ruleset. + * Get a tag pipeline ruleset. * *

See {@link #getTagPipelinesRulesetWithHttpInfo}. * diff --git a/src/test/resources/cassettes/features/v2/Get_a_tag_pipeline_ruleset_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_a_tag_pipeline_ruleset_returns_OK_response.freeze new file mode 100644 index 00000000000..fa8c1263567 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_a_tag_pipeline_ruleset_returns_OK_response.freeze @@ -0,0 +1 @@ +2025-10-14T20:06:56.512Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_tag_pipeline_ruleset_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_tag_pipeline_ruleset_returns_OK_response.json new file mode 100644 index 00000000000..5dea9061c67 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_a_tag_pipeline_ruleset_returns_OK_response.json @@ -0,0 +1,28 @@ +[ + { + "httpRequest": { + "headers": {}, + "method": "GET", + "path": "/api/v2/tags/enrichment/a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"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" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "d502db10-e146-bbbf-5c75-7d491d382757" + } +] \ No newline at end of file diff --git a/src/test/resources/com/datadog/api/client/v2/api/cloud_cost_management.feature b/src/test/resources/com/datadog/api/client/v2/api/cloud_cost_management.feature index ba6cdda25c3..d141b80f7ba 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/cloud_cost_management.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/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