Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 201ae3e

Browse files
docs: mark BigQueryWrite v1beta2 as deprecated (#750)
* docs: mark BigQueryWrite v1beta2 as deprecated PiperOrigin-RevId: 610968688 Source-Link: googleapis/googleapis@8b91ac4 Source-Link: googleapis/googleapis-gen@c742e2b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzc0MmUyYmJkNmI4Mzc5YzVlNDZjNTkzZDQ2ZWE4ODI5ZTFhMjEwNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e7cbcd0 commit 201ae3e

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

google/cloud/bigquery_storage_v1beta2/services/big_query_write/async_client.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
Type,
3131
Union,
3232
)
33+
import warnings
3334

3435
from google.cloud.bigquery_storage_v1beta2 import gapic_version as package_version
3536

@@ -340,6 +341,11 @@ async def sample_create_write_stream():
340341
system.
341342
342343
"""
344+
warnings.warn(
345+
"BigQueryWriteAsyncClient.create_write_stream is deprecated",
346+
DeprecationWarning,
347+
)
348+
343349
# Create or coerce a protobuf request object.
344350
# Quick check: If we got a request object, we should *not* have
345351
# gotten any keyword arguments that map to the request.
@@ -478,6 +484,9 @@ def request_generator():
478484
AsyncIterable[google.cloud.bigquery_storage_v1beta2.types.AppendRowsResponse]:
479485
Response message for AppendRows.
480486
"""
487+
warnings.warn(
488+
"BigQueryWriteAsyncClient.append_rows is deprecated", DeprecationWarning
489+
)
481490

482491
# Wrap the RPC method; this adds retry and timeout information,
483492
# and friendly error handling.
@@ -575,6 +584,11 @@ async def sample_get_write_stream():
575584
system.
576585
577586
"""
587+
warnings.warn(
588+
"BigQueryWriteAsyncClient.get_write_stream is deprecated",
589+
DeprecationWarning,
590+
)
591+
578592
# Create or coerce a protobuf request object.
579593
# Quick check: If we got a request object, we should *not* have
580594
# gotten any keyword arguments that map to the request.
@@ -688,6 +702,11 @@ async def sample_finalize_write_stream():
688702
google.cloud.bigquery_storage_v1beta2.types.FinalizeWriteStreamResponse:
689703
Response message for FinalizeWriteStream.
690704
"""
705+
warnings.warn(
706+
"BigQueryWriteAsyncClient.finalize_write_stream is deprecated",
707+
DeprecationWarning,
708+
)
709+
691710
# Create or coerce a protobuf request object.
692711
# Quick check: If we got a request object, we should *not* have
693712
# gotten any keyword arguments that map to the request.
@@ -806,6 +825,11 @@ async def sample_batch_commit_write_streams():
806825
google.cloud.bigquery_storage_v1beta2.types.BatchCommitWriteStreamsResponse:
807826
Response message for BatchCommitWriteStreams.
808827
"""
828+
warnings.warn(
829+
"BigQueryWriteAsyncClient.batch_commit_write_streams is deprecated",
830+
DeprecationWarning,
831+
)
832+
809833
# Create or coerce a protobuf request object.
810834
# Quick check: If we got a request object, we should *not* have
811835
# gotten any keyword arguments that map to the request.
@@ -923,6 +947,10 @@ async def sample_flush_rows():
923947
google.cloud.bigquery_storage_v1beta2.types.FlushRowsResponse:
924948
Respond message for FlushRows.
925949
"""
950+
warnings.warn(
951+
"BigQueryWriteAsyncClient.flush_rows is deprecated", DeprecationWarning
952+
)
953+
926954
# Create or coerce a protobuf request object.
927955
# Quick check: If we got a request object, we should *not* have
928956
# gotten any keyword arguments that map to the request.

google/cloud/bigquery_storage_v1beta2/services/big_query_write/client.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,10 @@ def sample_create_write_stream():
770770
system.
771771
772772
"""
773+
warnings.warn(
774+
"BigQueryWriteClient.create_write_stream is deprecated", DeprecationWarning
775+
)
776+
773777
# Create or coerce a protobuf request object.
774778
# Quick check: If we got a request object, we should *not* have
775779
# gotten any keyword arguments that map to the request.
@@ -897,6 +901,9 @@ def request_generator():
897901
Iterable[google.cloud.bigquery_storage_v1beta2.types.AppendRowsResponse]:
898902
Response message for AppendRows.
899903
"""
904+
warnings.warn(
905+
"BigQueryWriteClient.append_rows is deprecated", DeprecationWarning
906+
)
900907

901908
# Wrap the RPC method; this adds retry and timeout information,
902909
# and friendly error handling.
@@ -980,6 +987,10 @@ def sample_get_write_stream():
980987
system.
981988
982989
"""
990+
warnings.warn(
991+
"BigQueryWriteClient.get_write_stream is deprecated", DeprecationWarning
992+
)
993+
983994
# Create or coerce a protobuf request object.
984995
# Quick check: If we got a request object, we should *not* have
985996
# gotten any keyword arguments that map to the request.
@@ -1083,6 +1094,11 @@ def sample_finalize_write_stream():
10831094
google.cloud.bigquery_storage_v1beta2.types.FinalizeWriteStreamResponse:
10841095
Response message for FinalizeWriteStream.
10851096
"""
1097+
warnings.warn(
1098+
"BigQueryWriteClient.finalize_write_stream is deprecated",
1099+
DeprecationWarning,
1100+
)
1101+
10861102
# Create or coerce a protobuf request object.
10871103
# Quick check: If we got a request object, we should *not* have
10881104
# gotten any keyword arguments that map to the request.
@@ -1191,6 +1207,11 @@ def sample_batch_commit_write_streams():
11911207
google.cloud.bigquery_storage_v1beta2.types.BatchCommitWriteStreamsResponse:
11921208
Response message for BatchCommitWriteStreams.
11931209
"""
1210+
warnings.warn(
1211+
"BigQueryWriteClient.batch_commit_write_streams is deprecated",
1212+
DeprecationWarning,
1213+
)
1214+
11941215
# Create or coerce a protobuf request object.
11951216
# Quick check: If we got a request object, we should *not* have
11961217
# gotten any keyword arguments that map to the request.
@@ -1300,6 +1321,10 @@ def sample_flush_rows():
13001321
google.cloud.bigquery_storage_v1beta2.types.FlushRowsResponse:
13011322
Respond message for FlushRows.
13021323
"""
1324+
warnings.warn(
1325+
"BigQueryWriteClient.flush_rows is deprecated", DeprecationWarning
1326+
)
1327+
13031328
# Create or coerce a protobuf request object.
13041329
# Quick check: If we got a request object, we should *not* have
13051330
# gotten any keyword arguments that map to the request.

0 commit comments

Comments
 (0)