PluginInstance
Extends:
Plugin instance item resource object representing a plugin instance.
Method Summary
Public Methods | ||
public |
Make a DELETE request to delete this plugin instance resource through the REST API. |
|
public |
getComputeResource(timeout: number): Promise<ComputeResource> Fetch the compute resource associated to this plugin instance item from the REST API. |
|
public |
getDescendantPluginInstances(params: Object, timeout: number): Promise<PluginInstanceDescendantList> Fetch a list of plugin instances that are descendents of this plugin instance from the REST API. |
|
public |
Fetch the feed associated to this plugin instance from the REST API. |
|
public |
getOutputFolder(timeout: number): Promise<FileBrowserFolder> Fetch the output folder associated to this plugin instance item from the REST API. |
|
public |
getParameters(params: Object, timeout: number): Promise<PluginInstanceParameterList> Fetch a list of plugin instance parameters associated to this plugin instance from the REST API. |
|
public |
Fetch the plugin associated to this plugin instance item from the REST API. |
|
public |
getPreviousPluginInstance(timeout: number): Promise<PluginInstance|null> Fetch the parent plugin instance of this plugin instance from the REST API (only for 'ds' and 'ts' plugins, 'fs' plugins pass null to the resultant Promise). |
|
public |
getSplits(params: Object, timeout: number): Promise<PluginInstanceSplitList> Fetch a list of output directory splits applied to this plugin instance from the REST API. |
|
public |
getWorkflow(timeout: number): Promise<Workflow|null> Fetch the workflow (if any) that created this plugin instance from the REST API. |
|
public |
Make a PUT request to modify this plugin instance resource through the REST API. |
Inherited Summary
From class Resource | ||
public static |
Helper method to make a deep copy clone of the passed object resource. |
|
public get |
Return true if the resource object contains any data. |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
Make a deep copy clone of this object resource. |
From class ItemResource | ||
public get |
Get the item's data object (REST API descriptors). |
|
public |
collection: * |
|
public |
Fetch this item resource from the REST API. |
|
public |
getPUTParameters(): string[] Get an array of parameter names that can be used as properties of the data object in PUT requests. |
|
private |
Internal helper method to make a DELETE request to this item resource through the REST API. |
|
private |
_getResource(linkRelation: string, ResourceClass: Object, searchParams: Object, timeout: number): Promise<ResourceClass> Internal method to fetch a related resource from the REST API that is referenced by a link relation within the item object. |
|
private |
Internal helper method to make a PUT request to this item resource through the REST API. |
Public Methods
public delete(timeout: number): Promise source
Make a DELETE request to delete this plugin instance resource through the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getComputeResource(timeout: number): Promise<ComputeResource> source
Fetch the compute resource associated to this plugin instance item from the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getDescendantPluginInstances(params: Object, timeout: number): Promise<PluginInstanceDescendantList> source
Fetch a list of plugin instances that are descendents of this plugin instance from the REST API.
Return:
Promise<PluginInstanceDescendantList> | JS Promise, resolves to a |
public getFeed(timeout: number): Promise<Feed|null> source
Fetch the feed associated to this plugin instance from the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getOutputFolder(timeout: number): Promise<FileBrowserFolder> source
Fetch the output folder associated to this plugin instance item from the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getParameters(params: Object, timeout: number): Promise<PluginInstanceParameterList> source
Fetch a list of plugin instance parameters associated to this plugin instance from the REST API.
Return:
Promise<PluginInstanceParameterList> | JS Promise, resolves to a |
public getPlugin(timeout: number): Promise<Plugin> source
Fetch the plugin associated to this plugin instance item from the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getPreviousPluginInstance(timeout: number): Promise<PluginInstance|null> source
Fetch the parent plugin instance of this plugin instance from the REST API (only for 'ds' and 'ts' plugins, 'fs' plugins pass null to the resultant Promise).
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getSplits(params: Object, timeout: number): Promise<PluginInstanceSplitList> source
Fetch a list of output directory splits applied to this plugin instance from the REST API.
public getWorkflow(timeout: number): Promise<Workflow|null> source
Fetch the workflow (if any) that created this plugin instance from the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |