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.



4675
4676
4677
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4675

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



4662
4663
4664
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4662

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)


4668
4669
4670
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4668

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)


4673
4674
4675
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4673

def total_attempts
  @total_attempts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4680
4681
4682
4683
4684
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4680

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