def get_service(self, name): return CloudFoundryService.from_dict(self._get_json_or_exception("services/%s" % name), self)
def get_services(self): return [CloudFoundryService.from_dict(service, self) for service in self._get_json_or_exception("services/")]