(self, api)
Extension point for subclasses to annotate the API node itself.

    A language generator may provide an implementation for this.

    Args:
      api: (Api) The Api.
Extension point for subclasses to annotate the API node itself.
Extension point for subclasses to annotate the API node itself .
def AnnotateApi(self, api):
    """Extension point for subclasses to annotate the API node itself.

    A language generator may provide an implementation for this.

    Args:
      api: (Api) The Api.
    """
    api.SetTemplateValue('topLevelModels', api.TopLevelModelClasses())
    for parameter in api.values.get('parameters') or []:
      self.AnnotateParameter(api, parameter)
def AnnotateApi ( self , api ) : api . SetTemplateValue ( 'topLevelModels' , api . TopLevelModelClasses ( ) ) for parameter in api . values . get ( 'parameters' ) or [ ] : self . AnnotateParameter ( api , parameter )