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.
-
#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.
4097 4098 4099 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4097 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
4084 4085 4086 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4084 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
4090 4091 4092 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4090 def backoff_mode @backoff_mode end |
#total_attempts ⇒ Fixnum
Output only. The number of attempts that have been made.
Corresponds to the JSON property totalAttempts
4095 4096 4097 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4095 def total_attempts @total_attempts end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4102 4103 4104 4105 4106 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4102 def update!(**args) @attempts = args[:attempts] if args.key?(:attempts) @backoff_mode = args[:backoff_mode] if args.key?(:backoff_mode) @total_attempts = args[:total_attempts] if args.key?(:total_attempts) end |