Class: Google::Apis::ClouddeployV1::RetryPhase

Inherits:
Object
  • Object
show all
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

RetryPhase contains the retry attempts and the metadata for initiating a new attempt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RetryPhase

Returns a new instance of RetryPhase.



4014
4015
4016
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4014

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

Instance Attribute Details

#attemptsArray<Google::Apis::ClouddeployV1::RetryAttempt>

Output only. Detail of a retry action. Corresponds to the JSON property attempts



4001
4002
4003
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4001

def attempts
  @attempts
end

#backoff_modeString

Output only. The pattern of how the wait time of the retry attempt is calculated. Corresponds to the JSON property backoffMode

Returns:

  • (String)


4007
4008
4009
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4007

def backoff_mode
  @backoff_mode
end

#total_attemptsFixnum

Output only. The number of attempts that have been made. Corresponds to the JSON property totalAttempts

Returns:

  • (Fixnum)


4012
4013
4014
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4012

def total_attempts
  @total_attempts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4019
4020
4021
4022
4023
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4019

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