Home Manual Reference Source Test Repository
import ImageExecution from 'opengate-js/src/schedule/ImageExecution.js'
public class | source

ImageExecution

Extends:

BaseProvision → ImageExecution

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

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

toJson(): {"identifier": *, "schedule": *, "imageExecution": *, "maxTimeToWaitCallback": *}

public

update()

public

withEnvFrom(imageExecutionEnvFrom: array): ImageExecution

Sets the env from for imageExecution

public

withEnvVars(imageExecutionEnvVars: object): ImageExecution

Sets the env vars for imageExecution

public

Sets the identifier attribute

public

withMaxTimeToWaitCallback(asyncResponseMaxTimeToWaitCallback: string): ImageExecution

Sets the async response with selected timeout

public

withName(imageExecutionName: string): ImageExecution

Sets the name for imageExecution

public

withOrganization(organization: string): Channels

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

public

withTag(imageExecutionTag: string): ImageExecution

Sets the tag for imageExecution

public

Sets the execution timeout for imageExecution

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 toJson(): {"identifier": *, "schedule": *, "imageExecution": *, "maxTimeToWaitCallback": *} source

Return:

{"identifier": *, "schedule": *, "imageExecution": *, "maxTimeToWaitCallback": *}

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 withEnvFrom(imageExecutionEnvFrom: array): ImageExecution source

Sets the env from for imageExecution

Params:

NameTypeAttributeDescription
imageExecutionEnvFrom array

Return:

ImageExecution

public withEnvVars(imageExecutionEnvVars: object): ImageExecution source

Sets the env vars for imageExecution

Params:

NameTypeAttributeDescription
imageExecutionEnvVars object

Return:

ImageExecution

public withIdentifier(identifier: string): ImageExecution source

Sets the identifier attribute

Params:

NameTypeAttributeDescription
identifier string

Return:

ImageExecution

public withMaxTimeToWaitCallback(asyncResponseMaxTimeToWaitCallback: string): ImageExecution source

Sets the async response with selected timeout

Params:

NameTypeAttributeDescription
asyncResponseMaxTimeToWaitCallback string

Return:

ImageExecution

public withName(imageExecutionName: string): ImageExecution source

Sets the name for imageExecution

Params:

NameTypeAttributeDescription
imageExecutionName string

Return:

ImageExecution

public withOrganization(organization: string): Channels source

Set the organization attribute

Params:

NameTypeAttributeDescription
organization string

Return:

Channels

public withScheduleCronExpression(cronExpression: string): ImageExecution source

Sets the crontab expression for schedule

Params:

NameTypeAttributeDescription
cronExpression string

Return:

ImageExecution

public withScheduleExecuteNow(executeNow: boolean): ImageExecution source

Sets the executeNow attribute

Params:

NameTypeAttributeDescription
executeNow boolean

Return:

ImageExecution

public withScheduleFrom(from: string): ImageExecution source

Sets the from attribute

Params:

NameTypeAttributeDescription
from string

Return:

ImageExecution

public withScheduleMinutesInterval(interval: number): ImageExecution source

Sets the interval for schedule in minutes

Params:

NameTypeAttributeDescription
interval number

in minutes

Return:

ImageExecution

public withScheduleTo(to: string): ImageExecution source

Sets the to attribute

Params:

NameTypeAttributeDescription
to string

Return:

ImageExecution

public withTag(imageExecutionTag: string): ImageExecution source

Sets the tag for imageExecution

Params:

NameTypeAttributeDescription
imageExecutionTag string

Return:

ImageExecution

public withTimeout(timeout: string): ImageExecution source

Sets the execution timeout for imageExecution

Params:

NameTypeAttributeDescription
timeout string

Return:

ImageExecution