Class: Google::Apis::ClouddeployV1::RollbackAttempt
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::RollbackAttempt
- 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
RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.
Instance Attribute Summary collapse
-
#destination_phase ⇒ String
Output only.
-
#rollout_id ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#state_desc ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RollbackAttempt
constructor
A new instance of RollbackAttempt.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RollbackAttempt
Returns a new instance of RollbackAttempt.
4133 4134 4135 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4133 def initialize(**args) update!(**args) end |
Instance Attribute Details
#destination_phase ⇒ String
Output only. The phase to which the rollout will be rolled back to.
Corresponds to the JSON property destinationPhase
4116 4117 4118 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4116 def destination_phase @destination_phase end |
#rollout_id ⇒ String
Output only. ID of the rollback Rollout
to create.
Corresponds to the JSON property rolloutId
4121 4122 4123 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4121 def rollout_id @rollout_id end |
#state ⇒ String
Output only. Valid state of this rollback action.
Corresponds to the JSON property state
4126 4127 4128 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4126 def state @state end |
#state_desc ⇒ String
Output only. Description of the state of the Rollback.
Corresponds to the JSON property stateDesc
4131 4132 4133 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4131 def state_desc @state_desc end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4138 4139 4140 4141 4142 4143 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4138 def update!(**args) @destination_phase = args[:destination_phase] if args.key?(:destination_phase) @rollout_id = args[:rollout_id] if args.key?(:rollout_id) @state = args[:state] if args.key?(:state) @state_desc = args[:state_desc] if args.key?(:state_desc) end |