Google Cloud Functions V1 Client - Class GetFunctionRequest (1.6.3)

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

Request for the GetFunction method.

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

Namespace

Google \ Cloud \ Functions \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the function which details should be obtained.

↳ version_id int|string

Optional. The optional version of the function whose details should be obtained. The version of a 1st Gen function is an integer that starts from 1 and gets incremented on redeployments. Each deployment creates a config version of the underlying function. GCF may keep historical configs for old versions. This field can be specified to fetch the historical configs. Leave it blank or set to 0 to get the latest version of the function.

getName

Required. The name of the function which details should be obtained.

Returns
Type Description
string

setName

Required. The name of the function which details should be obtained.

Parameter
Name Description
var string
Returns
Type Description
$this

getVersionId

Optional. The optional version of the function whose details should be obtained. The version of a 1st Gen function is an integer that starts from 1 and gets incremented on redeployments. Each deployment creates a config version of the underlying function. GCF may keep historical configs for old versions. This field can be specified to fetch the historical configs.

Leave it blank or set to 0 to get the latest version of the function.

Returns
Type Description
int|string

setVersionId

Optional. The optional version of the function whose details should be obtained. The version of a 1st Gen function is an integer that starts from 1 and gets incremented on redeployments. Each deployment creates a config version of the underlying function. GCF may keep historical configs for old versions. This field can be specified to fetch the historical configs.

Leave it blank or set to 0 to get the latest version of the function.

Parameter
Name Description
var int|string
Returns
Type Description
$this