Elipse Plant Manager — EPM Web API

Version 5.0.45

epmwebapi.resource

class Resource:

Class representing a Resource from EPM Portal's or EPM Processor's Resource Manager.

Resource(resourcesManager, id, name, description, mimeType)
def download( self, type: epmwebapi.downloadtype.DownloadType) -> <built-in function any>:

Downloads a Resource from Resources Manager.

Parameters
Returns

Downloaded Resource. For Text return a str, for Json returns a dict, and for Binary returns a BytesIO.

def upload(self, file: str) -> <built-in function any>:

Uploads the current Resource to an EPM Server.

Parameters
  • file: File to upload.
Returns

Uploaded Resource.

def delete(self):

Deletes the current Resouce.