Bundles
Bundles
Bundles Objects
class Bundles()This is a base object that contains all you can do about Bundles.
constructor
function constructor()Constructor
Arguments:
ReferenceInternalOpenGateAPI - to the API object.
activate
function activate() -> 'Promise'This invoke a request to OpenGate North API and the callback is managed by promises This function activates a bundle
Returns:
Promise
Example:
ogapi.bundlesBuilder().activate()addDeploymentElement
function addDeploymentElement(progressEvent: *) -> 'DeploymentElement'Create deployment element that is asociated to the Bundle
Arguments:
progressEvent*
Returns:
DeploymentElement
Example:
ogapi.bundlesBuilder().newDeploymentElement()create
function create() -> 'Promise'Creates a new bundle
Returns:
Promise
Example:
ogapi.bundlesBuilder().create()deactivate
function deactivate() -> 'Promise'This invoke a request to OpenGate North API and the callback is managed by promises This function deactivates a bundle
Returns:
Promise
Example:
ogapi.bundlesBuilder().deactivate()deployAndActivate
function deployAndActivate() -> 'DeploymentElement'Deploy all elements of a bundle in only one method
Returns:
DeploymentElement
Example:
ogapi.bundlesBuilder().deployAndActivate()update
function update() -> 'Promise'Updates a bundle
Returns:
Promise
Example:
ogapi.bundlesBuilder().update()withActive
function withActive(active: string) -> 'Bundles'Set the active attribute
Arguments:
activestring
Returns:
Bundles
withDescription
function withDescription(description: string) -> 'Bundles'Set the description attribute
Arguments:
descriptionstring
Returns:
Bundles
withHardware
function withHardware(hardware: string) -> 'Bundles'Set the hardware attribute
Arguments:
hardwarestring
Returns:
Bundles
withName
function withName(name: string) -> 'Bundles'Set the name attribute
Arguments:
namestring - required field
Returns:
Bundles
withPostaction
function withPostaction(postactions: string) -> 'Bundles'Set the postactions attribute
Arguments:
postactionsstring
Returns:
Bundles
withPreaction
function withPreaction(preaction: string) -> 'Bundles'Set the preaction attribute
Arguments:
preactionstring
Returns:
Bundles
withTimeout
function withTimeout(ms: number) -> 'Bundles'The request will have a specific time out if it will be exceeded then the promise throw an exception
Arguments:
msnumber - timeout in milliseconds
Returns:
Bundles
withUserNotes
function withUserNotes(userNotes: string) -> 'Bundles'Set the userNotes attribute
Arguments:
userNotesstring
Returns:
Bundles
withVersion
function withVersion(version: string) -> 'Bundles'Set the version attribute
Arguments:
versionstring
Returns:
Bundles
withWorkgroup
function withWorkgroup(workgroup: string) -> 'Bundles'Set the workgroup attribute
Arguments:
workgroupstring
Returns:
Bundles