import DeploymentElement from 'opengate-js/src/bundles/deployment/DeploymentElement.js'DeploymentElement
Extends:
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 |
withDownloadUrl(downloadUrl: string): DeploymentElement Set the downloadUrl attribute |
|
| public |
withFile(rawFile: object): DeploymentElement Sets the file to upload |
|
| public |
withFileName(fileName: string): DeploymentElement Set the fileName attribute |
|
| public |
withName(name: string): DeploymentElement Set the name attribute |
|
| public |
withOldName(name: string): DeploymentElement Sets the old name attribute |
|
| public |
withOldPath(path: string): DeploymentElement Sets the old path attribute |
|
| public |
withOldVersion(version: string): DeploymentElement Sets the old version attribute |
|
| public |
withOperation(operation: string): DeploymentElement Set the operation attribute |
|
| public |
withOption(option: string): DeploymentElement Set the option attribute |
|
| public |
withOrder(order: string): DeploymentElement Set the order attribute |
|
| public |
withPath(path: string): DeploymentElement Set the path attribute |
|
| public |
withTimeout(ms: number): Bundles The request will have a specific time out if it will be exceeded then the promise throw an exception |
|
| public |
withType(type: string): DeploymentElement Set the type attribute |
|
| public |
withValidation(validation: string): DeploymentElement Set the validation attribute |
|
| public |
withValidators(validators: Array): DeploymentElement Set the validators attribute |
|
| public |
withVersion(version: string): DeploymentElement 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 |
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#constructorParams:
| Name | Type | Attribute | Description |
| context | * | ||
| ogapi | * | ||
| url | * | ||
| progressEvent | * |
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:
| Name | Type | Attribute | Description |
| rawFile | File | this File is the deployment element |
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
public update() source
This method invalidates the update option
Override:
BaseProvision#updateThrow:
Allways |
Deployment elements cannot be updated. |
public withDownloadUrl(downloadUrl: string): DeploymentElement source
Set the downloadUrl attribute
Params:
| Name | Type | Attribute | Description |
| downloadUrl | string |
public withFile(rawFile: object): DeploymentElement source
Sets the file to upload
Params:
| Name | Type | Attribute | Description |
| rawFile | object |
public withFileName(fileName: string): DeploymentElement source
Set the fileName attribute
Params:
| Name | Type | Attribute | Description |
| fileName | string |
public withName(name: string): DeploymentElement source
Set the name attribute
Params:
| Name | Type | Attribute | Description |
| name | string | required field |
public withOldName(name: string): DeploymentElement source
Sets the old name attribute
Params:
| Name | Type | Attribute | Description |
| name | string |
public withOldPath(path: string): DeploymentElement source
Sets the old path attribute
Params:
| Name | Type | Attribute | Description |
| path | string |
public withOldVersion(version: string): DeploymentElement source
Sets the old version attribute
Params:
| Name | Type | Attribute | Description |
| version | string |
public withOperation(operation: string): DeploymentElement source
Set the operation attribute
Params:
| Name | Type | Attribute | Description |
| operation | string | required field |
public withOption(option: string): DeploymentElement source
Set the option attribute
Params:
| Name | Type | Attribute | Description |
| option | string |
public withOrder(order: string): DeploymentElement source
Set the order attribute
Params:
| Name | Type | Attribute | Description |
| order | string | required field |
public withPath(path: string): DeploymentElement source
Set the path attribute
Params:
| Name | Type | Attribute | Description |
| 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:
| Name | Type | Attribute | Description |
| ms | number | timeout in milliseconds |
public withType(type: string): DeploymentElement source
Set the type attribute
Params:
| Name | Type | Attribute | Description |
| type | string | required field |
public withValidation(validation: string): DeploymentElement source
Set the validation attribute
Params:
| Name | Type | Attribute | Description |
| validation | string |
public withValidators(validators: Array): DeploymentElement source
Set the validators attribute
Params:
| Name | Type | Attribute | Description |
| validators | Array |
public withVersion(version: string): DeploymentElement source
Set the version attribute
Params:
| Name | Type | Attribute | Description |
| version | string | required field |