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.
4009 4010 4011 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4009 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
3986 3987 3988 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3986 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
3992 3993 3994 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3992 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
3997 3998 3999 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3997 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
4002 4003 4004 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4002 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
4007 4008 4009 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4007 def total_attempts @total_attempts end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4014 4015 4016 4017 4018 4019 4020 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4014 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 |