Skip to content

Commit 6687f2f

Browse files
Update generated source code
Generated SDK source code using: - Generator version 3.30.0 - Specification version 1.0.0-dev0.0.34 - Automation (cloudant-sdks) version e185f03
1 parent 419ddcf commit 6687f2f

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

ibmcloudant/cloudant_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# IBM OpenAPI SDK Code Generator Version: 3.28.0-55613c9e-20210220-164656
17+
# IBM OpenAPI SDK Code Generator Version: 3.30.0-bd714324-20210406-200538
1818

1919
"""
2020
NoSQL database based on Apache CouchDB

test/unit/test_cloudant_v1.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from datetime import datetime, timezone
2121
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
2223
import base64
2324
import inspect
2425
import io
@@ -15282,11 +15283,11 @@ def test_scheduler_docs_result_serialization(self):
1528215283
scheduler_document_model['error_count'] = 0
1528315284
scheduler_document_model['id'] = 'testString'
1528415285
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"))
1528615287
scheduler_document_model['node'] = 'testString'
1528715288
scheduler_document_model['source'] = 'testString'
1528815289
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"))
1529015291
scheduler_document_model['state'] = 'initializing'
1529115292
scheduler_document_model['target'] = 'testString'
1529215293
scheduler_document_model['target_proxy'] = 'testString'
@@ -15342,11 +15343,11 @@ def test_scheduler_document_serialization(self):
1534215343
scheduler_document_model_json['error_count'] = 0
1534315344
scheduler_document_model_json['id'] = 'testString'
1534415345
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"))
1534615347
scheduler_document_model_json['node'] = 'testString'
1534715348
scheduler_document_model_json['source'] = 'testString'
1534815349
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"))
1535015351
scheduler_document_model_json['state'] = 'initializing'
1535115352
scheduler_document_model_json['target'] = 'testString'
1535215353
scheduler_document_model_json['target_proxy'] = 'testString'
@@ -15417,7 +15418,7 @@ def test_scheduler_job_serialization(self):
1541715418
# Construct dict forms of any model objects needed in order to build this model.
1541815419

1541915420
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"))
1542115422
scheduler_job_event_model['type'] = 'testString'
1542215423

1542315424
scheduler_info_model = {} # SchedulerInfo
@@ -15442,7 +15443,7 @@ def test_scheduler_job_serialization(self):
1544215443
scheduler_job_model_json['node'] = 'testString'
1544315444
scheduler_job_model_json['pid'] = 'testString'
1544415445
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"))
1544615447
scheduler_job_model_json['target'] = 'testString'
1544715448
scheduler_job_model_json['user'] = 'testString'
1544815449

@@ -15473,7 +15474,7 @@ def test_scheduler_job_event_serialization(self):
1547315474

1547415475
# Construct a json representation of a SchedulerJobEvent model
1547515476
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"))
1547715478
scheduler_job_event_model_json['type'] = 'testString'
1547815479

1547915480
# 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):
1550415505
# Construct dict forms of any model objects needed in order to build this model.
1550515506

1550615507
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"))
1550815509
scheduler_job_event_model['type'] = 'testString'
1550915510

1551015511
scheduler_info_model = {} # SchedulerInfo
@@ -15528,7 +15529,7 @@ def test_scheduler_jobs_result_serialization(self):
1552815529
scheduler_job_model['node'] = 'testString'
1552915530
scheduler_job_model['pid'] = 'testString'
1553015531
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"))
1553215533
scheduler_job_model['target'] = 'testString'
1553315534
scheduler_job_model['user'] = 'testString'
1553415535

0 commit comments

Comments
 (0)