Skip to content

Commit e52aef1

Browse files
committed
migrate to autogenerated google/cloud/bigquery_storage_v1/__init__.py with post processing
1 parent 59d22e2 commit e52aef1

File tree

2 files changed

+100
-6
lines changed

2 files changed

+100
-6
lines changed

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/__init__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2020 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
from __future__ import absolute_import
18-
15+
#
1916
from google.cloud.bigquery_storage_v1 import gapic_version as package_version
2017

2118
__version__ = package_version.__version__

scripts/client-post-processing/bigquery-storage-integration.yaml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,100 @@ replacements:
183183
"ReadRowsStream",
184184
"ReadSession",
185185
count: 1
186+
- paths: [
187+
packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1/__init__.py,
188+
]
189+
before: |
190+
__version__ = package_version.__version__\n\n
191+
from .services.big_query_read import BigQueryReadAsyncClient, BigQueryReadClient
192+
from .services.big_query_write import BigQueryWriteAsyncClient, BigQueryWriteClient
193+
from .types.arrow import ArrowRecordBatch, ArrowSchema, ArrowSerializationOptions
194+
from .types.avro import AvroRows, AvroSchema, AvroSerializationOptions
195+
from .types.protobuf import ProtoRows, ProtoSchema
196+
from .types.storage import \(
197+
AppendRowsRequest,
198+
AppendRowsResponse,
199+
BatchCommitWriteStreamsRequest,
200+
BatchCommitWriteStreamsResponse,
201+
CreateReadSessionRequest,
202+
CreateWriteStreamRequest,
203+
FinalizeWriteStreamRequest,
204+
FinalizeWriteStreamResponse,
205+
FlushRowsRequest,
206+
FlushRowsResponse,
207+
GetWriteStreamRequest,
208+
ReadRowsRequest,
209+
ReadRowsResponse,
210+
RowError,
211+
SplitReadStreamRequest,
212+
SplitReadStreamResponse,
213+
StorageError,
214+
StreamStats,
215+
ThrottleState,
216+
\)
217+
from .types.stream import \(
218+
DataFormat,
219+
ReadSession,
220+
ReadStream,
221+
WriteStream,
222+
WriteStreamView,
223+
\)
224+
from .types.table import TableFieldSchema, TableSchema\n
225+
__all__ = \(
226+
"BigQueryReadAsyncClient",
227+
"BigQueryWriteAsyncClient",
228+
"AppendRowsRequest",
229+
"AppendRowsResponse",
230+
"ArrowRecordBatch",
231+
"ArrowSchema",
232+
"ArrowSerializationOptions",
233+
"AvroRows",
234+
"AvroSchema",
235+
"AvroSerializationOptions",
236+
"BatchCommitWriteStreamsRequest",
237+
"BatchCommitWriteStreamsResponse",
238+
"BigQueryReadClient",
239+
"BigQueryWriteClient",
240+
"CreateReadSessionRequest",
241+
"CreateWriteStreamRequest",
242+
"DataFormat",
243+
"FinalizeWriteStreamRequest",
244+
"FinalizeWriteStreamResponse",
245+
"FlushRowsRequest",
246+
"FlushRowsResponse",
247+
"GetWriteStreamRequest",
248+
"ProtoRows",
249+
"ProtoSchema",
250+
"ReadRowsRequest",
251+
"ReadRowsResponse",
252+
"ReadSession",
253+
"ReadStream",
254+
"RowError",
255+
"SplitReadStreamRequest",
256+
"SplitReadStreamResponse",
257+
"StorageError",
258+
"StreamStats",
259+
"TableFieldSchema",
260+
"TableSchema",
261+
"ThrottleState",
262+
"WriteStream",
263+
"WriteStreamView",
264+
\)
265+
after: |
266+
__version__ = package_version.__version__\n
267+
from google.cloud.bigquery_storage_v1 import client, types\n\n
268+
class BigQueryReadClient(client.BigQueryReadClient):
269+
__doc__ = client.BigQueryReadClient.__doc__\n\n
270+
class BigQueryWriteClient(client.BigQueryWriteClient):
271+
__doc__ = client.BigQueryWriteClient.__doc__\n\n
272+
__all__ = (
273+
# google.cloud.bigquery_storage_v1
274+
"__version__",
275+
"types",
276+
# google.cloud.bigquery_storage_v1.client
277+
"BigQueryReadClient",
278+
"BigQueryWriteClient",
279+
)
280+
count: 1
281+
282+

0 commit comments

Comments
 (0)