Class: Google::Apis::CesV1::PythonCodeCondition

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Python code block to evaluate the condition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PythonCodeCondition

Returns a new instance of PythonCodeCondition.



6806
6807
6808
# File 'lib/google/apis/ces_v1/classes.rb', line 6806

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

Instance Attribute Details

#python_codeString

Required. The python code to execute. Corresponds to the JSON property pythonCode

Returns:

  • (String)


6804
6805
6806
# File 'lib/google/apis/ces_v1/classes.rb', line 6804

def python_code
  @python_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6811
6812
6813
# File 'lib/google/apis/ces_v1/classes.rb', line 6811

def update!(**args)
  @python_code = args[:python_code] if args.key?(:python_code)
end