Skip to content

Commit 6596ac5

Browse files
committed
refactor(api-core): rename routing.py to client_utils.py as consolidated client helper
1 parent 2d0808b commit 6596ac5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/google-api-core/google/api_core/gapic_v1/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
# Older Python versions safely ignore this variable.
2626
__lazy_modules__: Set[str] = {
2727
"google.api_core.gapic_v1.client_info",
28-
"google.api_core.gapic_v1.routing",
28+
"google.api_core.gapic_v1.client_utils",
2929
"google.api_core.gapic_v1.routing_header",
3030
}
31-
__all__ = ["client_info", "routing", "routing_header"]
31+
__all__ = ["client_info", "client_utils", "routing_header"]
3232

3333
if _has_grpc:
3434
__lazy_modules__.update(
@@ -42,7 +42,7 @@
4242

4343
from google.api_core.gapic_v1 import ( # noqa: E402
4444
client_info,
45-
routing,
45+
client_utils,
4646
routing_header,
4747
)
4848

packages/google-api-core/google/api_core/gapic_v1/routing.py renamed to packages/google-api-core/google/api_core/gapic_v1/client_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
#
1616

17-
"""Helpers for routing and endpoint resolution."""
17+
"""Helpers for client setup and configuration."""
1818

1919
from typing import Any, Optional
2020

packages/google-api-core/tests/unit/gapic/test_routing.py renamed to packages/google-api-core/tests/unit/gapic/test_client_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from google.auth.exceptions import MutualTLSChannelError
2121

22-
from google.api_core.gapic_v1.routing import (
22+
from google.api_core.gapic_v1.client_utils import (
2323
get_api_endpoint,
2424
get_default_mtls_endpoint,
2525
get_universe_domain,

0 commit comments

Comments
 (0)