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.



5307
5308
5309
# File 'lib/google/apis/ces_v1/classes.rb', line 5307

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)


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