Google\Cloud\Compute\Metadata::getProjectMetadata PHP Méthode

getProjectMetadata() public méthode

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