datacube.index.abstract.AbstractProductResource.add_document#
- AbstractProductResource.add_document(definition)[source]#
Add a Product using its definition
- 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]]]) – product definition document- Return type:
- Returns:
Persisted Product model