GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Impelement GAX logging API helper. by tseaver · Pull Request #1884 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Jun 22, 2016

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tseaver added 2 commits June 21, 2016 16:39
@tseaver
Move shared GAX scaffolding to 'gcloud._testing'.
c0cab42
@tseaver
impelement GAX logging API helper.
ca187a8
@tseaver tseaver added the api: logging Issues related to the Cloud Logging API. label Jun 22, 2016
@tseaver tseaver assigned daspecster Jun 22, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 22, 2016
daspecster
daspecster reviewed Jun 22, 2016
View reviewed changes
Comment thread gcloud/logging/_gax.py

import json

# pylint: disable=import-error

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
Use a non-local IP.
a51ddd0
Addresses: #1884 (comment)
@daspecster

daspecster commented Jun 22, 2016

Copy link
Copy Markdown
Contributor

How do we feel about the pragma/pylint overrides?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Jun 22, 2016

Copy link
Copy Markdown
Contributor Author

@daspecster

How do we feel about the pragma/pylint overrides?

I have very little respect the opinions involved in numerical limits in pylintrc_default / pylintrc_testing, especially where we dial up and down the numbers over time. @dhermes has a different opinion about the numerical limits.

In testcase methods, too-many-lines is completely bogus: adding an assertion to a testcase which pushes it over some arbitrary limit does not magically make the method "wrong" -- it clearly improves it.

For functions like _log_entry_mapping_to_pb, too-many-branches is equally wrong: chopping that function up in to pieces to satisfy that opinion would make it harder to read and understand.

For the import issues: if we ever get to the point that grpico and friends are universally installable / importable, we can likely remove those.

daspecster reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

daspecster
daspecster reviewed Jun 22, 2016
View reviewed changes
Comment thread gcloud/logging/_gax.py
:type entries: sequence of mapping
:param entries: the log entry resources to log.

:type logger_name: string

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster

daspecster commented Jun 22, 2016

Copy link
Copy Markdown
Contributor

Is this meant to be used with _LoggingAPI in /gcloud/logging/connection.py?

I guess I'm trying to understand how people would use these together in practice?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Jun 22, 2016

Copy link
Copy Markdown
Contributor Author

@daspecster

Is this meant to be used with _LoggingAPI in /gcloud/logging/connection.py?

I guess I'm trying to understand how people would use these together in practice?

The class in this PR is the GAX -protobuf-over-gRPC alternative to that class, which is the JSON-over-HTTP version providing the same API. Only one of the two will be used in any given instance, based on a) importability of the gRPC-related modules, and b) an environment variable switch. That bit will get wired in in a subsequent PR, after implementing GAX versions of the _SinksAPI and _MetricsAPI helpers.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster

daspecster commented Jun 22, 2016

Copy link
Copy Markdown
Contributor

Thanks! LGTM!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
tseaver merged commit 1124e87 into googleapis:master Jun 22, 2016
@tseaver
tseaver deleted the logging-gax_logging_api_helper branch June 22, 2016 20:16
This was referenced Jun 22, 2016
Implement GAX Sinks API helper. #1887
Merged
Prepare 0.17.0 release. #1940
Merged
@theacodes theacodes unassigned daspecster Sep 28, 2018
parthea pushed a commit that referenced this pull request Mar 2, 2026
@nbayati
fix(auth): Use public refresh method for source credentials in Impers…
8c0d918
…onatedCredentials (#1884)

This PR addresses a bug in ImpersonatedCredentials that causes a issues
when the source_credential is of a type that does not implement the
private _refresh_token method (for example, a custom credential type).
parthea pushed a commit that referenced this pull request Mar 2, 2026
@vchudnov-g
chore: librarian release pull request: 20251212T161150Z (#1888)
54ec638
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator:latest
<details><summary>google-auth: 2.44.0</summary>

##
[2.44.0](googleapis/google-auth-library-python@v2.43.0...v2.44.0)
(2025-12-12)

### Features

* MDS connections use mTLS (#1856)
([0387bb95](googleapis/google-auth-library-python@0387bb95))

* support Python 3.14 (#1822)
([0f7097e7](googleapis/google-auth-library-python@0f7097e7))

* add ecdsa p-384 support (#1872)
([39c381a5](googleapis/google-auth-library-python@39c381a5))

* Add shlex to correctly parse executable commands with spaces (#1855)
([cf6fc3cc](googleapis/google-auth-library-python@cf6fc3cc))

* Implement token revocation in STS client and add revoke() metho…
(#1849)
([d5638986](googleapis/google-auth-library-python@d5638986))

### Bug Fixes

* Add temporary patch to workload cert logic to accomodate Cloud Run
mis-configuration (#1880)
([78de7907](googleapis/google-auth-library-python@78de7907))

* Delegate workload cert and key default lookup to helper function
(#1877)
([b0993c7e](googleapis/google-auth-library-python@b0993c7e))

* Use public refresh method for source credentials in
ImpersonatedCredentials (#1884)
([e0c3296f](googleapis/google-auth-library-python@e0c3296f))

</details>
parthea pushed a commit that referenced this pull request Mar 6, 2026
@Linchin
feat: support RANGE in queries Part 1: JSON (#1884)
410ec1d
* feat: support range in queries as dict

* fix sys tests

* lint

* fix typo
parthea pushed a commit that referenced this pull request Apr 1, 2026
@chelsea-lin
refactor: add compile_random_sample (#1884)
f3aac68
Fixes internal issue 429248387
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@tseaver @daspecster @dhermes @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.