Google Cloud Functions V2 Client - Class Runtime (1.2.0)

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

Describes a runtime and any special information (e.g., deprecation status) related to it.

Generated from protobuf message google.cloud.functions.v2.ListRuntimesResponse.Runtime

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

↳ display_name string

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

↳ stage int

The stage of life this runtime is in, e.g., BETA, GA, etc.

↳ warnings array

Warning messages, e.g., a deprecation warning.

↳ environment int

The environment for the runtime.

getName

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

Returns
TypeDescription
string

setName

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

Returns
TypeDescription
string

setDisplayName

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStage

The stage of life this runtime is in, e.g., BETA, GA, etc.

Returns
TypeDescription
int

setStage

The stage of life this runtime is in, e.g., BETA, GA, etc.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getWarnings

Warning messages, e.g., a deprecation warning.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setWarnings

Warning messages, e.g., a deprecation warning.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getEnvironment

The environment for the runtime.

Returns
TypeDescription
int

setEnvironment

The environment for the runtime.

Parameter
NameDescription
var int
Returns
TypeDescription
$this