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.



3787
3788
3789
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3787

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)


3770
3771
3772
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3770

def destination_phase
  @destination_phase
end

#rollout_idString

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

Returns:

  • (String)


3775
3776
3777
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3775

def rollout_id
  @rollout_id
end

#stateString

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

Returns:

  • (String)


3780
3781
3782
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3780

def state
  @state
end

#state_descString

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

Returns:

  • (String)


3785
3786
3787
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3785

def state_desc
  @state_desc
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3792
3793
3794
3795
3796
3797
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3792

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