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.



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

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



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

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)


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

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)


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

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)


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

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)


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

def total_attempts
  @total_attempts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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