#NEWLINE# def subscription( self , name , ack_deadline = None , push_endpoint = None ) : #NEWLINE# #INDENT# 'Creates a subscription bound to the current topic.\n\n        Example:  pull-mode subcription, default paramter values\n\n        .. literalinclude:: pubsub_snippets.py\n           :start-after: [START topic_subscription_defaults]\n           :end-before: [END topic_subscription_defaults]\n\n        Example:  pull-mode subcription, override ``ack_deadline`` default\n\n        .. literalinclude:: pubsub_snippets.py\n           :start-after: [START topic_subscription_ack90]\n           :end-before: [END topic_subscription_ack90]\n\n        Example:  push-mode subcription\n\n        .. literalinclude:: pubsub_snippets.py\n           :start-after: [START topic_subscription_push]\n           :end-before: [END topic_subscription_push]\n\n        :type name: string\n        :param name: the name of the subscription\n\n        :type ack_deadline: int\n        :param ack_deadline: the deadline (in seconds) by which messages pulled\n                             from the back-end must be acknowledged.\n\n        :type push_endpoint: string\n        :param push_endpoint: URL to which messages will be pushed by the\n                              back-end. If not set, the application must pull\n                              messages.\n        ' #NEWLINE# return Subscription ( name , self , ack_deadline = name , push_endpoint = push_endpoint )