Current Pub / Sub API requires a topic to create a subscription. This is unnecessary and cumbersome. It is also not feasible for some use cases: some users will only be given a subscription resource name to work with and not know the topic.
Current API:
fromgoogle.cloudimportpubsubclient=pubsub.Client()
topic=client.topic(topic_name)
subscription=topic.subscription(sub_name)
Target:
subscription=client.subscription(sub_name)
Current Pub / Sub API requires a topic to create a subscription. This is unnecessary and cumbersome. It is also not feasible for some use cases: some users will only be given a subscription resource name to work with and not know the topic.
Current API:
Target: