Skip to content

_LoggingAPI: impedance matching with JSON API.#1892

Merged
tseaver merged 1 commit intogoogleapis:masterfrom
tseaver:logging-gax_cleanups
Jun 23, 2016
Merged

_LoggingAPI: impedance matching with JSON API.#1892
tseaver merged 1 commit intogoogleapis:masterfrom
tseaver:logging-gax_cleanups

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Jun 22, 2016

Uses #1888 as a base.

@tseaver tseaver added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: logging Issues related to the Cloud Logging API. labels Jun 22, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 22, 2016
@tseaver
Copy link
Contributor Author

tseaver commented Jun 23, 2016

@daspecster Rebased after merge of #1888. PTAL.

JSON APIs return mappings using 'camelCase' keys, while the generated
protobuf attributes 'use_underscores'.
@tseaver tseaver merged commit f6d654f into googleapis:master Jun 23, 2016
@tseaver tseaver mentioned this pull request Jun 29, 2016
@tseaver tseaver deleted the logging-gax_cleanups branch July 5, 2016 20:37
parthea added a commit that referenced this pull request Mar 2, 2026
Also update the `docs` session to 3.10 to match the Python GAPIC code
generator used to generate Cloud Client libraries:
https://github.com/googleapis/gapic-generator-python/blob/d20dd2876fbf8c35f6a994639864815b0d7608ab/gapic/templates/noxfile.py.j2#L360-L361

Also update black to 23.7.0 to resolve the following stack trace

```
nox > python -m pip install flake8 flake8-import-order docutils click==8.0.4 black==19.3b0
nox > python -m pip install -e .
nox > black --check google tests tests_async noxfile.py setup.py docs/conf.py
Traceback (most recent call last):
  File "/tmpfs/src/github/google-auth-library-python/.nox/lint/bin/black", line 8, in <module>
    sys.exit(patched_main())
             ~~~~~~~~~~~~^^
  File "/tmpfs/src/github/google-auth-library-python/.nox/lint/lib/python3.14/site-packages/black.py", line 3754, in patched_main
    main()
    ~~~~^^
  File "/tmpfs/src/github/google-auth-library-python/.nox/lint/lib/python3.14/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/tmpfs/src/github/google-auth-library-python/.nox/lint/lib/python3.14/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/google-auth-library-python/.nox/lint/lib/python3.14/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmpfs/src/github/google-auth-library-python/.nox/lint/lib/python3.14/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/tmpfs/src/github/google-auth-library-python/.nox/lint/lib/python3.14/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/tmpfs/src/github/google-auth-library-python/.nox/lint/lib/python3.14/site-packages/black.py", line 434, in main
    loop = asyncio.get_event_loop()
  File "/usr/local/lib/python3.14/asyncio/events.py", line 715, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
                       % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.
nox > Command black --check google tests tests_async noxfile.py setup.py docs/conf.py failed with exit code 1
```

This PR also fixes the coverage presubmit to append the coverage check
to run across python runtimes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants