Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class MetadataProviderUtils (1.61.0)

Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class MetadataProviderUtils.

Utility class for MetadataProvider.

Namespace

Google \ Cloud \ Core \ Report

Methods

static::autoSelect

Automatically choose the most appropriate MetadataProvider and return it.

Parameters
Name Description
server array

Normally pass the $_SERVER.

metadata ?\Google\Cloud\Core\Compute\Metadata
Returns
Type Description
MetadataProviderInterface