Home Manual Reference Source Test Repository
public class | source

ManufacturerMedia

Extends:

BaseProvision → ManufacturerMedia

This is a base object that contains all you can do about ManufacturerMedia.

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

create(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

update()

public

Set the file attribute

public

Set the identifier attribute

public

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

delete(body: *): Promise

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#constructor

Params:

NameTypeAttributeDescription
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#create

Params:

NameTypeAttributeDescription
rawFile File

this File is the deployment element

Return:

Promise

Return Properties:

NameTypeAttributeDescription
then function(result: object, statusCode: number)

When request it is OK

catch function(error: string)

When request it is NOK

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#update

public withFile(file: string): ManufacturerMedia source

Set the file attribute

Params:

NameTypeAttributeDescription
file string

required field

public withIdentifier(id: string): ManufacturerMedia source

Set the identifier attribute

Params:

NameTypeAttributeDescription
id string

required field

public withName(name: string): ManufacturerMedia source

Set the name attribute

Params:

NameTypeAttributeDescription
name string

required field