Class: Google::Apis::ClouddeployV1::PromoteReleaseRule

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

PromoteRelease rule will automatically promote a release from the current target to a specified target.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PromoteReleaseRule

Returns a new instance of PromoteReleaseRule.



3453
3454
3455
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3453

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

Instance Attribute Details

#conditionGoogle::Apis::ClouddeployV1::AutomationRuleCondition

AutomationRuleCondition contains conditions relevant to an Automation rule. Corresponds to the JSON property condition



3423
3424
3425
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3423

def condition
  @condition
end

#destination_phaseString

Optional. The starting phase of the rollout created by this operation. Default to the first phase. Corresponds to the JSON property destinationPhase

Returns:

  • (String)


3429
3430
3431
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3429

def destination_phase
  @destination_phase
end

#destination_target_idString

Optional. The ID of the stage in the pipeline to which this Release is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline. * "@next", the next target in the promotion sequence. Corresponds to the JSON property destinationTargetId

Returns:

  • (String)


3439
3440
3441
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3439

def destination_target_id
  @destination_target_id
end

#idString

Required. ID of the rule. This id must be unique in the Automation resource to which this rule belongs. The format is a-z0,62`. Corresponds to the JSON propertyid`

Returns:

  • (String)


3445
3446
3447
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3445

def id
  @id
end

#waitString

Optional. How long the release need to be paused until being promoted to the next target. Corresponds to the JSON property wait

Returns:

  • (String)


3451
3452
3453
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3451

def wait
  @wait
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3458
3459
3460
3461
3462
3463
3464
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3458

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