(self, func)
Visit all nodes of an API tree and apply a function to each.

    Walks a tree and calls a function on each element of it. This should be
    called after the API is fully loaded.

    Args:
      func: (function) Method to call on each object.
Visit all nodes of an API tree and apply a function to each.
Visit all nodes of an API tree and apply a function to each .
def VisitAll(self, func):
    """Visit all nodes of an API tree and apply a function to each.

    Walks a tree and calls a function on each element of it. This should be
    called after the API is fully loaded.

    Args:
      func: (function) Method to call on each object.
    """
    _LOGGER.debug('Applying function to all nodes')
    func(self._containing_module)
    func(self._module)
    func(self._model_module)
    for resource in self.values['resources']:
      self._VisitResource(resource, func)
    # Top level methods
    for method in self.values['methods']:
      self._VisitMethod(method, func)
    for parameter in self.values['parameters']:
      func(parameter)
      func(parameter.data_type)
    for schema in self._schemas.values():
      self._VisitSchema(schema, func)
    for scope in self.GetTemplateValue('authscopes') or []:
      func(scope)
def VisitAll ( self , func ) : _LOGGER . debug ( 'Applying function to all nodes' ) func ( self . _containing_module ) func ( self . _module ) func ( self . _model_module ) for resource in self . values [ 'resources' ] : self . _VisitResource ( resource , func ) # Top level methods for method in self . values [ 'methods' ] : self . _VisitMethod ( method , func ) for parameter in self . values [ 'parameters' ] : func ( parameter ) func ( parameter . data_type ) for schema in self . _schemas . values ( ) : self . _VisitSchema ( schema , func ) for scope in self . GetTemplateValue ( 'authscopes' ) or [ ] : func ( scope )