'Returns a resource types list which may be used in template.'

@util.policy_enforce
def list_resource_types(self, req):

    support_status = req.params.get('support_status')
    type_name = req.params.get('name')
    version = req.params.get('version')
    if (req.params.get('with_description') is not None):
        with_description = self._extract_bool_param('with_description', req.params.get('with_description'))
    else:
        with_description = False
    return {'resource_types': self.rpc_client.list_resource_types(req.context, support_status=support_status, type_name=type_name, heat_version=version, with_description=with_description)}
