Class: Google::Apis::ClouddeployV1::RollbackTargetConfig

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

Configs for the Rollback rollout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RollbackTargetConfig

Returns a new instance of RollbackTargetConfig.



4190
4191
4192
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4190

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

Instance Attribute Details

#rolloutGoogle::Apis::ClouddeployV1::Rollout

A Rollout resource in the Cloud Deploy API. A Rollout contains information around a specific deployment to a Target. Corresponds to the JSON property rollout



4182
4183
4184
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4182

def rollout
  @rollout
end

#starting_phase_idString

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

Returns:

  • (String)


4188
4189
4190
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4188

def starting_phase_id
  @starting_phase_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4195
4196
4197
4198
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4195

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