Resource: TransformerDefinition
This resource describes the transformer's definition.
| JSON representation |
|---|
{ "name": string, "displayName": string, "script": string, "author": string, "description": string, "version": number, "type": enum ( |
| Fields | |
|---|---|
name |
Identifier. The unique name(ID) of the transformer. Format: projects/{project}/locations/{location}/instances/{instance}/integrations/{integration}/transformers/{transformer} |
displayName |
Required. Transformer's display name, limited to a maximum of 150 characters |
script |
Required. Transformer's script. |
author |
Output only. User that created the transformer in the system. |
description |
Optional. Transformer's description, limited to a maximum of 2050 characters. |
version |
Output only. The version of the transformer |
type |
Output only. The type of the transformer. |
scriptTimeout |
Required. Set the timeout in seconds of a single Python script run (default 60). |
parameters[] |
Optional. The transformer's parameters definition. |
usageExample |
Optional. Transformer's usage example. |
expectedOutput |
Optional. Transformer's expected output. |
expectedInput |
Optional. Transformer's expected input. |
integration |
Output only. Parent integration identifier. |
enabled |
Required. Determines whether the transformer is disabled or enabled. |
custom |
Output only. Determines if the transformer is a custom transformer. |
TransformerType
Transformer type
| Enums | |
|---|---|
TRANSFORMER_TYPE_UNSPECIFIED |
Unspecified type. |
BUILT_IN |
Built-in transformer. |
CUSTOM |
Custom transformer. |
TransformerDefinitionParameter
Represents a parameter for a Transformer Definition.
| JSON representation |
|---|
{ "id": string, "transformerDefinitionId": string, "mandatory": boolean, "defaultValue": string, "displayName": string, "description": string, "order": integer } |
| Fields | |
|---|---|
id |
Optional. The parameter's id. This is server-generated upon parameter creation. It must be provided when updating an existing parameter. |
transformerDefinitionId |
Output only. Transformer's definition id. |
mandatory |
Required. Indicates whether this parameter is mandatory for configuring a transformer instance. |
defaultValue |
Optional. The default value of the parameter. The defaultValue is required for booleans / mandatory parameters. |
displayName |
Required. The parameter's display name. Item name may contain letters (a-z), numbers (0-9), underscores (_). Max length of 150 characters. |
description |
Optional. The parameter's description (max length of 2050 characters). |
order |
Output only. The parameters' display order, relevant only for built-in transformers. |
Methods |
|
|---|---|
|
Creates a new TransformerDefinition within an integration. |
|
Deletes a custom TransformerDefinition. |
|
Executes a test run of a transformer's Python script. |
|
Retrieves a default Python script template for a new transformer. |
|
Gets a single TransformerDefinition. |
|
Lists all TransformerDefinitions for a specific integration. |
|
Updates an existing TransformerDefinition. |