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.



4079
4080
4081
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4079

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



4071
4072
4073
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4071

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)


4077
4078
4079
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4077

def starting_phase_id
  @starting_phase_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4084
4085
4086
4087
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4084

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