Skip to content

Commit 94c50cf

Browse files
committed
Regenerate bigquery_v2 code with microgenerator
1 parent 62fa539 commit 94c50cf

35 files changed

+4897
-738
lines changed

.kokoro/presubmit/presubmit.cfg

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
# Format: //devtools/kokoro/config/proto/build.proto
2-
3-
# Disable system tests.
4-
env_vars: {
5-
key: "RUN_SYSTEM_TESTS"
6-
value: "false"
7-
}
1+
# Format: //devtools/kokoro/config/proto/build.proto

CONTRIBUTING.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,6 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.
8080

8181
.. nox: https://pypi.org/project/nox/
8282
83-
Note on Editable Installs / Develop Mode
84-
========================================
85-
86-
- As mentioned previously, using ``setuptools`` in `develop mode`_
87-
or a ``pip`` `editable install`_ is not possible with this
88-
library. This is because this library uses `namespace packages`_.
89-
For context see `Issue #2316`_ and the relevant `PyPA issue`_.
90-
91-
Since ``editable`` / ``develop`` mode can't be used, packages
92-
need to be installed directly. Hence your changes to the source
93-
tree don't get incorporated into the **already installed**
94-
package.
95-
96-
.. _namespace packages: https://www.python.org/dev/peps/pep-0420/
97-
.. _Issue #2316: https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2316
98-
.. _PyPA issue: https://github.com/pypa/packaging-problems/issues/12
99-
.. _develop mode: https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode
100-
.. _editable install: https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
101-
10283
*****************************************
10384
I'm getting weird errors... Can you help?
10485
*****************************************

docs/bigquery_v2/services.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Cloud Bigquery v2 API
2+
=========================================
3+
4+
.. automodule:: google.cloud.bigquery_v2.services.model_service
5+
:members:
6+
:inherited-members:

docs/bigquery_v2/types.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Types for Google Cloud Bigquery v2 API
2+
======================================
3+
4+
.. automodule:: google.cloud.bigquery_v2.types
5+
:members:

google/cloud/bigquery_v2/__init__.py

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,45 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2018 Google LLC
2+
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
77
# You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16+
#
1617

17-
from __future__ import absolute_import
18-
19-
import pkg_resources
20-
21-
__version__ = pkg_resources.get_distribution("google-cloud-bigquery").version # noqa
22-
23-
from google.cloud.bigquery_v2 import types
24-
from google.cloud.bigquery_v2.gapic import enums
18+
from .services.model_service import ModelServiceClient
19+
from .types.encryption_config import EncryptionConfiguration
20+
from .types.model import DeleteModelRequest
21+
from .types.model import GetModelRequest
22+
from .types.model import ListModelsRequest
23+
from .types.model import ListModelsResponse
24+
from .types.model import Model
25+
from .types.model import PatchModelRequest
26+
from .types.model_reference import ModelReference
27+
from .types.standard_sql import StandardSqlDataType
28+
from .types.standard_sql import StandardSqlField
29+
from .types.standard_sql import StandardSqlStructType
2530

2631

2732
__all__ = (
28-
# google.cloud.bigquery_v2
29-
"__version__",
30-
"types",
31-
# google.cloud.bigquery_v2
32-
"enums",
33+
"DeleteModelRequest",
34+
"EncryptionConfiguration",
35+
"GetModelRequest",
36+
"ListModelsRequest",
37+
"ListModelsResponse",
38+
"Model",
39+
"ModelReference",
40+
"PatchModelRequest",
41+
"StandardSqlDataType",
42+
"StandardSqlField",
43+
"StandardSqlStructType",
44+
"ModelServiceClient",
3345
)

google/cloud/bigquery_v2/gapic/__init__.py

Whitespace-only changes.

google/cloud/bigquery_v2/gapic/enums.py

Lines changed: 0 additions & 171 deletions
This file was deleted.

google/cloud/bigquery_v2/proto/__init__.py

Whitespace-only changes.

google/cloud/bigquery_v2/proto/encryption_config_pb2_grpc.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

google/cloud/bigquery_v2/proto/location_metadata_pb2.py

Lines changed: 0 additions & 98 deletions
This file was deleted.

google/cloud/bigquery_v2/proto/location_metadata_pb2_grpc.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)