Google\Cloud\Storage\StorageObject::reload PHP Method

reload() public method

Example: $object->reload(); $info = $object->info(); echo $info['location'];
See also: https://cloud.google.com/storage/docs/json_api/v1/objects/get Objects get API documentation.
public reload ( array $options = [] ) : array
$options array [optional] { Configuration options. @type string $encryptionKey A base64 encoded AES-256 customer-supplied encryption key. It will be neccesary to provide this when a key was used during the object's creation. @type string $encryptionKeySHA256 Base64 encoded SHA256 hash of the customer-supplied encryption key. This value will be calculated from the `encryptionKey` on your behalf if not provided, but for best performance it is recommended to pass in a cached version of the already calculated SHA. @type string $ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value. @type string $ifGenerationNotMatch Makes the operation conditional on whether the object's current generation does not match the given value. @type string $ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value. @type string $ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value. @type string $projection Determines which properties to return. May be either 'full' or 'noAcl'. }
return array
    public function reload(array $options = [])
    {
        return $this->info = $this->connection->getObject($this->formatEncryptionHeaders($options + $this->encryptionData + $this->identity));
    }