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 (
Mapping
[tuple
[str
|int
,...
],Callable
[[tuple
[str
|int
,...
],tuple
[str
|int
,...
],MissingSentinel
|str
|int
|None
|Sequence
[Any
] |Mapping
[str
,Any
],MissingSentinel
|str
|int
|None
|Sequence
[Any
] |Mapping
[str
,Any
]],bool
]] |None
) – Allowed updates
- Return type:
tuple
[bool
,Iterable
[tuple
[tuple
[str
|int
,...
],MissingSentinel
|str
|int
|None
|Sequence
[Any
] |Mapping
[str
,Any
],MissingSentinel
|str
|int
|None
|Sequence
[Any
] |Mapping
[str
,Any
]]],Iterable
[tuple
[tuple
[str
|int
,...
],MissingSentinel
|str
|int
|None
|Sequence
[Any
] |Mapping
[str
,Any
],MissingSentinel
|str
|int
|None
|Sequence
[Any
] |Mapping
[str
,Any
]]]]- Returns:
Tuple of: boolean (can/can’t update); safe changes; unsafe changes