(self, api, resource)
Extension point for subclasses to annotate Resources.

    A language generator may provide an implementation for this. The default
    walks the Resources methods and sub-resources to annotate those.

    Args:
      api: (Api) The Api which owns this resource.
      resource: (Resource) The Resource to annotate.
Extension point for subclasses to annotate Resources.
Extension point for subclasses to annotate Resources .
def AnnotateResource(self, api, resource):
    """Extension point for subclasses to annotate Resources.

    A language generator may provide an implementation for this. The default
    walks the Resources methods and sub-resources to annotate those.

    Args:
      api: (Api) The Api which owns this resource.
      resource: (Resource) The Resource to annotate.
    """
    for method in resource.values['methods']:
      self.AnnotateMethod(api, method, resource)
    for r in resource.values['resources']:
      self.AnnotateResource(api, r)
def AnnotateResource ( self , api , resource ) : for method in resource . values [ 'methods' ] : self . AnnotateMethod ( api , method , resource ) for r in resource . values [ 'resources' ] : self . AnnotateResource ( api , r )