| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| # EDITING INSTRUCTIONS | ||
| # This file was generated from the file | ||
| # https://github.com/google/googleapis/blob/7710ead495227e80a0f06ceb66bdf3238d926f77/google/logging/v2/logging_config.proto, | ||
| # https://github.com/google/googleapis/blob/master/google/logging/v2/logging_config.proto, |
|
@geigerj thanks for the new PR! I'll skip the detail-oriented review since @dhermes is tackling that bit, but just wanted to let you know that looking at the generated wrappers for the protobuf/gRPC API is quite illuminating, as I'm working on the REST/JSON wrappers this month. |
Sorry, something went wrong.
| if app_name is None: | ||
| app_name = 'gax' | ||
| if app_version is None: | ||
| app_version = google.gax.__version__ |
|
Design question. If the code is generated, couldn't you use the contents of the YAML file to just populate variables in the module? It seems that having to bear the weight of file I/O and parsing YAML is unneeded. |
Sorry, something went wrong.
| 'https://www.googleapis.com/auth/logging.admin', | ||
| 'https://www.googleapis.com/auth/logging.read', | ||
| 'https://www.googleapis.com/auth/cloud-platform.read-only', | ||
| 'https://www.googleapis.com/auth/cloud-platform', ) |
| google_apis_agent = '{}-{}/{}/gax-{}/{}'.format( | ||
| app_name, app_version, self._CODE_GEN_NAME_VERSION, | ||
| google.gax.__version__, | ||
| 'python-{}'.format(platform.python_version())) |
|
OK I finished my comments. |
Sorry, something went wrong.
I feel the same way. There seems to be no real benefit to doing it this way. |
Sorry, something went wrong.
In the not too far-off future, the plan is to allow user configuration of api settings via yaml
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Reflects updates to the code generation made between January and now.
An sample usage snippet is available here: https://gist.github.com/geigerj/de050b53f8887e9d7a07
@tbetbetbe
@anthmgoogle
@jgeewax