Class: Google::Apis::ClouddeployV1::RetryAttempt
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::RetryAttempt
- 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
-
#attempt ⇒ Fixnum
Output only.
-
#state ⇒ String
Output only.
-
#state_desc ⇒ String
Output only.
-
#wait ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RetryAttempt
constructor
A new instance of RetryAttempt.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RetryAttempt
Returns a new instance of RetryAttempt.
3641 3642 3643 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3641 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attempt ⇒ Fixnum
Output only. The index of this retry attempt.
Corresponds to the JSON property attempt
3624 3625 3626 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3624 def attempt @attempt end |
#state ⇒ String
Output only. Valid state of this retry action.
Corresponds to the JSON property state
3629 3630 3631 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3629 def state @state end |
#state_desc ⇒ String
Output only. Description of the state of the Retry.
Corresponds to the JSON property stateDesc
3634 3635 3636 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3634 def state_desc @state_desc end |
#wait ⇒ String
Output only. How long the operation will be paused.
Corresponds to the JSON property wait
3639 3640 3641 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3639 def wait @wait end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3646 3647 3648 3649 3650 3651 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3646 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 |