import ManufacturerMedia from 'opengate-js/src/manufacturers/ManufacturerMedia.js'ManufacturerMedia
Extends:
This is a base object that contains all you can do about ManufacturerMedia.
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): ManufacturerMedia Set the file attribute |
|
| public |
Set the identifier attribute |
|
| public |
withName(name: string): ManufacturerMedia 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): ManufacturerMedia source
Set the file attribute
Params:
| Name | Type | Attribute | Description |
| file | string | required field |
public withIdentifier(id: string): ManufacturerMedia source
Set the identifier attribute
Params:
| Name | Type | Attribute | Description |
| id | string | required field |
public withName(name: string): ManufacturerMedia source
Set the name attribute
Params:
| Name | Type | Attribute | Description |
| name | string | required field |