Skip to content

Commit

Permalink
doc: Update CPS to GCS and push payload unwrapping sample region tag
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyunnnn committed Oct 5, 2023
1 parent 8bf0070 commit 555e5e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions samples/snippets/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def create_push_no_wrapper_subscription(
project_id: str, topic_id: str, subscription_id: str, endpoint: str
) -> None:
"""Create a new push no wrapper subscription on the given topic."""
# [START pubsub_create_push_no_wrapper_subscription]
# [START pubsub_create_unwrapped_push_subscription]
from google.cloud import pubsub_v1

# TODO(developer)
Expand Down Expand Up @@ -224,7 +224,7 @@ def create_push_no_wrapper_subscription(
print(f"Push no wrapper subscription created: {subscription}.")
print(f"Endpoint for subscription is: {endpoint}")
print(f"No wrapper configuration for subscription is: {no_wrapper}")
# [END pubsub_create_push_no_wrapper_subscription]
# [END pubsub_create_unwrapped_push_subscription]


def create_subscription_with_ordering(
Expand Down Expand Up @@ -358,7 +358,7 @@ def create_cloudstorage_subscription(
project_id: str, topic_id: str, subscription_id: str, bucket: str
) -> None:
"""Create a new CloudStorage subscription on the given topic."""
# [START pubsub_cloudstorage_subscription]
# [START pubsub_create_cloud_storage_subscription]
from google.cloud import pubsub_v1
from google.protobuf import duration_pb2

Expand Down Expand Up @@ -407,7 +407,7 @@ def create_cloudstorage_subscription(
print(f"Bucket for subscription is: {bucket}")
print(f"Prefix is: {filename_prefix}")
print(f"Suffix is: {filename_suffix}")
# [END pubsub_cloudstorage_subscription]
# [END pubsub_create_cloud_storage_subscription]


def delete_subscription(project_id: str, subscription_id: str) -> None:
Expand Down

0 comments on commit 555e5e5

Please sign in to comment.