From 74ab156b3dfdde29c79069e3a0b724b71b53fc9b Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 9 Jun 2026 19:36:32 +0000 Subject: [PATCH] Regenerate client from commit e69b138 of spec repo --- .generator/schemas/v2/openapi.yaml | 8 ++++++++ src/datadog_api_client/v2/api/metrics_api.py | 11 +++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2d470c8f2f..6574c78c6c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -140826,7 +140826,10 @@ paths: - metrics_read /api/v2/metrics/config/bulk-tags: delete: + deprecated: true description: |- + **Note**: This endpoint is deprecated. Use the `/api/v2/metrics/{metric_name}/tags` endpoint instead. + Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. Metrics are selected by passing a metric name prefix. Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. @@ -140897,8 +140900,12 @@ paths: operator: OR permissions: - metric_tags_write + x-sunset: "2027-01-01" post: + deprecated: true description: |- + **Note**: This endpoint is deprecated. Use the `/api/v2/metrics/{metric_name}/tags` endpoint instead. + Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations. Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. @@ -140977,6 +140984,7 @@ paths: operator: OR permissions: - metric_tags_write + x-sunset: "2027-01-01" /api/v2/metrics/tag-indexing-rules: get: description: List tag indexing rules for an org, sorted by `rule_order`, with offset/limit pagination. diff --git a/src/datadog_api_client/v2/api/metrics_api.py b/src/datadog_api_client/v2/api/metrics_api.py index fd587d674c..e79c65860e 100644 --- a/src/datadog_api_client/v2/api/metrics_api.py +++ b/src/datadog_api_client/v2/api/metrics_api.py @@ -5,6 +5,7 @@ import collections from typing import Any, Dict, Union +import warnings from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint from datadog_api_client.configuration import Configuration @@ -822,7 +823,9 @@ def create_bulk_tags_metrics_configuration( self, body: MetricBulkTagConfigCreateRequest, ) -> MetricBulkTagConfigResponse: - """Configure tags for multiple metrics. + """Configure tags for multiple metrics. **Deprecated**. + + **Note** : This endpoint is deprecated. Use the ``/api/v2/metrics/{metric_name}/tags`` endpoint instead. Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations. @@ -838,6 +841,7 @@ def create_bulk_tags_metrics_configuration( kwargs: Dict[str, Any] = {} kwargs["body"] = body + warnings.warn("create_bulk_tags_metrics_configuration is deprecated", DeprecationWarning, stacklevel=2) return self._create_bulk_tags_metrics_configuration_endpoint.call_with_http_info(**kwargs) def create_tag_configuration( @@ -909,7 +913,9 @@ def delete_bulk_tags_metrics_configuration( self, body: MetricBulkTagConfigDeleteRequest, ) -> MetricBulkTagConfigResponse: - """Delete tags for multiple metrics. + """Delete tags for multiple metrics. **Deprecated**. + + **Note** : This endpoint is deprecated. Use the ``/api/v2/metrics/{metric_name}/tags`` endpoint instead. Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. Metrics are selected by passing a metric name prefix. @@ -922,6 +928,7 @@ def delete_bulk_tags_metrics_configuration( kwargs: Dict[str, Any] = {} kwargs["body"] = body + warnings.warn("delete_bulk_tags_metrics_configuration is deprecated", DeprecationWarning, stacklevel=2) return self._delete_bulk_tags_metrics_configuration_endpoint.call_with_http_info(**kwargs) def delete_tag_configuration(