(self, api_loader, discovery, language, language_model=None,
               options=None)
Construct an ApiLibraryGenerator.

    Args:
      api_loader: (Api) Method which can construct an Api from discovery.
      discovery: (dict) A discovery definition.
      language: (str) The target language name. This has no semantic meaning
          other than to specify the template set to use.
      language_model: (LanguageModel) The target language data model.
      options: (dict) Code generator options.
Construct an ApiLibraryGenerator.
Construct an ApiLibraryGenerator .
def __init__(self, api_loader, discovery, language, language_model=None,
               options=None):
    """Construct an ApiLibraryGenerator.

    Args:
      api_loader: (Api) Method which can construct an Api from discovery.
      discovery: (dict) A discovery definition.
      language: (str) The target language name. This has no semantic meaning
          other than to specify the template set to use.
      language_model: (LanguageModel) The target language data model.
      options: (dict) Code generator options.
    """
    super(ApiLibraryGenerator, self).__init__(language_model=language_model,
                                              options=options)
    # Load the API definition and an prepare it for generating code.
    # TODO(user): package_path and version_package are really changes to the
    # API data model, rather than generator options. Move them to a distinct
    # parameter, and pass them down to the api_loader.
    options = options or {}
    module_path = options.get('package_path')
    if module_path:
      discovery['modulePath'] = module_path
    if options.get('version_package'):
      discovery['version_module'] = True
    self._api = api_loader(discovery)
    self._language = language
def __init__ ( self , api_loader , discovery , language , language_model = None , options = None ) : super ( ApiLibraryGenerator , self ) . __init__ ( language_model = language_model , options = options ) # Load the API definition and an prepare it for generating code. # TODO(user): package_path and version_package are really changes to the # API data model, rather than generator options. Move them to a distinct # parameter, and pass them down to the api_loader. options = options or { } module_path = options . get ( 'package_path' ) if module_path : discovery [ 'modulePath' ] = module_path if options . get ( 'version_package' ) : discovery [ 'version_module' ] = True self . _api = api_loader ( discovery ) self . _language = language