Google Cloud Functions V1 Client - Class CreateFunctionRequest (1.6.5)

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
Name Description
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
Type Description
string

setLocation

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

Parameter
Name Description
var string
Returns
Type Description
$this

getFunction

Required. Function to be created.

Returns
Type Description
Google\Cloud\Functions\V1\CloudFunction|null

hasFunction

clearFunction

setFunction

Required. Function to be created.

Parameter
Name Description
var Google\Cloud\Functions\V1\CloudFunction
Returns
Type Description
$this