Skip to content

Commit 4d3d697

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

32 files changed

Lines changed: 2171 additions & 1 deletion

.generator/schemas/v2/openapi.yaml

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

docs/datadog_api_client.v2.model.rst

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6535,6 +6535,69 @@ datadog\_api\_client.v2.model.cost\_by\_org\_type module
65356535
:members:
65366536
:show-inheritance:
65376537

6538+
datadog\_api\_client.v2.model.cost\_currency module
6539+
---------------------------------------------------
6540+
6541+
.. automodule:: datadog_api_client.v2.model.cost_currency
6542+
:members:
6543+
:show-inheritance:
6544+
6545+
datadog\_api\_client.v2.model.cost\_currency\_response module
6546+
-------------------------------------------------------------
6547+
6548+
.. automodule:: datadog_api_client.v2.model.cost_currency_response
6549+
:members:
6550+
:show-inheritance:
6551+
6552+
datadog\_api\_client.v2.model.cost\_currency\_type module
6553+
---------------------------------------------------------
6554+
6555+
.. automodule:: datadog_api_client.v2.model.cost_currency_type
6556+
:members:
6557+
:show-inheritance:
6558+
6559+
datadog\_api\_client.v2.model.cost\_metric module
6560+
-------------------------------------------------
6561+
6562+
.. automodule:: datadog_api_client.v2.model.cost_metric
6563+
:members:
6564+
:show-inheritance:
6565+
6566+
datadog\_api\_client.v2.model.cost\_metric\_type module
6567+
-------------------------------------------------------
6568+
6569+
.. automodule:: datadog_api_client.v2.model.cost_metric_type
6570+
:members:
6571+
:show-inheritance:
6572+
6573+
datadog\_api\_client.v2.model.cost\_metrics\_response module
6574+
------------------------------------------------------------
6575+
6576+
.. automodule:: datadog_api_client.v2.model.cost_metrics_response
6577+
:members:
6578+
:show-inheritance:
6579+
6580+
datadog\_api\_client.v2.model.cost\_orchestrator module
6581+
-------------------------------------------------------
6582+
6583+
.. automodule:: datadog_api_client.v2.model.cost_orchestrator
6584+
:members:
6585+
:show-inheritance:
6586+
6587+
datadog\_api\_client.v2.model.cost\_orchestrator\_type module
6588+
-------------------------------------------------------------
6589+
6590+
.. automodule:: datadog_api_client.v2.model.cost_orchestrator_type
6591+
:members:
6592+
:show-inheritance:
6593+
6594+
datadog\_api\_client.v2.model.cost\_orchestrators\_response module
6595+
------------------------------------------------------------------
6596+
6597+
.. automodule:: datadog_api_client.v2.model.cost_orchestrators_response
6598+
:members:
6599+
:show-inheritance:
6600+
65386601
datadog\_api\_client.v2.model.cost\_tag module
65396602
----------------------------------------------
65406603

@@ -6605,13 +6668,83 @@ datadog\_api\_client.v2.model.cost\_tag\_key\_details module
66056668
:members:
66066669
:show-inheritance:
66076670

6671+
datadog\_api\_client.v2.model.cost\_tag\_key\_metadata module
6672+
-------------------------------------------------------------
6673+
6674+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_metadata
6675+
:members:
6676+
:show-inheritance:
6677+
6678+
datadog\_api\_client.v2.model.cost\_tag\_key\_metadata\_attributes module
6679+
-------------------------------------------------------------------------
6680+
6681+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_metadata_attributes
6682+
:members:
6683+
:show-inheritance:
6684+
6685+
datadog\_api\_client.v2.model.cost\_tag\_key\_metadata\_cardinality\_by\_account module
6686+
---------------------------------------------------------------------------------------
6687+
6688+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_metadata_cardinality_by_account
6689+
:members:
6690+
:show-inheritance:
6691+
6692+
datadog\_api\_client.v2.model.cost\_tag\_key\_metadata\_response module
6693+
-----------------------------------------------------------------------
6694+
6695+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_metadata_response
6696+
:members:
6697+
:show-inheritance:
6698+
6699+
datadog\_api\_client.v2.model.cost\_tag\_key\_metadata\_top\_values\_by\_account module
6700+
---------------------------------------------------------------------------------------
6701+
6702+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_metadata_top_values_by_account
6703+
:members:
6704+
:show-inheritance:
6705+
6706+
datadog\_api\_client.v2.model.cost\_tag\_key\_metadata\_type module
6707+
-------------------------------------------------------------------
6708+
6709+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_metadata_type
6710+
:members:
6711+
:show-inheritance:
6712+
66086713
datadog\_api\_client.v2.model.cost\_tag\_key\_response module
66096714
-------------------------------------------------------------
66106715

66116716
.. automodule:: datadog_api_client.v2.model.cost_tag_key_response
66126717
:members:
66136718
:show-inheritance:
66146719

6720+
datadog\_api\_client.v2.model.cost\_tag\_key\_source module
6721+
-----------------------------------------------------------
6722+
6723+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_source
6724+
:members:
6725+
:show-inheritance:
6726+
6727+
datadog\_api\_client.v2.model.cost\_tag\_key\_source\_attributes module
6728+
-----------------------------------------------------------------------
6729+
6730+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_source_attributes
6731+
:members:
6732+
:show-inheritance:
6733+
6734+
datadog\_api\_client.v2.model.cost\_tag\_key\_source\_type module
6735+
-----------------------------------------------------------------
6736+
6737+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_source_type
6738+
:members:
6739+
:show-inheritance:
6740+
6741+
datadog\_api\_client.v2.model.cost\_tag\_key\_sources\_response module
6742+
----------------------------------------------------------------------
6743+
6744+
.. automodule:: datadog_api_client.v2.model.cost_tag_key_sources_response
6745+
:members:
6746+
:show-inheritance:
6747+
66156748
datadog\_api\_client.v2.model.cost\_tag\_key\_type module
66166749
---------------------------------------------------------
66176750

@@ -6626,6 +6759,13 @@ datadog\_api\_client.v2.model.cost\_tag\_keys\_response module
66266759
:members:
66276760
:show-inheritance:
66286761

6762+
datadog\_api\_client.v2.model.cost\_tag\_metadata\_daily\_filter module
6763+
-----------------------------------------------------------------------
6764+
6765+
.. automodule:: datadog_api_client.v2.model.cost_tag_metadata_daily_filter
6766+
:members:
6767+
:show-inheritance:
6768+
66296769
datadog\_api\_client.v2.model.cost\_tag\_type module
66306770
----------------------------------------------------
66316771

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
Get the Cloud Cost Management billing currency returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["get_cost_tag_metadata_currency"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = CloudCostManagementApi(api_client)
12+
response = api_instance.get_cost_tag_metadata_currency(
13+
filter_month="filter[month]",
14+
)
15+
16+
print(response)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
List Cloud Cost Management tag sources returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["list_cost_tag_key_sources"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = CloudCostManagementApi(api_client)
12+
response = api_instance.list_cost_tag_key_sources(
13+
filter_month="filter[month]",
14+
)
15+
16+
print(response)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
List Cloud Cost Management tag key metadata returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["list_cost_tag_metadata"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = CloudCostManagementApi(api_client)
12+
response = api_instance.list_cost_tag_metadata(
13+
filter_month="filter[month]",
14+
)
15+
16+
print(response)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
List available Cloud Cost Management metrics returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["list_cost_tag_metadata_metrics"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = CloudCostManagementApi(api_client)
12+
response = api_instance.list_cost_tag_metadata_metrics(
13+
filter_month="filter[month]",
14+
)
15+
16+
print(response)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
List Cloud Cost Management orchestrators returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["list_cost_tag_metadata_orchestrators"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = CloudCostManagementApi(api_client)
12+
response = api_instance.list_cost_tag_metadata_orchestrators(
13+
filter_month="filter[month]",
14+
)
15+
16+
print(response)

src/datadog_api_client/configuration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,12 @@ def __init__(
361361
"v2.get_commitments_utilization_scalar": False,
362362
"v2.get_commitments_utilization_timeseries": False,
363363
"v2.get_cost_anomaly": False,
364+
"v2.get_cost_tag_metadata_currency": False,
364365
"v2.list_cost_anomalies": False,
366+
"v2.list_cost_tag_key_sources": False,
367+
"v2.list_cost_tag_metadata": False,
368+
"v2.list_cost_tag_metadata_metrics": False,
369+
"v2.list_cost_tag_metadata_orchestrators": False,
365370
"v2.create_dashboard_secure_embed": False,
366371
"v2.delete_dashboard_secure_embed": False,
367372
"v2.get_dashboard_secure_embed": False,

0 commit comments

Comments
 (0)