content library: item model
item_modelstructure represents a library item that has been stored in a library.
item_model represents a single logical unit to be managed within a content.library_model. Items contain the actual content of a library, and their placement within a library determines policies that affect that content such as publishing.
A library item can have a specified type, indicated with the content.library.item_model.type field. This property is associated with a Content Library Service plugin that supports specific types and provides additional services. The types available in a specific Content Library Service can be queried using the content.type service. Items of an unknown or unspecified type are treated generically. Because subscribed library catalogs are synchronized as is, subscribing to a remote Content Library Service effectively gives you a library with the functionality of the remote service's type adapter plugins, even if they are not installed locally.
Items can be managed using the content.library.item service and, for items in subscribed libraries, the content.library.subscribed_item service.
|id||string||A unique identifier for this library item. Optional. This field is not used for the
|library_id||string||The identifier of the content.library_model to which this item belongs. Optional. This field must be provided for the
|content_version||string||The version of the file content list of this library item. Optional. This field is not used for the
|creation_time||date_time||The date and time when this library item was created. Optional. This field is not used for the
|description||string||A human-readable description for this library item. Optional. This field is optional for the
|last_modified_time||date_time||The date and time when the metadata for this library item was last changed.
This field is affected by changes to the properties or file content of this item. It is not modified by changes to the tags of the item, or by changes to the library which owns this item.Optional. This field is not used for the
|last_sync_time||date_time||The date and time when this library item was last synchronized.
This field is updated every time a synchronization is triggered on the library item, including when a synchronization is triggered on the library to which this item belongs. The value is unset for a library item that belongs to a local library.Optional. This field is not used for the
|metadata_version||string||A version number for the metadata of this library item.
This value is incremented with each change to the metadata of this item. Changes to name, description, and so on will increment this value. The value is not incremented by changes to the content or tags of the item or the library which owns it.Optional. This field is not used for the
|name||string||A human-readable name for this library item.
The name may not be unset or an empty string. The name does not have to be unique, even within the same library.Optional. This field must be provided for the
|cached||boolean||The status that indicates whether the library item is on disk or not. The library item is cached when all its files are on disk. Optional. This field is not used for the
|size||long||The library item size, in bytes. The size is the sum of the size used on the storage backing for all the files in the item. When the library item is not cached, the size is 0. Optional. This field is not used for the
|type||string||An optional type identifier which indicates the type adapter plugin to use.
This field may be set to a non-empty string value that corresponds to an identifier supported by a type adapter plugin present in the Content Library Service. A type adapter plugin, if present for the specified type, can provide additional information and services around the item content. A type adapter can guide the upload process by creating file entries that are in need of being uploaded to complete an item.
The types and plugins supported by the Content Library Service can be queried using the content.type service.Optional. This field is optional for the
|version||string||A version number that is updated on metadata changes. This value is used to validate update requests to provide optimistic concurrency of changes.
This value represents a number that is incremented every time library item properties, such as name or description, are changed. It is not incremented by changes to the file content of the library item, including adding or removing files. It is also not affected by tagging the library item.Optional. This field is not used for the
|source_id||string||The identifier of the content.library.item_model to which this item is synchronized to if the item belongs to a subscribed library. The value is unset for a library item that belongs to a local library. Optional. This field is not used for the