From bdf18aa97a88c523dde555fe06b1d4003811b20c Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 24 Jul 2025 19:58:02 +0000 Subject: [PATCH] Regenerate client from commit c09ac23 of spec repo --- .generated-info | 4 ++-- .generator/schemas/v2/openapi.yaml | 13 ++++++++++++- .../v2/model/metric_asset_attributes.py | 19 ++++++++++++++++--- .../v2/model/metric_monitor_asset.py | 2 +- .../v2/model/metric_notebook_asset.py | 2 +- .../v2/model/metric_slo_asset.py | 2 +- 6 files changed, 33 insertions(+), 9 deletions(-) diff --git a/.generated-info b/.generated-info index b3179495b8..9baacb1ab0 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "4727afe", - "generated": "2025-07-23 15:37:01.942" + "spec_repo_commit": "c09ac23", + "generated": "2025-07-24 19:58:01.948" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d6126b4430..db8036425c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -22454,8 +22454,19 @@ components: readOnly: true type: object MetricAssetAttributes: - description: Assets related to the object, including title and url. + description: Assets related to the object, including title, url, and tags. properties: + tags: + description: List of tag keys used in the asset. + example: + - env + - service + - host + - datacenter + items: + description: Tag key used in assets. + type: string + type: array title: description: Title of the asset. type: string diff --git a/src/datadog_api_client/v2/model/metric_asset_attributes.py b/src/datadog_api_client/v2/model/metric_asset_attributes.py index 5a7a8a00e2..8a4e41439b 100644 --- a/src/datadog_api_client/v2/model/metric_asset_attributes.py +++ b/src/datadog_api_client/v2/model/metric_asset_attributes.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union +from typing import List, Union from datadog_api_client.model_utils import ( ModelNormal, @@ -17,18 +17,29 @@ class MetricAssetAttributes(ModelNormal): @cached_property def openapi_types(_): return { + "tags": ([str],), "title": (str,), "url": (str,), } attribute_map = { + "tags": "tags", "title": "title", "url": "url", } - def __init__(self_, title: Union[str, UnsetType] = unset, url: Union[str, UnsetType] = unset, **kwargs): + def __init__( + self_, + tags: Union[List[str], UnsetType] = unset, + title: Union[str, UnsetType] = unset, + url: Union[str, UnsetType] = unset, + **kwargs, + ): """ - Assets related to the object, including title and url. + Assets related to the object, including title, url, and tags. + + :param tags: List of tag keys used in the asset. + :type tags: [str], optional :param title: Title of the asset. :type title: str, optional @@ -36,6 +47,8 @@ def __init__(self_, title: Union[str, UnsetType] = unset, url: Union[str, UnsetT :param url: URL path of the asset. :type url: str, optional """ + if tags is not unset: + kwargs["tags"] = tags if title is not unset: kwargs["title"] = title if url is not unset: diff --git a/src/datadog_api_client/v2/model/metric_monitor_asset.py b/src/datadog_api_client/v2/model/metric_monitor_asset.py index 99592002f2..c463d5cdd7 100644 --- a/src/datadog_api_client/v2/model/metric_monitor_asset.py +++ b/src/datadog_api_client/v2/model/metric_monitor_asset.py @@ -42,7 +42,7 @@ def __init__( """ A monitor object with title. - :param attributes: Assets related to the object, including title and url. + :param attributes: Assets related to the object, including title, url, and tags. :type attributes: MetricAssetAttributes, optional :param id: The related monitor's ID. diff --git a/src/datadog_api_client/v2/model/metric_notebook_asset.py b/src/datadog_api_client/v2/model/metric_notebook_asset.py index e7b73bbc43..9c54df083b 100644 --- a/src/datadog_api_client/v2/model/metric_notebook_asset.py +++ b/src/datadog_api_client/v2/model/metric_notebook_asset.py @@ -42,7 +42,7 @@ def __init__( """ A notebook object with title. - :param attributes: Assets related to the object, including title and url. + :param attributes: Assets related to the object, including title, url, and tags. :type attributes: MetricAssetAttributes, optional :param id: The related notebook's ID. diff --git a/src/datadog_api_client/v2/model/metric_slo_asset.py b/src/datadog_api_client/v2/model/metric_slo_asset.py index 953a889044..71f3503f4e 100644 --- a/src/datadog_api_client/v2/model/metric_slo_asset.py +++ b/src/datadog_api_client/v2/model/metric_slo_asset.py @@ -42,7 +42,7 @@ def __init__( """ A SLO object with title. - :param attributes: Assets related to the object, including title and url. + :param attributes: Assets related to the object, including title, url, and tags. :type attributes: MetricAssetAttributes, optional :param id: The SLO ID.