Class: Google::Apis::CloudfunctionsV1::FailurePolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudfunctions_v1/classes.rb,
lib/google/apis/cloudfunctions_v1/representations.rb,
lib/google/apis/cloudfunctions_v1/representations.rb

Overview

Describes the policy in case of function's execution failure. If empty, then defaults to ignoring failures (i.e. not retrying them).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FailurePolicy

Returns a new instance of FailurePolicy.



633
634
635
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 633

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#retryGoogle::Apis::CloudfunctionsV1::Retry

Describes the retry policy in case of function's execution failure. A function execution will be retried on any failure. A failed execution will be retried up to 7 days with an exponential backoff (capped at 10 seconds). Retried execution is charged as any other execution. Corresponds to the JSON property retry



631
632
633
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 631

def retry
  @retry
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



638
639
640
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 638

def update!(**args)
  @retry = args[:retry] if args.key?(:retry)
end