list method
Lists members.
For more information, see
Manage meeting space members.
This API supports the fields parameter in
SystemParameterContext.
When the fields parameter is omitted this API response will default to
"name,email,role,user".
Request parameters:
parent - Required. Format: spaces/{space}
Value must have pattern ^spaces/\[^/\]+$.
pageSize - Optional. Maximum number of members to return. The service
might return fewer than this value. If unspecified or set to 0, at most
250 members are returned. The maximum value is 500; values above 500 are
coerced to 500. Maximum might change in the future.
pageToken - Optional. Page token returned from previous List Call.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a ListMembersResponse.
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<ListMembersResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'pageSize': ?pageSize == null ? null : ['${pageSize}'],
'pageToken': ?pageToken == null ? null : [pageToken],
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v2/' + core.Uri.encodeFull('$parent') + '/members';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListMembersResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}