Home Manual Reference Source Test Repository
public class | source

Pipeline

Extends:

BaseProvision → Pipeline

This is a base object that contains all you can do about Bundles.

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

Adds an Image Execution to the pipeline

public

Adds a rest request to the pipeline

public

toJson(): {"identifier": *, "schedule": *, "pipeline": *}

public

update()

public

Sets the identifier attribute

public

withOrganization(organization: string): Pipeline

Set the organization attribute

public

Sets the crontab expression for schedule

public

Sets the executeNow attribute

public

Sets the from attribute

public

Sets the interval for schedule in minutes

public

Sets the to attribute

Inherited Summary

From class BaseProvision
public

This invoke a request to OpenGate North API and the callback is managed by promises This function create a entity of provision

public

delete(body: *): Promise

This invoke a request to OpenGate North API and the callback is managed by promises This function deletes a entity of provision

public

This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision

Public Constructors

public constructor(Reference: InternalOpenGateAPI) source

Constructor

Override:

BaseProvision#constructor

Params:

NameTypeAttributeDescription
Reference InternalOpenGateAPI

to the API object.

Public Methods

public addImageExecution(imageExecution: ImageExecution): Pipeline source

Adds an Image Execution to the pipeline

Params:

NameTypeAttributeDescription
imageExecution ImageExecution

Return:

Pipeline

public addRestResquest(restRequest: RestRequest): Pipeline source

Adds a rest request to the pipeline

Params:

NameTypeAttributeDescription
restRequest RestRequest

Return:

Pipeline

public toJson(): {"identifier": *, "schedule": *, "pipeline": *} source

Return:

{"identifier": *, "schedule": *, "pipeline": *}

public update() source

This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision

Override:

BaseProvision#update

public withIdentifier(identifier: string): Pipeline source

Sets the identifier attribute

Params:

NameTypeAttributeDescription
identifier string

Return:

Pipeline

public withOrganization(organization: string): Pipeline source

Set the organization attribute

Params:

NameTypeAttributeDescription
organization string

Return:

Pipeline

public withScheduleCronExpression(cronExpression: string): Pipeline source

Sets the crontab expression for schedule

Params:

NameTypeAttributeDescription
cronExpression string

Return:

Pipeline

public withScheduleExecuteNow(executeNow: boolean): Pipeline source

Sets the executeNow attribute

Params:

NameTypeAttributeDescription
executeNow boolean

Return:

Pipeline

public withScheduleFrom(from: string): Pipeline source

Sets the from attribute

Params:

NameTypeAttributeDescription
from string

Return:

Pipeline

public withScheduleMinutesInterval(interval: number): Pipeline source

Sets the interval for schedule in minutes

Params:

NameTypeAttributeDescription
interval number

in minutes

Return:

Pipeline

public withScheduleTo(to: string): Pipeline source

Sets the to attribute

Params:

NameTypeAttributeDescription
to string

Return:

Pipeline