Google Cloud Functions V2 Client - Class State (2.0.0)

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

Describes the current state of the function.

Protobuf type google.cloud.functions.v2.Function.State

Namespace

Google \ Cloud \ Functions \ V2 \ PBFunction

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

STATE_UNSPECIFIED

Value: 0

Not specified. Invalid state.

Generated from protobuf enum STATE_UNSPECIFIED = 0;

ACTIVE

Value: 1

Function has been successfully deployed and is serving.

Generated from protobuf enum ACTIVE = 1;

FAILED

Value: 2

Function deployment failed and the function is not serving.

Generated from protobuf enum FAILED = 2;

DEPLOYING

Value: 3

Function is being created or updated.

Generated from protobuf enum DEPLOYING = 3;

DELETING

Value: 4

Function is being deleted.

Generated from protobuf enum DELETING = 4;

UNKNOWN

Value: 5

Function deployment failed and the function serving state is undefined.

The function should be updated or deleted to move it out of this state.

Generated from protobuf enum UNKNOWN = 5;