Object

An object in Cloud Storage. Objects are the individual pieces of data that you store in Cloud Storage.

ArchivalBackupBlob StorageCloud StorageDataFile StorageGoogle CloudObject StorageStorage

Properties

Name Type Description
kind string The kind of item this is. For objects, this is always storage#object.
id string The ID of the object, including the bucket name, object name, and generation number.
selfLink string The link to this object.
mediaLink string The link to download the object's data.
name string The name of the object.
bucket string The name of the bucket containing this object.
generation string The content generation of this object. Used for object versioning.
metageneration string The version of the metadata for this object. Used for preconditions and detecting metadata changes.
contentType string Content-Type of the object data.
timeCreated string The creation time of the object in RFC 3339 format.
updated string The modification time of the object metadata in RFC 3339 format.
timeDeleted ['string', 'null'] The deletion time of the object in RFC 3339 format. Set only when the object is noncurrent.
temporaryHold boolean Whether the object is under a temporary hold.
eventBasedHold boolean Whether the object is under an event-based hold.
retentionExpirationTime ['string', 'null'] The earliest time that the object can be deleted or replaced, based on the retention policy.
storageClass string Storage class of the object.
timeStorageClassUpdated string The time at which the object's storage class was last changed.
size string Content-Length of the data in bytes.
md5Hash string MD5 hash of the data, encoded using base64. Not available for composite objects.
crc32c string CRC32c checksum, encoded using base64.
etag string HTTP 1.1 Entity tag for the object.
componentCount integer Number of underlying components that make up a composite object.
contentEncoding string Content-Encoding of the object data.
contentDisposition string Content-Disposition of the object data.
contentLanguage string Content-Language of the object data.
cacheControl string Cache-Control directive for the object data.
metadata object User-provided metadata in key/value pairs.
acl array Access controls on the object.
owner object The owner of the object.
customerEncryption object Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
kmsKeyName string Cloud KMS key used to encrypt the object, if one has been specified.
customTime string A timestamp in RFC 3339 format specified by the user for an object. Typically set to enable lifecycle management conditions based on custom time.
softDeleteTime ['string', 'null'] The time at which the object was soft-deleted, if applicable.
hardDeleteTime ['string', 'null'] The time at which the soft-deleted object will be permanently deleted.
View JSON Schema on GitHub