Class: Google::Apis::ClouddeployV1::Rollback
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::Rollback
- 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
Rolls back a Rollout.
Instance Attribute Summary collapse
-
#destination_phase ⇒ String
Optional.
-
#disable_rollback_if_rollout_pending ⇒ Boolean
(also: #disable_rollback_if_rollout_pending?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Rollback
constructor
A new instance of Rollback.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Rollback
Returns a new instance of Rollback.
4673 4674 4675 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4673 def initialize(**args) update!(**args) end |
Instance Attribute Details
#destination_phase ⇒ String
Optional. The starting phase ID for the Rollout. If unspecified, the
Rollout will start in the stable phase.
Corresponds to the JSON property destinationPhase
4664 4665 4666 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4664 def destination_phase @destination_phase end |
#disable_rollback_if_rollout_pending ⇒ Boolean Also known as: disable_rollback_if_rollout_pending?
Optional. If pending rollout exists on the target, the rollback operation will
be aborted.
Corresponds to the JSON property disableRollbackIfRolloutPending
4670 4671 4672 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4670 def disable_rollback_if_rollout_pending @disable_rollback_if_rollout_pending end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4678 4679 4680 4681 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4678 def update!(**args) @destination_phase = args[:destination_phase] if args.key?(:destination_phase) @disable_rollback_if_rollout_pending = args[:disable_rollback_if_rollout_pending] if args.key?(:disable_rollback_if_rollout_pending) end |