Class: Google::Apis::ClouddeployV1::Rollback

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

Rolls back a Rollout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Rollback

Returns a new instance of Rollback.



4127
4128
4129
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4127

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

Instance Attribute Details

#destination_phaseString

Optional. The starting phase ID for the Rollout. If unspecified, the Rollout will start in the stable phase. Corresponds to the JSON property destinationPhase

Returns:

  • (String)


4125
4126
4127
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4125

def destination_phase
  @destination_phase
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4132
4133
4134
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4132

def update!(**args)
  @destination_phase = args[:destination_phase] if args.key?(:destination_phase)
end