Skip to content

Commit fa46eed

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7147197 of spec repo
1 parent 25ce205 commit fa46eed

32 files changed

Lines changed: 3335 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 492 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Get preferred cost allocation tags returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_cost_ai_preferred_tags".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.get_cost_ai_preferred_tags()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Get cost setting returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_cost_setting".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.get_cost_setting("setting_type")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List active tag pipeline keys returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_cost_tag_pipeline_active_keys".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.list_cost_tag_pipeline_active_keys()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List custom allocation rule statuses returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_custom_allocation_rules_status".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.list_custom_allocation_rules_status()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List tag pipeline ruleset statuses returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_tag_pipelines_rulesets_status".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.list_tag_pipelines_rulesets_status()

features/scenarios_model_mapping.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,6 +2182,9 @@
21822182
"cloud_account_id" => "Integer",
21832183
"body" => "GCPUsageCostConfigPatchRequest",
21842184
},
2185+
"v2.GetCostSetting" => {
2186+
"setting_type" => "String",
2187+
},
21852188
"v2.CreateTagPipelinesRuleset" => {
21862189
"body" => "CreateRulesetRequest",
21872190
},

features/v2/cloud_cost_management.feature

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,44 @@ Feature: Cloud Cost Management
292292
And the response "data.attributes.configs[0].dataset_type" is equal to "amortized"
293293
And the response "data.attributes.configs[1].dataset_type" is equal to "actual"
294294

295+
@generated @skip @team:DataDog/cloud-cost-management
296+
Scenario: Get cost setting returns "Bad Request" response
297+
Given operation "GetCostSetting" enabled
298+
And new "GetCostSetting" request
299+
And request contains "setting_type" parameter from "REPLACE.ME"
300+
When the request is sent
301+
Then the response status is 400 Bad Request
302+
303+
@generated @skip @team:DataDog/cloud-cost-management
304+
Scenario: Get cost setting returns "Not Found" response
305+
Given operation "GetCostSetting" enabled
306+
And new "GetCostSetting" request
307+
And request contains "setting_type" parameter from "REPLACE.ME"
308+
When the request is sent
309+
Then the response status is 404 Not Found
310+
311+
@generated @skip @team:DataDog/cloud-cost-management
312+
Scenario: Get cost setting returns "OK" response
313+
Given operation "GetCostSetting" enabled
314+
And new "GetCostSetting" request
315+
And request contains "setting_type" parameter from "REPLACE.ME"
316+
When the request is sent
317+
Then the response status is 200 OK
318+
295319
@replay-only @team:DataDog/cloud-cost-management
296320
Scenario: Get custom allocation rule returns "OK" response
297321
Given new "GetCustomAllocationRule" request
298322
And request contains "rule_id" parameter with value 683
299323
When the request is sent
300324
Then the response status is 200 OK
301325

326+
@generated @skip @team:DataDog/cloud-cost-management
327+
Scenario: Get preferred cost allocation tags returns "OK" response
328+
Given operation "GetCostAIPreferredTags" enabled
329+
And new "GetCostAIPreferredTags" request
330+
When the request is sent
331+
Then the response status is 200 OK
332+
302333
@replay-only @team:DataDog/cloud-cost-management
303334
Scenario: List Cloud Cost Management AWS CUR configs returns "OK" response
304335
Given new "ListCostAWSCURConfigs" request
@@ -345,19 +376,40 @@ Feature: Cloud Cost Management
345376
When the request is sent
346377
Then the response status is 200 OK
347378

379+
@generated @skip @team:DataDog/cloud-cost-management
380+
Scenario: List active tag pipeline keys returns "OK" response
381+
Given operation "ListCostTagPipelineActiveKeys" enabled
382+
And new "ListCostTagPipelineActiveKeys" request
383+
When the request is sent
384+
Then the response status is 200 OK
385+
348386
@team:DataDog/cloud-cost-management
349387
Scenario: List budgets returns "OK" response
350388
Given new "ListBudgets" request
351389
When the request is sent
352390
Then the response status is 200 OK
353391

392+
@generated @skip @team:DataDog/cloud-cost-management
393+
Scenario: List custom allocation rule statuses returns "OK" response
394+
Given operation "ListCustomAllocationRulesStatus" enabled
395+
And new "ListCustomAllocationRulesStatus" request
396+
When the request is sent
397+
Then the response status is 200 OK
398+
354399
@replay-only @team:DataDog/cloud-cost-management
355400
Scenario: List custom allocation rules returns "OK" response
356401
Given new "ListCustomAllocationRules" request
357402
When the request is sent
358403
Then the response status is 200 OK
359404
And the response "data[0].attributes.rule_name" is equal to "example-arbitrary-cost-rule"
360405

406+
@generated @skip @team:DataDog/cloud-cost-management
407+
Scenario: List tag pipeline ruleset statuses returns "OK" response
408+
Given operation "ListTagPipelinesRulesetsStatus" enabled
409+
And new "ListTagPipelinesRulesetsStatus" request
410+
When the request is sent
411+
Then the response status is 200 OK
412+
361413
@replay-only @team:DataDog/cloud-cost-management
362414
Scenario: List tag pipeline rulesets returns "OK" response
363415
Given new "ListTagPipelinesRulesets" request

features/v2/undo.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,18 @@
12651265
"type": "safe"
12661266
}
12671267
},
1268+
"GetCostAIPreferredTags": {
1269+
"tag": "Cloud Cost Management",
1270+
"undo": {
1271+
"type": "safe"
1272+
}
1273+
},
1274+
"ListCostTagPipelineActiveKeys": {
1275+
"tag": "Cloud Cost Management",
1276+
"undo": {
1277+
"type": "safe"
1278+
}
1279+
},
12681280
"ListCustomAllocationRules": {
12691281
"tag": "Cloud Cost Management",
12701282
"undo": {
@@ -1283,6 +1295,12 @@
12831295
"type": "idempotent"
12841296
}
12851297
},
1298+
"ListCustomAllocationRulesStatus": {
1299+
"tag": "Cloud Cost Management",
1300+
"undo": {
1301+
"type": "safe"
1302+
}
1303+
},
12861304
"DeleteCustomAllocationRule": {
12871305
"tag": "Cloud Cost Management",
12881306
"undo": {
@@ -1464,6 +1482,12 @@
14641482
"type": "safe"
14651483
}
14661484
},
1485+
"GetCostSetting": {
1486+
"tag": "Cloud Cost Management",
1487+
"undo": {
1488+
"type": "safe"
1489+
}
1490+
},
14671491
"GetActiveBillingDimensions": {
14681492
"tag": "Usage Metering",
14691493
"undo": {
@@ -6697,6 +6721,12 @@
66976721
"type": "idempotent"
66986722
}
66996723
},
6724+
"ListTagPipelinesRulesetsStatus": {
6725+
"tag": "Cloud Cost Management",
6726+
"undo": {
6727+
"type": "safe"
6728+
}
6729+
},
67006730
"ValidateQuery": {
67016731
"tag": "Cloud Cost Management",
67026732
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,11 @@ def initialize
293293
"v2.upsert_sync_config": false,
294294
"v2.get_code_coverage_branch_summary": false,
295295
"v2.get_code_coverage_commit_summary": false,
296+
"v2.get_cost_ai_preferred_tags": false,
297+
"v2.get_cost_setting": false,
298+
"v2.list_cost_tag_pipeline_active_keys": false,
299+
"v2.list_custom_allocation_rules_status": false,
300+
"v2.list_tag_pipelines_rulesets_status": false,
296301
"v2.create_dashboard_secure_embed": false,
297302
"v2.delete_dashboard_secure_embed": false,
298303
"v2.get_dashboard_secure_embed": false,

0 commit comments

Comments
 (0)