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
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
.
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.
558 559 560 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 558 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
544 545 546 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 544 def advance_rollout_rule @advance_rollout_rule end |
#promote_release_rule ⇒ Google::Apis::ClouddeployV1::PromoteReleaseRule
PromoteRelease
rule will automatically promote a release from the current
target to a specified target.
Corresponds to the JSON property promoteReleaseRule
550 551 552 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 550 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
556 557 558 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 556 def repair_rollout_rule @repair_rollout_rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
563 564 565 566 567 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 563 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 |