def has_resource(self, name):
    'Check if a resource is present\n\n        Parameters:\n            name (str): schema resource name\n\n        Returns:\n           bool: whether there is the resource\n        '
    for resource in self.resources:
        if (resource.name == name):
            return True
    return False
Check if a resource is present

Parameters:
    name (str): schema resource name

Returns:
   bool: whether there is the resource
def has_resource(self, name):
    'Check if a resource is present\n\n        Parameters:\n            name (str): schema resource name\n\n        Returns:\n           bool: whether there is the resource\n        '
    for resource in self.resources:
        if (resource.name == name):
            return True
    return False