Google Cloud Functions V2 Client - Class CreateFunctionRequest (1.4.2)

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

Request for the CreateFunction method.

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

Namespace

Google \ Cloud \ Functions \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ function Google\Cloud\Functions\V2\PBFunction

Required. Function to be created.

↳ function_id string

The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

getParent

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

Returns
TypeDescription
string

setParent

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\V2\PBFunction|null

hasFunction

clearFunction

setFunction

Required. Function to be created.

Parameter
NameDescription
var Google\Cloud\Functions\V2\PBFunction
Returns
TypeDescription
$this

getFunctionId

The ID to use for the function, which will become the final component of the function's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Returns
TypeDescription
string

setFunctionId

The ID to use for the function, which will become the final component of the function's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The project and location in which the function should be created, specified in the format projects/*/locations/* Please see Google\Cloud\Functions\V2\FunctionServiceClient::locationName() for help formatting this field.

function Google\Cloud\Functions\V2\PBFunction

Required. Function to be created.

functionId string

The ID to use for the function, which will become the final component of the function's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Returns
TypeDescription
Google\Cloud\Functions\V2\CreateFunctionRequest