Class: Google::Apis::CloudbuildV2::WhenExpression
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::WhenExpression
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
Conditions that need to be true for the task to run.
Instance Attribute Summary collapse
-
#expression_operator ⇒ String
Operator that represents an Input's relationship to the values Corresponds to the JSON property
expressionOperator
. -
#input ⇒ String
Input is the string for guard checking which can be a static input or an output from a parent Task.
-
#values ⇒ Array<String>
Values is an array of strings, which is compared against the input, for guard checking.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WhenExpression
constructor
A new instance of WhenExpression.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WhenExpression
Returns a new instance of WhenExpression.
3174 3175 3176 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expression_operator ⇒ String
Operator that represents an Input's relationship to the values
Corresponds to the JSON property expressionOperator
3160 3161 3162 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3160 def expression_operator @expression_operator end |
#input ⇒ String
Input is the string for guard checking which can be a static input or an
output from a parent Task.
Corresponds to the JSON property input
3166 3167 3168 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3166 def input @input end |
#values ⇒ Array<String>
Values is an array of strings, which is compared against the input, for guard
checking.
Corresponds to the JSON property values
3172 3173 3174 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3172 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3179 3180 3181 3182 3183 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3179 def update!(**args) @expression_operator = args[:expression_operator] if args.key?(:expression_operator) @input = args[:input] if args.key?(:input) @values = args[:values] if args.key?(:values) end |