Subsections of bundles

Bundle Finder

This class allow make get request to certificate resource into Opengate North API.

constructor

Constructor

Parámetros

Nombre Tipo Opcional Descripción
Reference InternalOpenGateAPI to the API object.

findByNameAndVersion(name, version)

Download a specific bundle by its name and version. This execute a GET http method

Parámetros

Nombre Tipo Opcional Descripción
name string bundle name .
version string bundle version.

Retorna

Tip

Tipo: Promise


Bundles

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

constructor

Constructor

Parámetros

Nombre Tipo Opcional Descripción
Reference InternalOpenGateAPI to the API object.

activate()

This invoke a request to OpenGate North API and the callback is managed by promises This function activates a bundle

Retorna

Tip

Tipo: Promise

Ejemplos

 ogapi.bundlesBuilder().activate()

addDeploymentElement(progressEvent)

Create deployment element that is asociated to the Bundle

Parámetros

Nombre Tipo Opcional Descripción
progressEvent *

Retorna

Tip

Tipo: DeploymentElement

Ejemplos

 ogapi.bundlesBuilder().newDeploymentElement()

create()

Creates a new bundle

Retorna

Tip

Tipo: Promise

Ejemplos

 ogapi.bundlesBuilder().create()

deactivate()

This invoke a request to OpenGate North API and the callback is managed by promises This function deactivates a bundle

Retorna

Tip

Tipo: Promise

Ejemplos

 ogapi.bundlesBuilder().deactivate()

deployAndActivate()

Deploy all elements of a bundle in only one method

Retorna

Tip

Tipo: DeploymentElement

Ejemplos

 ogapi.bundlesBuilder().deployAndActivate()

update()

Updates a bundle

Retorna

Tip

Tipo: Promise

Ejemplos

 ogapi.bundlesBuilder().update()

withActive(active)

Set the active attribute

Parámetros

Nombre Tipo Opcional Descripción
active string

Retorna

Tip

Tipo: Bundles


withDescription(description)

Set the description attribute

Parámetros

Nombre Tipo Opcional Descripción
description string

Retorna

Tip

Tipo: Bundles


withHardware(hardware)

Set the hardware attribute

Parámetros

Nombre Tipo Opcional Descripción
hardware string

Retorna

Tip

Tipo: Bundles


withName(name)

Set the name attribute

Parámetros

Nombre Tipo Opcional Descripción
name string required field

Retorna

Tip

Tipo: Bundles


withPostaction(postactions)

Set the postactions attribute

Parámetros

Nombre Tipo Opcional Descripción
postactions string

Retorna

Tip

Tipo: Bundles


withPreaction(preaction)

Set the preaction attribute

Parámetros

Nombre Tipo Opcional Descripción
preaction string

Retorna

Tip

Tipo: Bundles


withTimeout(ms)

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

Parámetros

Nombre Tipo Opcional Descripción
ms number timeout in milliseconds

Retorna

Tip

Tipo: Bundles


withUserNotes(userNotes)

Set the userNotes attribute

Parámetros

Nombre Tipo Opcional Descripción
userNotes string

Retorna

Tip

Tipo: Bundles


withVersion(version)

Set the version attribute

Parámetros

Nombre Tipo Opcional Descripción
version string

Retorna

Tip

Tipo: Bundles


withWorkgroup(workgroup)

Set the workgroup attribute

Parámetros

Nombre Tipo Opcional Descripción
workgroup string

Retorna

Tip

Tipo: Bundles


Subsections of deployment

Deployment Element

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

createWithFile(rawFile)

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

Parámetros

Nombre Tipo Opcional Descripción
rawFile File this File is the deployment element

Retorna

Tip

Tipo: Promise


deploy()

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

Retorna

Tip

Tipo: Promise


update()

This method invalidates the update option


withDownloadUrl(downloadUrl)

Set the downloadUrl attribute

Parámetros

Nombre Tipo Opcional Descripción
downloadUrl string

Retorna

Tip

Tipo: DeploymentElement


withFile(rawFile)

Sets the file to upload

Parámetros

Nombre Tipo Opcional Descripción
rawFile object

Retorna

Tip

Tipo: DeploymentElement


withFileName(fileName)

Set the fileName attribute

Parámetros

Nombre Tipo Opcional Descripción
fileName string

Retorna

Tip

Tipo: DeploymentElement


withName(name)

Set the name attribute

Parámetros

Nombre Tipo Opcional Descripción
name string required field

Retorna

Tip

Tipo: DeploymentElement


withOldName(name)

Sets the old name attribute

Parámetros

Nombre Tipo Opcional Descripción
name string

Retorna

Tip

Tipo: DeploymentElement


withOldPath(path)

Sets the old path attribute

Parámetros

Nombre Tipo Opcional Descripción
path string

Retorna

Tip

Tipo: DeploymentElement


withOldVersion(version)

Sets the old version attribute

Parámetros

Nombre Tipo Opcional Descripción
version string

Retorna

Tip

Tipo: DeploymentElement


withOperation(operation)

Set the operation attribute

Parámetros

Nombre Tipo Opcional Descripción
operation string required field

Retorna

Tip

Tipo: DeploymentElement


withOption(option)

Set the option attribute

Parámetros

Nombre Tipo Opcional Descripción
option string

Retorna

Tip

Tipo: DeploymentElement


withOrder(order)

Set the order attribute

Parámetros

Nombre Tipo Opcional Descripción
order string required field

Retorna

Tip

Tipo: DeploymentElement


withPath(path)

Set the path attribute

Parámetros

Nombre Tipo Opcional Descripción
path string required field

Retorna

Tip

Tipo: DeploymentElement


withTimeout(ms)

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

Parámetros

Nombre Tipo Opcional Descripción
ms number timeout in milliseconds

Retorna

Tip

Tipo: Bundles


withType(type)

Set the type attribute

Parámetros

Nombre Tipo Opcional Descripción
type string required field

Retorna

Tip

Tipo: DeploymentElement


withValidation(validation)

Set the validation attribute

Parámetros

Nombre Tipo Opcional Descripción
validation string

Retorna

Tip

Tipo: DeploymentElement


withValidators(validators)

Set the validators attribute

Parámetros

Nombre Tipo Opcional Descripción
validators Array

Retorna

Tip

Tipo: DeploymentElement


withVersion(version)

Set the version attribute

Parámetros

Nombre Tipo Opcional Descripción
version string required field

Retorna

Tip

Tipo: DeploymentElement