Library_Item_File_Info

Library_Item_File_Info
Library_Item_File_Info

The File.Info structure provides information about a file in Content Library Service storage. A file is an actual stored object for a library item. An item will have zero files initially, but one or more can be uploaded to the item.

JSON Example
{
    "checksum_info": {
        "algorithm": "string",
        "checksum": "string"
    },
    "name": "string",
    "size": 0,
    "cached": false,
    "version": "string"
}
checksum_info
Optional

Provides checksums for a File.Info object.

string
name
Required

The name of the file. This value will be unique within the library item for each file. It cannot be an empty string.

integer As int64
size
Required

The file size, in bytes. The file size is the storage used and not the uploaded or provisioned size. For example, when uploading a disk to a datastore, the amount of storage that the disk consumes may be different from the disk file size. When the file is not cached, the size is 0.

boolean
cached
Required

Indicates whether the file is on disk or not.

string
version
Required

The version of this file; incremented when a new copy of the file is uploaded.