Skip to content

Commit 724f3ad

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update the summary name for get a tag pipeline ruleset. (#2887)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d09c12a commit 724f3ad

File tree

7 files changed

+36
-35
lines changed

7 files changed

+36
-35
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75610,7 +75610,7 @@ paths:
7561075610
appKeyAuth: []
7561175611
- AuthZ:
7561275612
- cloud_cost_management_read
75613-
summary: Get ruleset
75613+
summary: Get a tag pipeline ruleset
7561475614
tags:
7561575615
- Cloud Cost Management
7561675616
patch:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Get ruleset returns "OK" response
2+
Get a tag pipeline ruleset returns "OK" response
33
"""
44

55
from datadog_api_client import ApiClient, Configuration
@@ -9,7 +9,7 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = CloudCostManagementApi(api_client)
1111
response = api_instance.get_tag_pipelines_ruleset(
12-
ruleset_id="ruleset_id",
12+
ruleset_id="a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de",
1313
)
1414

1515
print(response)

examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/datadog_api_client/v2/api/cloud_cost_management_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ def get_tag_pipelines_ruleset(
11591159
self,
11601160
ruleset_id: str,
11611161
) -> RulesetResp:
1162-
"""Get ruleset.
1162+
"""Get a tag pipeline ruleset.
11631163
11641164
Get a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID
11651165
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-10-14T20:06:56.512Z
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
accept:
6+
- application/json
7+
method: GET
8+
uri: https://api.datadoghq.com/api/v2/tags/enrichment/a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de
9+
response:
10+
body:
11+
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
12+
Cost Tags","position":1,"processing_status":"done","rules":[{"name":"EVP Cost
13+
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
14+
balancer runtimecosts-team","enabled":true,"query":{"query":"dd-frontend-service:evp_*
15+
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}}}'
16+
headers:
17+
content-type:
18+
- application/vnd.api+json
19+
status:
20+
code: 200
21+
message: OK
22+
version: 1

tests/v2/features/cloud_cost_management.feature

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,15 @@ Feature: Cloud Cost Management
262262
When the request is sent
263263
Then the response status is 200 OK
264264

265+
@replay-only @team:DataDog/cloud-cost-management
266+
Scenario: Get a tag pipeline ruleset returns "OK" response
267+
Given new "GetTagPipelinesRuleset" request
268+
And request contains "ruleset_id" parameter with value "a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de"
269+
When the request is sent
270+
Then the response status is 200 OK
271+
And the response "data.type" is equal to "ruleset"
272+
And the response "data.attributes.name" is equal to "EVP Cost Tags"
273+
265274
@replay-only @team:DataDog/cloud-cost-management
266275
Scenario: Get cost AWS CUR config returns "OK" response
267276
Given new "GetCostAWSCURConfig" request
@@ -288,22 +297,6 @@ Feature: Cloud Cost Management
288297
When the request is sent
289298
Then the response status is 200 OK
290299

291-
@generated @skip @team:DataDog/cloud-cost-management
292-
Scenario: Get ruleset returns "OK" response
293-
Given new "GetTagPipelinesRuleset" request
294-
And request contains "ruleset_id" parameter from "REPLACE.ME"
295-
When the request is sent
296-
Then the response status is 200 OK
297-
298-
@replay-only @team:DataDog/cloud-cost-management
299-
Scenario: Get tag pipeline ruleset returns "OK" response
300-
Given new "GetTagPipelinesRuleset" request
301-
And request contains "ruleset_id" parameter with value "ee10c3ff-312f-464c-b4f6-46adaa6d00a1"
302-
When the request is sent
303-
Then the response status is 200 OK
304-
And the response "data.type" is equal to "ruleset"
305-
And the response "data.attributes.name" is equal to "New Ruleset"
306-
307300
@replay-only @team:DataDog/cloud-cost-management
308301
Scenario: List Cloud Cost Management AWS CUR configs returns "OK" response
309302
Given new "ListCostAWSCURConfigs" request

0 commit comments

Comments
 (0)