Properties

bucket

string

Storage bucket that contains the object.

cacheControl

(string or undefined)

The value of the Cache-Control header, used to determine whether Internet caches are allowed to cache public data for an object.

componentCount

(number or undefined)

Specifies the number of originally uploaded objects from which a composite object was created.

contentDisposition

(string or undefined)

The value of the Content-Disposition header, used to specify presentation information about the data being transmitted.

contentEncoding

(string or undefined)

Content-Encoding to indicate that an object is compressed (for example, with gzip compression) while maintaining its Content-Type.

contentLanguage

(string or undefined)

ISO 639-1 language code of the content.

contentType

(string or undefined)

The object's content type, also known as the MIME type.

crc32c

(string or undefined)

The object's CRC32C hash. All Google Cloud Storage objects have a CRC32C hash or MD5 hash.

customerEncryption

(non-null Object or undefined)

Customer-supplied encryption key.

This object contains the following properties:

  • encryptionAlgorithm (string|undefined): The encryption algorithm that was used. Always contains the value AES256.
  • keySha256 (string|undefined): An RFC 4648 base64-encoded string of the SHA256 hash of your encryption key. You can use this SHA256 hash to uniquely identify the AES-256 encryption key required to decrypt the object, which you must store securely.

generation

(number or undefined)

Generation version number that changes each time the object is overwritten.

id

string

The ID of the object, including the bucket name, object name, and generation number.

kind

string

The kind of the object, which is always storage#object.

md5Hash

(string or undefined)

MD5 hash for the object. All Google Cloud Storage objects have a CRC32C hash or MD5 hash.

(string or undefined)

Media download link.

metadata

(non-null Object or undefined)

User-provided metadata.

metageneration

(number or undefined)

Meta-generation version number that changes each time the object's metadata is updated.

name

(string or undefined)

The object's name.

resourceState

string

The current state of the object resource.

The value can be either "exists" (for object creation and updates) or "not_exists" (for object deletion and moves).

(string or undefined)

Link to access the object, assuming you have sufficient permissions.

size

(number or undefined)

The value of the Content-Length header, used to determine the length of the object data in bytes.

storageClass

(string or undefined)

Storage class of the object.

timeCreated

(string or undefined)

The creation time of the object in RFC 3339 format.

timeDeleted

(string or undefined)

The deletion time of the object in RFC 3339 format. Returned only if this version of the object has been deleted.

updated

(string or undefined)

The modification time of the object metadata in RFC 3339 format.