Class: Google::Apis::ClouddeployV1::AutomationRule
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::AutomationRule
- 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
-
#advance_rollout_rule ⇒ Google::Apis::ClouddeployV1::AdvanceRolloutRule
The
AdvanceRollout
automation rule will automatically advance a successful Rollout to the next phase. -
#promote_release_rule ⇒ Google::Apis::ClouddeployV1::PromoteReleaseRule
The
PromoteRelease
rule will automatically promote a release from the current target to a specified target. -
#repair_rollout_rule ⇒ Google::Apis::ClouddeployV1::RepairRolloutRule
The
RepairRolloutRule
automation rule will automatically repair a failedRollout
. -
#timed_promote_release_rule ⇒ Google::Apis::ClouddeployV1::TimedPromoteReleaseRule
The
TimedPromoteReleaseRule
will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutomationRule
constructor
A new instance of AutomationRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutomationRule
Returns a new instance of AutomationRule.
603 604 605 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 603 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advance_rollout_rule ⇒ Google::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_rule ⇒ Google::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_rule ⇒ Google::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 |
#timed_promote_release_rule ⇒ Google::Apis::ClouddeployV1::TimedPromoteReleaseRule
The TimedPromoteReleaseRule
will automatically promote a release from the
current target(s) to the specified target(s) on a configured schedule.
Corresponds to the JSON property timedPromoteReleaseRule
601 602 603 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 601 def timed_promote_release_rule @timed_promote_release_rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
608 609 610 611 612 613 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 608 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) @timed_promote_release_rule = args[:timed_promote_release_rule] if args.key?(:timed_promote_release_rule) end |