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:
dataset (Dataset) – Dataset to update
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
]]]) – Allowed updates
- 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