Google\Cloud\Compute\Metadata::getProjectMetadata PHP Method

getProjectMetadata() public method

Example: $foo = $reader->getProjectMetadata('foo');
public getProjectMetadata ( string $key ) : string
$key string The metadata key
return string
    public function getProjectMetadata($key)
    {
        $path = 'project/attributes/' . $key;
        return $this->get($path);
    }