(self, resource, func)
Visit a resource tree, calling a function on every child.

    Calls down recursively to sub resources.

    Args:
      resource: (Resource) The Resource to visit.
      func: (function) Method to call on each object.
Visit a resource tree, calling a function on every child.
Visit a resource tree calling a function on every child .
def _VisitResource(self, resource, func):
    """Visit a resource tree, calling a function on every child.

    Calls down recursively to sub resources.

    Args:
      resource: (Resource) The Resource to visit.
      func: (function) Method to call on each object.
    """
    func(resource)
    for method in resource.values['methods']:
      self._VisitMethod(method, func)
    for r in resource.values['resources']:
      self._VisitResource(r, func)
def _VisitResource ( self , resource , func ) : func ( resource ) for method in resource . values [ 'methods' ] : self . _VisitMethod ( method , func ) for r in resource . values [ 'resources' ] : self . _VisitResource ( r , func )