Class: Google::Apis::EventarcV1::RetryPolicy

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

Overview

The retry policy configuration for the Trigger. Can only be set with Cloud Run destinations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RetryPolicy

Returns a new instance of RetryPolicy.



2479
2480
2481
# File 'lib/google/apis/eventarc_v1/classes.rb', line 2479

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

Instance Attribute Details

#max_attemptsFixnum

Optional. The maximum number of delivery attempts for any message. The only valid value is 1. Corresponds to the JSON property maxAttempts

Returns:

  • (Fixnum)


2477
2478
2479
# File 'lib/google/apis/eventarc_v1/classes.rb', line 2477

def max_attempts
  @max_attempts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2484
2485
2486
# File 'lib/google/apis/eventarc_v1/classes.rb', line 2484

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