datacube.index.abstract.AbstractDatasetResource.can_update#

abstract AbstractDatasetResource.can_update(dataset, updates_allowed=None)[source]#

Check if dataset can be updated. Return bool,safe_changes,unsafe_changes

Parameters
Return type

Tuple[bool, Iterable[Tuple[Tuple[Union[str, int], ...], Union[MissingSentinel, str, int, None, Sequence[Any], Mapping[str, Any]], Union[MissingSentinel, str, int, None, Sequence[Any], Mapping[str, Any]]]], Iterable[Tuple[Tuple[Union[str, int], ...], Union[MissingSentinel, str, int, None, Sequence[Any], Mapping[str, Any]], Union[MissingSentinel, str, int, None, Sequence[Any], Mapping[str, Any]]]]]

Returns

Tuple of: boolean (can/can’t update); safe changes; unsafe changes