@@ -167,38 +167,8 @@ with ApiClient(configuration) as api_client:
167167 # Create an instance of the API class
168168 api_instance = downtimes_api.DowntimesApi(api_client)
169169 body = Downtime(
170- active = True ,
171- active_child = DowntimeChild(
172- active = True ,
173- canceled = 1412799983 ,
174- creator_id = 123456 ,
175- disabled = False ,
176- downtime_type = 2 ,
177- end = 1412793983 ,
178- id = 1626 ,
179- message = " Message on the downtime" ,
180- monitor_id = 123456 ,
181- monitor_tags = [" *" ],
182- parent_id = 123 ,
183- recurrence = DowntimeRecurrence(
184- period = 1 ,
185- rrule = " FREQ=MONTHLY;BYSETPOS=3;BYDAY=WE;INTERVAL=1" ,
186- type = " weeks" ,
187- until_date = 1447786293 ,
188- until_occurrences = 2 ,
189- week_days = [" Mon" ," Tue" ],
190- ),
191- scope = [" env:staging" ],
192- start = 1412792983 ,
193- timezone = " America/New_York" ,
194- updater_id = 123456 ,
195- ),
196- canceled = 1412799983 ,
197- creator_id = 123456 ,
198170 disabled = False ,
199- downtime_type = 2 ,
200171 end = 1412793983 ,
201- id = 1625 ,
202172 message = " Message on the downtime" ,
203173 monitor_id = 123456 ,
204174 monitor_tags = [" *" ],
@@ -214,7 +184,6 @@ with ApiClient(configuration) as api_client:
214184 scope = [" env:staging" ],
215185 start = 1412792983 ,
216186 timezone = " America/New_York" ,
217- updater_id = 123456 ,
218187 ) # Downtime | Schedule a downtime request body.
219188
220189 # example passing only required values which don't have defaults set
@@ -473,38 +442,8 @@ with ApiClient(configuration) as api_client:
473442 api_instance = downtimes_api.DowntimesApi(api_client)
474443 downtime_id = 123456 # int | ID of the downtime to update.
475444 body = Downtime(
476- active = True ,
477- active_child = DowntimeChild(
478- active = True ,
479- canceled = 1412799983 ,
480- creator_id = 123456 ,
481- disabled = False ,
482- downtime_type = 2 ,
483- end = 1412793983 ,
484- id = 1626 ,
485- message = " Message on the downtime" ,
486- monitor_id = 123456 ,
487- monitor_tags = [" *" ],
488- parent_id = 123 ,
489- recurrence = DowntimeRecurrence(
490- period = 1 ,
491- rrule = " FREQ=MONTHLY;BYSETPOS=3;BYDAY=WE;INTERVAL=1" ,
492- type = " weeks" ,
493- until_date = 1447786293 ,
494- until_occurrences = 2 ,
495- week_days = [" Mon" ," Tue" ],
496- ),
497- scope = [" env:staging" ],
498- start = 1412792983 ,
499- timezone = " America/New_York" ,
500- updater_id = 123456 ,
501- ),
502- canceled = 1412799983 ,
503- creator_id = 123456 ,
504445 disabled = False ,
505- downtime_type = 2 ,
506446 end = 1412793983 ,
507- id = 1625 ,
508447 message = " Message on the downtime" ,
509448 monitor_id = 123456 ,
510449 monitor_tags = [" *" ],
@@ -520,7 +459,6 @@ with ApiClient(configuration) as api_client:
520459 scope = [" env:staging" ],
521460 start = 1412792983 ,
522461 timezone = " America/New_York" ,
523- updater_id = 123456 ,
524462 ) # Downtime | Update a downtime request body.
525463
526464 # example passing only required values which don't have defaults set
0 commit comments