Google Cloud Ces V1 Client - Class PythonFunction (0.1.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class PythonFunction.

A Python function tool.

Generated from protobuf message google.cloud.ces.v1.PythonFunction

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

↳ python_code
string

Optional. The Python code to execute for the tool.

↳ description
string

Output only. The description of the Python function, parsed from the python code's docstring.

getName

Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

Returns
Type
Description
string

setName

Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPythonCode

Optional. The Python code to execute for the tool.

Returns
Type
Description
string

setPythonCode

Optional. The Python code to execute for the tool.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDescription

Output only. The description of the Python function, parsed from the python code's docstring.

Returns
Type
Description
string

setDescription

Output only. The description of the Python function, parsed from the python code's docstring.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: