* $pubsubliteService = new Google\Service\PubsubLite(...); * $topics = $pubsubliteService->topics; * */ class AdminProjectsLocationsReservationsTopics extends \Google\Service\Resource { /** * Lists the topics attached to the specified reservation. * (topics.listAdminProjectsLocationsReservationsTopics) * * @param string $name Required. The name of the reservation whose topics to * list. Structured like: * projects/{project_number}/locations/{location}/reservations/{reservation_id} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of topics to return. The service * may return fewer than this value. If unset or zero, all topics for the given * reservation will be returned. * @opt_param string pageToken A page token, received from a previous * `ListReservationTopics` call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListReservationTopics` * must match the call that provided the page token. * @return ListReservationTopicsResponse */ public function listAdminProjectsLocationsReservationsTopics($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListReservationTopicsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(AdminProjectsLocationsReservationsTopics::class, 'Google_Service_PubsubLite_Resource_AdminProjectsLocationsReservationsTopics');