Class: Google::Apis::ClouddeployV1::Retry
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::Retry
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
Retries the failed job.
Instance Attribute Summary collapse
-
#attempts ⇒ Fixnum
Required.
-
#backoff_mode ⇒ String
Optional.
-
#wait ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Retry
constructor
A new instance of Retry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Retry
Returns a new instance of Retry.
3611 3612 3613 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3611 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attempts ⇒ Fixnum
Required. Total number of retries. Retry will skipped if set to 0; The minimum
value is 1, and the maximum value is 10.
Corresponds to the JSON property attempts
3597 3598 3599 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3597 def attempts @attempts end |
#backoff_mode ⇒ String
Optional. The pattern of how wait time will be increased. Default is linear.
Backoff mode will be ignored if wait is 0.
Corresponds to the JSON property backoffMode
3603 3604 3605 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3603 def backoff_mode @backoff_mode end |
#wait ⇒ String
Optional. How long to wait for the first retry. Default is 0, and the maximum
value is 14d.
Corresponds to the JSON property wait
3609 3610 3611 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3609 def wait @wait end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3616 3617 3618 3619 3620 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3616 def update!(**args) @attempts = args[:attempts] if args.key?(:attempts) @backoff_mode = args[:backoff_mode] if args.key?(:backoff_mode) @wait = args[:wait] if args.key?(:wait) end |