Reference documentation and code samples for the Google Cloud Deploy V1 API class Google::Cloud::Deploy::V1::Retry.
Retries the failed job.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#attempts
def attempts() -> ::Integer
Returns
- (::Integer) — Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.
#attempts=
def attempts=(value) -> ::Integer
Parameter
- value (::Integer) — Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.
Returns
- (::Integer) — Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.
#backoff_mode
def backoff_mode() -> ::Google::Cloud::Deploy::V1::BackoffMode
Returns
-
(::Google::Cloud::Deploy::V1::BackoffMode) — Optional. The pattern of how wait time will be increased. Default is
linear. Backoff mode will be ignored if
wait
is 0.
#backoff_mode=
def backoff_mode=(value) -> ::Google::Cloud::Deploy::V1::BackoffMode
Parameter
-
value (::Google::Cloud::Deploy::V1::BackoffMode) — Optional. The pattern of how wait time will be increased. Default is
linear. Backoff mode will be ignored if
wait
is 0.
Returns
-
(::Google::Cloud::Deploy::V1::BackoffMode) — Optional. The pattern of how wait time will be increased. Default is
linear. Backoff mode will be ignored if
wait
is 0.
#wait
def wait() -> ::Google::Protobuf::Duration
Returns
- (::Google::Protobuf::Duration) — Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
#wait=
def wait=(value) -> ::Google::Protobuf::Duration
Parameter
- value (::Google::Protobuf::Duration) — Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
Returns
- (::Google::Protobuf::Duration) — Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.