Skip to content

Commit f1b941b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add Cloud Cost Management tag_metadata endpoints (DataDog#3333)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 45c99d0 commit f1b941b

30 files changed

Lines changed: 3159 additions & 1 deletion

.generator/schemas/v2/openapi.yaml

Lines changed: 653 additions & 1 deletion
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 the Cloud Cost Management billing currency returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_cost_tag_metadata_currency".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.get_cost_tag_metadata_currency("filter[month]")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List Cloud Cost Management tag sources returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_cost_tag_key_sources".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.list_cost_tag_key_sources("filter[month]")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List Cloud Cost Management tag key metadata returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_cost_tag_metadata".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.list_cost_tag_metadata("filter[month]")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List available Cloud Cost Management metrics returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_cost_tag_metadata_metrics".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.list_cost_tag_metadata_metrics("filter[month]")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List Cloud Cost Management orchestrators returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_cost_tag_metadata_orchestrators".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
8+
p api_instance.list_cost_tag_metadata_orchestrators("filter[month]")

features/scenarios_model_mapping.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,6 +2315,29 @@
23152315
"filter_metric" => "String",
23162316
"page_size" => "Integer",
23172317
},
2318+
"v2.ListCostTagMetadata" => {
2319+
"filter_month" => "String",
2320+
"filter_provider" => "String",
2321+
"filter_metric" => "String",
2322+
"filter_tag_key" => "String",
2323+
"filter_daily" => "CostTagMetadataDailyFilter",
2324+
},
2325+
"v2.GetCostTagMetadataCurrency" => {
2326+
"filter_month" => "String",
2327+
"filter_provider" => "String",
2328+
},
2329+
"v2.ListCostTagMetadataMetrics" => {
2330+
"filter_month" => "String",
2331+
"filter_provider" => "String",
2332+
},
2333+
"v2.ListCostTagMetadataOrchestrators" => {
2334+
"filter_month" => "String",
2335+
"filter_provider" => "String",
2336+
},
2337+
"v2.ListCostTagKeySources" => {
2338+
"filter_month" => "String",
2339+
"filter_provider" => "String",
2340+
},
23182341
"v2.ListCostTags" => {
23192342
"filter_metric" => "String",
23202343
"filter_match" => "String",

features/v2/cloud_cost_management.feature

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,22 @@ Feature: Cloud Cost Management
520520
When the request is sent
521521
Then the response status is 200 OK
522522

523+
@generated @skip @team:DataDog/cloud-cost-management
524+
Scenario: Get the Cloud Cost Management billing currency returns "Bad Request" response
525+
Given operation "GetCostTagMetadataCurrency" enabled
526+
And new "GetCostTagMetadataCurrency" request
527+
And request contains "filter[month]" parameter from "REPLACE.ME"
528+
When the request is sent
529+
Then the response status is 400 Bad Request
530+
531+
@generated @skip @team:DataDog/cloud-cost-management
532+
Scenario: Get the Cloud Cost Management billing currency returns "OK" response
533+
Given operation "GetCostTagMetadataCurrency" enabled
534+
And new "GetCostTagMetadataCurrency" request
535+
And request contains "filter[month]" parameter from "REPLACE.ME"
536+
When the request is sent
537+
Then the response status is 200 OK
538+
523539
@replay-only @team:DataDog/cloud-cost-management
524540
Scenario: List Cloud Cost Management AWS CUR configs returns "OK" response
525541
Given new "ListCostAWSCURConfigs" request
@@ -540,12 +556,44 @@ Feature: Cloud Cost Management
540556
When the request is sent
541557
Then the response status is 200 OK
542558

559+
@generated @skip @team:DataDog/cloud-cost-management
560+
Scenario: List Cloud Cost Management orchestrators returns "Bad Request" response
561+
Given operation "ListCostTagMetadataOrchestrators" enabled
562+
And new "ListCostTagMetadataOrchestrators" request
563+
And request contains "filter[month]" parameter from "REPLACE.ME"
564+
When the request is sent
565+
Then the response status is 400 Bad Request
566+
567+
@generated @skip @team:DataDog/cloud-cost-management
568+
Scenario: List Cloud Cost Management orchestrators returns "OK" response
569+
Given operation "ListCostTagMetadataOrchestrators" enabled
570+
And new "ListCostTagMetadataOrchestrators" request
571+
And request contains "filter[month]" parameter from "REPLACE.ME"
572+
When the request is sent
573+
Then the response status is 200 OK
574+
543575
@generated @skip @team:DataDog/cloud-cost-management
544576
Scenario: List Cloud Cost Management tag descriptions returns "OK" response
545577
Given new "ListCostTagDescriptions" request
546578
When the request is sent
547579
Then the response status is 200 OK
548580

581+
@generated @skip @team:DataDog/cloud-cost-management
582+
Scenario: List Cloud Cost Management tag key metadata returns "Bad Request" response
583+
Given operation "ListCostTagMetadata" enabled
584+
And new "ListCostTagMetadata" request
585+
And request contains "filter[month]" parameter from "REPLACE.ME"
586+
When the request is sent
587+
Then the response status is 400 Bad Request
588+
589+
@generated @skip @team:DataDog/cloud-cost-management
590+
Scenario: List Cloud Cost Management tag key metadata returns "OK" response
591+
Given operation "ListCostTagMetadata" enabled
592+
And new "ListCostTagMetadata" request
593+
And request contains "filter[month]" parameter from "REPLACE.ME"
594+
When the request is sent
595+
Then the response status is 200 OK
596+
549597
@generated @skip @team:DataDog/cloud-cost-management
550598
Scenario: List Cloud Cost Management tag keys returns "Bad Request" response
551599
Given new "ListCostTagKeys" request
@@ -558,6 +606,22 @@ Feature: Cloud Cost Management
558606
When the request is sent
559607
Then the response status is 200 OK
560608

609+
@generated @skip @team:DataDog/cloud-cost-management
610+
Scenario: List Cloud Cost Management tag sources returns "Bad Request" response
611+
Given operation "ListCostTagKeySources" enabled
612+
And new "ListCostTagKeySources" request
613+
And request contains "filter[month]" parameter from "REPLACE.ME"
614+
When the request is sent
615+
Then the response status is 400 Bad Request
616+
617+
@generated @skip @team:DataDog/cloud-cost-management
618+
Scenario: List Cloud Cost Management tag sources returns "OK" response
619+
Given operation "ListCostTagKeySources" enabled
620+
And new "ListCostTagKeySources" request
621+
And request contains "filter[month]" parameter from "REPLACE.ME"
622+
When the request is sent
623+
Then the response status is 200 OK
624+
561625
@generated @skip @team:DataDog/cloud-cost-management
562626
Scenario: List Cloud Cost Management tags returns "Bad Request" response
563627
Given new "ListCostTags" request
@@ -596,6 +660,22 @@ Feature: Cloud Cost Management
596660
When the request is sent
597661
Then the response status is 200 OK
598662

663+
@generated @skip @team:DataDog/cloud-cost-management
664+
Scenario: List available Cloud Cost Management metrics returns "Bad Request" response
665+
Given operation "ListCostTagMetadataMetrics" enabled
666+
And new "ListCostTagMetadataMetrics" request
667+
And request contains "filter[month]" parameter from "REPLACE.ME"
668+
When the request is sent
669+
Then the response status is 400 Bad Request
670+
671+
@generated @skip @team:DataDog/cloud-cost-management
672+
Scenario: List available Cloud Cost Management metrics returns "OK" response
673+
Given operation "ListCostTagMetadataMetrics" enabled
674+
And new "ListCostTagMetadataMetrics" request
675+
And request contains "filter[month]" parameter from "REPLACE.ME"
676+
When the request is sent
677+
Then the response status is 200 OK
678+
599679
@team:DataDog/cloud-cost-management
600680
Scenario: List budgets returns "OK" response
601681
Given new "ListBudgets" request

features/v2/undo.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,36 @@
16091609
"type": "safe"
16101610
}
16111611
},
1612+
"ListCostTagMetadata": {
1613+
"tag": "Cloud Cost Management",
1614+
"undo": {
1615+
"type": "safe"
1616+
}
1617+
},
1618+
"GetCostTagMetadataCurrency": {
1619+
"tag": "Cloud Cost Management",
1620+
"undo": {
1621+
"type": "safe"
1622+
}
1623+
},
1624+
"ListCostTagMetadataMetrics": {
1625+
"tag": "Cloud Cost Management",
1626+
"undo": {
1627+
"type": "safe"
1628+
}
1629+
},
1630+
"ListCostTagMetadataOrchestrators": {
1631+
"tag": "Cloud Cost Management",
1632+
"undo": {
1633+
"type": "safe"
1634+
}
1635+
},
1636+
"ListCostTagKeySources": {
1637+
"tag": "Cloud Cost Management",
1638+
"undo": {
1639+
"type": "safe"
1640+
}
1641+
},
16121642
"ListCostTags": {
16131643
"tag": "Cloud Cost Management",
16141644
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,12 @@ def initialize
303303
"v2.get_commitments_utilization_scalar": false,
304304
"v2.get_commitments_utilization_timeseries": false,
305305
"v2.get_cost_anomaly": false,
306+
"v2.get_cost_tag_metadata_currency": false,
306307
"v2.list_cost_anomalies": false,
308+
"v2.list_cost_tag_key_sources": false,
309+
"v2.list_cost_tag_metadata": false,
310+
"v2.list_cost_tag_metadata_metrics": false,
311+
"v2.list_cost_tag_metadata_orchestrators": false,
307312
"v2.create_dashboard_secure_embed": false,
308313
"v2.delete_dashboard_secure_embed": false,
309314
"v2.get_dashboard_secure_embed": false,

0 commit comments

Comments
 (0)