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

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

Builds a PSR7 request from a service definition.

Methods

__construct

Parameters
NameDescription
servicePath string
baseUri string
resourceRoot array

[optional]

build

Build the request.

Parameters
NameDescription
resource string
method string
options array

[optional]

Returns
TypeDescription
Psr\Http\Message\RequestInterface