Uh oh!
There was an error while loading. Please reload this page.
Update logging codegen - #1629
Conversation
tbetbetbe
commented
Mar 17, 2016
| # 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, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tseaver
commented
Mar 18, 2016
| if app_name is None: | ||
| app_name = 'gax' | ||
| if app_version is None: | ||
| app_version = google.gax.__version__ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
Mar 18, 2016
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. |
| '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', ) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| google_apis_agent = '{}-{}/{}/gax-{}/{}'.format( | ||
| app_name, app_version, self._CODE_GEN_NAME_VERSION, | ||
| google.gax.__version__, | ||
| 'python-{}'.format(platform.python_version())) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
Mar 18, 2016
OK I finished my comments. |
theacodes
commented
Mar 18, 2016
I feel the same way. There seems to be no real benefit to doing it this way. |
tbetbetbe
commented
Mar 18, 2016
In the not too far-off future, the plan is to allow user configuration of api settings via yaml
|
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