Skip to content

Commit d401449

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 335acc5 of spec repo
1 parent b75003d commit d401449

2 files changed

Lines changed: 59 additions & 1 deletion

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,10 @@ components:
14431443
format: date-time
14441444
readOnly: true
14451445
type: string
1446+
default_timeframe:
1447+
allOf:
1448+
- $ref: "#/components/schemas/DashboardDefaultTimeframe"
1449+
description: The default timeframe applied when opening the dashboard. Set to `null` to clear the dashboard's default timeframe.
14461450
description:
14471451
description: Description of the dashboard.
14481452
nullable: true
@@ -1557,6 +1561,39 @@ components:
15571561
required:
15581562
- data
15591563
type: object
1564+
DashboardDefaultTimeframe:
1565+
description: The default timeframe applied when opening the dashboard.
1566+
nullable: true
1567+
properties:
1568+
from:
1569+
description: Start time in milliseconds since epoch. Required when `type` is `fixed`.
1570+
format: int64
1571+
type: integer
1572+
to:
1573+
description: End time in milliseconds since epoch. Required when `type` is `fixed`.
1574+
format: int64
1575+
type: integer
1576+
type:
1577+
$ref: "#/components/schemas/DashboardDefaultTimeframeType"
1578+
unit:
1579+
$ref: "#/components/schemas/WidgetLiveSpanUnit"
1580+
value:
1581+
description: Value of the live timeframe span. Required when `type` is `live`.
1582+
format: int64
1583+
type: integer
1584+
required:
1585+
- type
1586+
type: object
1587+
DashboardDefaultTimeframeType:
1588+
description: Type of timeframe.
1589+
enum:
1590+
- live
1591+
- fixed
1592+
example: live
1593+
type: string
1594+
x-enum-varnames:
1595+
- LIVE
1596+
- FIXED
15601597
DashboardDeleteResponse:
15611598
description: Response from the delete dashboard call.
15621599
properties:

src/datadog_api_client/v1/model/dashboard.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

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

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
date,
1112
datetime,
1213
none_type,
1314
unset,
1415
UnsetType,
16+
UUID,
1517
)
1618

1719

@@ -47,6 +49,18 @@ def openapi_types(_):
4749
"author_handle": (str,),
4850
"author_name": (str, none_type),
4951
"created_at": (datetime,),
52+
"default_timeframe": (
53+
bool,
54+
date,
55+
datetime,
56+
dict,
57+
float,
58+
int,
59+
list,
60+
str,
61+
UUID,
62+
none_type,
63+
),
5064
"description": (str, none_type),
5165
"id": (str,),
5266
"is_read_only": (bool,),
@@ -68,6 +82,7 @@ def openapi_types(_):
6882
"author_handle": "author_handle",
6983
"author_name": "author_name",
7084
"created_at": "created_at",
85+
"default_timeframe": "default_timeframe",
7186
"description": "description",
7287
"id": "id",
7388
"is_read_only": "is_read_only",
@@ -101,6 +116,7 @@ def __init__(
101116
author_handle: Union[str, UnsetType] = unset,
102117
author_name: Union[str, none_type, UnsetType] = unset,
103118
created_at: Union[datetime, UnsetType] = unset,
119+
default_timeframe: Union[Any, UnsetType] = unset,
104120
description: Union[str, none_type, UnsetType] = unset,
105121
id: Union[str, UnsetType] = unset,
106122
is_read_only: Union[bool, UnsetType] = unset,
@@ -128,6 +144,9 @@ def __init__(
128144
:param created_at: Creation date of the dashboard.
129145
:type created_at: datetime, optional
130146
147+
:param default_timeframe: The default timeframe applied when opening the dashboard. Set to ``null`` to clear the dashboard's default timeframe.
148+
:type default_timeframe: bool, date, datetime, dict, float, int, list, str, UUID, none_type, optional
149+
131150
:param description: Description of the dashboard.
132151
:type description: str, none_type, optional
133152
@@ -183,6 +202,8 @@ def __init__(
183202
kwargs["author_name"] = author_name
184203
if created_at is not unset:
185204
kwargs["created_at"] = created_at
205+
if default_timeframe is not unset:
206+
kwargs["default_timeframe"] = default_timeframe
186207
if description is not unset:
187208
kwargs["description"] = description
188209
if id is not unset:

0 commit comments

Comments
 (0)