@@ -30,21 +30,23 @@ class Subscription(object):
3030 :param name: the name of the subscription.
3131
3232 :type topic: :class:`google.cloud.pubsub.topic.Topic`
33- :param topic: (Optional) the topic to which the subscription belongs; if ``None``,
34- the subscription's topic has been deleted.
33+ :param topic:
34+ (Optional) the topic to which the subscription belongs; if ``None``,
35+ the subscription's topic has been deleted.
3536
3637 :type ack_deadline: int
3738 :param ack_deadline: the deadline (in seconds) by which messages pulled
3839 from the back-end must be acknowledged.
3940
4041 :type push_endpoint: str
41- :param push_endpoint: URL to which messages will be pushed by the back-end.
42- If not set, the application must pull messages.
43-
44- :type client: :class:`~google.cloud.pubsub.client.Client` or
45- ``NoneType``
46- :param client: the client to use. If not passed, falls back to the
47- ``client`` stored on the topic.
42+ :param push_endpoint:
43+ (Optional) URL to which messages will be pushed by the back-end. If
44+ not set, the application must pull messages.
45+
46+ :type client: :class:`~google.cloud.pubsub.client.Client`
47+ :param client:
48+ (Optional) The client to use. If not passed, falls back to the
49+ ``client`` stored on the topic.
4850 """
4951
5052 _DELETED_TOPIC_PATH = '_deleted-topic_'
@@ -82,8 +84,9 @@ def from_api_repr(cls, resource, client, topics=None):
8284 configuration for a topic.
8385
8486 :type topics: dict
85- :param topics: (Optional) A mapping of topic names -> topics. If not passed,
86- the subscription will have a newly-created topic.
87+ :param topics:
88+ (Optional) A mapping of topic names -> topics. If not passed, the
89+ subscription will have a newly-created topic.
8790
8891 :rtype: :class:`google.cloud.pubsub.subscription.Subscription`
8992 :returns: Subscription parsed from ``resource``.
0 commit comments