class ProjectsTopicsSnapshots extends Resource (View source)

The "snapshots" collection of methods.

Typical usage is:

 $pubsubService = new Google\Service\Pubsub(...);
 $snapshots = $pubsubService->projects_topics_snapshots;

Methods

listProjectsTopicsSnapshots(string $topic, array $optParams = [])

Lists the names of the snapshots on this topic. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. (snapshots.listProjectsTopicsSnapshots)

Details

ListTopicSnapshotsResponse listProjectsTopicsSnapshots(string $topic, array $optParams = [])

Lists the names of the snapshots on this topic. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. (snapshots.listProjectsTopicsSnapshots)

Parameters

string $topic

Required. The name of the topic that snapshots are attached to. Format is projects/{project}/topics/{topic}.

array $optParams

Optional parameters.

Return Value

ListTopicSnapshotsResponse

Exceptions

Exception