Skip to content

storage: use one universe domain resolver for the REST and gRPC clients #19301

Backlog

Description

@shradhakatyal

google-cloud-storage has two universe domain resolvers: _helpers._resolve_client_universe (REST) and grpc_client._resolve_universe_domain (gRPC). Their contracts differ:

  • The REST helper accepts ClientOptions, any Mapping, or None, and raises TypeError for other types.
  • The gRPC helper duck-types client_options. It does not read universe_domain from a non-dict Mapping.

Proposal: make the gRPC helper delegate to _helpers._resolve_client_universe, so #19297 has one place to swap. Do this after #19271 merges, because that PR changes the same code.

Raised in review of #19248.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions