Elipse Plant Manager — EPM Web API
Version 5.0.45
epmwebapi.folder
class
Folder:
Class representing a Resources folder.
Folder(resourcesManager, id, name, description)
Constructor for this class.
Parameters
- resourcesManager: An
epmwebapi.resourcesmanager.ResourcesManager
object - id: Identification of this Folder
- name: Name of this Folder
- description: Description for this Folder
Lists all child elements from this Folder.
Returns
An Ordered Dictionary with all child elements from this Folder.
def
upload( self, name: str, file: str, description: str = None, mimeType: str = None, thumbnail: str = None, thumbnailMimeType: str = None, starred: bool = None, overrideFile: bool = False) -> epmwebapi.resource.Resource:
Uploads a file to a Resouces Manager.
Parameters
- name: Resource name.
- file: File path.
- description: Optional parameter with a Resource description. Default is None.
- mimeType: An optional MIME type for this Resource. It can be one of the options of enumerations
epmwebapi.mimetype.Application
,epmwebapi.mimetype.Text
,epmwebapi.mimetype.Image
,epmwebapi.mimetype.Audio
, orepmwebapi.mimetype.Video
. Default is None. - thumbnail: An optional thumbnail for this Resource. Default is None.
- thumbnailMimeType: An optional MIME type for this thumbnail. It can be one of the options of enumerations
epmwebapi.mimetype.Application
,epmwebapi.mimetype.Text
,epmwebapi.mimetype.Image
,epmwebapi.mimetype.Audio
, orepmwebapi.mimetype.Video
. Default is None. - starred: Optional parameter indicating whether this Resource is starred. Default is None.
- overrideFile: Optional parameter indicating whether the file can be overridden. Default is None.
Returns
An
epmwebapi.resource.Resource
object.
Copyright © 2017–2024 Elipse Software Ltda. All rights reserved. Distributed under MIT License.