Skip to content

Commit 0b79f8d

Browse files
xuanyang15copybara-github
authored andcommitted
fix: update mtls_utils import in secret_client.py
Co-authored-by: Xuan Yang <xygoogle@google.com> PiperOrigin-RevId: 937555547
1 parent 1b030dc commit 0b79f8d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/google/adk/integrations/secret_manager/secret_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from google.oauth2 import service_account
2727

2828
from ... import version
29-
from ...utils import mtls_utils
29+
from ...utils import _mtls_utils
3030

3131
USER_AGENT = f"google-adk/{version.__version__}"
3232

@@ -112,7 +112,7 @@ def __init__(
112112
client_options = None
113113
if location:
114114
client_options = {
115-
"api_endpoint": mtls_utils.get_api_endpoint(
115+
"api_endpoint": _mtls_utils.get_api_endpoint(
116116
location,
117117
_DEFAULT_REGIONAL_ENDPOINT_TEMPLATE,
118118
_DEFAULT_MTLS_REGIONAL_ENDPOINT_TEMPLATE,

tests/unittests/integrations/secret_manager/test_secret_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_init_with_auth_token(self, mock_secret_manager_client):
124124
"google.adk.integrations.secret_manager.secret_client.default_service_credential"
125125
)
126126
@patch(
127-
"google.adk.integrations.secret_manager.secret_client.mtls_utils.get_api_endpoint"
127+
"google.adk.integrations.secret_manager.secret_client._mtls_utils.get_api_endpoint"
128128
)
129129
def test_init_with_location(
130130
self,

0 commit comments

Comments
 (0)