datacube.index.abstract.AbstractProductResource.from_doc#
- AbstractProductResource.from_doc(definition, metadata_type_cache=None)[source]#
Construct unpersisted Product model from product metadata dictionary
- Parameters
definition (
Mapping
[str
,Any
]) – a Product metadata dictionarymetadata_type_cache (
Optional
[MutableMapping
[str
,MetadataType
]]) – a dict cache of MetaDataTypes to use in constructing a Product. MetaDataTypes may come from a different index.
- Return type
Product
- Returns
Unpersisted product model