calendaring_sync.objects.change_set module#
A change set, whole or one page of it.
- class calendaring_sync.objects.change_set.ChangeSet(scope, since, token, changes, full_listing=False, truncated=False)[source]#
Bases:
objectOne change set, or one truncated page of it, for one scope.
- since#
The sync token it was fetched from,
Nonefor a scope that has none. Every page of a full listing carries the scope’s token from before the listing.
- token#
The token the scope moves to. On a truncated page of an incremental change set that’s the page’s checkpoint. Every page of a full listing carries the same token, the one the listing read before it started, and the scope moves to it when the last page is ingested.
- Type:
- changes#
Each object id mapped to how the object changed. An object appears once. The change set keeps a read-only copy, so changing the mapping it was built from afterwards changes nothing.
- Raises:
TypeError – If a field has the wrong type.
LoneSurrogateError – If the scope id, a token or an object id holds a lone surrogate.
ValueError – If an incremental change set reports an object
Unchanged, which only a full listing can.