Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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