Class: Google::Apis::ClouddeployV1::AdvanceRolloutRule
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::AdvanceRolloutRule
- 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 AdvanceRollout
automation rule will automatically advance a successful
Rollout to the next phase.
Instance Attribute Summary collapse
-
#condition ⇒ Google::Apis::ClouddeployV1::AutomationRuleCondition
AutomationRuleCondition
contains conditions relevant to anAutomation
rule. -
#id ⇒ String
Required.
-
#source_phases ⇒ Array<String>
Optional.
-
#wait ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdvanceRolloutRule
constructor
A new instance of AdvanceRolloutRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdvanceRolloutRule
Returns a new instance of AdvanceRolloutRule.
198 199 200 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 198 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
176 177 178 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 176 def condition @condition 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
182 183 184 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 182 def id @id end |
#source_phases ⇒ Array<String>
Optional. Proceeds only after phase name matched any one in the list. This
value must consist of lower-case letters, numbers, and hyphens, start with a
letter and end with a letter or a number, and have a max length of 63
characters. In other words, it must match the following regex: ^[a-z]([a-z0-9-
]
0,61[a-z0-9])?$
.
Corresponds to the JSON property sourcePhases
191 192 193 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 191 def source_phases @source_phases end |
#wait ⇒ String
Optional. How long to wait after a rollout is finished.
Corresponds to the JSON property wait
196 197 198 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 196 def wait @wait end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
203 204 205 206 207 208 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 203 def update!(**args) @condition = args[:condition] if args.key?(:condition) @id = args[:id] if args.key?(:id) @source_phases = args[:source_phases] if args.key?(:source_phases) @wait = args[:wait] if args.key?(:wait) end |