Represents a reference to a Google Cloud Storage object. Developers can upload, download, and delete objects, as well as get/set object metadata.
The name of the bucket containing this reference's object.
The full path of this object.
The short name of this object, which is the last component of the full path. For example, if fullPath is 'full/path/image.png', name is 'image.png'.
A reference pointing to the parent location of this reference, or null if this reference is the root.
A reference to the root of this reference's bucket.
The storage service associated with this reference.
Returns a reference to a relative path from this reference.
The relative path from this reference. Leading, trailing, and consecutive slashes are removed.
The reference to the given path.
Deletes the object at this reference's location.
A Promise that resolves if the deletion succeeded and rejects if it failed, including if the object didn't exist.
Fetches a long lived download URL for this object.
A Promise that resolves with the download URL or rejects if the fetch failed, including if the object did not exist.
Fetches metadata for the object at this location, if one exists.