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.
4103 4104 4105 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4103 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
4080 4081 4082 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4080 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
4086 4087 4088 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4086 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
4091 4092 4093 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4091 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
4096 4097 4098 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4096 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
4101 4102 4103 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4101 def total_attempts @total_attempts end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4108 4109 4110 4111 4112 4113 4114 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4108 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 |