Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Jun 7, 2024
1 parent 8d667d7 commit b749727
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions samples/snippets/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,10 @@ def update_subscription_with_dead_letter_policy(
)

with subscriber:
subscription_after_update: gapic_types.Subscription = subscriber.update_subscription(
request={"subscription": subscription, "update_mask": update_mask}
subscription_after_update: gapic_types.Subscription = (
subscriber.update_subscription(
request={"subscription": subscription, "update_mask": update_mask}
)
)

print(f"After the update: {subscription_after_update}.")
Expand Down Expand Up @@ -573,8 +575,10 @@ def remove_dead_letter_policy(
)

with subscriber:
subscription_after_update: gapic_types.Subscription = subscriber.update_subscription(
request={"subscription": subscription, "update_mask": update_mask}
subscription_after_update: gapic_types.Subscription = (
subscriber.update_subscription(
request={"subscription": subscription, "update_mask": update_mask}
)
)

print(f"After removing the policy: {subscription_after_update}.")
Expand Down

0 comments on commit b749727

Please sign in to comment.