Class: Google::Apis::CloudfunctionsV1beta2::FailurePolicy
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudfunctionsV1beta2::FailurePolicy
 
- Defined in:
- generated/google/apis/cloudfunctions_v1beta2/classes.rb,
 generated/google/apis/cloudfunctions_v1beta2/representations.rb,
 generated/google/apis/cloudfunctions_v1beta2/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
- 
  
    
      #retry  ⇒ Google::Apis::CloudfunctionsV1beta2::Retry 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Describes the retry policy in case of function's execution failure. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ FailurePolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of FailurePolicy. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ FailurePolicy
Returns a new instance of FailurePolicy
| 289 290 291 | # File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 289 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#retry ⇒ Google::Apis::CloudfunctionsV1beta2::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
| 287 288 289 | # File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 287 def retry @retry end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 294 295 296 | # File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 294 def update!(**args) @retry = args[:retry] if args.key?(:retry) end |