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

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

Simple MetadataProvider.

Methods

__construct

Parameters
NameDescription
monitoredResource mixed
projectId string

[optional] Defaults to ''

serviceId string

[optional] Defaults to ''

versionId string

[optional] Defaults to ''

labels array

[optional] Defaults to []

monitoredResource

Returns
TypeDescription
array

projectId

Return the project id.

Returns
TypeDescription
string

serviceId

Return the service id.

Returns
TypeDescription
string

versionId

Return the version id.

Returns
TypeDescription
string

labels

Return the labels.

Returns
TypeDescription
array