33# Copyright 2019-Present Datadog, Inc.
44from __future__ import annotations
55
6- from typing import List , Union , TYPE_CHECKING
6+ from typing import Any , List , Union , TYPE_CHECKING
77
88from 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