Skip to content

Commit

Permalink
Hide ModelServiceClient from top-level namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
plamut committed Sep 30, 2020
1 parent 49b06a4 commit e31d97a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 1 addition & 2 deletions google/cloud/bigquery_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
#

from .services.model_service import ModelServiceClient

from .types.encryption_config import EncryptionConfiguration
from .types.model import DeleteModelRequest
from .types.model import GetModelRequest
Expand All @@ -41,5 +41,4 @@
"StandardSqlDataType",
"StandardSqlField",
"StandardSqlStructType",
"ModelServiceClient",
)
2 changes: 1 addition & 1 deletion synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "git@github.com:plamut/python-bigquery.git",
"sha": "27fd9a439a03192fccf1078f0c8ada843df5ae2e"
"sha": "49b06a4a2f9f240829110c8c34f5957087a88180"
}
},
{
Expand Down
13 changes: 13 additions & 0 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@
),
)

# Do not expose ModelServiceClient, as there is no public API endpoint for the
# models service.
s.replace(
"google/cloud/bigquery_v2/__init__.py",
r"from \.services\.model_service import ModelServiceClient",
"",
)
s.replace(
"google/cloud/bigquery_v2/__init__.py",
r"""["']ModelServiceClient["'],""",
"",
)

# Adjust Model docstring so that Sphinx does not think that "predicted_" is
# a reference to something, issuing a false warning.
s.replace(
Expand Down

0 comments on commit e31d97a

Please sign in to comment.