def RetrieveContent(self): try: retval = Vim.ServiceInstanceContent( about=Vim.AboutInfo(), rootFolder=Vim.Folder("RootFolder"), sessionManager=Vim.SessionManager("SessionManager"), propertyCollector=Vmodl.query.PropertyCollector( "PropertyCollector")) return retval except: logging.exception("retrieve content") return
def CreateFolder(self, name): raise Vim.fault.DuplicateName(name=name, object=Vim.Folder("Original"))