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

Pipeline

Extends:

ResourceItemResource → Pipeline

Pipeline item resource object representing a pipeline.

Method Summary

Public Methods
public

delete(timeout: number): Promise

Make a DELETE request to delete this pipeline resource through the REST API.

public

Fetch a list of plugin piping default parameter values for the plugin pipings composing the pipeline from the REST API.

public

Fetch a list of plugin pipings associated to this pipeline from the REST API.

public

Fetch a list of plugins associated to this pipeline from the REST API.

public

Fetch a list of workflows associated to this pipeline from the REST API.

public

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

Make a PUT request to modify this pipeline resource through 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 delete(timeout: number): Promise source

Make a DELETE request to delete this pipeline resource through the REST API.

Params:

NameTypeAttributeDescription
timeout number
  • optional
  • default: 30000

request timeout

Return:

Promise

JS Promise

public getDefaultParameters(params: Object, timeout: number): Promise<PipelinePipingDefaultParameterList> source

Fetch a list of plugin piping default parameter values for the plugin pipings composing the pipeline from the REST API.

Params:

NameTypeAttributeDescription
params Object
  • optional
  • default: null

page parameters object

params.limit number
  • optional

page limit

params.offset number
  • optional

page offset

timeout number
  • optional
  • default: 30000

request timeout

Return:

Promise<PipelinePipingDefaultParameterList>

JS Promise, resolves to a PipelinePipingDefaultParameterList object

public getPluginPipings(params: Object, timeout: number): Promise<PipelinePluginPipingList> source

Fetch a list of plugin pipings associated to this pipeline from the REST API.

Params:

NameTypeAttributeDescription
params Object
  • optional
  • default: null

page parameters object

params.limit number
  • optional

page limit

params.offset number
  • optional

page offset

timeout number
  • optional
  • default: 30000

request timeout

Return:

Promise<PipelinePluginPipingList>

JS Promise, resolves to a PipelinePluginPipingList object

public getPlugins(params: Object, timeout: number): Promise<PipelinePluginList> source

Fetch a list of plugins associated to this pipeline from the REST API.

Params:

NameTypeAttributeDescription
params Object
  • optional
  • default: null

page parameters object

params.limit number
  • optional

page limit

params.offset number
  • optional

page offset

timeout number
  • optional
  • default: 30000

request timeout

Return:

Promise<PipelinePluginList>

JS Promise, resolves to a PipelinePluginList object

public getWorkflows(params: Object, timeout: number): Promise<WorkflowList> source

Fetch a list of workflows associated to this pipeline from the REST API.

Params:

NameTypeAttributeDescription
params Object
  • optional
  • default: null

page parameters object

params.limit number
  • optional

page limit

params.offset number
  • optional

page offset

timeout number
  • optional
  • default: 30000

request timeout

Return:

Promise<WorkflowList>

JS Promise, resolves to a WorkflowList object

public put(data: Object, timeout: number): Promise<this> source

Make a PUT request to modify this pipeline resource through the REST API.

Params:

NameTypeAttributeDescription
data Object

request JSON data object

data.name string
  • optional

pipeline name

data.authors string
  • optional

pipeline authors

data.category string
  • optional

pipeline category

data.description string
  • optional

pipeline description

data.locked boolean
  • optional

pipeline lock status

timeout number
  • optional
  • default: 30000

request timeout

Return:

Promise<this>

JS Promise, resolves to this object