(self, s, element, element_type=None)
return utilities.CamelCase(s)
Convert a discovery name to a suitable Python class name.

    Overrides the default.

    Args:
      s: (str) A rosy name of data element.
      element: (object) The object we need a class name for.
      element_type: (str) The kind of element (resource|method) to name.
    Returns:
      A name suitable for use as a class in the generator's target language.
Convert a discovery name to a suitable Python class name.
Convert a discovery name to a suitable Python class name .
def ToClassName(self, s, element, element_type=None):
    """Convert a discovery name to a suitable Python class name.

    Overrides the default.

    Args:
      s: (str) A rosy name of data element.
      element: (object) The object we need a class name for.
      element_type: (str) The kind of element (resource|method) to name.
    Returns:
      A name suitable for use as a class in the generator's target language.
    """

    if s.lower() in PythonLanguageModel.RESERVED_CLASS_NAMES:
      # Prepend the service name
      return '%s%s' % (utilities.CamelCase(self.values['name']),
                       utilities.CamelCase(s))
    return utilities.CamelCase(s)
def ToClassName ( self , s , element , element_type = None ) : if s . lower ( ) in PythonLanguageModel . RESERVED_CLASS_NAMES : # Prepend the service name return '%s%s' % ( utilities . CamelCase ( self . values [ 'name' ] ) , utilities . CamelCase ( s ) ) return utilities . CamelCase ( s )