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 (
dict
[str
,None
|bool
|str
|float
|int
|list
[None
|bool
|str
|float
|int
|list
[JsonLike] |dict
[str
, JsonLike]] |dict
[str
,None
|bool
|str
|float
|int
|list
[JsonLike] |dict
[str
, JsonLike]]]) – a Product metadata dictionarymetadata_type_cache (
dict
[str
,MetadataType
] |None
) – a dict cache of MetaDataTypes to use in constructing a Product. MetaDataTypes may come from a different index.
- Return type:
- Returns:
Unpersisted product model