Skip to content

Commit

Permalink
docs: mark BigQueryWrite v1beta2 as deprecated (#750)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Feb 28, 2024
1 parent e7cbcd0 commit 201ae3e
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
Type,
Union,
)
import warnings

from google.cloud.bigquery_storage_v1beta2 import gapic_version as package_version

Expand Down Expand Up @@ -340,6 +341,11 @@ async def sample_create_write_stream():
system.
"""
warnings.warn(
"BigQueryWriteAsyncClient.create_write_stream is deprecated",
DeprecationWarning,
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down Expand Up @@ -478,6 +484,9 @@ def request_generator():
AsyncIterable[google.cloud.bigquery_storage_v1beta2.types.AppendRowsResponse]:
Response message for AppendRows.
"""
warnings.warn(
"BigQueryWriteAsyncClient.append_rows is deprecated", DeprecationWarning
)

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down Expand Up @@ -575,6 +584,11 @@ async def sample_get_write_stream():
system.
"""
warnings.warn(
"BigQueryWriteAsyncClient.get_write_stream is deprecated",
DeprecationWarning,
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down Expand Up @@ -688,6 +702,11 @@ async def sample_finalize_write_stream():
google.cloud.bigquery_storage_v1beta2.types.FinalizeWriteStreamResponse:
Response message for FinalizeWriteStream.
"""
warnings.warn(
"BigQueryWriteAsyncClient.finalize_write_stream is deprecated",
DeprecationWarning,
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down Expand Up @@ -806,6 +825,11 @@ async def sample_batch_commit_write_streams():
google.cloud.bigquery_storage_v1beta2.types.BatchCommitWriteStreamsResponse:
Response message for BatchCommitWriteStreams.
"""
warnings.warn(
"BigQueryWriteAsyncClient.batch_commit_write_streams is deprecated",
DeprecationWarning,
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down Expand Up @@ -923,6 +947,10 @@ async def sample_flush_rows():
google.cloud.bigquery_storage_v1beta2.types.FlushRowsResponse:
Respond message for FlushRows.
"""
warnings.warn(
"BigQueryWriteAsyncClient.flush_rows is deprecated", DeprecationWarning
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,10 @@ def sample_create_write_stream():
system.
"""
warnings.warn(
"BigQueryWriteClient.create_write_stream is deprecated", DeprecationWarning
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down Expand Up @@ -897,6 +901,9 @@ def request_generator():
Iterable[google.cloud.bigquery_storage_v1beta2.types.AppendRowsResponse]:
Response message for AppendRows.
"""
warnings.warn(
"BigQueryWriteClient.append_rows is deprecated", DeprecationWarning
)

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down Expand Up @@ -980,6 +987,10 @@ def sample_get_write_stream():
system.
"""
warnings.warn(
"BigQueryWriteClient.get_write_stream is deprecated", DeprecationWarning
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down Expand Up @@ -1083,6 +1094,11 @@ def sample_finalize_write_stream():
google.cloud.bigquery_storage_v1beta2.types.FinalizeWriteStreamResponse:
Response message for FinalizeWriteStream.
"""
warnings.warn(
"BigQueryWriteClient.finalize_write_stream is deprecated",
DeprecationWarning,
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down Expand Up @@ -1191,6 +1207,11 @@ def sample_batch_commit_write_streams():
google.cloud.bigquery_storage_v1beta2.types.BatchCommitWriteStreamsResponse:
Response message for BatchCommitWriteStreams.
"""
warnings.warn(
"BigQueryWriteClient.batch_commit_write_streams is deprecated",
DeprecationWarning,
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down Expand Up @@ -1300,6 +1321,10 @@ def sample_flush_rows():
google.cloud.bigquery_storage_v1beta2.types.FlushRowsResponse:
Respond message for FlushRows.
"""
warnings.warn(
"BigQueryWriteClient.flush_rows is deprecated", DeprecationWarning
)

# Create or coerce a protobuf request object.
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
Expand Down

0 comments on commit 201ae3e

Please sign in to comment.