list method
Lists the topics attached to the specified reservation.
Request parameters:
name - Required. The name of the reservation whose topics to list.
Structured like:
projects/{project_number}/locations/{location}/reservations/{reservation_id}
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/reservations/\[^/\]+$.
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.
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.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a ListReservationTopicsResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<ListReservationTopicsResponse> list(
  core.String name, {
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if ($fields != null) 'fields': [$fields],
  };
  final url_ = 'v1/admin/' + core.Uri.encodeFull('$name') + '/topics';
  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return ListReservationTopicsResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}