@@ -37,10 +37,11 @@ def openapi_types(_):
37
37
from datadog_api_client .v2 .model .downtime_status import DowntimeStatus
38
38
39
39
return {
40
- "created_at" : (datetime ,),
40
+ "canceled" : (datetime , none_type ),
41
+ "created" : (datetime ,),
41
42
"display_timezone" : (str ,),
42
43
"message" : (str ,),
43
- "modified_at " : (datetime ,),
44
+ "modified " : (datetime ,),
44
45
"monitor_identifier" : (DowntimeMonitorIdentifier ,),
45
46
"mute_first_recovery_notification" : (bool ,),
46
47
"notify_end_states" : ([DowntimeNotifyEndStateTypes ],),
@@ -51,10 +52,11 @@ def openapi_types(_):
51
52
}
52
53
53
54
attribute_map = {
54
- "created_at" : "created_at" ,
55
+ "canceled" : "canceled" ,
56
+ "created" : "created" ,
55
57
"display_timezone" : "display_timezone" ,
56
58
"message" : "message" ,
57
- "modified_at " : "modified_at " ,
59
+ "modified " : "modified " ,
58
60
"monitor_identifier" : "monitor_identifier" ,
59
61
"mute_first_recovery_notification" : "mute_first_recovery_notification" ,
60
62
"notify_end_states" : "notify_end_states" ,
@@ -66,10 +68,11 @@ def openapi_types(_):
66
68
67
69
def __init__ (
68
70
self_ ,
69
- created_at : Union [datetime , UnsetType ] = unset ,
71
+ canceled : Union [datetime , none_type , UnsetType ] = unset ,
72
+ created : Union [datetime , UnsetType ] = unset ,
70
73
display_timezone : Union [str , none_type , UnsetType ] = unset ,
71
74
message : Union [str , none_type , UnsetType ] = unset ,
72
- modified_at : Union [datetime , UnsetType ] = unset ,
75
+ modified : Union [datetime , UnsetType ] = unset ,
73
76
monitor_identifier : Union [
74
77
DowntimeMonitorIdentifier , DowntimeMonitorIdentifierId , DowntimeMonitorIdentifierTags , UnsetType
75
78
] = unset ,
@@ -86,8 +89,11 @@ def __init__(
86
89
"""
87
90
Downtime details.
88
91
89
- :param created_at: Creation time of the downtime.
90
- :type created_at: datetime, optional
92
+ :param canceled: Time that the downtime was canceled.
93
+ :type canceled: datetime, none_type, optional
94
+
95
+ :param created: Creation time of the downtime.
96
+ :type created: datetime, optional
91
97
92
98
:param display_timezone: The timezone in which to display the downtime's start and end times in Datadog applications. This is not used
93
99
as an offset for scheduling.
@@ -97,8 +103,8 @@ def __init__(
97
103
by using the same ``@username`` notation as events.
98
104
:type message: str, none_type, optional
99
105
100
- :param modified_at : Time that the downtime was last modified.
101
- :type modified_at : datetime, optional
106
+ :param modified : Time that the downtime was last modified.
107
+ :type modified : datetime, optional
102
108
103
109
:param monitor_identifier: Monitor identifier for the downtime.
104
110
:type monitor_identifier: DowntimeMonitorIdentifier, optional
@@ -123,14 +129,16 @@ def __init__(
123
129
:param status: The current status of the downtime.
124
130
:type status: DowntimeStatus, optional
125
131
"""
126
- if created_at is not unset :
127
- kwargs ["created_at" ] = created_at
132
+ if canceled is not unset :
133
+ kwargs ["canceled" ] = canceled
134
+ if created is not unset :
135
+ kwargs ["created" ] = created
128
136
if display_timezone is not unset :
129
137
kwargs ["display_timezone" ] = display_timezone
130
138
if message is not unset :
131
139
kwargs ["message" ] = message
132
- if modified_at is not unset :
133
- kwargs ["modified_at " ] = modified_at
140
+ if modified is not unset :
141
+ kwargs ["modified " ] = modified
134
142
if monitor_identifier is not unset :
135
143
kwargs ["monitor_identifier" ] = monitor_identifier
136
144
if mute_first_recovery_notification is not unset :
0 commit comments