All supported message transforms types.
JSON representation |
---|
{ "enabled": boolean, "disabled": boolean, // Union field |
Fields | |
---|---|
enabled |
Optional. This field is deprecated, use the |
disabled |
Optional. If true, the transform is disabled and will not be applied to messages. Defaults to |
Union field transform . The type of transform to apply to messages. transform can be only one of the following: |
|
javascriptUdf |
Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's are specified on a resource, each must have a unique |
JavaScriptUDF
User-defined JavaScript function that can transform or filter a Pub/Sub message.
JSON representation |
---|
{ "functionName": string, "code": string } |
Fields | |
---|---|
functionName |
Required. Name of the JavasScript function that should applied to Pub/Sub messages. |
code |
Required. JavaScript code that contains a function
|