File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ """Convenience proxies
16+
17+ Define wrappers for ``api`` functions, :class:`gcloud.pubsub.topic.Topic`, and
18+ :class:`gcloud.pubsub.subscription.Subscription`, passing the memoized
19+ connection / project as needed.
20+ """
21+
1522from gcloud ._helpers import get_default_project
1623from gcloud ._helpers import _ClientProxy
1724from gcloud .pubsub ._implicit_environ import _require_connection
@@ -88,6 +95,10 @@ class _Topic(_ClientProxy):
8895 """Proxy for :class:`gcloud.pubsub.topic.Topic`.
8996 """
9097 def subscription (self , name , ack_deadline = None , push_endpoint = None ):
98+ """ Proxy through to :class:`gcloud.pubsub.subscription.Subscription`.
99+
100+ :rtype: :class:`_Subscription`
101+ """
91102 subscription = Subscription (
92103 name ,
93104 self ._wrapped ,
You can’t perform that action at this time.
0 commit comments