Interface ScriptOnResourceOp
-
- All Superinterfaces:
SPIOperation
public interface ScriptOnResourceOp extends SPIOperation
Operation that runs a script directly on a target resource. (Compare toScriptOnConnectorOp, which runs a script in the context of a particular connector.)A connector that intends to support
ScriptOnResourceApiOpshould implement this interface. Each connector that implements this interface must document which script languages the connector supports, as well as any supportedOperationOptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectrunScriptOnResource(ScriptContext request, OperationOptions options)Run the specified script on the target resource that this connector manages.
-
-
-
Method Detail
-
runScriptOnResource
java.lang.Object runScriptOnResource(ScriptContext request, OperationOptions options)
Run the specified script on the target resource that this connector manages.- Parameters:
request- The script and arguments to run.options- Additional options that control how the script is run.- Returns:
- The result of the script. The return type must be a type that the
framework supports for serialization. See
ObjectSerializerFactoryfor a list of supported types.
-
-