aboutsummaryrefslogtreecommitdiffstats
path: root/python_client/fatcat_client
diff options
context:
space:
mode:
Diffstat (limited to 'python_client/fatcat_client')
-rw-r--r--python_client/fatcat_client/models/webcapture_entity.py2
-rw-r--r--python_client/fatcat_client/models/webcapture_entity_cdx.py8
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