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.



4794
4795
4796
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4794

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



4786
4787
4788
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4786

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)


4792
4793
4794
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4792

def starting_phase_id
  @starting_phase_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4799
4800
4801
4802
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4799

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