Make Topic and Subscription classes standalone
Summary
Make the Topic
and Subscription
classes standalone instead of relying on a Service
instance and a related subscriber.
Contents (#523)
IMPORTANT: There are 2 breaking changes.
Enhancements
- 💥 BREAKING CHANGE: Remove
service
argument fromTopic
constructor - 💥 BREAKING CHANGE: Remove
subscriber
argument fromSubscription
constructor - Implicitly get
Service
credentials from environment and removecredentials
attribute
Fixes
- Move
finally
clause to correct nesting level inOrderedMessageHandler.handle_messages
Upgrade instructions
💥 Remove `service` argument from `Topic` constructor
Provide the project_name
argument instead of the old service
argument.
💥 Remove `subscriber` argument from `Subscription` constructor
Remove the old subscriber
argument as it's no longer needed.