From 922bb704e95f477fa502fd85411f51841b0baaee Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 18 Jan 2019 17:29:27 -0800 Subject: python codegen --- python_client/fatcat_client/models/webcapture_entity.py | 2 ++ python_client/fatcat_client/models/webcapture_entity_cdx.py | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'python_client') 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 -- cgit v1.2.3