diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-18 17:29:27 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-18 17:29:27 -0800 |
commit | 922bb704e95f477fa502fd85411f51841b0baaee (patch) | |
tree | db81ca941d10367756a0e1471b8a30bbe162b28f /python_client/fatcat_client/models | |
parent | 4eab53da4b89d0ef4d90140f9429a3bdfcc7761e (diff) | |
download | fatcat-922bb704e95f477fa502fd85411f51841b0baaee.tar.gz fatcat-922bb704e95f477fa502fd85411f51841b0baaee.zip |
python codegen
Diffstat (limited to 'python_client/fatcat_client/models')
-rw-r--r-- | python_client/fatcat_client/models/webcapture_entity.py | 2 | ||||
-rw-r--r-- | python_client/fatcat_client/models/webcapture_entity_cdx.py | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/python_client/fatcat_client/models/webcapture_entity.py b/python_client/fatcat_client/models/webcapture_entity.py index 9d49c916..6db49186 100644 --- a/python_client/fatcat_client/models/webcapture_entity.py +++ b/python_client/fatcat_client/models/webcapture_entity.py @@ -125,6 +125,7 @@ class WebcaptureEntity(object): def timestamp(self): """Gets the timestamp of this WebcaptureEntity. # noqa: E501 + same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Can be the earliest or average of CDX timestamps if that makes sense. # noqa: E501 :return: The timestamp of this WebcaptureEntity. # noqa: E501 :rtype: datetime @@ -135,6 +136,7 @@ class WebcaptureEntity(object): def timestamp(self, timestamp): """Sets the timestamp of this WebcaptureEntity. + same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Can be the earliest or average of CDX timestamps if that makes sense. # noqa: E501 :param timestamp: The timestamp of this WebcaptureEntity. # noqa: E501 :type: datetime diff --git a/python_client/fatcat_client/models/webcapture_entity_cdx.py b/python_client/fatcat_client/models/webcapture_entity_cdx.py index a34ea2f1..082c1b96 100644 --- a/python_client/fatcat_client/models/webcapture_entity_cdx.py +++ b/python_client/fatcat_client/models/webcapture_entity_cdx.py @@ -32,7 +32,7 @@ class WebcaptureEntityCdx(object): """ swagger_types = { 'surt': 'str', - 'timestamp': 'str', + 'timestamp': 'datetime', 'url': 'str', 'mimetype': 'str', 'status_code': 'int', @@ -100,9 +100,10 @@ class WebcaptureEntityCdx(object): def timestamp(self): """Gets the timestamp of this WebcaptureEntityCdx. # noqa: E501 + UTC, 'Z'-terminated, second (or better) precision # noqa: E501 :return: The timestamp of this WebcaptureEntityCdx. # noqa: E501 - :rtype: str + :rtype: datetime """ return self._timestamp @@ -110,9 +111,10 @@ class WebcaptureEntityCdx(object): def timestamp(self, timestamp): """Sets the timestamp of this WebcaptureEntityCdx. + UTC, 'Z'-terminated, second (or better) precision # noqa: E501 :param timestamp: The timestamp of this WebcaptureEntityCdx. # noqa: E501 - :type: str + :type: datetime """ if timestamp is None: raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 |