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.



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

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



4767
4768
4769
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4767

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)


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

def starting_phase_id
  @starting_phase_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4780
4781
4782
4783
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4780

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