ska_dlm.data_item.data_item_requests

Convenience functions to update data_item records.

Functions

query_data_item([item_name, oid, uid, ...])

Query a data_item.

set_acl([oid, uid, acl])

Set the user field of the data_item(s) with the given OID or UID.

set_group([oid, uid, group])

Set the user field of the data_item(s) with the given OID or UID.

set_metadata(uid[, metadata_post])

Populate the metadata column for a data_item with the metadata.

set_oid_expiration(oid, expiration)

Set the oid_expiration field of the data_items with the given OID.

set_phase(uid, phase)

Set the phase field of the data_item(s) with given UID.

set_state(uid, state)

Set the state field of the uid data_item.

set_uid_expiration(uid, expiration)

Set the uid_expiration field of the data_item with the given UID.

set_uri(uid, uri, storage_id)

Set the URI field of the uid data_item.

set_user([oid, uid, user])

Set the user field of the data_item(s) with the given OID or UID.

update_data_item([item_name, oid, uid, ...])

Update fields of an existing data_item.

update_item_tags([item_name, oid, item_tags])

Update/set the item_tags field of a data_item with given item_name/OID.