Class: Google::Apis::ClouddeployV1::RollbackAttempt

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RollbackAttempt

Returns a new instance of RollbackAttempt.



4776
4777
4778
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4776

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#destination_phaseString

Output only. The phase to which the rollout will be rolled back to. Corresponds to the JSON property destinationPhase

Returns:

  • (String)


4753
4754
4755
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4753

def destination_phase
  @destination_phase
end

#disable_rollback_if_rollout_pendingBoolean Also known as: disable_rollback_if_rollout_pending?

Output only. If active rollout exists on the target, abort this rollback. Corresponds to the JSON property disableRollbackIfRolloutPending

Returns:

  • (Boolean)


4758
4759
4760
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4758

def disable_rollback_if_rollout_pending
  @disable_rollback_if_rollout_pending
end

#rollout_idString

Output only. ID of the rollback Rollout to create. Corresponds to the JSON property rolloutId

Returns:

  • (String)


4764
4765
4766
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4764

def rollout_id
  @rollout_id
end

#stateString

Output only. Valid state of this rollback action. Corresponds to the JSON property state

Returns:

  • (String)


4769
4770
4771
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4769

def state
  @state
end

#state_descString

Output only. Description of the state of the Rollback. Corresponds to the JSON property stateDesc

Returns:

  • (String)


4774
4775
4776
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4774

def state_desc
  @state_desc
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4781
4782
4783
4784
4785
4786
4787
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4781

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)
  @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