Google Cloud Functions V1 Client - Class FailurePolicy (1.2.0)

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

Describes the policy in case of function's execution failure.

If empty, then defaults to ignoring failures (i.e., not retrying them).

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ retry Google\Cloud\Functions\V1\FailurePolicy\Retry

If specified, the function is retried in case of a failure.

getRetry

If specified, the function is retried in case of a failure.

Returns
TypeDescription
Google\Cloud\Functions\V1\FailurePolicy\Retry|null

hasRetry

setRetry

If specified, the function is retried in case of a failure.

Parameter
NameDescription
var Google\Cloud\Functions\V1\FailurePolicy\Retry
Returns
TypeDescription
$this

getAction

Returns
TypeDescription
string