Google Cloud Functions V1 Client - Class FailurePolicy (1.0.3)

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, then the function will be retried in case of a failure.

getRetry

If specified, then the function will be retried in case of a failure.

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

hasRetry

setRetry

If specified, then the function will be retried in case of a failure.

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

getAction

Returns
TypeDescription
string