Skip to content

Commit dd82e95

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

25 files changed

Lines changed: 2684 additions & 185 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 653 additions & 1 deletion
Large diffs are not rendered by default.

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": {

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6608,6 +6608,73 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
66086608
},
66096609
operationResponseType: "CostTagKeyResponse",
66106610
},
6611+
"CloudCostManagementApi.V2.ListCostTagMetadata": {
6612+
filterMonth: {
6613+
type: "string",
6614+
format: "",
6615+
},
6616+
filterProvider: {
6617+
type: "string",
6618+
format: "",
6619+
},
6620+
filterMetric: {
6621+
type: "string",
6622+
format: "",
6623+
},
6624+
filterTagKey: {
6625+
type: "string",
6626+
format: "",
6627+
},
6628+
filterDaily: {
6629+
type: "CostTagMetadataDailyFilter",
6630+
format: "",
6631+
},
6632+
operationResponseType: "CostTagKeyMetadataResponse",
6633+
},
6634+
"CloudCostManagementApi.V2.GetCostTagMetadataCurrency": {
6635+
filterMonth: {
6636+
type: "string",
6637+
format: "",
6638+
},
6639+
filterProvider: {
6640+
type: "string",
6641+
format: "",
6642+
},
6643+
operationResponseType: "CostCurrencyResponse",
6644+
},
6645+
"CloudCostManagementApi.V2.ListCostTagMetadataMetrics": {
6646+
filterMonth: {
6647+
type: "string",
6648+
format: "",
6649+
},
6650+
filterProvider: {
6651+
type: "string",
6652+
format: "",
6653+
},
6654+
operationResponseType: "CostMetricsResponse",
6655+
},
6656+
"CloudCostManagementApi.V2.ListCostTagMetadataOrchestrators": {
6657+
filterMonth: {
6658+
type: "string",
6659+
format: "",
6660+
},
6661+
filterProvider: {
6662+
type: "string",
6663+
format: "",
6664+
},
6665+
operationResponseType: "CostOrchestratorsResponse",
6666+
},
6667+
"CloudCostManagementApi.V2.ListCostTagKeySources": {
6668+
filterMonth: {
6669+
type: "string",
6670+
format: "",
6671+
},
6672+
filterProvider: {
6673+
type: "string",
6674+
format: "",
6675+
},
6676+
operationResponseType: "CostTagKeySourcesResponse",
6677+
},
66116678
"CloudCostManagementApi.V2.ListCostTags": {
66126679
filterMetric: {
66136680
type: "string",

0 commit comments

Comments
 (0)