Cloud Pub/Sub API . projects . topics . subscriptions

Instance Methods

close()

Close httplib2 connections.

list(topic, pageSize=None, pageToken=None, x__xgafv=None)

Lists the names of the attached subscriptions on this topic.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(topic, pageSize=None, pageToken=None, x__xgafv=None)
Lists the names of the attached subscriptions on this topic.

Args:
  topic: string, Required. The name of the topic that subscriptions are attached to. Format is `projects/{project}/topics/{topic}`. (required)
  pageSize: integer, Optional. Maximum number of subscription names to return.
  pageToken: string, Optional. The value returned by the last `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a prior `ListTopicSubscriptions` call, and that the system should return the next page of data.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for the `ListTopicSubscriptions` method.
  "nextPageToken": "A String", # Optional. If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new `ListTopicSubscriptionsRequest` to get more subscriptions.
  "subscriptions": [ # Optional. The names of subscriptions attached to the topic specified in the request.
    "A String",
  ],
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.