datacube.index.abstract.AbstractDatasetResource.update#

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

Update dataset metadata and location :param Dataset dataset: Dataset model with unpersisted updates :type updates_allowed: Optional[Mapping[Tuple[Union[str, int], ...], Callable[[Tuple[Union[str, int], ...], Tuple[Union[str, int], ...], Union[MissingSentinel, str, int, None, Sequence[Any], Mapping[str, Any]], Union[MissingSentinel, str, int, None, Sequence[Any], Mapping[str, Any]]], bool]]] :param updates_allowed: Allowed updates :rtype: Dataset :return: Persisted dataset model