Home Manual Reference Source Test Repository
public class | source

DeploymentElement

Extends:

BaseProvision → DeploymentElement

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

Constructor Summary

Public Constructor
public

constructor(context: *, ogapi: *, url: *, progressEvent: *)

Member Summary

Public Members
public

Method Summary

Public Methods
public

createWithFile(rawFile: File): Promise

This invoke a request to OpenGate North API and the callback is managed by promises This method create an element deploymentElement

public

This invoke a request to OpenGate North API and the callback is managed by promises This method create an element deploymentElement with previously assignated file

public

update()

This method invalidates the update option

public

Set the downloadUrl attribute

public

Sets the file to upload

public

Set the fileName attribute

public

Set the name attribute

public

Sets the old name attribute

public

Sets the old path attribute

public

Sets the old version attribute

public

Set the operation attribute

public

Set the option attribute

public

Set the order attribute

public

Set the path attribute

public

The request will have a specific time out if it will be exceeded then the promise throw an exception

public

Set the type attribute

public

Set the validation attribute

public

Set the validators attribute

public

Set the version 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(context: *, ogapi: *, url: *, progressEvent: *) source

Constructor

Override:

BaseProvision#constructor

Params:

NameTypeAttributeDescription
context *
ogapi *
url *
progressEvent *

Public Members

public validation: boolean source

Public Methods

public createWithFile(rawFile: File): Promise source

This invoke a request to OpenGate North API and the callback is managed by promises This method create an element deploymentElement

Params:

NameTypeAttributeDescription
rawFile File

this File is the deployment element

Return:

Promise

Return Properties:

NameTypeAttributeDescription
then function(result: object, statusCode: number)

When request it is OK

catch function(error: string)

When request it is NOK

public deploy(): Promise source

This invoke a request to OpenGate North API and the callback is managed by promises This method create an element deploymentElement with previously assignated file

Return:

Promise

Return Properties:

NameTypeAttributeDescription
then function(result: object, statusCode: number)

When request it is OK

catch function(error: string)

When request it is NOK

public update() source

This method invalidates the update option

Override:

BaseProvision#update

Throw:

Allways

Deployment elements cannot be updated.

public withDownloadUrl(downloadUrl: string): DeploymentElement source

Set the downloadUrl attribute

Params:

NameTypeAttributeDescription
downloadUrl string

public withFile(rawFile: object): DeploymentElement source

Sets the file to upload

Params:

NameTypeAttributeDescription
rawFile object

public withFileName(fileName: string): DeploymentElement source

Set the fileName attribute

Params:

NameTypeAttributeDescription
fileName string

public withName(name: string): DeploymentElement source

Set the name attribute

Params:

NameTypeAttributeDescription
name string

required field

public withOldName(name: string): DeploymentElement source

Sets the old name attribute

Params:

NameTypeAttributeDescription
name string

public withOldPath(path: string): DeploymentElement source

Sets the old path attribute

Params:

NameTypeAttributeDescription
path string

public withOldVersion(version: string): DeploymentElement source

Sets the old version attribute

Params:

NameTypeAttributeDescription
version string

public withOperation(operation: string): DeploymentElement source

Set the operation attribute

Params:

NameTypeAttributeDescription
operation string

required field

public withOption(option: string): DeploymentElement source

Set the option attribute

Params:

NameTypeAttributeDescription
option string

public withOrder(order: string): DeploymentElement source

Set the order attribute

Params:

NameTypeAttributeDescription
order string

required field

public withPath(path: string): DeploymentElement source

Set the path attribute

Params:

NameTypeAttributeDescription
path string

required field

public withTimeout(ms: number): Bundles source

The request will have a specific time out if it will be exceeded then the promise throw an exception

Params:

NameTypeAttributeDescription
ms number

timeout in milliseconds

Return:

Bundles

public withType(type: string): DeploymentElement source

Set the type attribute

Params:

NameTypeAttributeDescription
type string

required field

public withValidation(validation: string): DeploymentElement source

Set the validation attribute

Params:

NameTypeAttributeDescription
validation string

public withValidators(validators: Array): DeploymentElement source

Set the validators attribute

Params:

NameTypeAttributeDescription
validators Array

public withVersion(version: string): DeploymentElement source

Set the version attribute

Params:

NameTypeAttributeDescription
version string

required field