Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit e31d97a

Browse files
committed
Hide ModelServiceClient from top-level namespace
1 parent 49b06a4 commit e31d97a

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

google/cloud/bigquery_v2/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616
#
1717

18-
from .services.model_service import ModelServiceClient
18+
1919
from .types.encryption_config import EncryptionConfiguration
2020
from .types.model import DeleteModelRequest
2121
from .types.model import GetModelRequest
@@ -41,5 +41,4 @@
4141
"StandardSqlDataType",
4242
"StandardSqlField",
4343
"StandardSqlStructType",
44-
"ModelServiceClient",
4544
)

synth.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "git@github.com:plamut/python-bigquery.git",
7-
"sha": "27fd9a439a03192fccf1078f0c8ada843df5ae2e"
7+
"sha": "49b06a4a2f9f240829110c8c34f5957087a88180"
88
}
99
},
1010
{

synth.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@
7575
),
7676
)
7777

78+
# Do not expose ModelServiceClient, as there is no public API endpoint for the
79+
# models service.
80+
s.replace(
81+
"google/cloud/bigquery_v2/__init__.py",
82+
r"from \.services\.model_service import ModelServiceClient",
83+
"",
84+
)
85+
s.replace(
86+
"google/cloud/bigquery_v2/__init__.py",
87+
r"""["']ModelServiceClient["'],""",
88+
"",
89+
)
90+
7891
# Adjust Model docstring so that Sphinx does not think that "predicted_" is
7992
# a reference to something, issuing a false warning.
8093
s.replace(

0 commit comments

Comments
 (0)