Class: Google::Apis::ClouddeployV1::RetryAttempt

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

RetryAttempt represents an action of retrying the failed Cloud Deploy job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RetryAttempt

Returns a new instance of RetryAttempt.



4025
4026
4027
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4025

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attemptFixnum

Output only. The index of this retry attempt. Corresponds to the JSON property attempt

Returns:

  • (Fixnum)


4008
4009
4010
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4008

def attempt
  @attempt
end

#stateString

Output only. Valid state of this retry action. Corresponds to the JSON property state

Returns:

  • (String)


4013
4014
4015
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4013

def state
  @state
end

#state_descString

Output only. Description of the state of the Retry. Corresponds to the JSON property stateDesc

Returns:

  • (String)


4018
4019
4020
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4018

def state_desc
  @state_desc
end

#waitString

Output only. How long the operation will be paused. Corresponds to the JSON property wait

Returns:

  • (String)


4023
4024
4025
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4023

def wait
  @wait
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4030
4031
4032
4033
4034
4035
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4030

def update!(**args)
  @attempt = args[:attempt] if args.key?(:attempt)
  @state = args[:state] if args.key?(:state)
  @state_desc = args[:state_desc] if args.key?(:state_desc)
  @wait = args[:wait] if args.key?(:wait)
end