Class: Google::Apis::CloudbuildV2::WhenExpression

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WhenExpression

Returns a new instance of WhenExpression.



2780
2781
2782
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2780

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#expression_operatorString

Operator that represents an Input's relationship to the values Corresponds to the JSON property expressionOperator

Returns:

  • (String)


2766
2767
2768
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2766

def expression_operator
  @expression_operator
end

#inputString

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

Returns:

  • (String)


2772
2773
2774
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2772

def input
  @input
end

#valuesArray<String>

Values is an array of strings, which is compared against the input, for guard checking. Corresponds to the JSON property values

Returns:

  • (Array<String>)


2778
2779
2780
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2778

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2785
2786
2787
2788
2789
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2785

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