Pub/Sub Lite API . admin . projects . locations . topics . subscriptions

Instance Methods

close()

Close httplib2 connections.

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

Lists the subscriptions attached to the specified topic.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(name, pageSize=None, pageToken=None, x__xgafv=None)
Lists the subscriptions attached to the specified topic.

Args:
  name: string, Required. The name of the topic whose subscriptions to list. (required)
  pageSize: integer, The maximum number of subscriptions to return. The service may return fewer than this value. If unset or zero, all subscriptions for the given topic will be returned.
  pageToken: string, A page token, received from a previous `ListTopicSubscriptions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTopicSubscriptions` must match the call that provided the page token.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for ListTopicSubscriptions.
  "nextPageToken": "A String", # A token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.
  "subscriptions": [ # The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.
    "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.