Make return data of Deployment API serializable

Add method '.to_dict()' which allows converts returned result to
JSON format

Change-Id: Id005d6e224ae9351ad9786b7c2903616acc00ad8
This commit is contained in:
astaroverov 2017-03-07 16:30:53 +03:00
parent 3929e5a995
commit 48d8db3ec2

View File

@ -216,7 +216,7 @@ class _VerificationStatus(utils.ImmutableMixin, utils.EnumMixin):
class _TimeFormat(utils.ImmutableMixin, utils.EnumMixin):
"""International time formats"""
TIME_FORMAT_ISO8601 = "%Y-%m-%dT%H:%M:%S%z"
ISO8601 = "%Y-%m-%dT%H:%M:%S%z"
TaskStatus = _TaskStatus()