Class: Google::Apis::ClouddeployV1::AutomationRule

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

AutomationRule defines the automation activities.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutomationRule

Returns a new instance of AutomationRule.



597
598
599
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 597

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

Instance Attribute Details

#advance_rollout_ruleGoogle::Apis::ClouddeployV1::AdvanceRolloutRule

The AdvanceRollout automation rule will automatically advance a successful Rollout to the next phase. Corresponds to the JSON property advanceRolloutRule



583
584
585
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 583

def advance_rollout_rule
  @advance_rollout_rule
end

#promote_release_ruleGoogle::Apis::ClouddeployV1::PromoteReleaseRule

The PromoteRelease rule will automatically promote a release from the current target to a specified target. Corresponds to the JSON property promoteReleaseRule



589
590
591
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 589

def promote_release_rule
  @promote_release_rule
end

#repair_rollout_ruleGoogle::Apis::ClouddeployV1::RepairRolloutRule

The RepairRolloutRule automation rule will automatically repair a failed Rollout. Corresponds to the JSON property repairRolloutRule



595
596
597
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 595

def repair_rollout_rule
  @repair_rollout_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



602
603
604
605
606
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 602

def update!(**args)
  @advance_rollout_rule = args[:advance_rollout_rule] if args.key?(:advance_rollout_rule)
  @promote_release_rule = args[:promote_release_rule] if args.key?(:promote_release_rule)
  @repair_rollout_rule = args[:repair_rollout_rule] if args.key?(:repair_rollout_rule)
end