Home Reference Source
import {PluginPiping} from '@fnndsc/chrisapi'
public class | source

PluginPiping

Extends:

ResourceItemResource → PluginPiping

Plugin piping item resource object representing a plugin piping within a pipeline.

Method Summary

Public Methods
public

Fetch the corresponding pipeline for this plugin piping from the REST API.

public

Fetch the corresponding plugin for this plugin piping from the REST API.

public

Fetch the parent plugin piping within the corresponding pipeline from the REST API.

Inherited Summary

From class Resource
public static

cloneObj(obj: Object): *

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
public

get(timeout: number): Promise<this>

Fetch this item resource from the REST API.

public

Get an array of parameter names that can be used as properties of the data object in PUT requests.

private

_delete(timeout: number): Promise

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

_put(data: Object, uploadFileObj: Object, timeout: number): Promise<this>

Internal helper method to make a PUT request to this item resource through the REST API.

Public Methods

public getPipeline(timeout: number): Promise<Pipeline> source

Fetch the corresponding pipeline for this plugin piping from the REST API.

Params:

NameTypeAttributeDescription
timeout number
  • optional
  • default: 30000

request timeout

Return:

Promise<Pipeline>

JS Promise, resolves to a Pipeline object

public getPlugin(timeout: number): Promise<Plugin> source

Fetch the corresponding plugin for this plugin piping from the REST API.

Params:

NameTypeAttributeDescription
timeout number
  • optional
  • default: 30000

request timeout

Return:

Promise<Plugin>

JS Promise, resolves to a Plugin object

public getPreviousPluginPiping(timeout: number): Promise<PluginPiping|null> source

Fetch the parent plugin piping within the corresponding pipeline from the REST API.

Params:

NameTypeAttributeDescription
timeout number
  • optional
  • default: 30000

request timeout

Return:

Promise<PluginPiping|null>

JS Promise, resolves to a PluginPiping object or null