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.



4694
4695
4696
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4694

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



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

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)


4687
4688
4689
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4687

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)


4692
4693
4694
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4692

def total_attempts
  @total_attempts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4699
4700
4701
4702
4703
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4699

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