def __init__(self, obj_dict=None): self.contentInstanceId = False self.creationTime = None self.lastModifiedTime = None self.contentTypes = [] self.mimeType = [] self.contentSize = 0 self.content = False if obj_dict == None: return for key in self.__dict__.keys(): self.__dict__[key] = obj_dict.get(key, None) if isinstance(self.creationTime, (int, long)): self.creationTime = datetime.fromEpoch(self.creationTime) if isinstance(self.lastModifiedTime, (int, long)): self.lastModifiedTime = datetime.fromEpoch(self.lastModifiedTime)
def __init__(self, obj_dict=None): self.containerId = None self.accessRightID = None self.searchStrings = [] self.creationTime = None self.lastModifiedTime = None self.maxNrOfInstances = None self.contentInstancesReference = None self.subscriptionReference = None if obj_dict == None: return for key in self.__dict__.keys(): self.__dict__[key] = obj_dict.get(key, None) if isinstance(self.creationTime, (int, long)): self.creationTime = datetime.fromEpoch(self.creationTime) if isinstance(self.lastModifiedTime, (int, long)): self.lastModifiedTime = datetime.fromEpoch(self.lastModifiedTime)
def __init__(self, obj_dict=None): self.commandId = None self.creationTime = None self.lastModifiedTime = None self.commandType = None self.execEnable = None self.description = None self.execInstancesReference = None self.subscriptionsReference = None self.command = None if obj_dict == None: return for key in self.__dict__.keys(): self.__dict__[key] = obj_dict.get(key, None) if isinstance(self.creationTime, (int, long)): self.creationTime = datetime.fromEpoch(self.creationTime) if isinstance(self.lastModifiedTime, (int, long)): self.lastModifiedTime = datetime.fromEpoch(self.lastModifiedTime)
def __init__(self, obj_dict=None): self.appId = None self.accessRightID = None self.searchStrings = [] self.creationTime = None self.lastModifiedTime = None self.aPoC = None self.aPoCPaths = [] self.containersReference = None self.groupsReference = None self.accessRightsReference = None self.notificationChannelReference = None if obj_dict == None: return for key in self.__dict__.keys(): self.__dict__[key] = obj_dict.get(key, None) if isinstance(self.creationTime, (int, long)): self.creationTime = datetime.fromEpoch(self.creationTime) if isinstance(self.lastModifiedTime, (int, long)): self.lastModifiedTime = datetime.fromEpoch(self.lastModifiedTime)