ModelMedia
Extends:
This is a base object that contains all you can do about ModelMedia.
Constructor Summary
| Public Constructor | ||
| public |
constructor(Reference: InternalOpenGateAPI) Constructor |
|
Method Summary
| Public Methods | ||
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This method create an element deploymentElement |
|
| public |
update() |
|
| public |
withFile(file: string): ModelMedia Set the file attribute |
|
| public |
withFileName(fileName: string): ModelMedia Set the file name attribute |
|
| public |
withIdentifier(id: string): ModelMedia Set the identifier attribute |
|
| public |
withName(name: string): ModelMedia Set the name 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(Reference: InternalOpenGateAPI) source
Constructor
Override:
BaseProvision#constructorParams:
| Name | Type | Attribute | Description |
| Reference | InternalOpenGateAPI | to the API object. |
Public Methods
public create(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
Override:
BaseProvision#createParams:
| Name | Type | Attribute | Description |
| rawFile | File | this File is the deployment element |
public update() source
This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision
Override:
BaseProvision#updatepublic withFile(file: string): ModelMedia source
Set the file attribute
Params:
| Name | Type | Attribute | Description |
| file | string | required field |
public withFileName(fileName: string): ModelMedia source
Set the file name attribute
Params:
| Name | Type | Attribute | Description |
| fileName | string | required field |
public withIdentifier(id: string): ModelMedia source
Set the identifier attribute
Params:
| Name | Type | Attribute | Description |
| id | string | required field |
public withName(name: string): ModelMedia source
Set the name attribute
Params:
| Name | Type | Attribute | Description |
| name | string | required field |