Google Cloud Functions V1 Client - Class CreateFunctionRequest (1.3.1)

Reference documentation and code samples for the Google Cloud Functions V1 Client class CreateFunctionRequest.

Request for the CreateFunction method.

Generated from protobuf message google.cloud.functions.v1.CreateFunctionRequest

Namespace

Google \ Cloud \ Functions \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ location string

Required. The project and location in which the function should be created, specified in the format projects/*/locations/*

↳ function Google\Cloud\Functions\V1\CloudFunction

Required. Function to be created.

getLocation

Required. The project and location in which the function should be created, specified in the format projects/*/locations/*

Returns
TypeDescription
string

setLocation

Required. The project and location in which the function should be created, specified in the format projects/*/locations/*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFunction

Required. Function to be created.

Returns
TypeDescription
Google\Cloud\Functions\V1\CloudFunction|null

hasFunction

clearFunction

setFunction

Required. Function to be created.

Parameter
NameDescription
var Google\Cloud\Functions\V1\CloudFunction
Returns
TypeDescription
$this