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.



4561
4562
4563
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4561

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



4548
4549
4550
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4548

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)


4554
4555
4556
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4554

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)


4559
4560
4561
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4559

def total_attempts
  @total_attempts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4566
4567
4568
4569
4570
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4566

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