# our tokens.
return
else:
- self._past_versions.add((response.get("modified_at"), response.get("portable_data_hash")))
+ self._remember_api_response(response)
other = CollectionReader(response["manifest_text"])
baseline = CollectionReader(self._manifest_text)
self.apply(baseline.diff(other))
Retry count on API calls (if None, use the collection default)
:preserve_version:
- If True, the saved collection will be preserved, provided that the
- Collections.CollectionVersioning configuration is enabled.
+ If True, indicate that the collection content being saved right now
+ should be preserved in a version snapshot if the collection record is
+ updated in the future. Requires that the API server has
+ Collections.CollectionVersioning enabled, if not, setting this will
+ raise an exception.
"""
if properties and type(properties) is not dict:
Retry count on API calls (if None, use the collection default)
:preserve_version:
- If True, the saved collection will be preserved, provided that the
- Collections.CollectionVersioning configuration is enabled.
+ If True, indicate that the collection content being saved right now
+ should be preserved in a version snapshot if the collection record is
+ updated in the future. Requires that the API server has
+ Collections.CollectionVersioning enabled, if not, setting this will
+ raise an exception.
"""
if properties and type(properties) is not dict: