Deployment Element
DeploymentElement
DeploymentElement Objects
class DeploymentElement()This is a base object that contains all you can do about Deployment Element.
constructor
function constructor()Arguments:
context*ogapi*url*progressEvent*
createWithFile
function 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
Arguments:
rawFileFile - this File is the deployment element
Returns:
Promise
deploy
function deploy() -> 'Promise'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
Returns:
Promise
update
function update()This method invalidates the update option
validation
function validation()validation
function validation()withDownloadUrl
function withDownloadUrl(downloadUrl: string) -> 'DeploymentElement'Set the downloadUrl attribute
Arguments:
downloadUrlstring
Returns:
DeploymentElement
withFile
function withFile(rawFile: object) -> 'DeploymentElement'Sets the file to upload
Arguments:
rawFileobject
Returns:
DeploymentElement
withFileName
function withFileName(fileName: string) -> 'DeploymentElement'Set the fileName attribute
Arguments:
fileNamestring
Returns:
DeploymentElement
withName
function withName(name: string) -> 'DeploymentElement'Set the name attribute
Arguments:
namestring - required field
Returns:
DeploymentElement
withOldName
function withOldName(name: string) -> 'DeploymentElement'Sets the old name attribute
Arguments:
namestring
Returns:
DeploymentElement
withOldPath
function withOldPath(path: string) -> 'DeploymentElement'Sets the old path attribute
Arguments:
pathstring
Returns:
DeploymentElement
withOldVersion
function withOldVersion(version: string) -> 'DeploymentElement'Sets the old version attribute
Arguments:
versionstring
Returns:
DeploymentElement
withOperation
function withOperation(operation: string) -> 'DeploymentElement'Set the operation attribute
Arguments:
operationstring - required field
Returns:
DeploymentElement
withOption
function withOption(option: string) -> 'DeploymentElement'Set the option attribute
Arguments:
optionstring
Returns:
DeploymentElement
withOrder
function withOrder(order: string) -> 'DeploymentElement'Set the order attribute
Arguments:
orderstring - required field
Returns:
DeploymentElement
withPath
function withPath(path: string) -> 'DeploymentElement'Set the path attribute
Arguments:
pathstring - required field
Returns:
DeploymentElement
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
withType
function withType(type: string) -> 'DeploymentElement'Set the type attribute
Arguments:
typestring - required field
Returns:
DeploymentElement
withValidation
function withValidation(validation: string) -> 'DeploymentElement'Set the validation attribute
Arguments:
validationstring
Returns:
DeploymentElement
withValidators
function withValidators(validators: Array) -> 'DeploymentElement'Set the validators attribute
Arguments:
validatorsArray
Returns:
DeploymentElement
withVersion
function withVersion(version: string) -> 'DeploymentElement'Set the version attribute
Arguments:
versionstring - required field
Returns:
DeploymentElement