Reference documentation and code samples for the Google Cloud Functions V2 Client class Environment.
The environment the function is hosted on.
Protobuf type google.cloud.functions.v2.Environment
Namespace
Google \ Cloud \ Functions \ V2Methods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
ENVIRONMENT_UNSPECIFIED
Value: 0Unspecified
Generated from protobuf enum ENVIRONMENT_UNSPECIFIED = 0;
GEN_1
Value: 1Gen 1
Generated from protobuf enum GEN_1 = 1;
GEN_2
Value: 2Gen 2
Generated from protobuf enum GEN_2 = 2;