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.



3729
3730
3731
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3729

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



3706
3707
3708
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3706

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)


3712
3713
3714
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3712

def backoff_mode
  @backoff_mode
end

#job_idString

Output only. The job ID for the Job to retry. Corresponds to the JSON property jobId

Returns:

  • (String)


3717
3718
3719
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3717

def job_id
  @job_id
end

#phase_idString

Output only. The phase ID of the phase that includes the job being retried. Corresponds to the JSON property phaseId

Returns:

  • (String)


3722
3723
3724
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3722

def phase_id
  @phase_id
end

#total_attemptsFixnum

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

Returns:

  • (Fixnum)


3727
3728
3729
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3727

def total_attempts
  @total_attempts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3734
3735
3736
3737
3738
3739
3740
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3734

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