Skip to content

Commit bdf18aa

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c09ac23 of spec repo
1 parent d450e79 commit bdf18aa

File tree

6 files changed

+33
-9
lines changed

6 files changed

+33
-9
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "4727afe",
3-
"generated": "2025-07-23 15:37:01.942"
2+
"spec_repo_commit": "c09ac23",
3+
"generated": "2025-07-24 19:58:01.948"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22454,8 +22454,19 @@ components:
2245422454
readOnly: true
2245522455
type: object
2245622456
MetricAssetAttributes:
22457-
description: Assets related to the object, including title and url.
22457+
description: Assets related to the object, including title, url, and tags.
2245822458
properties:
22459+
tags:
22460+
description: List of tag keys used in the asset.
22461+
example:
22462+
- env
22463+
- service
22464+
- host
22465+
- datacenter
22466+
items:
22467+
description: Tag key used in assets.
22468+
type: string
22469+
type: array
2245922470
title:
2246022471
description: Title of the asset.
2246122472
type: string

src/datadog_api_client/v2/model/metric_asset_attributes.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import List, Union
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -17,25 +17,38 @@ class MetricAssetAttributes(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"tags": ([str],),
2021
"title": (str,),
2122
"url": (str,),
2223
}
2324

2425
attribute_map = {
26+
"tags": "tags",
2527
"title": "title",
2628
"url": "url",
2729
}
2830

29-
def __init__(self_, title: Union[str, UnsetType] = unset, url: Union[str, UnsetType] = unset, **kwargs):
31+
def __init__(
32+
self_,
33+
tags: Union[List[str], UnsetType] = unset,
34+
title: Union[str, UnsetType] = unset,
35+
url: Union[str, UnsetType] = unset,
36+
**kwargs,
37+
):
3038
"""
31-
Assets related to the object, including title and url.
39+
Assets related to the object, including title, url, and tags.
40+
41+
:param tags: List of tag keys used in the asset.
42+
:type tags: [str], optional
3243
3344
:param title: Title of the asset.
3445
:type title: str, optional
3546
3647
:param url: URL path of the asset.
3748
:type url: str, optional
3849
"""
50+
if tags is not unset:
51+
kwargs["tags"] = tags
3952
if title is not unset:
4053
kwargs["title"] = title
4154
if url is not unset:

src/datadog_api_client/v2/model/metric_monitor_asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
"""
4343
A monitor object with title.
4444
45-
:param attributes: Assets related to the object, including title and url.
45+
:param attributes: Assets related to the object, including title, url, and tags.
4646
:type attributes: MetricAssetAttributes, optional
4747
4848
:param id: The related monitor's ID.

src/datadog_api_client/v2/model/metric_notebook_asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
"""
4343
A notebook object with title.
4444
45-
:param attributes: Assets related to the object, including title and url.
45+
:param attributes: Assets related to the object, including title, url, and tags.
4646
:type attributes: MetricAssetAttributes, optional
4747
4848
:param id: The related notebook's ID.

src/datadog_api_client/v2/model/metric_slo_asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
"""
4343
A SLO object with title.
4444
45-
:param attributes: Assets related to the object, including title and url.
45+
:param attributes: Assets related to the object, including title, url, and tags.
4646
:type attributes: MetricAssetAttributes, optional
4747
4848
:param id: The SLO ID.

0 commit comments

Comments
 (0)