19
19
20
20
from datetime import datetime, timezone
21
21
from ibm_cloud_sdk_core.authenticators.no_auth_authenticator import NoAuthAuthenticator
22
+ from ibm_cloud_sdk_core.utils import datetime_to_string, string_to_datetime
22
23
import base64
23
24
import inspect
24
25
import io
@@ -15282,11 +15283,11 @@ def test_scheduler_docs_result_serialization(self):
15282
15283
scheduler_document_model['error_count'] = 0
15283
15284
scheduler_document_model['id'] = 'testString'
15284
15285
scheduler_document_model['info'] = scheduler_info_model
15285
- scheduler_document_model['last_updated'] = '2020 -01-28T18:40:40.123456Z'
15286
+ scheduler_document_model['last_updated'] = datetime_to_string(string_to_datetime("2019 -01-01T12:00:00.000Z"))
15286
15287
scheduler_document_model['node'] = 'testString'
15287
15288
scheduler_document_model['source'] = 'testString'
15288
15289
scheduler_document_model['source_proxy'] = 'testString'
15289
- scheduler_document_model['start_time'] = '2020 -01-28T18:40:40.123456Z'
15290
+ scheduler_document_model['start_time'] = datetime_to_string(string_to_datetime("2019 -01-01T12:00:00.000Z"))
15290
15291
scheduler_document_model['state'] = 'initializing'
15291
15292
scheduler_document_model['target'] = 'testString'
15292
15293
scheduler_document_model['target_proxy'] = 'testString'
@@ -15342,11 +15343,11 @@ def test_scheduler_document_serialization(self):
15342
15343
scheduler_document_model_json['error_count'] = 0
15343
15344
scheduler_document_model_json['id'] = 'testString'
15344
15345
scheduler_document_model_json['info'] = scheduler_info_model
15345
- scheduler_document_model_json['last_updated'] = '2020 -01-28T18:40:40.123456Z'
15346
+ scheduler_document_model_json['last_updated'] = datetime_to_string(string_to_datetime("2019 -01-01T12:00:00.000Z"))
15346
15347
scheduler_document_model_json['node'] = 'testString'
15347
15348
scheduler_document_model_json['source'] = 'testString'
15348
15349
scheduler_document_model_json['source_proxy'] = 'testString'
15349
- scheduler_document_model_json['start_time'] = '2020 -01-28T18:40:40.123456Z'
15350
+ scheduler_document_model_json['start_time'] = datetime_to_string(string_to_datetime("2019 -01-01T12:00:00.000Z"))
15350
15351
scheduler_document_model_json['state'] = 'initializing'
15351
15352
scheduler_document_model_json['target'] = 'testString'
15352
15353
scheduler_document_model_json['target_proxy'] = 'testString'
@@ -15417,7 +15418,7 @@ def test_scheduler_job_serialization(self):
15417
15418
# Construct dict forms of any model objects needed in order to build this model.
15418
15419
15419
15420
scheduler_job_event_model = {} # SchedulerJobEvent
15420
- scheduler_job_event_model['timestamp'] = '2020 -01-28T18:40:40.123456Z'
15421
+ scheduler_job_event_model['timestamp'] = datetime_to_string(string_to_datetime("2019 -01-01T12:00:00.000Z"))
15421
15422
scheduler_job_event_model['type'] = 'testString'
15422
15423
15423
15424
scheduler_info_model = {} # SchedulerInfo
@@ -15442,7 +15443,7 @@ def test_scheduler_job_serialization(self):
15442
15443
scheduler_job_model_json['node'] = 'testString'
15443
15444
scheduler_job_model_json['pid'] = 'testString'
15444
15445
scheduler_job_model_json['source'] = 'testString'
15445
- scheduler_job_model_json['start_time'] = '2020 -01-28T18:40:40.123456Z'
15446
+ scheduler_job_model_json['start_time'] = datetime_to_string(string_to_datetime("2019 -01-01T12:00:00.000Z"))
15446
15447
scheduler_job_model_json['target'] = 'testString'
15447
15448
scheduler_job_model_json['user'] = 'testString'
15448
15449
@@ -15473,7 +15474,7 @@ def test_scheduler_job_event_serialization(self):
15473
15474
15474
15475
# Construct a json representation of a SchedulerJobEvent model
15475
15476
scheduler_job_event_model_json = {}
15476
- scheduler_job_event_model_json['timestamp'] = '2020 -01-28T18:40:40.123456Z'
15477
+ scheduler_job_event_model_json['timestamp'] = datetime_to_string(string_to_datetime("2019 -01-01T12:00:00.000Z"))
15477
15478
scheduler_job_event_model_json['type'] = 'testString'
15478
15479
15479
15480
# Construct a model instance of SchedulerJobEvent by calling from_dict on the json representation
@@ -15504,7 +15505,7 @@ def test_scheduler_jobs_result_serialization(self):
15504
15505
# Construct dict forms of any model objects needed in order to build this model.
15505
15506
15506
15507
scheduler_job_event_model = {} # SchedulerJobEvent
15507
- scheduler_job_event_model['timestamp'] = '2020 -01-28T18:40:40.123456Z'
15508
+ scheduler_job_event_model['timestamp'] = datetime_to_string(string_to_datetime("2019 -01-01T12:00:00.000Z"))
15508
15509
scheduler_job_event_model['type'] = 'testString'
15509
15510
15510
15511
scheduler_info_model = {} # SchedulerInfo
@@ -15528,7 +15529,7 @@ def test_scheduler_jobs_result_serialization(self):
15528
15529
scheduler_job_model['node'] = 'testString'
15529
15530
scheduler_job_model['pid'] = 'testString'
15530
15531
scheduler_job_model['source'] = 'testString'
15531
- scheduler_job_model['start_time'] = '2020 -01-28T18:40:40.123456Z'
15532
+ scheduler_job_model['start_time'] = datetime_to_string(string_to_datetime("2019 -01-01T12:00:00.000Z"))
15532
15533
scheduler_job_model['target'] = 'testString'
15533
15534
scheduler_job_model['user'] = 'testString'
15534
15535
0 commit comments