* $pubsubliteService = new Google\Service\PubsubLite(...); * $subscriptions = $pubsubliteService->subscriptions; * */ class CursorProjectsLocationsSubscriptions extends \Google\Service\Resource { /** * Updates the committed cursor. (subscriptions.commitCursor) * * @param string $subscription The subscription for which to update the cursor. * @param CommitCursorRequest $postBody * @param array $optParams Optional parameters. * @return CommitCursorResponse */ public function commitCursor($subscription, CommitCursorRequest $postBody, $optParams = []) { $params = ['subscription' => $subscription, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('commitCursor', [$params], CommitCursorResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CursorProjectsLocationsSubscriptions::class, 'Google_Service_PubsubLite_Resource_CursorProjectsLocationsSubscriptions');