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

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
Name Description
servicePath string
baseUri string
resourceRoot array

[optional]

build

Build the request.

Parameters
Name Description
resource string
method string
options array

[optional]

Returns
Type Description
Psr\Http\Message\RequestInterface