code: def ImportTypes(self, prefix=''):
        
        # Use QueryTypeInfo to get all types
        dynTypeMgr = self.GetTypeManager()
        filterSpec = None
        if prefix != '':
           filterSpec = vmodl.reflect.DynamicTypeManager.TypeFilterSpec(
                                                                typeSubstr=prefix)
        allTypes = dynTypeMgr.QueryTypeInfo(filterSpec)
  
        ## Convert dynamic types to pyVmomi types
        #
        DynamicTypeConstructor().CreateTypes(allTypes)
        return allTypes
docs: Build dynamic types