Class: Google::Apis::ClouddeployV1::RetryPhase
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::RetryPhase
- 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
-
#attempts ⇒ Array<Google::Apis::ClouddeployV1::RetryAttempt>
Output only.
-
#backoff_mode ⇒ String
Output only.
-
#job_id ⇒ String
Output only.
-
#phase_id ⇒ String
Output only.
-
#total_attempts ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RetryPhase
constructor
A new instance of RetryPhase.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#attempts ⇒ Array<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_mode ⇒ String
Output only. The pattern of how the wait time of the retry attempt is
calculated.
Corresponds to the JSON property backoffMode
3712 3713 3714 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3712 def backoff_mode @backoff_mode end |
#job_id ⇒ String
Output only. The job ID for the Job to retry.
Corresponds to the JSON property jobId
3717 3718 3719 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3717 def job_id @job_id end |
#phase_id ⇒ String
Output only. The phase ID of the phase that includes the job being retried.
Corresponds to the JSON property phaseId
3722 3723 3724 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3722 def phase_id @phase_id end |
#total_attempts ⇒ Fixnum
Output only. The number of attempts that have been made.
Corresponds to the JSON property totalAttempts
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 |