datacube.index.abstract.AbstractProductResource.update#

abstract AbstractProductResource.update(metadata_type, allow_unsafe_updates=False, allow_table_lock=False)[source]#

Persist updates to a product. Unsafe changes will throw a ValueError by default.

(An unsafe change is anything that may potentially make the product incompatible with existing datasets of that type)

Parameters
  • metadata_type (Product) – Product model with unpersisted updates

  • allow_unsafe_updates (bool) – Allow unsafe changes. Use with caution.

  • allow_table_lock (bool) –

    Allow an exclusive lock to be taken on the table while creating the indexes. This will halt other user’s requests until completed.

    If false, creation will be slower and cannot be done in a transaction.

Return type

Product

Returns

Persisted updated Product model