bundles
This section documents the Bundles and BundleFinder classes, plus the deployment element used to attach files to a bundle.
This section documents the Bundles and BundleFinder classes, plus the deployment element used to attach files to a bundle.
This class allows making GET requests to the bundle resource in the OpenGate North API.
Constructor
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | Reference to the API object. |
Download a specific bundle by its name and version. This execute a GET http method
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| name | string |
❌ | bundle name . |
| version | string |
❌ | bundle version. |
Tipo: Promise
This is the base object for everything you can do with bundles.
Constructor
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | Reference to the API object. |
This invokes a request to the OpenGate North API and the callback is managed by promises. This function activates a bundle.
Tipo: Promise
Create deployment element that is asociated to the Bundle
Tipo: DeploymentElement
Creates a new bundle
Tipo: Promise
This invokes a request to the OpenGate North API and the callback is managed by promises. This function deactivates a bundle.
Tipo: Promise
Deploy all elements of a bundle in only one method
Tipo: DeploymentElement
Updates a bundle
Tipo: Promise
Set the active attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| active | string |
❌ |
Tipo: Bundles
Set the description attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| description | string |
❌ |
Tipo: Bundles
Set the hardware attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| hardware | string |
❌ |
Tipo: Bundles
Set the name attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| name | string |
❌ | required field |
Tipo: Bundles
Set the postactions attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| postactions | string |
❌ |
Tipo: Bundles
Set the preaction attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| preaction | string |
❌ |
Tipo: Bundles
The request will have a specific time out if it will be exceeded then the promise throw an exception
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ms | number |
❌ | timeout in milliseconds |
Tipo: Bundles
Set the userNotes attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| userNotes | string |
❌ |
Tipo: Bundles
Set the version attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| version | string |
❌ |
Tipo: Bundles
Set the workgroup attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| workgroup | string |
❌ |
Tipo: Bundles
This section documents the deployment element used to attach files to a bundle.
This is the base object for everything you can do with a deployment element.
This invokes a request to the OpenGate North API and the callback is managed by promises. This method creates a deployment element.
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | File |
❌ | this File is the deployment element |
Tipo: Promise
This invokes a request to the OpenGate North API and the callback is managed by promises. This method creates a deployment element with the previously assigned file.
Tipo: Promise
This method invalidates the update option
Set the downloadUrl attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| downloadUrl | string |
❌ |
Tipo: DeploymentElement
Sets the file to upload
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | object |
❌ |
Tipo: DeploymentElement
Set the fileName attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| fileName | string |
❌ |
Tipo: DeploymentElement
Set the name attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| name | string |
❌ | required field |
Tipo: DeploymentElement
Sets the old name attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| name | string |
❌ |
Tipo: DeploymentElement
Sets the old path attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| path | string |
❌ |
Tipo: DeploymentElement
Sets the old version attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| version | string |
❌ |
Tipo: DeploymentElement
Set the operation attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| operation | string |
❌ | required field |
Tipo: DeploymentElement
Set the option attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| option | string |
❌ |
Tipo: DeploymentElement
Set the order attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| order | string |
❌ | required field |
Tipo: DeploymentElement
Set the path attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| path | string |
❌ | required field |
Tipo: DeploymentElement
The request will have a specific time out if it will be exceeded then the promise throw an exception
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ms | number |
❌ | timeout in milliseconds |
Tipo: Bundles
Set the type attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| type | string |
❌ | required field |
Tipo: DeploymentElement
Set the validation attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| validation | string |
❌ |
Tipo: DeploymentElement
Set the validators attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| validators | Array |
❌ |
Tipo: DeploymentElement
Set the version attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| version | string |
❌ | required field |
Tipo: DeploymentElement