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

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.

Namespace

Google \ Cloud \ Core

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