Class: Google::Apis::ClouddeployV1::PromoteReleaseRule
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::PromoteReleaseRule
- 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
The PromoteRelease rule will automatically promote a release from the
current target to a specified target.
Instance Attribute Summary collapse
-
#condition ⇒ Google::Apis::ClouddeployV1::AutomationRuleCondition
AutomationRuleConditioncontains conditions relevant to anAutomationrule. -
#destination_phase ⇒ String
Optional.
-
#destination_target_id ⇒ String
Optional.
-
#id ⇒ String
Required.
-
#wait ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PromoteReleaseRule
constructor
A new instance of PromoteReleaseRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PromoteReleaseRule
Returns a new instance of PromoteReleaseRule.
4007 4008 4009 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4007 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition ⇒ Google::Apis::ClouddeployV1::AutomationRuleCondition
AutomationRuleCondition contains conditions relevant to an Automation rule.
Corresponds to the JSON property condition
3979 3980 3981 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3979 def condition @condition end |
#destination_phase ⇒ String
Optional. The starting phase of the rollout created by this operation. Default
to the first phase.
Corresponds to the JSON property destinationPhase
3985 3986 3987 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3985 def destination_phase @destination_phase end |
#destination_target_id ⇒ String
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 * "@next", the next target in the promotion sequence
Corresponds to the JSON property destinationTargetId
3993 3994 3995 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3993 def destination_target_id @destination_target_id end |
#id ⇒ String
Required. ID of the rule. This id must be unique in the Automation resource
to which this rule belongs. The format is [a-z]([a-z0-9-]0,61[a-z0-9])?.
Corresponds to the JSON property id
3999 4000 4001 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3999 def id @id end |
#wait ⇒ String
Optional. How long the release need to be paused until being promoted to the
next target.
Corresponds to the JSON property wait
4005 4006 4007 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4005 def wait @wait end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4012 4013 4014 4015 4016 4017 4018 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4012 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 |