Class: Google::Apis::CesV1::PythonCodeCondition
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::PythonCodeCondition
- 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
-
#python_code ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PythonCodeCondition
constructor
A new instance of PythonCodeCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PythonCodeCondition
Returns a new instance of PythonCodeCondition.
5307 5308 5309 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5307 def initialize(**args) update!(**args) end |
Instance Attribute Details
#python_code ⇒ String
Required. The python code to execute.
Corresponds to the JSON property pythonCode
5305 5306 5307 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5305 def python_code @python_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5312 5313 5314 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5312 def update!(**args) @python_code = args[:python_code] if args.key?(:python_code) end |